Tp multiplier
-
Hello,
Just a question. If I have a LONG trade and I lost 30 pips, I would like my EA close this trade and open a SHORT trade immediately with lots x2 and TP = the number of pips I lose with the last trade (here 30 pips), how can I do please?
Thanks for your help
Bag
-
hello!
I don't know if I was clear.
Trade 1 > LONG EURUSD 1.00 lot opened at 1.14200 / TP at 1.14300 (10 pips), no SL
My trade lost 30 pips and I have decided to close my trade at 1.13900Trade 2 > SHORT EURUSD 2.00 lots (x2 from the previous trade) opened at 1.13900 / TP at 1.13600 (the 30 pips I lost with the previous trade)
Thanks for your help
-
You can add blocks on On trade and check for what type of trade either buy or sell was most recently closed. Then you can add the martingale risk method in your buy or sell block. It seems like to me that you are using the martingale method.
Cheers.
-
Thank you but martingale is programmed with lots and not *2 or *3....
The lots opened in a first time were by % of equity. So I need a solution with a variable I think -
@bagheria Definitely you will need several variables. One to store the lot size value of the first trade and another one to use as multiplier. Then a third one to calculate that new distance for the 'doubled' trade. Not a trivial structure to do, certainly.
-
Hello,
I see what you said. thnak you for your help. I will try
-
@bagheria You're welcome. Share your project here if you need more help.