The VIminus function in ProBuilder language is used to calculate the Vortex Indicator’s minus line (VI-), which is a component of the Vortex Indicator (VI). This indicator helps in identifying the start and direction of trends by comparing the upward and downward movements within a given period.
Syntax:
VIminus[period]
Where period specifies the number of bars used for the calculation of the Vortex Indicator.
Calculation:
- The Vortex Indicator consists of two lines: VI+ and VI-.
- VI+ measures the distance between a previous low and a subsequent high, indicating positive trend movements.
- VI- measures the distance between a previous high and a subsequent low, indicating negative trend movements.
Interpretation:
- A positive trend is suggested when VI+ is above VI-.
- A negative trend is indicated when VI- is above VI+.
- A bullish signal is generated when VI+ crosses over VI-.
- A bearish signal is indicated when VI+ crosses under VI-.
Example:
// Calculate the VIminus for a 14-period
myVIminus = VIminus[14]
This example demonstrates how to calculate the VIminus line using a 14-period setting in the Vortex Indicator. The result, myVIminus, can be used to analyze the market’s negative trend movements.
Additional Information:
The Vortex Indicator, including both VI+ and VI-, is particularly useful in markets where there are clear trends. It is less effective in sideways or consolidating markets. Understanding the behavior of both VI+ and VI- can provide deeper insights into market dynamics and potential reversals.