Skip to main content

Enums Reference

All public enumerations in the MZpack API, grouped by topic.

Profile Creation

ProfileCreation

Namespace: MZpack

How a volume profile is created.

ValueDescription
BarSingle bar profile
BarsFixed number of bars
VolumeFixed volume threshold
DeltaFixed delta threshold
TickFixed tick count
SessionSingle trading session
SessionsFixed number of sessions
DailySingle day
DaysFixed number of days
WeeklySingle week
WeeksFixed number of weeks
MonthlySingle month
MonthsFixed number of months
QuarterlySingle quarter
YearlySingle year
RTH_ETHRegular / Extended trading hours split
CompositeComposite profile (merged from multiple)
ContinuousContinuous rolling profile
CustomCustom-defined creation
NoneNo creation type

ProfileType

Namespace: MZpack

ValueDescription
TPOTime Price Opportunity (Market Profile)
VPVolume Profile
VP_TPOCombined Volume Profile and TPO
NoneNo type

ProfileMode

Namespace: MZpack

Volume display mode for profile bars.

ValueDescription
VolumeTotal volume
BuySellSeparate buy/sell volume
DeltaDelta (buy − sell)
VolumeDeltaVolume with delta overlay
NoneNo mode

ProfileAccuracy

Namespace: MZpack

Data accuracy for volume profile calculations.

ValueDescription
TickTick-level accuracy (requires Tick Replay)
MinuteMinute-level accuracy

ProfilePresentation

Namespace: MZpack

Visual presentation style for profiles.

ValueDescription
LaddersHorizontal ladder bars
AreaFilled area
ContourContour outline

LevelMode

Namespace: MZpack

Display mode for profile levels (POC, VAH, VAL).

ValueDescription
OffLevels hidden
OnLevels visible
NakedOnly naked (untouched) levels
ExtendedLevels extended to the right edge
DevelopingDeveloping levels shown over time
DevelopingNakedDeveloping naked levels

ProfileLevelType

Namespace: MZpack

ValueDescription
POCPoint of Control
VAHValue Area High
VALValue Area Low
TickPOCTick-based Point of Control

ValuesMode

Namespace: MZpack

What values to display on profile bars.

ValueDescription
VolumeTotal volume
DeltaDelta value
BidAskBid and ask volumes
NoneNo values

TotalDeltaMode

Namespace: MZpack

How total delta is displayed on a profile.

ValueDescription
DeltaTotal delta value
BidAskSeparate bid/ask totals
NoneNo total delta

VWAPMode

Namespace: MZpack

VWAP display mode.

ValueDescription
LastVWAP for the last profile only
DynamicDynamic VWAP line
DynamicStdDev1Dynamic VWAP with ±1 standard deviation
DynamicStdDev2Dynamic VWAP with ±2 standard deviations
NoneVWAP hidden

Order Flow

OrderflowCalculationMode

Namespace: MZpack

How order flow (bid/ask) volumes are assigned to trades.

ValueDescription
BidAskBid/Ask calculation. Use for futures and stock markets. Requires Tick Replay for historical data
UpDownTickUp/Down tick calculation. Use for Forex and crypto
HybridUpDownTick for historical data, BidAsk for live data. Use for NSE and similar markets

OrderflowApplyMode

Namespace: MZpack

When order flow calculation mode changes take effect.

ValueDescription
ChartReloadApplied on chart reload
OnTheFlyApplied immediately

TradeSide

Namespace: MZpack

ValueDescription
AskAsk side (buy trade)
BidBid side (sell trade)
NANot applicable

SpreadTradesProcessing

Namespace: MZpack

How trades at the spread (between bid and ask) are handled.

ValueDescription
SplitSplit volume equally between bid and ask
LastKnownSideAssign to the last known trade side
IgnoreIgnore spread trades

ColorMode

Namespace: MZpack

Coloring mode for footprint cells and profile bars.

ValueDescription
SolidSingle solid color
SaturationColor saturation varies with volume
HeatmapHeat map coloring
GrayScaleHeatmapGrayscale heat map
CustomCustom coloring logic

Signals & Strategy

SignalDirection

Namespace: MZpack.NT8.Algo

ValueDescription
NoneSignal has not been found
LongLong direction
ShortShort direction
AnyBoth directions — resulting direction determined by other signals/filters

SignalCalculate

Namespace: MZpack.NT8.Algo

ValueDescription
OnEachTickCalculate signal on each tick
OnBarCloseCalculate signal on bar close
NotApplicableNot applicable (e.g., Level 2 signals)

Logic

Namespace: MZpack.NT8.Algo

Logical operator for combining nodes in a decision tree.

ValueDescription
AndAll child nodes must be satisfied
OrAt least one child node must be satisfied
ConjunctionLogical conjunction

