I am working on undertanding how new orders are launched.
For that, I have a very simple program:
protected override void OnBarUpdate()
{
if (Position.MarketPosition == MarketPosition.Flat)
if (CrossAbove(SMA(FastLenght), SMA(SlowLenght), 1)){
entryOrder = EnterLongStop(1, Close[0] + 0.0003);
ExitLongLimit(Low[0]);
}
}
From this code I understand a new trade should be launched once the price goes above Close + 0.0003. However, I am taking a look at the chart and I can find many situations where the conditions fulfill the requirements but no traders are launched (an example can be found on the picture).
May you help me understanding why?
Comment