Login Page - Create Account

Support Board


Date/Time: Sun, 01 Jun 2025 16:50:22 +0000



Programming Help: Study Subgraph Above/Below Bar as Text

View Count: 56

[2025-05-30 08:29:48]
ernie Suarez - Posts: 8
Hi Team,

I hope this message finds you well. I would like to inquire if you are able to assist with this study. I am using this study, but I am primarily interested in viewing values (such as the number of trades) that exceed a specific threshold—for example, values above 10.

I am not a programmer, but I am wondering if this is possible.

Thank you very much.

Best regards,
Ernie





https://www.sierrachart.com/image.php?Image=1748593356634.png
[2025-05-30 13:40:08]
John - SC Support - Posts: 40127
There is not a way to do this directly with the "Study Subgraph Above/Below Bar As Text". But there are a number of ways to get what you want.

The best option is to use the "Color Bar Based on Alert Condition" study, as you can use this one study to do both the filtering you want and to display the data. Add this study to your chart and set the following in the study (we give you the specifics for Number of Trades, but you can modify as needed):
- Output When Condition True: Use Input Data
- Input Data: Select "# of Trades"
- Subgraph Tab >> Color Bar Subgraph: Set the Draw Style to "Value on Low"
- Alerts Tab >> Alert Condition: Enter the following to only display trades above 10: =ID0.SG6 > 10

You will want to change the size of the text, which is controlled by the "Width/Size" setting for the Color Bar subgraph, and you can change the color for this as well.

Refer to the following:
Color Bar Based on Alert Condition

--

Other methods for doing this require that you have a study that will get the filtering you want, and then use the Study Subgraph Above/Below Bar As Text.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-05-30 14:11:17]
Sawtooth - Posts: 4222
Another way would be to use the Spreadsheet Formula study, with a formula like this in its Formula field:
=IF(NT>10,NT,0)
Also:
- Set the Chart Region to 1.
- Set the Value Format to 1.
- Set 'Draw Zero Values' to No.
- Set the Draw Style to Value on High, and its Width/Size to 8.

Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables
[2025-05-30 20:05:44]
ernie Suarez - Posts: 8
Hi,

Thank you very much for your efforts. I was able to get it working successfully. Much appreciated.

Best regards,
Ernie

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

Login

Login Page - Create Account