how to change account balance to account equity in a mt4 algo
-
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
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;
}