There are many examples in the CodeBase and in the Articles. Have a look at the MQL5 Cookbook series as well as the following ...
Orders, Positions and Deals in MetaTrader 5
MetaQuotes, 2011.02.01 16:13
Creating a robust trading robot cannot be done without an understanding of the mechanisms of the MetaTrader 5 trading system. The client terminal receives the information about the positions, orders, and deals from the trading server. To handle this data properly using the MQL5, it's necessary to have a good understanding of the interaction between the MQL5-program and the client terminal.
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
Samuel Olowoyo, 2010.06.09 11:37
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
There are many examples in the CodeBase and in the Articles. Have a look at the MQL5 Cookbook series as well as the following ...
I tried to find examples, I didn´t know where I could find them, thank you!
If you prefer to read in Portuguese, then the Articles by Daniel Jose may be ideal. His series "Desenvolvendo um EA de negociação do zero" may be exactly what you need.
Desenvolvendo um EA de negociação do zero
Daniel Jose, 2021.12.17 13:48
Entenda como se dá o desenvolvimento de um EA para negociação programando o mínimo possível.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am used to coding in MQL4.
I am trying to test an indicator that is MT5. I tried to code in MQL5, but it´s very different from MQL4, I can´t even understand the function ordersend.
Do you have a sample of EA MQL5 I can use to learn MQL5?
TIA
Flavio Benites