Support Board
Date/Time: Fri, 07 Feb 2025 17:58:50 +0000
How to limit Study/Price overlay to evening session only?
View Count: 175
[2024-09-18 13:16:37] |
tokauo - Posts: 35 |
Hello, how to limit "Study/Price overlay" to evening session only? Thanks you Tom |
[2024-09-18 15:13:06] |
John - SC Support - Posts: 37827 |
There is not a way to control the overlay period from the Study/Price Overlay study. If you only want the evening session overlaid, then you need your source chart to be the evening session only.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-09-18 15:29:03] |
tokauo - Posts: 35 |
Thanks you for your answer. I'm trying to color bars differently for evening session, I have tried "Time Range Highligt" and "Color Bar Based On Alert Condition", but booth seems to be able to color all bars with same color... is there way, to color up and down bars differently? Thanks you |
[2024-09-18 17:12:57] |
John - SC Support - Posts: 37827 |
You would need two copies of the "Color Bar Based on Alert Condition" one for each coloring you want. You would then need to add the particular conditions you want to the Alert formula you are using. For instance, for an Up bar, the general rule is that the Close is higher than the Open, so the condition for this alone is the following: =C > O Where C is the close and O is the open. Refer to the following: Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables To combine this with other conditions, you need to use the AND() or OR() functions. Refer to the following: Study/Chart Alerts And Scanning: OR and AND Functions For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-09-18 18:15:01] |
tokauo - Posts: 35 |
Thanks you. I've made an attempt = AND ( OR (C>O), BARTIME >= TIME(16, 15, 01), BARTIME <= TIME(22, 29, 59)) , it is working until I change "end" time to next day, like this = AND ( OR (C>O), BARTIME >= TIME(16, 15, 01), BARTIME <= TIME(09, 29, 59)) , than it stop to work.What I'm doing wrong? Thanks you |
[2024-09-18 20:31:28] |
John - SC Support - Posts: 37827 |
First of all, you have an OR() function with only a single condition. You do not need that OR() at all. So your first formula would be the following: = AND (C > O), BARTIME >= TIME(16, 15, 01), BARTIME <= TIME(22, 29, 59)) Second, the reason the second formula is not working is that you are asking for a time to be both greater than 16:15:01 and less than 09:29:59 at the same time. This is not possible. In this case, you do need to add an OR() inside of the AND(). So your second formula would be the following: = AND(C > O, OR(BARTIME >= TIME(16, 15, 01), BARTIME <= TIME(09, 29, 59))) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-09-19 07:34:36] |
tokauo - Posts: 35 |
Thanks you! It is working...
|
To post a message in this thread, you need to log in with your Sierra Chart account: