First I tried to do this via Add() in Initialize(), only to find out that the object is not fully constructed at that point and therefore not accessible. However, I do not want to call the indicators on every OnBarUpdate() as I have seen proposed in other threads. The indicators I am using have a huge number of parameters and are unwieldy. They are not as simple as calling SMA(BarsArray[1],10). More like CustomIndi(BarsArray[1],param1, param2.... param50!).
I have in Initialize() :
Add( PeriodType.Minute, timeframePeriodHTF1 ); Add( PeriodType.Minute, timeframePeriodHTF2 ); Add( PeriodType.Minute, timeframePeriodHTF3 ); Add( PeriodType.Minute, timeframePeriodHTF4 );
// Attach multiple indicators to the first time series: Add( BarsArray[1], CustomIndi1( param1, param2, ... param50 ) ); Add( BarsArray[1], CustomIndi2( param1, param2, ... param50 ) );
I want to attach various indicators to each of these BarsArray[] data series so that I don't have to resort to calling every indicator for every BarsArray[] in OnBarUpdate().
How can I do that?
Comment