can you help me fix my ea i need close profit and use profit close loss
-

so, I am using Martingale Ea, and when the ea has orders more than 7
the trailing stop will work, if the old order hit the trailing stop that means profit
I need to use that profit to close loss tradelike an old order make a profit 20$ and then 1 of 7 orders,
then have one order -20$ then close it
so ea still have 6 orderthank you for help me
-

for examples
-
Not sure I fully get it. If I understand it correctly, the bot will be opening trades and the trailing stop will begin to work only when at least 7 trades are open at the same time, right? My first question is, are you using a common trailing stop for all open trades or each trade is trailing its particular SL?
-
@l-andorrà thank you for the comment
actually, all orders had trailing stops but order 7 is special
because I want to keep the profit like if order number 7 goes the correct way so the trailing stop it work then order no.7 moves wrong side that mean hit the trailing stop so keep that profit of order no.7 then find some order 1-6 the loss not more than profit no.7sorry my English so bad
-
So if I understand you correctly, all trades from 1 to 6 will have separate, independent trailing stops, right? Then I don't see your logic can always make sense, because what happens if some trades are in profit and others in loss when trade 7 is open. How can you be sure the direction of trade 7 will guarantee all the 6 previous ones are in profit?