I am trying to find a way to set a closing price (haven't reach yet) for opened orders (previously pending orders) in my ea. Problem is the OrderClose and OrderCloseBy functions only works for market orders. Even when I am using market orders I always get the requote problem. Plus I can only use bid/ask in the price parameter? Anyway, whenever I try to use the OrderModify, I always get an invalid ticket error. Anyone has a solution?
PS. I find that MQL is quite primitive in this regard. Is the C# language used by ninjatrader better in the area of trading functions?
I also find that a position (buy) which doesn't offset its opposite position (sell) is rather bizarre in MT4.
PS. I find that MQL is quite primitive in this regard. Is the C# language used by ninjatrader better in the area of trading functions?
I also find that a position (buy) which doesn't offset its opposite position (sell) is rather bizarre in MT4.