Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 10:47:02 +0000



Bar period displayed on chart

View Count: 243

[2025-05-01 19:09:25]
User525965 - Posts: 170
How can I get the bar period (for example 5 minute or 1 minute) displayed on the top of the chart?
I have several of my charts detached and even though I have the control bar displayed on them with the different timeframes I use, for some reason it does not highlight the one I am on.
I just am looking for some sort of way to be able to quickly see what timeframe I have it on.

Thanks
[2025-05-01 19:50:50]
John - SC Support - Posts: 40422
The simplest way to see the bar period for the chart is to have one of the options for this displayed in the Chart Header. For instance, there is an option to display "Symbol - Bar Period - Chart #" as well as just "Bar Period". Make sure whatever you select is high enough in the list that you will be able to see it on the charts (higher up means further to the right and vice versa). Refer to the following:
Global Settings Menu: Customize Chart Header - Standard (Global Settings menu)

Another option, although it will only work for time-based charts, is to get the amount of time for a bar and then display that. For instance, you can use the "Spreadsheet Formula" to determine this time and then display it using the "Text Display for Study". To get the number of seconds, you would use the following formula:
=(BARENDDATETIME[-1] - BARDATETIME[-1]) * 24 * 60 * 60

Where the -1 indicates the previous bar - you do not want to do this on the current bar, as that is still building. The multiplication by 24, 60, and 60 is to get to seconds, as there are 24 hours in a day, 60 minutes in an hour and 60 seconds in a minute. So if you wanted minutes, you would remove one of the "* 60".

You could also round the information, as not all bars are a perfect multiple, as it depends on when the trades occurred. Use a ROUND() function to do this, such as the following:
=ROUND((BARENDDATETIME[-1] - BARDATETIME[-1]) * 24 * 60 * 60)

Refer to the following:
Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables

Spreadsheet Formula

Text Display For Study

Another option is to create custom study to do this, as you can access the information directly in this case and display it however you want. Refer to the following:
ACSIL Interface Members - Functions: sc.GetBarPeriodParameters()

https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account