Support Board
Date/Time: Wed, 12 Mar 2025 21:12:30 +0000
[User Discussion] - AutoHide number bars study on specific zoom level suggestion
View Count: 634
[2021-08-08 18:57:47] |
BenjFlame - Posts: 335 |
Hi, It's quite a struggle right now as having to chose between number bars and more traditional candle or bars views. Sometime there is need to have global overview of chart, and for this I find simple candles are better. On other occasion there is a need for detailed view of what is going on, and in this case number bars with profiles and all is more appropriate. I really miss this feature form another software: upon a certain zoom level (user defined as for example bar pixel width) we would see number bars. When zooming out back past the threshold: back to simple candle. This would allow very rapid and natural switch between the 2 kind of views without needing a separate chart. Date Time Of Last Edit: 2021-08-08 18:58:37
|
[2022-05-29 19:59:39] |
User690917 - Posts: 4 |
Would love it too. And im sure, a lot of other youser either
|
[2022-05-29 22:18:08] |
Tony - Posts: 553 |
It might be achieved with ACSIL: Below is the custom study could meet your need. What I was trying to do is when the space between 2 candle bars is greater than 8 pixels (zoom in), show Number Bars, otherwise, hide Number Bars. #include "sierrachart.h" SCDLLName("Sierra Chart Support Board Contribution") SCSFExport scsf_HideShowNumberBars(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "Hide Show Number Bars"; sc.GraphRegion = 0; sc.AutoLoop = 1; sc.UpdateAlways = 1; return; } if (sc.ChartBarSpacing > 8) // adjust number of bar spacing and study ID if needed sc.SetStudyVisibilityState(2, 1); // assume Study ID for Number Bars is 2, 1:Visible else sc.SetStudyVisibilityState(2, 0); // assume Study ID for Number Bars is 2, 0:Invisible } I don't have Number Bars, tested to hide/show one of my studies, works. Date Time Of Last Edit: 2022-05-30 06:08:43
|
To post a message in this thread, you need to log in with your Sierra Chart account: