help to create a loss manager EA
-
Hello, I need help to make an EA, to manage losses.
the idea to manage these losses are:
When I put a buy operation to cover I organize it by group .. (group1).
If the operation to hedge is a sale, it will be group 2.
When I close a group 1 trade, I determine the profit from that trade (or deals).
and I dedicate 50% of the profit to carry out a partial closing of buy-in-losses.
In addition, it will close from where the opening price is farthest from the current price.
same in shorts.
I close group 2, I determine profits and 50% of the profits I use to close the equivalent of lot sell.example-
I close group 1 with $ 100
$ 50 will be of benefit, and $ 50 to assume closing losses in long trades.it may be the case that more than one operation of group # is closed. and evidently there are group # operations previously closed, which do not have to be taken into account at this time (as they were already calculated at the time of closing).
I leave you a sketch to illustrate the situation.If anyone is interested in helping me, we can share ideas.
Thank you so much
-
sheesh, good luck. Sounds like it would be easier to eliminate getting into losing trades.
-
@cdt Just curious. Is the the whole strategy? Will you be managing loses only? No criteria to open a trade? If so that is not a successful long term strategy, sorry.