These are the steps I have taken;
1) Manually enter a trade in Ninja with a set ATM stopmarket order. The ATM strategy is named "ABC".
2) Within a TradeStation strategy I check for an open position in Ninja for the current symbol using the command "NumToStr(NTMarketPosition(""), 0))", and also check for the average entry price using the command NumToStr(NTAvgEntryPrice(""), 2)).
I would now like to move the stopmarket order created in the Ninja ATM strategy named ”ABC” to a price I calculate in the strategy, I have checked your online documentation but am having difficulty getting a command that will do this successfully.
i.e.
Symbol ESH08
NTMarketPosition -2
NTAvgEntryPrice 1445.25
Stop (ABC) 1447.00
What is the best way to move the stop from 1447.00 to my calculated price i.e. 1449 using your ATI? I tried the following command (among others) which I can’t get to work;
NTCommand("Place", "", "", “”, "-2", "Stop", "", "1449", "GTC", "", "MyStop", "", "ABC")
Your help is appreciated.
Thanks
Kevin.
Comment