Support Board
Date/Time: Fri, 22 Nov 2024 21:17:49 +0000
What's the criteria for determining an up or down candlestick bar?
View Count: 136
[2024-09-25 01:55:33] |
Mark Lewis - Posts: 25 |
I'm working on a custom study and need to know if a candlestick is up (green) or down (red). It's not as simple as comparing SC_OPEN to SC_CLOSE because there are many cases where those values are the same. I haven't been able to find anything that steps through the criteria in the documentation or in general online. |
[2024-09-25 13:55:35] |
John - SC Support - Posts: 36236 |
The system uses the following logic: - If current candle Open is greater than the Close: Down Bar - If current candle Open is less than the Close: Up Bar - If current candle open and close are equal, check the current bar Open against the previous bar close and use the above criteria. Keep going backwards until there is a definite answer. Note that the above will not apply if you have the option for "Global Settings >> Graphics Settings >> Other >> Up/Down Coloring for OHLC Based on Previous and Current Close" enabled. Refer to the following: Graphics Settings: Up/Down Coloring for OHLC Bars Based on Previous and Current Close (Global Settings >> Graphics Settings >> Other) 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: