Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 08:40:21 +0000



[Programming Help] - VbP: Display Volume in Bars

View Count: 531

[2023-05-13 17:32:46]
Tony - Posts: 522
When the chart scale range is low, say 10 points, I am able to see total volume numbers in each bar on VbP, but when the scale range gets higher (100 pints +), those numbers will be smaller and stack on top of each other.

I attached image shows VbP's total volume numbers display on a 10 pt chart scale range (left), and 150 pt chart scale range (right).

All I need is just a few levels of VbP total volume numbers below and above last close.

Wonder if there is a solution to that? I am able to write a custom study that has independent scale from main graph, not sure if it is possible to set one of VbP studies that is also independent from main graph? If it possible, then I will be able to clearly display total volume numbers on a large scale range chart.

Thanks very much
imageScale.png / V - Attached On 2023-05-13 17:30:21 UTC - Size: 99.55 KB - 118 views
[2023-05-14 01:48:22]
JohnR - User831573 - Posts: 306
This area of the docs should be helpful.
https://www.sierrachart.com/index.php?page=doc/Scaling.html#:~:text=Accessing%20Scale%20Settings%20through%20the%20Values%20Scale,-%5BLink%5D%20%2D%20%5B&text=Right%2Dclick%20on%20the%20Values,open%20the%20Scale%20Settings%20window.

1 - I adjust the font size within the study to be the visual size I am comfortable reading.
2 - I manually adjust the vertical scale to show the range I am looking for. Watching to not go too small that causes overlap.
3 - then I set the scales parameters to constant, give it a value and also how far for the center / edge I am willing to let price move up/down the range.

Hope this helps.
JohnR
attachmentSierra_Chart_ShowHideStudiesACS.cpp - Attached On 2023-05-14 01:48:00 UTC - Size: 6.58 KB - 222 views
[2023-05-14 02:43:39]
Tony - Posts: 522
Thanks so much for your reply John! My bad, I overlooked the "Scale" button in VbP's Study Settings window, now I am able to have VbP's Scale Range settings different than the Main Graph (in Chart Settings).

Wonder if it is possible that I could change those settings/values with ACSIL? Similar to variables like: sc.BaseGraphScaleRangeType and sc.ScaleRangeType etc. (I think sc.ScaleRangeType only controls Scale Range of the study that where the variable is, not another study)

Thanks!
Date Time Of Last Edit: 2023-05-14 02:45:09
[2023-05-15 01:25:28]
JohnR - User831573 - Posts: 306
If you go to this page and search the page for scale, you will find system variables to handle most of your desires for adjusting / setting the scale 'things'

ACSIL Interface Members - Variables and Arrays

Hope this helps.
JohnR
[2023-05-15 16:37:33]
Tony - Posts: 522
Hi John,

Sorry for bugging you again, I read all the variables related to Scales, it seems that there are 2 groups, one for controlling Main Graph, one for controlling a custom study itself. I tested both, they all work very well.

In my situation when I hope to control VbP scale with my custom study, it seems that new functions are needed. Not sure if I understand the issue correctly.

Thanks John!
[2023-05-15 17:51:21]
JohnR - User831573 - Posts: 306
Hey Tony, I am only self taught in both C++ & Sierrachart coding for my own stuff. Sooo, there are others here that are much more adept at C++ and SC capabilities, as they do it way more than I. They most likely will have better answers than me and often will offer some insight. Usually, I find with either after 3 or 4 tries at searching or someone else providing a link to existing functions, SC already has the ability to do dang near everything.


But, why don't you put something here stating why you think you need new functions, what inputs you need or will use, and what exactly it is that you expect / hope for these functions to accomplish.

Also, state why the existing functions don't accomplish what you were hoping for. Do they need an additional option?

JohnR
[2023-05-15 23:25:59]
Tony - Posts: 522
Hi John,

I found a solution by adding a narrow chart window on the right, just wide enough to display volumes in VbP bars, since it's a separate chart window, I can set whatever scale range I want, not an ideal solution, but at least I have all the numbers I need for the time being.

Thanks again
Date Time Of Last Edit: 2023-05-15 23:26:52

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

Login

Login Page - Create Account