pomer2741: What would I add to the existing section?
Code that does your "if Exit_Only is TRUE then expert will not enter new trades, only exit and manage"
William Roeder:
Code that does your "if Exit_Only is TRUE then expert will not enter new trades, only exit and manage"
Code that does your "if Exit_Only is TRUE then expert will not enter new trades, only exit and manage"
Where would I put that among all that code? Seems to have several conditions.
const bool canOpenLong = ind0long && ind1long && ind2long; const bool canOpenShort = ind0short && ind1short && ind2short;
if (! Exit_Only) ManageOpen();
The logical negation (! symbol) is flipping a Boolean's value. It's like saying if
(Exit_Only==false), but this isn't considered good coding style so just use the symbol.

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
I have this code in my open order section, based on specific criteria. I added an INPUT
input Bool Exit_Only = False;
where if Exit_Only is TRUE then expert will not enter new trades, only exit and manage. This is if I want to stop the expert without closing all open orders.
What would I add to the existing section?
Thank you for your help.