Vortex Indicator (VI)
Created by Etienne Botes and Douglas Siepman, the Vortex Indicator is a measure of price directional movement. It includes positive and negative indicators, and is often used to identify trends and reversals. [Discuss] 💬
// C# usage syntax
IEnumerable<VortexResult> results =
quotes.GetVortex(lookbackPeriods);
Parameters
lookbackPeriods
int
- Number of periods (N
) to consider. Must be greater than 1 and is usually between 14 and 30.
Historical quotes requirements
You must have at least N+1
periods of quotes
to cover the warmup periods.
quotes
is a collection of generic TQuote
historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.
Response
IEnumerable<VortexResult>
- This method returns a time series of all available indicator values for the
quotes
provided. - It always returns the same number of elements as there are in the historical quotes.
- It does not return a single incremental indicator value.
- The first
N
periods will havenull
values for VI since there’s not enough data to calculate.
VortexResult
Date
DateTime
- Date from evaluated TQuote
Pvi
double
- Positive Vortex Indicator (VI+)
Nvi
double
- Negative Vortex Indicator (VI-)
Utilities
See Utilities and helpers for more information.
Chaining
This indicator is not chain-enabled and must be generated from quotes
. It cannot be used for further processing by other chain-enabled indicators.