This would be outside of NinjaTrader and would not be a NinjaScript. This would possibly be easy language, or a custom C# script.
You may want to confer with TradeStation and inquire how to incorporate a c# dll and call commands from the dll.
EasyLanguage scripts will not run in NinjaTrader. NinjaScripts will not run in TradeStation.
Comment