Vortex

View as Markdown

Description

The Vortex indicator is an oscillator used to identify trends. A bullish signal triggers when the VIPlus line crosses above the VIMinus line. A bearish signal triggers when the VIMinus line crosses above the VIPlus line.

Syntax

Vortex(int period)

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

Returns VIPlus value

Vortex(int period).VIPlus[int barsAgo]

Vortex(ISeries\<double\> input, int period).VIPlus[int barsAgo]

Returns VIMinus value

Vortex(int period).VIMinus[int barsAgo]

Vortex(ISeries\<double\> input, int period).VIMinus[int barsAgo]

Return Value

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

Parameters

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

Examples

1// Prints the current VIPlus value of a 14 period Vortex
2double valueP = Vortex(14).VIPlus[0];
3Print("The current Vortex VIPlus value is " + valueP.ToString());
4
5// Prints the current VIMinus value of a 14 period Vortex
6double valueM = Vortex(14).VIMinus[0];
7Print("The current Vortex VIMinusvalue is " + valueM.ToString());