Login Page - Create Account

Support Board


Date/Time: Sun, 31 Aug 2025 16:17:53 +0000



TIME of bar OR CLOSE of bar Color Bar Signal?

View Count: 79

[2025-08-03 23:10:03]
TopGunTrader - Posts: 221
Hi,

I don't want order flow signals at the beginning of a bar assume 1 min bar for this example. Maybe 30-40+ mins in is OK and also close of the bar.

If I use the bartime and 30 seconds signals show up but disappear at close of bar so is there a command I can use an OR command

TIME>30secs OR CLOSE OF BAR for simplicity sake trying to explain this?

OR do I need 2 color bars one for 30secs+ and other for close of bar? i'd prefer to have just one color bar per signal event.

Thanks
[2025-08-04 16:05:48]
John - SC Support - Posts: 41535
If you have 1 minute bars and want to only get a signal when the bar is more than 30 seconds into developing, then the only way to do this is to use the NOW() function and check the computer time to see if it is in the last half of the minute. This then requires that your computer time is set properly to match the time from the exchange.

To test if the current time is in the last half of a minute (greater than 30 seconds), you would use a formula like the following:
=FRACTIME(NOW() * 24 * 60) * 60 > 30

Keep in mind though, that there is not a way to know if a signal is true while the bar is developing, if that signal is not also true when the bar closes. In other words, you can not capture the state intrabar. If you want to capture a signal when the bar is developing, but not act on it until the bar is closed, you would need to develop a custom study for this.
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