I work with my script-strats, my atm-strats, both together as well and everything works fine with NinjaTrader - thanks to your support
Today I wanted to add "atmstrategyclose" but in the helpguide I only find as condition "...profitloss" and "idValue". Isn´t it possible to use atmstrategyclose with certain conditions in the strategy instead of only GetAtmStrategyUnrealizedProfitLoss("idValue") > xxx)? And what would be the idValue in this case? When I do AtmStrategyClose("mS1"); //mS1 is the stratId in the variables section for creating the getatm it doesn´t close.
Or to flatten somehow all positons of an instrument from getatm? (Because with NinjaTrader.Gui.SuperDom.SuperDom.FlattenEverythin g(); there are closed all positions from all instruments - which I dont want)
Thanks
Tony
Comment