Initialize()
CalculateOnBarClose = false
OnBarUpdate()
{
if (FirstTickOfBar)
{
if(BarsInProgress == 0)
RSI(BarsArray[0], 14, 1)[0]; //Is this indicator in updated state?
}
}
Is it guaranteed that the indicator is in an updated state when the strategy reads the current value [0]?
If not, how can it be assured that it is?
It is not clear when indicators are updated in relation to the FirstTickOfBar becoming true and the strategy execution.

Comment