I have a very simple strategy which enters three orders : a entry, a stop, and a take profit at once. The strategy will enter but the stop and take profit are always ignored. Why?
Print("StartShort");
Draw.VerticalLine(this, "StartShort", Time[0], Brushes.Red);
Draw.HorizontalLine(this, "EnterShortStopMarket", Close[0] + 8, Brushes.Red);
Draw.HorizontalLine(this, "StartShort2", Close[0], Brushes.Yellow);
Draw.HorizontalLine(this, "EnterShortLimit", Close[0] - 8, Brushes.Green);
EnterShort();
EnterLongMIT(Close[0] + 8);
EnterLongMIT(Close[0] - 8);

Comment