Abbas Mussa:
if i change Lot size the robot not trading?
and Trailing SL Not working
please
add
- use OrderCheck() for a check of enough money.
- use the debugger to check the variable values for your trailing stop:
Code debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
Error Handling and Logging in MQL5: https://www.mql5.com/en/articles/2041
Tracing, Debugging and Structural Analysis of Source Code, scroll down to: "Launching and Debuggin": https://www.mql5.com/en/articles/272
Documentation on MQL5: Trade Functions / OrderCheck
- www.mql5.com
OrderCheck - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
int total = PositionsTotal(); for(int i = total - 1; i >= 0; i--) { ulong ticket = PositionGetTicket(1);You are selecting the same ticket each time.
Carl Schreiber #:
add
- use OrderCheck() for a check of enough money.
- use the debugger to check the variable values for your trailing stop:
Code debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
Error Handling and Logging in MQL5: https://www.mql5.com/en/articles/2041
Tracing, Debugging and Structural Analysis of Source Code, scroll down to: "Launching and Debuggin": https://www.mql5.com/en/articles/272
plz assist me to change code plz fix for me 3hours struggling
Abbas Mussa #: plz assist me to change code plz fix for me 3hours struggling
No, it is your responsibility if you are here to learn.
Put in the effort. We are not here to "serve" you. Only to offer advice.
If you are not here to learn, then use the Freelance job section.
Trading applications for MetaTrader 5 to order
- 2023.04.17
- www.mql5.com
The largest freelance service with MQL5 application developers
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
if i change Lot size the robot not trading?
and Trailing SL Not working
please