this returns an instance of AtmStrategy:
AtmStrategy strat = NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrate gy(aTM_Template, entryOrder);
So far so good.
Now let's say I want to change the stoploss orders of this AtmStrategy, for example to move to breakeven.
If the method used for that was strat.AtmStrategyChangeStopTarget(...), how do I get the correct strategyId to use in this call? Neither strat.Id nor strat.AtmSelector work.
If there is no way to access the needed strategyId, then is there another recommend method?
I'd prefer not to dig into the Account and manipulate real orders because I want to avoid interfering with other possible simultaneous trades from other strategies on the same Instrument.
Thanks,
saltminer
(p.s. this code is running in an indicator)
Comment