Login Page - Create Account

Support Board


Date/Time: Thu, 08 May 2025 20:01:53 +0000



Post From: Colouring bars based on time

[2024-11-03 22:36:23]
User224654 - Posts: 23
Try this:
=AND(BARTIME - BARTIME[1] < TIMEVALUE("00:00:10"))

Since Sierra Chart does not provide a direct way to query the duration of a candle, it would be necessary to estimate the duration indirectly via the time interval of the candles.

Explanation:

BARTIME specifies the start time of the current candle.

BARTIME[1] is the start time of the previous candle.

The expression BARTIME - BARTIME[1] < TIMEVALUE("00:00:10") checks whether the time difference is less than 10 seconds.