Login Page - Create Account

Support Board


Date/Time: Tue, 11 Mar 2025 05:13:02 +0000



Renko bar Alerts (for charts)

View Count: 597

[2023-10-24 10:12:54]
User906272 - Posts: 5
I happen to find the code in the support board for renko alerts (i.e. when the bars change color). I have inputted it unto my charts but I realise the renko alerts are firing at very odd times based on me choosing either alerts once per bar or evaluate after candle close. For both, the alerts are not firing exactly when the renko bar changes, so I suspect I may not be doing something correctly.

My question is this - Which of the alert conditions do I need to activate to ensure I get the alert when the renko bars immediately change color?
[2023-10-24 14:40:23]
John - SC Support - Posts: 38547
We are not sure exactly what you want to accomplish. What is it you want to have happen? Do you want an alert every time the current renko bar changes color, or do you just want an alert when the current renko bar closes and the color is different from the previous bar? Or something else?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-10-24 15:55:15]
User906272 - Posts: 5
The latter (i.e. an alert when the current renko bar closes and the color is different from the previous bar).
[2023-10-24 19:51:22]
John - SC Support - Posts: 38547
From the documentation for Renko Bars:
For Study and Chart Alert Formulas, the Renko Open and Renko Close values are accessed with the ID0.SG22 (Renko Open) and the ID0.SG23 (Renko Close) identifiers.

Therefore alert condition to test if the previous bar was Up and the current bar is down would be the following:
=AND(ID0.SG23[-1] > ID0.SG22[-1], ID0.SG23 < ID0.SG22[-1])

And you would then enable the Alert Option for "Evaluate on Bar Close".

You would need to work out the opposite scenario from what we have given you so far.
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