Why is it executing the function despite not calling it
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
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