-
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 -
Perhaps you should read the manual. AccountEquity
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. - Simplify your code.
Increase Order after stoploss - MQL4 programming forum #1.3 2017.05.29

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
HI
i have an algo in which all trades are terminated when account balance is more than x or less than y
how do i change this to account equity
bool Filter_AB()
{
if(DISABLE_ALGO)
{
if(AccountBalance()>=ACCOUNTBALANCE1 || AccountBalance()<=ACCOUNTBALANCE2 )
{return false; } else {return true;}
}
return true;
}