Okay.
if(AccountProfit()>100) { // Close orders... }
Marco vd Heijden:
Okay I'm not talking about my capital but gains in progress
Okay.
You get the idea.
cool thanks !
if i want to cut at -100 usd it's the same?
if(AccountProfit()<-100) { // Close orders... }
Yes.
Marco vd Heijden:
Yes.
Yes.
if(AccountProfit()<-100) { // Close orders... }
thanks
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 designed an EA and I would like every time my current win reaches 100 usd all positions are closed automatically
HOW TO DO THIS ?