Psychological Line

View as Markdown

Description

The Psychological Line is the ratio of the number of rising bars over the specified number of bars.

Syntax

PsychologicalLine(int period)

PsychologicalLine(ISeries\<double\> input, int period)

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

Parameters

ParameterDescription
inputIndicator source data (Series<T>)
periodNumber of bars used in the calculation

Examples

1// Prints the current value of a 10 period Psychological Line
2double value = PsychologicalLine(10)[0];
3Print("The current Psychological Line value is " + value.ToString());