GetAtmStrategyMarketPosition()
<< Click to Display Table of Contents >> GetAtmStrategyMarketPosition() |
Gets the current market position of the specified ATM Strategy.
Notes:
1. Changes to positions will not be reflected till at least the next OnBarUpdate() event after an order fill. 2. If the ATM Strategy does not exist then MarketPosition.Flat returns 3. Please note this provides access to the current ATM strategy position, which should not be confused with the NinjaScript strategy position or account position. For more information please see the Using ATM Strategies section. |
MarketPosition.Flat
MarketPosition.Long
MarketPosition.Short
GetAtmStrategyMarketPosition(string atmStrategyId)
atmStrategyId |
The unique identifier for the ATM strategy |
protected override void OnBarUpdate() |