AtmStrategyCreate()
AtmStrategyCreate()
Definition
Submits an entry order that will execute a specified ATM Strategy.
Please review the section on using ATM Strategies. This method is NOT backtestable and will NOT execute on historical data. See the AtmStrategyCancelEntryOrder() to cancel an entry order. See the AtmStrategyChangeEntryOrder() to change the price of the entry order. The ATM Strategy will be created asyncronous on the hosting NinjaScripts UI Thread, a callback is provided solely to check when the ATM Strategy is started on that thread - accessing for example price data in that outside OnBarUpdate() context is not possible. Please see the SampleATMStrategy build into NinjaTrader for example usage.
Method Return Value
This method does not return a value
Syntax
AtmStrategyCreate(OrderAction action, OrderType orderType, double limitPrice, double stopPrice, TimeInForce timeInForce, string orderId, string strategyTemplateName, string atmStrategyId, Action\<ErrorCode, string\> callback)

