I'm developing a strategy but when I've test it with Strategy Analyzer I get what you can see at image attached. Why the limit order enters if the price doesn't touch nor passes over my limit price?
My code looks like this:
protected override void OnBarUpdate()
{
// ....
this.m_activeOrder = EnterLongLimit(0, false, 1, High[0] + 0.5, "miorden"+CurrentBar);
SetStopLoss("miorden"+CurrentBar, CalculationMode.Price, Low[0] - 0.5, false);
SetProfitTarget("miorden"+CurrentBar, CalculationMode.Ticks, 20);
// ...
}

Comment