Add(indicator);
Add(second_instr, BarsPeriod.Id, BarsPeriod.Value);
Add(third_instr, BarsPeriod.Id, BarsPeriod.Value);
Add(PeriodType.Custom5, 002004002);
In "OnBarUpdate"
if (BarsInProgress != 0) return;
And when I try to call the data of Renko bars the strategy does not react or reacts incorrectly
For example
if(Opens[3][1] < Closes[3][1] && Opens[3][0] > Closes[3][1])
{
........
}
It's not working
In addition, when I call in "Print" opens[3][0] and closes[3][0], the closes price is true, and the opens is not
In this regard, there is a question - how to call the Renko data in the strategy
Forgot to add, I'm using CalculateOnBarClose = false; Maybe this causes problems, although the open price should still remain unchanged
Comment