equity profit again and again
-
Hello, I have been trying to make an EA that once i set the profit I want, the EA should close all the trades and start again.
I also have a maximum loss.for example if my balance is 1000€ and.....
I set 20€ as my profit
100€ as my loss,
so taking into account all my trades opened, when my equity is 1020 or 900 ( any of the 2 conditions are reached,) all trades are closed and it all starts again with new equity to be reachedhttps://fxdreema.com/shared/WYgSGH85d
Can somebody tell me why it is not working properly?
-
@cupricfoild What you need is this:
https://fxdreema.com/shared/x75d43Fwc
This EA can close all open trades as soon as the target in pips (or money if you modify it) is reached. However, beware of the closed trades. You wil probably need to limit the amount of closed trades to check for your calculations. If you are interested in those closed trades today only, you will need to select the MT4's history tab to 'today'.
-
thank you so much !!
that was a quick answerAnyways , could you please tell me what is the mistake I did??
Thanks in advance for your time -
@cupricfoild The most evident one was that 'no trade' block on top. That's the opposite you need. You need open trdes to calculate the true equity at every pip.