this is small simulation what you can use and verify behaviour.
add this one to your strategy
This is big problem for me because realtime results not match market replay results.
I mean entries,
use Calconbarclose=false
protected override void Initialize()
{
Add(PeriodType.Range, 150);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if(CurrentBar<100)
return;
if(Historical==true)
return;
if(BarsInProgress!=0)
return;
if(FirstTickOfBar==false)
return;
double a=ADX(BarsArray[1],5)[0];
Print(Time[0]+" "+a.ToString());
}

Comment