I need to place a historical order at some certain point, for example
CurrentBar = Bars.Count - 5
I increase the number of days to 1000, set MaximumBarsLookBack to "Infinite" and use this condition for the historical processing
protected override void OnBarUpdate()
{
if(Historical)
{
if(CurrentBar == Bars.Count - 500)
{
EnterLong();
}
}
}
It doesnt take the historical position. Is there any other property I need to set to make this work?
Thanks

Comment