StartAtmStrategy()
<< Click to Display Table of Contents >> StartAtmStrategy() |
StartAtmStrategy can be used to submit entry orders with ATM strategies.
NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrategy(AtmStrategy atmStrategyTemplate, Order entryOrder)
NinjaTrader.NinjaScript.AtmStrategy.StartAtmStrategy(string atmStrategyTemplateName, Order entryOrder)
atmStrategyTemplate |
An AtmStrategy representing the ATM strategy you wish to use |
atmStrategyTemplateName |
A string representing the name of the ATM strategy you wish to use |
entryOrder |
An Order representing the entry order |
Critical: The "name" argument on the CreateOrder() method MUST be named "Entry" for the ATM Strategy to be started successfully. |
/* Example of starting an ATM strategy from an Add On window. The concept can be carried over |