Support Board
Date/Time: Wed, 07 May 2025 16:09:26 +0000
Post From: Colour Bar based on Alert Condition for a non-time based chart!
[2024-11-25 16:59:39] |
John - SC Support - Posts: 39675 |
We are not exactly sure what you are wanting to do, but if you want to get an alert when a particular bar meets your criteria within a certain time frame, then you can check the time by using the "BARDATETIME" and the "BARENDDATETIME" functions to check the amount of time that has passed for a bar. For instance, to see if volume is greater than 400 within 5 seconds in a bar, your Alert Condition would be the following: =(BARENDDATETIME - BARDATETIME) * 24 * 60 * 60 < 5 The multiplication of 24 * 60 * 60 is because the hours within a day are stored as a fraction, so multiplying by 24 hours in a day, 60 minutes in an hour, and 60 seconds in a minute to get the value in seconds. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |