Net Change Display

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > System Indicator Methods >

Net Change Display

Previous page Return to chapter overview Next page

Description

Displays net change on the chart.

 

Syntax

NetChangeDisplay(PerformanceUnit, NetChangePosition location)

NetChangeDisplay(ISeries<double> input, PerformanceUnit, NetChangePosition location)

 

Return Value

double

 

Parameters

input

Indicator source data (?)

PerformanceUnit

Format of the calculation of net change

NetChangePosition

Location to display net change on the chart

 

 

Examples

ns

// Runs on realtime since there is no historical data for this indicator

if (State == State.Historical)

return;

else if (State >= State.Realtime)

{

// Prints the current tick value of the net change

var ncd = NetChangeDisplay(PerformanceUnit.Ticks, NetChangePosition.BottomRight);
Print("The current Net Change value is " + ncd.NetChange);

}

 

 

Note: This indicator only plots real-time. Historical values will print as 0.