I need help , Mql4. Orderclose and orderdelete

 
hello algo traders.

Consider 10 buystop orders stacked at a certain interval. The stop loss level of each buystop order will be the same as the buystop order level before it. As the price rises, it will take the buystop orders one by one, starting from the bottom, and turn them into a buy transaction.

For example, 4 out of 10 buystop orders turned into buys and the price started to drop from there. When the last buy trade at the top is stop, I want all open buy trades to be closed and undelivered buystop orders to be deleted.

I wrote a lot of code for this but I ran into some problems. For example, buystop deleted some of the orders and some remained.

I do not know if such a study has been done before, but I request you to help me in this regard.
 

https://www.mql5.com/tr/signals/1830896?source=Site+Signals+Favorites 

Gel kardeşim kopyala zahmetsiz para kazan benimle beraber

MetaTrader 5 için Ticaret Sinyalleri: RedIstanbul
MetaTrader 5 için Ticaret Sinyalleri: RedIstanbul
  • www.mql5.com
After 10 years later I created my trading strategy in a Expert Advisor, so just copy my trades and enjoy the earn money, with love. Any question pleas PM and After using that signal pleas rate it
Neden: