Login Page - Create Account

Support Board


Date/Time: Fri, 27 Jun 2025 21:34:26 +0000



Time based Custom Chart Bars

View Count: 473

[2021-09-23 14:56:46]
User504778 - Posts: 22
I've created a chart with custom chart bars based on price movement, and would like the chart to add a new bar at the beginning of every minute. I didn't find any function to read the time value of NewFileRecord in the documentation. What is the best way to split bars based on time in a custom chart bars study? Thanks.
[2021-09-23 20:31:54]
User504778 - Posts: 22
I found answer to my own question thanks to a support board post. For anyone interested, time value is held in ChartBarInterface.NewFileRecord.DateTime

ChartBarInterface.NewFileRecord.DateTime.GetMinute() gives the minute value so I can create a new bar at the beginning of every new minute.

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

Login

Login Page - Create Account