Support Board
Date/Time: Wed, 31 Dec 2025 21:08:31 +0000
Open/Close boxes in the middle of the candles
View Count: 506
| [2025-11-12 21:35:34] |
| User266678 - Posts: 23 |
|
Hello, I would like to configure my Numbers bars with split bid/ask display to show the open/close boxes in the middle of bid/ask bars; this is how it shows now: https://www.sierrachart.com/image.php?Image=1762983150676.png The attached two screenshots of other tools shows the desired position of the open/close indicator. Date Time Of Last Edit: 2025-11-12 21:37:42
|
| |
| [2025-11-12 21:58:09] |
| John - SC Support - Posts: 43664 |
|
To get a bar displayed in the middle of the Numbers Bars, you need to use the "Study/Price Overlay" and overlay the <Main Price Graph> from the same chart back onto itself. Refer to the following: Study/Price Overlay Study If you are using a Candlestick, then you will want to set the width of the candlestick to be very thin to fit into the Numbers Bars. Refer to the following for this: Graphics Settings: Candlestick Width % (Global Settings >> Graphics Settings >> Other) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-12 23:00:37] |
| User266678 - Posts: 23 |
|
Thank you John, your piece of advice was spot on and promptly given. You can see the result below: https://www.sierrachart.com/image.php?Image=1762987921267.png As a result from applying the overlay, the candles are using the colors defined in the global settings; is there any chance to use custom colors for body and outline of these? Also, it is very small but perceptible: the overlay candles are not exactly centered with the underlying Number bars: they are a bit to the right. In fact, by the looks of it is the number bars that are placed left of the center, of the amount of space that separates the bid and ask bars. Is there any setting to enfore an arbitrary left/right X offset to either the overlay study or the numbers bars? Lastly, and apologies if this may seem out of scope, but I set the Column 1 Bid X Ask text to scale from 0 to 9, except that when it's too little I'd rather have it disappear as it only becomes a nuisance, like in the screenshot below: https://www.sierrachart.com/image.php?Image=1762988416889.png Is there any way to have the Bid X Ask text only appear after a certain level of zooming? Thank you again! |
| [2025-11-13 15:04:46] |
| John - SC Support - Posts: 43664 |
|
You can change the colors of the Bars in the Subgraphs for the Study/Price Overlay. You will need to change the Input for "Use Colors from Source Study" to "No" first, and then select Apply, and then you can change the colors defined for the Open/High/Low/Close in the Subgraphs. Refer to the following: Study/Price Overlay Study: Use Colors from Source Study Chart Studies: Subgraphs Tab >> Color -- The overlay is exactly in the center of the "bar" that is the Numbers Bars. Thre are multiple options for what is displayed in between the Bid and Ask numbers. One of the other options may give you what you want. Refer to the following: Numbers Bars: Numbers Separator Character -- There is not an option to have the numbers not display after a certain zoom level. You would have to manually turn off the display of the numbers. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-17 20:16:00] |
| User266678 - Posts: 23 |
|
Thanks John! -- I have attached two screenshots so that you may see that the overlay candlestick is not actually in the very center of the bar, it's slightly to the right. Again, my suspicion is that it's the numbers bars that are slightly less of center: you can verify that by using a crosshair. -- The "Use colors from Source Study" works. However, it only allows me to change the body color of the candlesticks, not the outline. For the outline. When overlaying a candlestick body over numbers bars (like in the attached screenshot) the subgraph pargraphs only allow to change Open (SG1) and Last (SG4), but no outlines. Also some parameters are immediately reverted when saving, eg, when changing draw style from "visible" to "ignore". I tried reading the docs about this, to no avail. --- Is there a way to configure a custom button / keyboard shortcut to quickly turn on and off the text? Alternatively, I could save the Text/NonText versions into two different study collections. Is there a way to configure a custom button or keyboard shortcut to set a specific saved study collection? |
| [2025-11-17 21:45:08] |
| Sierra_Chart Engineering - Posts: 22117 |
|
We do not see any screenshots. Here are instructions for that: Support Board Posting Information: Attaching or Posting a Screenshot/Image (Optional) Regarding this: I have attached two screenshots so that you may see that the overlay candlestick is not actually in the very center of the bar
Do not use a Overlay study for the candlesticks, instead use this Input setting with Numbers Bars:Numbers Bars: Open and Close Marker Style For the second question, refer to: Color Settings for Graph Draw Types Is there a way to configure a custom button / keyboard shortcut to quickly turn on and off the text? Alternatively, I could save the Text/NonText versions into two different study collections. Is there a way to configure a custom button or keyboard shortcut to set a specific saved study collection?
Yes:Control Bar: Control Bar Study Collection Buttons and Keyboard Shortcuts 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-11-17 21:46:41
|
| [2025-11-17 22:38:48] |
| User266678 - Posts: 23 |
|
Thanks for the quick reply; I am sorry for forgetting to attach the screenshots. I have provided them now. You may see the X offset of the numbers bar from the center creating the effect that the overlay candlestick appears to the right of the numbers bar. The reason for which I am using an overlay is that when I use the Open and Close marker style from the numbers bar as you suggested, I can't achieve a similar visual effect. The closest is the "boxes" option, which however is confusing as it appears on the side of the numbers bars and not inside them. Hence, John has advised the overlay study. It does work, and the X displacement is not major, but I would appreciate to hear if you had any idea on how to remove it altogether and still obtain a visual picture similar or identical to the desired one in the attached screenshots. |
| [2025-11-18 07:18:01] |
| Sierra_Chart Engineering - Posts: 22117 |
|
This is just how it is.
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, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-18 18:53:19] |
| John - SC Support - Posts: 43664 |
|
With regards to the offset, make sure you are using a "Numbers Separator Character" option that is an odd number of characters, so probably "3 spaces". This way everything should be aligned. As to not being able to change some of the items in the Study/Price Overlay, you may first need to change the Input on the Study/Price Overlay to allow you to change the items you want. Refer to the following and the 3 items below it: Study/Price Overlay Study: Use Subgraph Name/Value Related Display Settings from Source Study For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-18 20:21:26] |
| User266678 - Posts: 23 |
|
I tried using an odd number of spaces for the "Numbers Separator Character", to no avail though. However, I did understand what is causing the displacement: the "Spacing Adjustment Value". The higher the number, the more offset the bar will be from the center. I have attached a screenshot here where I have liberally set this to 30 to exacerbate the problem and we can clearly see the numbers bar is offset, whilst the crosshair is bang on in the middle of the overlay candlestick body.
|
| |
| [2025-11-18 21:00:11] |
| twofox - Posts: 6 |
|
@User266678, have custom solution for adjustable candle display (see image), free of charge if interested. https://www.twofoxtrading.co.uk/products/twfx-free-studies/ |
| |
| [2025-11-18 22:13:12] |
| John - SC Support - Posts: 43664 |
|
Yes, the "Spacing Adjustment Value" could do that, it's not something that has come up before. That item was put in a long time ago in order to allow for more spacing between the Numbers Bars. It would cause a perceived offset of the Study/Price Overlay, although the Overlay is actually correct and the Numbers Bars are being slightly offset (not that it really matters). We see that we set that value at 3. We'll have to take a look and see if we can allow for a value of zero. But we will need at least a week, as there are just a lot of things occurring. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-19 15:07:52] |
| User266678 - Posts: 23 |
|
Thanks John, in the meantime, could you give me some pointers on whether the Numbers Bars Ask/Bid Volume Split Profile can be recreated in ACSIL? If so, what kind of drawing would it be?
|
| [2025-11-19 16:30:41] |
| John - SC Support - Posts: 43664 |
|
There is not a direct way to recreate the Numbers Bars study in any form, using ACSIL.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-19 16:57:38] |
| User266678 - Posts: 23 |
|
Got it. But I could mix ACSIL and Numbers Bars. I managed to use ACSIL to properly align my candle bodies to the actual center of the numbers bars, so what's left would be to implement the Bid x Ask vol left and right, which I also did with DRAWING_TEXT, but as you can see from the attached screenshot, I could not figure out how to have the text to scale, like it does in the numbers bars. I found no studies in ACS Source that employ such a technique and I am wondering how is this achieved under the hood, what's the reference parameter that I can use as font size to scale my text effectively.
|
| |
| [2025-11-19 18:44:58] |
| John - SC Support - Posts: 43664 |
|
You are using a drawing to draw those numbers, so you need to set the font properly for that drawing to set the size. Refer to the following: Using Drawing Tools From an Advanced Custom Study: s_UseTool::FontSize Under the hood the system is making direct calls to the graphics to draw these items. This is the point of this not being directly available using ACSIL. Yes, you can use the drawing tools to get some of what you want, but not necessarily everything, and it is going to be much slower. You CAN access the graphics directly, but again it is going to be slower. Refer to the following: ACSIL Programming Concepts: Custom Free Form Drawing into Chart Window Using GDI (Graphics Device Interface) If there is something you are looking for that is not present in the system, we do take all requests. We just can not say when we would get to any particular item. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-20 21:39:13] |
| John - SC Support - Posts: 43664 |
|
We have changed the Numbers Bars "Spacing Adjustment Value" to allow values between 0 and 128 (i.e. you can now enter 0, 1, or 2 in addition to what you could do before). This will be in the next Pre-Release (v 2813). The default for this setting is still 3. Note that by setting this value to 0, there will be no spacing between Numbers Bars columns. In looking at this, we do not not see any offset of the Study/Price Overlay for a Candlesticks when overlaying on a Numbers Bars chart with the Spacing Adjustment Value set to 3. Without looking further into it, we believe the code was setup originally to have this spacing of 3, which is why the lower end was set at 3, which would mimic the way this was setup originally. But we do not see any downside to allowing lower values, hence we have made the change. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-21 15:47:59] |
| User266678 - Posts: 23 |
|
Hey John, thanks, I am impressed: thanks for the quick resolution and implementation. Although, strangely, drawing GDT_CANDLESTICK in ACSIL did resolve it, as it seems to follow the Numbers Bars regardless of the Spacing Adjustment Value. With regards to setting the font size, I did in fact use s_UseTool::FontSize, but this accepts an integer. I would like to assign this to a reference scaling parameter (eg highest price shown in the chart - lowest price shown in the chart times a coefficient), to achieve a similar effect to "minimum" and "maximum" font size. Nothing in ACS Source seems to suggest this has been implemented anywhere. But did I get it correctly: SC under the hood leverages GDI to achieve font scaling? Cause it's certainly fast enough on my side. However I could not replicate font scaling at all using GDI. Else, would it be easy to allow the ACSIL API to tap into the font scaling mechanism already implemented in studies like numbers bars? Could be something like this: setting s_UseTool::MinFontSize and s_UseTool::MaxFontSize would override s_UseTool::FontSize and perform built-in font scaling Date Time Of Last Edit: 2025-11-21 15:49:50
|
| [2025-11-21 16:18:28] |
| John - SC Support - Posts: 43664 |
|
Under the hood, the system does use GDI unless you are using OpenGL for your graphics, in which case it is using OpenGL. There is no MinFontSize/MaxFontSize, you just need to adjust the font as you want and then redraw the drawing to get it as you want it. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-21 16:34:39] |
| User266678 - Posts: 23 |
|
Hey John, thanks, I know there are currently no MinFontSize/MaxFontSize attributes, mine was just a proposal for the next pre-release, in case this is feasible... The idea would be tapping into the calls made from studies like Numbers Bars that support font scaling. If SC does indeed use GDI to draw that scaled font in Numbers Bars, then it means there is a GDI implementation of exactly what I need within the Sierra source code, and it would be great if I could just use it within the UseTool wrapper rather than reinventing the wheel. However using s_UseTool::FontSize means I can only set a fixed font size, which is only appropriate for a specific zoom level. I could indeed have it as an input, but that would mean pressing F6 and changing the study inputs every time I vary the zoom level. Do you agree, or is there any quicker way around this I hadn't thought of? Thanks for your continued support! |
| [2025-11-21 17:17:21] |
| John - SC Support - Posts: 43664 |
|
Sierra Chart does not use a scaled font with the GDI. It determines the required font and then sets the font prior to calling the drawing function. This is what we are suggesting you do - you can determine the font size you need with a min/max (if you want to set them up) and then change the font for the drawing you are actually doing.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-21 17:29:37] |
| User266678 - Posts: 23 |
|
Cool, this is in fact what I have been trying to do, but I am struggling to tap into the parameters that allow me to determine the appropriate figure to provide to s_UseTool::FontSize. How do you suggest I determine this? I had no luck in obtaining height/zoom/ or vertical/horizontal spacing values. Thanks again |
| [2025-11-21 19:25:18] |
| John - SC Support - Posts: 43664 |
|
We can not give any specifics, that is something you need to determine yourself and what works best for you. Refer to the following and the 3 items below it that may help you in the process: ACSIL Interface Members - Variables and Arrays: sc.ChartRegion1BottomCoordinate For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-11-22 06:20:02] |
| User688525 - Posts: 373 |
|
Hi User266678, Are you able to share the ACSIL code you used to align the candle bodies to the center of the numbers bars? Are you using GDT_CANDLESTICK for the candle bodies? Note, this is with a Numbers Bars Spacing Adjustment Value set greater than 3. Thank you! Date Time Of Last Edit: 2025-11-22 06:24:58
|
To post a message in this thread, you need to log in with your Sierra Chart account:
