Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 10:34:56 +0000



[User Discussion] - Display Bar Period on Chart

View Count: 2495

[2018-05-31 15:43:04]
BenjaminR - Posts: 170
Engineering:

I use a 5 minute chart, which I manually switch between timeframes via the keyboard. I sometimes forget to switch back to 5 minute as I flip between charts in my chartbook, which can cause real problems in reading the market. I really need to see the Bar Period displayed, similar to the Symbol Study, so I do not ever mistake the 15 minute, for example, for a 5 minute.

I searched the support board for a solution, but it would seem that combining this w/ the Symbol Study, or a separate Study similar to the Symbol Study are possible solutions.

Thank you.
[2018-05-31 19:31:04]
Sierra Chart Engineering - Posts: 104368
We will see about adding this.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-06-23 16:10:54]
User459170 - Posts: 262
Hi, are you still planning on providing this? Thanks.
[2020-06-23 16:20:59]
Ackin - Posts: 1865
User459170)

Hi, I've created a study for it... if you want ... try it:

Study: Text - chart Properties


contact link:
https://www.sierrachart.com/UserControlPanel.php?page=StudyStore&SCDLLName=zyp_download_free
imagetext chart properties.png / V - Attached On 2020-06-23 16:19:20 UTC - Size: 25.28 KB - 546 views
[2020-06-24 11:13:29]
User90125 - Posts: 715
We will see about adding this.

When available from SC, please make sure the source code (.cpp) is included as usual.

Thanks.
[2020-06-24 13:12:29]
Ackin - Posts: 1865
User212764)
Example
n_ACSIL::s_BarPeriod BarPeriod;
sc.GetBarPeriodParameters(BarPeriod);
if (BarPeriod.ChartDataType == INTRADAY_DATA && BarPeriod.IntradayChartBarPeriodType == IBPT_DAYS_MINS_SECS)
{
int SecondsPerBar = BarPeriod.IntradayChartBarPeriodParameter1;
}

sc.GetBarPeriodParameters()
[2021-09-02 18:18:41]
User90125 - Posts: 715
User212764)
Example
n_ACSIL::s_BarPeriod BarPeriod;
sc.GetBarPeriodParameters(BarPeriod);
if (BarPeriod.ChartDataType == INTRADAY_DATA && BarPeriod.IntradayChartBarPeriodType == IBPT_DAYS_MINS_SECS)
{
int SecondsPerBar = BarPeriod.IntradayChartBarPeriodParameter1;
}

sc.GetBarPeriodParameters()

Thanks Ackin :)
[2021-09-02 18:20:32]
User90125 - Posts: 715
Engineering,

Has this been completed by SC yet?

If not, may I suggest this as a long-standing [Feature Request] ?

Thanks.
[2021-09-02 18:52:25]
John - SC Support - Posts: 36203
We have tagged this as a Feature Request. It has not been done by us.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2021-09-03 02:39:54]
User90125 - Posts: 715
+1
[2022-09-29 13:51:40]
duplanuh - Posts: 8
Dear SC Team,
It should be awsome to develope this study.
+1
[2023-01-02 09:10:07]
al-right - Posts: 30
Hi, I've created a study for it... if you want ... try it:
Study: Text - chart Properties
contact link:...
@Ackin
Hello. I would like to try your study but the registration required to your forum doesn't work. I have sent an email to the address provided but never got any reply. Could you please help? Thank you.

@Sierra Chart Engineering
This is a 4 month old thread. Has any study been developed related to this request meanwhile? I can't seem to find one yet. Thank you
Date Time Of Last Edit: 2023-01-02 09:17:03
[2023-01-02 11:51:06]
Mercrastius - Posts: 44
This will work:

Add the Bar Time Duration study to the chart and hide the study.

Add the Text Display for Study study to the chart, referencing the Bar Time Duration study. Set the colors, font, and location as needed.

Set the Subgraph Columns Back to 1 (so the study reads the prior bar, not the current bar).

Set the Value Format to Time in the dropdown menu.



The format will be 00:05:00, or 00:15:00, etc. For a quick visual reference it will do the job.
Date Time Of Last Edit: 2023-01-02 11:53:46
[2023-01-02 16:26:00]
al-right - Posts: 30
This will work:

...
Lovely. It works like a charm. Thank you very much.
[2023-01-03 08:55:20]
duplanuh - Posts: 8
Looks almost good for me. Is there any method to display Bar Time only in seconds. It should be fine for me to display the 1 minute 30 sec Bar Time 90 sec. I'm looking for a study which convert time into seconds.
[2023-01-03 13:03:21]
Sawtooth - Posts: 4118
I'm looking for a study which convert time into seconds.
Try this:
Add the Spreadsheet Formula study, and use a formula like this in its Formula field:
=ID2.SG1*86400
where ID2 is the Bar Time Duration study.
Date Time Of Last Edit: 2023-01-03 13:04:37
[2023-01-03 13:11:41]
duplanuh - Posts: 8
Try this:
Add the Spreadsheet Formula study, and use a formula like this in its Formula field:
=ID2.SG1*86400
where ID2 is the Bar Time Duration study.
Thank you! Works as I expected.
[2023-12-07 04:59:57]
aseef - Posts: 49
looking for a study to display bar period on the chart, if someone has developed one?
[2024-01-04 07:16:19]
User871209 - Posts: 85
Is there a way to use this that includes a Daily time frame as well?

The time frames in minutes display but when using Daily or Weekly it does not.

Any ideas?

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

Login

Login Page - Create Account