Repeat the same lot size if breakeven is hit
-
Hi
i would like to repeat the lot size that hit breakeven, I am using martingale with break even. How do i do that. E.g if lot position lot size is 0.08 and it is closed by breakeven it must repeat lot size 0.08.
Thanks -
@lali That is not a trivial structure. You will need a variable identifying when a trade was closed by hitting BE. Probably a second variable to identify when BE happens and finally a loop searching for the last closed trade to find its lot size and insert it into a third variable before opening the new trade.
That structure will depend on your current project.
-
Hi
battling with the variables, look at this EA still tying to repeat lot size after breakeven.https://fxdreema.com/shared/stdX6gzwb -
@lali You will need two variables. One used to conreol when BE is hit and another one to increase lot size:
https://fxdreema.com/shared/Vr8SidkUd
In my example a buy is closed and a sell opens with twice its lot size. Obviously you will need to adjust it to yor EA for sells.
-
Hi l'andorrá it is working.
Thanks a lot -
@l-andorrà Thanks from me too ... it works great!!
-
@lali You're welcome.