I am currently working on a script placing multiple orders on the chart. When I place on order, an ATM-Strategy is attached with a stop and a take profit.
When placing more than one order, I would like to "merge" these multiple order to one handler on the chart, like when clicking multiple times on "buy" on Charttrader, for example.
I got a hotkey programmed, moving the stop to a defined position. After that I want to be able to drag the stop(s) manually. I currently modify the orders by the Account.Change() function.
I was looking for a field in the order object to achieve what I want, but I don't know whether this is the correct approach
EDIT:
I create the orders with Account.CreateOrder() and then submit them via Account.Submit()
EDIT2:
I also attach an AtmStrategy with NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrate gy(), but it does not matter wheter I attach the same or a different strategy here. The orders are not displayed as "stacked" in the chart. But when "adding" another order with the Charttrader, the new order gets stacked to the last order placed by the script, NOT based on the AtmStrategy but to the prie level of the last placed orders.
Comment