Login Page - Create Account

Support Board


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



Bar Numbering

View Count: 29

[2025-05-08 21:18:40]
cmack1011 - Posts: 90
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: 19529
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: 4213
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

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

Login

Login Page - Create Account