So.... if I have this start to my Configure,
" else if (State == State.Configure)
{
smaFast = EMA(Fast);
smaSlow = EMA(Slow);
smaLarge = EMA(Large);
smaFast.Plots[0].Brush = Brushes.Orange;
smaSlow.Plots[0].Brush = Brushes.Green;
smaLarge.Plots[0].Brush = Brushes.White;
//Pivots
//AddDataSeries(Data.BarsPeriodType.Day, 1);
// AddDataSeries(Data.BarsPeriodType.Minute, 30);
//My own timeframes. BarsInProgress 1 is 5 minutes, 2 is 15, 0 is always default 1 minute???
AddDataSeries(Data.BarsPeriodType.Minute, 5);
AddDataSeries(Data.BarsPeriodType.Minute, 15);"
.... does that mean that per the tutorial example, If i do this:
"(SMA(20)[0] > SMA(BarsArray[1], 20)[0])" - this will check the if the latest default of 1 minute is greater than HARD coded 5 minute?
... Or - how I understand it, since the script has been working as expected, if I do not mention BarsArray, it will take whatever the value I set the strategy to run in, so if I run it on a 5 minute time frame, THAT's the DEFAULT value of [0].
Doing so, the above code would simply check the sma of 5 minute, versus explicit request to 5 minutes? It mentions that the default of [0] is 1 minute, but I've been running my code, and all values are properly at 5 minutes, even if I have no mention of "BarsArray" anywhere - if I'm doing a single time frame - since I set the strategy to run and backtest on 5 minute time frame in the software.
Can someone clarify please?
Comment