Support Board
Date/Time: Fri, 07 Feb 2025 20:52:11 +0000
Post From: How to limit Study/Price overlay to evening session only?
[2024-09-18 20:31:28] |
John - SC Support - Posts: 37833 |
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 |