deleting the pending limit if depend on condition based on macd
-
Hi please help me, My Ea will give a limit order with offset pips based on macd concept. If It gives a buy limit with offset pips of 30 pips if the main line crosses above the signal line. then it should close the pending order if the macd main line crosses below the singnal line.

-
It is impossible to tell from a picture if this is right to work. add a shared link: project page - projects - create a shared link - open in web page - copy address bar and place here
-
hello Sir here's the shared link https://fxdreema.com/shared/1VTNP2m7e
-
You want it more like this:

no position order just put's 2 blocks into 1, backtest with this and see if it is doing as you want -
Thank you Sir!
-
Also your once per bar probably needs to go under your conditions, because the cross will likely happen after once per bar has been activated, for now just remove it.
-
Hi Sir, I tried to copy your suggestion but still it doesn't delete the pending order https://fxdreema.com/shared/qY3g4qqMd
-
Add under close a delete pending order block