Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 19:20:36 +0000



Color columns linked with the chart time

View Count: 536

[2022-06-22 22:27:06]
User674409 - Posts: 24
This is what I need. I want to display 2 colors columns in my chart. Let me explain myself. Let say that I need that in my chart I can see a blue column that is displayed from 8:00:00 am to 8:09:59 am (10 mins) and then another column, lets say a pink color that be displayed from 8:10:01 to 8:14:59 (5 mins) and so on. So in that way I can visualize what bars, candles etc are in the blue columns and which on are on the pink columns. So I'll have blue columns of 10 mins and pink columns of 5 mins

How can I do that?
[2022-06-22 22:57:33]
John - SC Support - Posts: 38669
You would want to use two copies of the Color Background Based on Alert Condition, one for each color.

The tricky part is putting together the Alert itself. To get you started, here is what you would use to color the background of a bar that opened between the beginning of the hour and the first 9 minutes and 59 seconds of the hour.
=AND(FRACTIME(BARTIME * 24) < (TIME(0, 9, 59) * 24))

For more information on how to work with Time in alerts refer to the information for BARTIME at the following link:
Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-06-23 01:22:33]
User674409 - Posts: 24
Ok, and how I set the alert conditions values for the minutes between 10 and 14:59?
[2022-06-23 15:02:50]
John - SC Support - Posts: 38669
=AND(FRACTIME(BARTIME * 24) > (TIME(0, 10, 0) * 24), FRACTIME(BARTIME * 24) < (TIME(0, 14, 59) * 24))

You would then use the OR function to put together the groupings (10-14:59, 20-24:59, etc.)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account