How to close the buy pending order if my sell now block hits TP.
-
I have created a area, where i have some blocks. If my sell now blocks hits target price, I want to close my buy pending order created for that corresponding condition.

can anyone please me with how to achieve that.
-
On trade tab, trade closed by TP block-turn flag off, on tick tab reset the flag when needed, check above buy/sell.
-
Sir @jstap , i could not understand, could you please elaborate it ?. I dont see the trade closed by TP block, and where can I see it. i see only position closed, is it you are mentioning as trade clsoed by TP? . Also where can I see the flag option. ? please help me out
? -
In the position closed block, it has closed by (TP, SL etc)
-
Sir, is it correct ?


I have modified. is this the correct way ?
-
The on trade event data only works on the on trade tab, you need to use flags.