I am running a multi-time frame strategy on one instrument. I have added several Bars (i.e. 60, 30, 20, 10, etc.). Each Bar in Process (BIP) calculates an indicator value and should print it on bar update. I have a print function. Now the BarsPeriod.Id and BarsPeriod.Value always refer to the primary bar. Is there a way I can retrieve it automatically for each BIP using BarsArray or similar?
Print(Time + ";" + Instrument.FullName + ";" + BarsPeriod.Id + " " + BarsPeriod.Value + "value is: " + indicatorvalue);
Thank you
whotookmynickname
Comment