
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank-you for proving my point. It does reject all orders.
I was using OrderType() > OP_SELL on my code but @Fernando Carreiro told him it is a bad practices in this post : https://www.mql5.com/en/forum/462038 . So, i changed to if(OrderType() != OP_BUY && OrderType() != OP_SELL) but now your saying it wrong approach than what is the correct approach.
OLD Code (OrderType() > OP_SELL) :
New code (OrderType() != OP_BUY && OrderType() != OP_SELL) :
If my both code is wrong, than what is the right way to do?but now your saying it wrong approach than what is the correct approach.
Be more attentive
Forum on trading, automated trading systems and testing trading strategies
Best way to filter Orders with Symbol and Magic Number
William Roeder, 2024.03.27 13:00
Forum on trading, automated trading systems and testing trading strategies
Best way to filter Orders with Symbol and Magic Number
anuj71, 2024.03.29 06:31
New code (OrderType() != OP_BUY && OrderType() != OP_SELL) :