mr tanaka you did help me a lot with my request but i didn't explain it to you very well so it is need a littel modification i will explain with the image i hope i didnt trouble you
0 : lets say open first order is a
sell with a lot of 0.01
1: the second signal appear and the first trade is a loss so
do not close the first trade and open the second trade
buy with 0.02 lot
2: the third signal appear and the two previous trades at loss
do not close them and just open a third trade
sell with 0.04 lot
3: the fourth signal appear and all the last trades at loss
do not close them and just open a fourth trade
buy with 0.08 lot
4: the fifth signal appear and all the previous 4 trades at loss
do not close them and just open the fifth trade
sell wit 0.16 lot
5: the six signal appear and
now we have globale profit now we close all the trade at once