PerformanceUnit

View as Markdown

Definition

Enumeration defining each type of PerformanceUnit calculated by NinjaTrader. Used to store a value for this performance type in PerformanceMetrics.

Syntax

PerformanceUnit.Currency

PerformanceUnit.Percent

PerformanceUnit.Pips

PerformanceUnit.Points

PerformanceUnit.Ticks

Examples

1//Prints unrealized PnL in ticks at the close of each bar
2Print(Position.GetUnrealizedProfitLoss(PerformanceUnit.Ticks, Close[0]));