Hello Support,
I'm trying to use the MQL Block to close positions based on OrderProfit() MagicNumberLong and MagicNumberShort, using the following:
Is there any reason why this is not working?
The Order Number itself is correct -
The OrderSelect function seems right -
The OrderProfit function seems right -
The trading condition tests "OK" and the EA does build without errors.
The EA also runs, but it won't close the current order given its correct MagicNumberLong/MagicNumberShort at the designated OrderProfit() level, even though the trade runs well beyond the OrderProfit() amount.
Thanks!
cfx