EA problem with closing profitable trades after certain period of time
-
Hello. My EA has a problem when it comes to closing profitable trades. I would like it to open BUY and SELL orders at the same time(which is currently running okay) and check profitable trades(after ever one minute) and close them but should not close trades in loss until they earn some profit.
The EA(https://fxdreema.com/shared/bXiayy24e) only opens buy and sell orders but doesn't close any.
Thank you in advance -
@miano
Hi, this way then
https://fxdreema.com/shared/HP3WZaOzd
It's a much risky strat on the long term -
How do i make it reorder a buy or a sell if the previously closed trade was a profit?
-
@miano
Sorry it was this link :
https://fxdreema.com/shared/uYgRfsrH -
@seb-0
thank you. the strategy works for some synthetic binary markets. please help with the reply above. the EA you've shared is working; i require the last bit for it to be complete -
@miano
If you want to reopen an order if the previous one was a profit, put "For Each closed position" -> "condition: profit > 0" -> "buy now" -
@seb-0
it still does not reopen a trade after making profits.

-
@miano
https://fxdreema.com/shared/nNOQ08src
Like this ? -
@seb-0
the previous version https://fxdreema.com/shared/uYgRfsrH
but i would like it to make a new order once a profitable order has been closed while still running the order that has a loss e.g if a buy is in profit and closes a new buy order should be made but the sell in loss should remain open until it makes a profit and closes. after that a new sell order can openthe previous version only opens new orders after both sell and buy have made a profit and have been closed
-
Hi @Miano . For that you need to separate 2 sets of blocks. One for buy, and one for sell. Block for open trade also split in 2 sets. Goodluck.
-