Alex Wong / Publications
Forum
coding _ close position by order type (mql5)
hi all, i'm trying to create my own expert adviser. However, i don't know the coding (mql5) that for close the opened position by (OrderType() == OP_BUY) or (OrderType() == OP_SELL). It is so much different with mql4. Kindly share a sample coding (mql5) for the below situation. if condition A, then