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

double value = NetChangeDisplay(PerformanceUnit.Ticks, NetChangePosition.BottomRight).NetChangeDisplay;

Print("The current Net Change value is " + value.ToString());

}