AddDataSeries(BarsPeriodType.Minute, 15); // Primary series with 15-minute bars AddDataSeries(BarsPeriodType.Tick, 1); // Secondary series with tick bars
1) When i do current bar check, should the indexing for current bar be 0 and 1 for primary and secondary? I tried that based on some posts i found here, but it didnt work and i had to use 1 and 2. Not sure if this is doing the correct thing though.
if (CurrentBars[1] < 2 || CurrentBars[2] < 2) return;
EnterLong(1, 1, "Long_" + i)

Comment