I couldnt find how to do in NT-script to check if a certain position is long with
* "Position.MarketPosition == MarketPosition.Flat"
* "if (execution.Order != null && execution.Order.OrderState == OrderState.Filled)"
I can check if there is any long or filled. But how to do please for knowing eg if "B" (from the sample with A, B, C here) is long (or filled)
EnterLongt(1000, "A");
EnterLong(1000, "B");
EnterLong(1000, "C");
How to do with MarketPosition and howto do with orderstate in OnExecution please?
Thanks
Tony
Comment