1) I have to call in foreach loop AtmStrategyCancelEntryOrder to close StopMarket orders. ---> I am doing it.
2) I have to then call AtmStrategyClose ---> I am doing it.
but problem is that atm strategy Id is changing and for example if I have long position and 2 Stop Market order(Buy/Sell) and if sell Stop order got executed then everything will work fine as latest atmstrategy id will be sell stopmarket strategyid but if buy stop market will be executed then latest atmstrategy Id will be different and my newly executed orders Stop1 and Target1 will be deleted. I am asking you to help me with that and if for that you require from me some money then OKAY I will pay......(really didn't expected that)
Waiting for your reply. Thanks

Comment