
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
MT4Orders is a class that "hides" the way trade transactions work on MT5, by making them look like how they would work in the older MT4.
However, MT5's trade handling is completely different and much more complex, because it offers a whole lot of other functionality and features that were simply not available nor even possible on MT4.
Switching between the two trade handling methods can be quite daunting. That is why I recommended that you start with fresh eyes on MT5 without being misdirected by the older MT4 way.
To learn about native MT5 trade handling, start with the following article, while referencing the MQL5 Documentation and the MQL5 programming book for traders. You can also look into the Trade class of the Standard Library if you prefer OOP to Procedural/Functional programming.
Here's a concise example to go with:
Forum on trading, automated trading systems and testing trading strategies
How to start with MQL5
Vladimir Karputov, 2020.12.19 05:33
Example: short trade request form and full trade request form
Code: Buy Short code and Full code.mq5
Result