| PositionState Enumeration |
State of algorithmic position of a strategy.
Namespace:
MZpack.NT8.Algo
Assembly:
MZpack.NT8.Pro (in MZpack.NT8.Pro.dll) Version: 3.18.1.0 (3.18.1.0)
Syntax [FlagsAttribute]
public enum PositionState
Members
| Member name | Value | Description |
---|
| Flat | 0 | |
| EntrySubmitting | 2 |
Entry market or limit order submitted
|
| LongLimitPending | 4 |
There are pending buy limit orders. No orders have been filled.
|
| ShortLimitPending | 8 |
There are pending sell limit orders. No orders have been filled.
|
| Long | 32 |
Buy orders have been filled.
|
| Short | 64 |
Sell orders have been filled.
|
| LimitPending | 12 |
Long or short limit pending. if ((state.HasFlag(PositionState.LimitPending)) { ... }
|
| LongMarketPending | 128 | |
| ShortMarketPending | 256 | |
See Also