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

// 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);
}

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