
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
According to what I read, all forms of immediate execution orders require the type_filling field to be set.
Trade Request Structure - Data Structures - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Order Properties - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Thanks for the tips, the code has been in progress for 5 days, I have solved the problem with not setting any trades, I just want to make small updates :)
You need to make a new iteration
this code is not going to correctly calculate ATR
https://www.mql5.com/en/docs/indicators/iatr
Return Value
Returns the handle of a specified technical indicator
It returns the handle which is a code, and does not return ATR value