Strange "PivotLowVS" Function  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
LRP
Posts: 153
Joined: 07 Apr 2008
Location: Switzerland
Has thanked: 96 times
Been thanked: 15 times

Strange "PivotLowVS" Function

Postby LRP » 17 Jul 2019

Hi All,

If I use this function:
PivotLowVS(Instance, Price, LeftStrength, RightStrength, Length)

for the Instance = 1
I got a value by the print statement of the most recently occurring Pivot low (eg 7956,25), this seems to work OK, but

for Instance = 2
I got by the print statement just a -1, but I expect the value of the second most recently occurring Pivot low!

What is going wrong, do this function do not support an Instance greater than 1?

Thanks for advice

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Strange "PivotLowVS" Function  [SOLVED]

Postby Svetlana MultiCharts » 19 Jul 2019

Hello, LRP,

Please select the correct Length parameter for calculation of the function. If it doesn’t find the second value, it means there is no such value on the specified length.

User avatar
LRP
Posts: 153
Joined: 07 Apr 2008
Location: Switzerland
Has thanked: 96 times
Been thanked: 15 times

Re: Strange "PivotLowVS" Function

Postby LRP » 19 Jul 2019

Thanks a lot for your hint. After increasing the length parameter, values of n-Instances occurs as it should.


Return to “MultiCharts”