I am programming an strategy with two different instruments and different Time Frames.
in this strategy I use the Cross Above of the Spread of this two instruments with the Lower Bollinger Band of this Spread (as Input Data Series) to enter a long order , the problem it is that I use the Spread of this two instruments in 1 minute bar when it crosses the Lower Bollinger Band of the Spread of 15 minute bar , then I need to use the BarsArray :
if (BarsInProgress == 3)
{
CrossAbove(Spread( contracts0,-contracts1,symbol2,useMultiplier),Bollinger( BarsArray[2],Spread( contracts0,-contracts1,symbol2,useMultiplier),numStdDev, period ).Lower[ barsAgo] , 1))
}
as Bollinger Bands only supports 3 arguments:
Bollinger(IDataSeries input, double numStdDev, int period).Lower[int barsAgo]
when I compile the strategy appears an error that says Bollinger method do not accepts 4 arguments .
What should I do to solve this problem?
many Thanks
Albert
Comment