Net Change Display

View as Markdown

Description

Displays net change on the chart.

Syntax

NetChangeDisplay(PerformanceUnit, NetChangePosition location)

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

Return Value

double

Parameters

ParameterDescription
inputIndicator source data (Series<T>)
PerformanceUnitFormat of the calculation of net change
NetChangePositionLocation to display net change on the chart

Examples

1// Runs on realtime since there is no historical data for this indicator
2if (State == State.Historical)
3 return;
4else if (State >= State.Realtime)
5{
6 // Prints the current tick value of the net change
7 var ncd = NetChangeDisplay(PerformanceUnit.Ticks, NetChangePosition.BottomRight);
8 Print("The current Net Change value is " + ncd.NetChange);
9}

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