Position Class |
Namespace: MZpack.NT8.Algo
[SerializableAttribute] public class Position : ViewModelBase
The Position type exposes the following members.
Name | Description | |
---|---|---|
Position | Initializes a new instance of the Position class | |
Position(Strategy, Entry, Int32) | Initializes a new instance of the Position class |
Name | Description | |
---|---|---|
AttemptsLeft |
Number of attempts to enter position after canceling/rejecting orders.
| |
Entries |
Entries of the position.
| |
State |
Logical state of the position.
| |
Strategy |
MZpack Algo strategy.
|
Name | Description | |
---|---|---|
CancelClose | ||
CancelPendingOrders | ||
Close | ||
Enter | ||
HasPendingLimitOrders |
True if the position has pending limit orders.
| |
HasTrailedEntries |
True if the position has currently trailed entries.
| |
IsEntryOrder | ||
OnExecution | ||
OnMarketDepth | ||
OnOrderUpdate | ||
OnPositionUpdate | ||
ResetAttempts | ||
SetStopLossProfitTarget | ||
StateToSignalDirection |
Converts position state to direction of signal. E.g. PositionState.Long => SignalDirection.Long.
|
Name | Description | |
---|---|---|
OUT_OF_TRADING_TIMES | ||
RISK_MANAGEMENT |