Skip to navigation

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

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