Login Page - Create Account

Support Board


Date/Time: Wed, 08 Jan 2025 17:28:50 +0000



Calculation of the bin number of volume by price

View Count: 652

[2016-07-20 19:38:40]
User381102 - Posts: 7
Hello,

may I ask how the number of bins of volume by price is calculated (formula)?
Is it like: bins = ceil( (high of period - low of period) / ticks per bar ) + 1

Thank you!
[2016-07-20 22:10:19]
Sierra Chart Engineering - Posts: 104368
We do not understand the question.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-07-20 22:20:22]
Sierra Chart Engineering - Posts: 104368
OK we understand. We just were confused by the term bins. If you are talking about the number of horizontal volume bars, that generally is correct but not so certain about the ceiling function.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-07-20 23:18:59]
User381102 - Posts: 7
Thanks. Yes, I was referring to calculating number of horizontal volume bars.
By ceiling I'm referring to rounding to lowest integer that is greater than a number e.g. ceil( 7.3 ) would result to 8.

So in your case it is just
bins = (high of period - low of period) / ticks per bar + 1
without rounding?
[2016-07-21 05:22:15]
Sierra Chart Engineering - Posts: 104368
We cannot answer this question because this is not how Sierra Chart is doing the calculation. Generally that does seem to make sense, but this is the relevant documentation:

https://www.sierrachart.com/index.php?page=doc/doc_VolumeByPrice.php#TicksperVolumeBar
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account