Delete pending only on market <1 position
-
https://fxdreema.com/shared/oA1Rktuld
hello, the shared example cancels pending orders only when the total of positions is less than the specified number (<1) on the total of the specified markets! Is there a method of counting on every single specified market instead of the total?Thank you
-
example:
EURUSD = 1 BUY (position) + 1 SELL STOP (pending)
GBPUSD = 1 BUY (position)+ 1 SELL STOP (pending)Close Buy position EURUSD on TP or SL = automatic cancel SELL STOP (pending) only EURUSD
-
@duepips Technically you are doing it roght now as I see a Constant called 'market'. You can type there what markets are supposed to be considered. Are you sure you created a 'string' type constant? Because it should work.
-
@l-andorrà said in Delete pending only on market <1 position:
Technically you are doing it roght now as I see a Constant called 'market'. You can type there what markets are supposed to be considered. Are you sure you created a 'string' type constant? Because it should work.
yes, but I need a count for each specific market! -
@duepips Then you should create as many variables as markets involved and create count them separatedly every time. However, are these markets selected as a Constant only?
-
I work on 50/60 market, I thought there was a way to count separately and individually for each one!
@l-andorrà said in Delete pending only on market <1 position:@duepips Then you should create as many variables as markets involved and create count them separatedly every time. However, are these markets selected as a Constant only?
-
@duepips And you definitely can, but you will definitely need a counter variable doing that. One for each market.