Login Page - Create Account

Support Board


Date/Time: Sat, 07 Sep 2024 21:31:43 +0000



[User Discussion] - Volume profile Peaks and valleys calculations

View Count: 2141

[2019-05-09 22:46:02]
User145885 - Posts: 15
I would really appreciate if somebody could explain to me how the peaks and valleys are calculated. I would like to understand the math behind its calculation .I know you can get the peaks and valleys values with the function bellow. Also, On the link bellow SC tried to explain the relationship of the peaks and valleys with the sensitivity value but the explanation is not enough and really not helpful .
Thanks in advance.

this is the link Volume By Price Study
Volume By Price Study: Extend Value Area

This the fuction sc.GetStudyPeakValleyLine() which is used for obtaining the details about a Peak or Valley line from a study
here is the link where explain about the function
sc.GetStudyPeakValleyLine()

This is the explanation extracted from Volume By Price Study link in relation to The Peaks and Valleys Sensitivity.

The Peaks and Valleys Sensitivity refers to the number of horizontal volume bars that are searched above and below each Volume bar to determine whether a particular volume bar is a Peak or a Valley.

For example, if this is set to 10 and the Ticks Per Volume Bar Input is set to 1, then 10 ticks above and below each price level there is Volume for is searched.

In the case when the sensitivity is set to 10, if the 10 price levels above and 10 price levels below a particular price level have a lower volume than the volume bar at the price level being compared to, then this will be considered a Peak Volume bar and a horizontal line is drawn outward from the Peak.

In the case when the sensitivity is set to 10, if the 10 price levels above and 10 price levels below a particular price level have a higher volume than the volume bar at the price level being compared to, then this will be considered a Valley Volume bar and a horizontal line is drawn outward from the Valley.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account