PerformanceUnit

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Performance Metrics >

PerformanceUnit

Previous page Return to chapter overview Next page

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

ns

//Prints unrealized PnL in ticks at the close of each bar

Print(Position.GetUnrealizedProfitLoss(PerformanceUnit.Ticks, Close[0]));