How to open new trades when a trade is closed?
-
Hi!
I have made some complex EAs using FXDreema but now I am trying to make a simple one and can't figure out how to make it work...
I am trying to make a EA where everytime a trade is closed (regardless of type or how it was closed) I want the EA to open two new trades, one Buy and one Sell, up to a limit of 20 opened trades.
I tried a lot of ways but it always end up opening 20 trades at once (like this last try: https://fxdreema.com/shared/2Qxkao6I).
It should work like this:
At first one Buy and one Sell is opened. As soon as a trade is closed, for example Sell reaches TakeProfit, a new Buy and Sell is opened.
Now I have 3 trades. next time a TP / SL is reached, a new Buy and Sell is opened. Now I should have 4 opened trades... etc.Can you help me? Thanks
-
Note that I work in "on Tick" and "on Trade". I use no SL, because you don't in your example: https://fxdreema.com/shared/sc48MK3ne
-
GBPUSD, this year - interesting backtest results by the way. Poor modelling quality and not the ideal ending, but at it looks interesting most of the time
http://prntscr.com/d4ugq2 -
Thanks man!!
I kept trying to make it work "on tick", I didn't even think about using "on trade", that is exactly what I need!
Yeah, the results on Demo account are actually really great using this simple strategy. The only problem is when there is a long and strong tendency. I need to make some adjustments, like finding the optimal SL and a strategy to close less profitable trades on the right occasions.
Best regards!