This has genuinely got to be one of the must ludicrous, most ridiculous situations I have even been in with this coding language.
Is there any reason as to why my trades are closing, regardless as to the button pressed on the prompted Messagebox - despite the fact my EA is only supposed to close trade when the IDYES button is selected?
I click the IDYES button, my trade liquidates, I click the IDNO button, my trade still liquidates.
Why is my EA doing things I have not told it to do? The word "fuming" cannot express enough how I'm feeling.
yes because your code is wrong the msgBox returns an Integer not a bool.
so change it to this format int msgBox = MessageBox..........
then check the value of msgBox and not IDYES
https://docs.mql4.com/common/messagebox- docs.mql4.com
yes because your code is wrong the msgBox returns an Integer not a bool.
so change it to this format int msgBox = MessageBox..........
then check the value of msgBox and not IDYES
https://docs.mql4.com/common/messageboxThanks Paul, it's incredible what you miss when you're burning the candle at not only both ends but down the middle as well! :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This has genuinely got to be one of the must ludicrous, most ridiculous situations I have even been in with this coding language.
Is there any reason as to why my trades are closing, regardless as to the button pressed on the prompted Messagebox - despite the fact my EA is only supposed to close trade when the IDYES button is selected?
I click the IDYES button, my trade liquidates, I click the IDNO button, my trade still liquidates.
Why is my EA doing things I have not told it to do? The word "fuming" cannot express enough how I'm feeling.