Login Page - Create Account

Support Board


Date/Time: Thu, 21 Nov 2024 20:59:26 +0000



Post From: Colouring bars based on time

[2024-11-03 22:36:23]
User224654 - Posts: 18
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.