Login Page - Create Account

Support Board


Date/Time: Fri, 09 May 2025 22:14:50 +0000



Bar Numbering

View Count: 45

[2025-05-08 21:18:40]
cmack1011 - Posts: 91
IS there a way to have the bar numbering study start numbering the first RTH bar as "1" and still have the evening session bars on the chart? I can't seem to configure the study so that the evening session and the day session each start fresh with numbering the first bar in each session with "1". Instead, the numbering always starts with the evening session with bar 1 and continues through the day session. The documentation is not clear on this issue
Thx
[2025-05-09 11:50:18]
Sierra_Chart Engineering - Posts: 19535
You need to modify the study to meet your requirements:
How to Build an Advanced Custom Study from Source Code
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-05-09 13:24:51]
Sawtooth - Posts: 4214
You could do it with the Spreadsheet Formula study, with a formula like this in its Formula field:
=IF(OR(BARTIME=TIME(9,30,0),BARTIME=TIME(16,0,0)),1,ID1.SG1[-1]+1)
where ID1 is this Spreadsheet Formula study.

Set the Chart Region to 1
Set the Value Format to 1
Set the Draw Style to Value on High, and the Width/Size to 8.

In Chart Settings, set New Bar At Session Start to Yes.
Date Time Of Last Edit: 2025-05-09 13:37:01
[2025-05-09 14:31:38]
cmack1011 - Posts: 91
Thank you for response.
Is the spreadsheet formula study ID1 the current numbering bar study in SC?
[2025-05-09 14:49:01]
Sawtooth - Posts: 4214
Is the spreadsheet formula study ID1 the current numbering bar study in SC?
When a study is added to the chart, it is assigned the next available ID#.

I used ID1 as an example. Add the Spreadsheet Formula study, and note its ID#, then edit the formula to the same.
Date Time Of Last Edit: 2025-05-09 14:50:43

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

Login

Login Page - Create Account