Support Board
Date/Time: Fri, 07 Feb 2025 17:42:19 +0000
Post From: Alert condition not working
[2022-11-17 22:41:07] |
John - SC Support - Posts: 37827 |
You need to look at your alert conditions and determine why it is not working as you expect it to do. It is beyond the scope of our support for "programming" help, which this is. You obviously understand how to put together the pieces. We would just be going through the same process you are to determine what is wrong. An easy solution, however, would be to just add a condition that forces the situation with the "Down"/"Up" bars. In other words, add the following into your AND function to force a coloring only in a down situation: C < O Where C is the close and O is the Open (if the close is less than the open then it is a down bar). If you need to take it to the extreme to cover the situation where the Open and Close are the same, then you would need to look at the previous bar, so you would have the following additional check: IF(C = O, C[-1] < O[-1], 0) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |