PivotLowVS (Function)
The PivotLowVS function returns the value of the specified instance of a low pivot bar with variable strength sides.
Syntax
PivotLowVS(Instance, Price, LeftStrength, RightStrength, Length)
Returns (Double)
A numeric value containing the price of the low pivot bar, with variable strength sides. A value of -1 is returned if there is no low pivot, within the length specified.
Parameters
Name |
Type |
Description |
Instance |
Numeric |
Sets which occurrence (that is, 1 = most recent, 2 = 2nd most recent, and so on) to return. |
Price |
Numeric |
Specifies which bar value (price, function, or formula) to use. |
LeftStrength |
Numeric |
Sets the required number of bars on left side of the pivot bar. |
RightStrength |
Numeric |
Sets the required number of bars on right side of the pivot bar. |
Length |
Numeric |
Sets the number of bars to be considered. |
Examples
Assigns to Value1 the most recently occurring low pivot, in the last 21 bars, that has a left side strength of 4 and a right side strength of 2:
Value1 = PivotLowVS(1, Low, 4, 2, 21);
Assigns to Value2 the second most recently occurring low pivot, in the last 10 bars, that has a left side strength of 3 and a right side strength of 2:
Value2 = PivotLowVS(2, Low, 3, 2, 10);
Additional Example
If you wanted to place a mark on the Low of the low pivot bar, with a left strength of 4 and a right strength of 2, you could use the following syntax:
If PivotLowVS(1, Low, 4, 2, 3) <> -1 Then
Plot1[2](Low[2], "PivotL");