Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 14:20:26 +0000



Bar Time Length in Spreadsheets

View Count: 241

[2023-07-29 16:10:09]
Le Dharma - Posts: 73
Hey Sierra, I am looking for a function or study that returns the length of time a bar exists for.
I would like to use this for a Trades per Bar chart.

Do yall have anything like that?
Thanks for your time,
-LD
[2023-07-30 00:43:29]
Sawtooth - Posts: 4120
Use the Bar Time Duration study.

It returns the duration in Serial DateTime format.
To convert to minutes, use a formula like this:
=ID1.SG1@3*1440
To convert to seconds:
=ID1.SG1@3*86400
where ID1 is the Bar Time Duration study.

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

Login

Login Page - Create Account