i have an EA but a a certain point it will place several buy stop orders or sell stop orders.
That is alerady forseen in the EA.
These Buy stop orders or sell stop orders are to reduce drawdown.
Suppose the are placed several buy stop orders.
If the market goes up the first buy stop order becomes a buy order.
When the market goes further up then the second buy stop order becomes a buy order. Then the first buy orders has to change it stoploss for example 5 pips ( parameter ) above his opening price.
When the third buy stop order becomes a buy order then the second buy order has to change his stoploss. Same parameter.
This has to continue for all the buy stop orders.
But if the market goes down the buy orders with his stop loss will close with profit.
Then the EA must place new buy stop orders at the same position.
So if the market goes down there will only be one buy order open and if the market goes up new buy orders are opened.
Same for the sell stop orders in opposite direction.
Also forsee : alerting via a SMS that the waiting stop orders are triggered