MarketDataSource

Namespace: MZpack.NT8.Algo

ValueDescription
NoneNo data source
Level1Level 1 event (trade/tick data)
Level2Market depth event
CustomCustom event

PatternType

Namespace: MZpack.NT8.Algo

ValueDescription
EntryEntry pattern — opens a new position
ExitExit pattern — closes current position
ReversalReversal pattern — closes and opens opposite
ScaleInScale-in pattern — adds to current position
ScaleOutScale-out pattern — partially closes position

PositionState

Namespace: MZpack.NT8.Algo | [Flags]

ValueBitDescription
Flat1No position
EntrySubmitting4Entry order submitted
LongLimitPending8Pending buy limit orders, none filled
ShortLimitPending16Pending sell limit orders, none filled
Long32Buy orders filled
Short64Sell orders filled
LongMarketPending128Pending buy market order
ShortMarketPending256Pending sell market order
LimitPendingLongLimitPending | ShortLimitPending
FilledLong | Short
LongsLongLimitPending | LongMarketPending | Long
ShortsShortLimitPending | ShortMarketPending | Short
NoDirectionFlat | EntrySubmitting

StrategyOperating

Namespace: MZpack.NT8.Algo

ValueDescription
AutoEntries are made automatically
ManualEntries must be made manually from Chart Trader

PositionManagement

Namespace: MZpack.NT8.Algo

ValueDescription
MZpackPosition managed by MZpack API
NinjaTraderATMPosition managed by NinjaTrader ATM template

OppositePatternAction

Namespace: MZpack.NT8.Algo

What happens when a pattern in the opposite direction is validated while a position is open.

ValueDescription
NoneKeep current position, do nothing
CloseClose current position
ReverseClose and open opposite position using the configured EntryMethod
UnmanagedPosition managed by signals — signals continue calculating after entry, enabling scale-in

OrdersHandlingApproach

Namespace: MZpack.NT8.Algo

ValueDescription
ManagedNinjaTrader managed order handling
UnmanagedNinjaTrader unmanaged order handling

LogLevel

Namespace: MZpack.NT8.Algo | [Flags]

ValueBitDescription
NONE0No logging
NV_PATTERN_OBC1Log not-validated patterns on bar close (for debugging)
V_PATTERN8Log validated patterns
ORDER16Log orders (Submitted, Working, Filled, PartFilled, Cancelled, Rejected)
ENTRY32Log strategy entries
POSITION64Log position state changes
PROPERTIES128Log NinjaScriptProperty values
ALLAll flags combined

LogTarget

Namespace: MZpack.NT8.Algo | [Flags]

ValueBitDescription
None0No logging
File1Log to \NinjaTrader 8\mzpacklog folder
NinjaScriptOutput2Log to NinjaScript Output window
AllFile | NinjaScriptOutput

Entry / Exit

EntryMethod

Namespace: MZpack.NT8.Algo

ValueDescription
MarketEnter by market order
LimitEnter by limit order
StopLimitEnter by stop-limit order

CancelLimitOrderType

Namespace: MZpack.NT8.Algo

When to cancel a pending limit order.

ValueDescription
NoneNever auto-cancel
TicksCancel after price moves N ticks away
BarsCancel after N bars
MillisecondsCancel after N milliseconds

Export

ExportTemporality

Namespace: MZpack.NT8.Algo.DataExport | [Flags]

ValueDescription
HistoricalExport historical bar data
RealtimeExport data in real time

ExportDataSource

Namespace: MZpack.NT8.Algo.DataExport

ValueDescription
Level1Level 1 (trade/tick) data
Level2Level 2 (market depth) data
CustomCustom data source

ExportGranularity

Namespace: MZpack.NT8.Algo.DataExport

ValueDescription
TickOne row per tick
BarOne row per bar
UpdateOne row per update event

ExportMode

Namespace: MZpack.NT8.Algo.DataExport

ValueDescription
SaveWrite data to output
LoadRead data from file

IndValue

Namespace: MZpack.NT8.Algo.DataExport

See ValueDescriptor — IndValue for the complete list of 100+ indicator value identifiers.

ValueKind

Namespace: MZpack.NT8.Algo.DataExport

ValueDescription
FeatureInput/feature column (exported before labels)
LabelTarget/label column (exported after features)
InternalInternal column (not exported, used for intermediate calculations)

ValueSorce

Namespace: MZpack.NT8.Algo.DataExport

note

The enum name contains a typo (ValueSorce instead of ValueSource) in the source code.

ValueDescription
IndicatorValue from an indicator
DrawingObjectValue mapped from a chart drawing object
CalculateValue computed by a user-provided delegate
DataSetValue referenced from another DataSet column