When mass cancelling orders or closing positions only close the ones in search
Created at 03 Jul 2014, 07:02
BA
When mass cancelling orders or closing positions only close the ones in search
03 Jul 2014, 07:02
When i use the search tool in open orders or pending orders for a specific bot i'm testing, i would like to be able to close all positions for the search results as currently if i search and get the right results for that specific bot and then close all, it actually closes all positions... not just the ones in the search results
cTrader Automate
@barrenwuffett
GammaQuant
28 Jul 2017, 10:13 ( Updated at: 28 Jul 2017, 10:14 )
Ive not tested your problem but cant you just close each one with close position Asyc in a loop if it meets your requirements to close? And setup an onPossitonClosed callback to make sure they closed?
@GammaQuant