HosseinKOGO: I want to tell my EA if Current drawdown<-500$, Remove the expert. But I don't know how can I calculate current drawdown or if there is any predefined variable for this.
No, there is no predefined variable. You have to calculate it!
- Monitor the current balance and/or equity.
- Every time it is higher than previously recorded, then record the current value in the variable used to record the maximum.
- When the current values are below the maximum, then the difference is your current drawdown.
- When the current drawdown is beyond your limit that you have established, then remove the expert.
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 friends,
Hope you are doing well.
I want to tell my EA if Current drawdown<-500$, Remove the expert.
But I don't know how can I calculate current drawdown or if there is any predefined variable for this.
Your advice is appreciated!