It's executing the usemovetobreakeven() despite the code.
Files:
IMG_20210207_213154_450.jpg
110 kb
IMG_20210207_213151_467.jpg
122 kb
Don't post pictures of code, they are too hard to read.
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor
William Roeder:
Don't post pictures of code, they are too hard to read.
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor
//---CHECK MOVE TO BREAKEVEN FUNCTION---// if (useMoveToBreakeven == true) { breakEvenStopLoss(); } if (useMoveToBreakeven == false) { Comment("\n","\n","\n","\n","\n","\n","Breakeven function is not activated"); }
extern bool useMoveToBreakeven= false; int OnInit()it's executing the breakEvenStopLoss(), despite the value of the bool is false
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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