Taulant:
Hello, i hope you are having a good day, i am trying to create a programm for mt5 where if the order is at a certain profit the EA to set a sl at a certain position which equals to $
The code i have and it is not working :
It is giving me way to many errors :
Can someone give me an idea at least why at the () are errors and at the undecleared identifier
Thanks for the help
Hello, i hope you are having a good day, i am trying to create a programm for mt5 where if the order is at a certain profit the EA to set a sl at a certain position which equals to $
The code i have and it is not working :
It is giving me way to many errors :
Can someone give me an idea at least why at the () are errors and at the undecleared identifier
Thanks for the help
You are using MQL4 for an MQL5 program.
I suggest you look for the following equivalences here:
Sergey Pavlov, 2010.05.17 13:32
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.Edit: Obviously not all equivalences are there and certainly not the ones you are looking for. That may be because there is no equivalence as such, as there are things that from MQL4 to MQL5 are done slightly differently. In any case make sure you use the MQL5 language if you intend to code for MT5.
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
- www.mql5.com
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
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
The code i have and it is not working :
It is giving me way to many errors :
Can someone give me an idea at least why at the () are errors and at the undecleared identifier
Thanks for the help