Hello All, I'm writing strategy for multicharts.net and can't find any example of getting order state, if it is open or filled. Also I need to modify existing limit and stop orders, how I can do it?
Read MC.Net's Guide on strategy, everything is in there. The .NET object implements IOrder(s) from TradeManager
I did a small test creating an order longOrder = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "Long open", EOrderAction.Buy)); and then sending it longOrder.Send(40); it was never executed, what is the problem? the market orders are executed during the backtest, but not stop orders.
After several experiment I understand that orders are active only during one bar. And found the place where it is written in 4.6.9 . Very interesting is it possible to send a GTC order? That order can be executed even if I have some internet connection problems.