Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 06:58:33 +0000



VolumeByPrice Source Code

View Count: 1492

[2019-02-20 09:50:13]
Jezz - Posts: 33
Hi
Is the code of the study VolumeByPrice available?

Thanks in advance
[2019-02-21 05:36:57]
Sierra Chart Engineering - Posts: 104368
No, refer to:
How to Build an Advanced Custom Study from Source Code: Source Code for Some Built in Studies Not Available
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
[2019-03-20 09:03:47]
Jezz - Posts: 33
There is a feature in Volume by Price that I'd like to incorporate in one of my studies:
When you set VbP to Visible bars, the profile is calculated despite the presence of realtime data. I mean the scroll action is detected independently from the next tick value. Whenever you change the scroll, the study is properly recalculated, even in disconnected mode.

In my study, I can achieve such recalculation (by monitoring sc.IndexOfFirstVisibleBar) but only when the next tick data is recieved, so it doesn't work in disconnected mode.
I've also tried sc.UpdateAlways = 1 without success.

How is it achieved in VbP?
Is there any way to detect horizontal scrolling in disconnected mode?
Any clue?

Thanks
[2019-03-20 09:22:09]
Sierra Chart Engineering - Posts: 104368
In the case of ACSIL the only method to do this would be sc.UpdateAlways = 1. The study function will be continuously called at the chart update interval in that case and that is the only way to detect scrolling continuously.
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
[2019-03-24 10:06:10]
Jezz - Posts: 33
Thanks for your support

Other related question: Keyboard control of Volume by Price Study

One of the reasons for requesting the source code is to add some control via keyboard.
I guess it could be done from another study if there would be a pointer to the sc structure that can be accessed. Then some input parameters could be modified according to the desired keystrokes.

Is there such a pointer available in the study?
something like this :
sc.SetPersistentPointer(1, &sc);

If not, could it be included in next releases, please ?

Any other clue to achieve keyboard/ACSIL control of VolByPrice parameters?

Thanks in advance
[2019-03-25 19:02:36]
Sierra Chart Engineering - Posts: 104368
In regards to keyboard control, refer to:
Advanced Custom Study Interaction With Menus, Control Bar Buttons, Pointer Events

And you can also programmatically change study Inputs. Refer to:
ACSIL Interface Members - Functions: sc.SetChartStudyInputFloat()
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
Date Time Of Last Edit: 2019-03-25 19:02:57

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

Login

Login Page - Create Account