The order is entered correctly, but when EMA changes, the order price is not getting updated in this live open order. How should I code it, so the price is updated in open orders in live trading as EMA changes? Thank you!
orderPrice = Instrument.MasterInstrument.Round2TickSize(EMA(100 )[0]);
if (orderPrice < EMA(100)[0]) orderPrice = orderPrice + 0.25;
entryOrderA = EnterLongStop(1, orderPrice, "MyEntry-a");
Comment