Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 02:18:16 +0000



Alert conditions for Chop Zone study

View Count: 106

[2024-09-12 17:47:44]
User795248 - Posts: 2
Hi, I am trying to create an alert (color bar based on alert conditions) for the Chop Zone study. I can't see a way that I can configure the code so that an alert is triggered when either of the horizontal zones turns cyan (as per the study's default settings - this appears to be the secondary color for SG2).
Also an alert for when the study turns brownish (this appears to be the default color for SG6).
I've worked with Copilot AI for ideas, but things such as =OR(ID3.SG1 == RGB(0, 255, 255), ID3.SG2 == RGB(0, 255, 255)) aren't working.

I'm doing this with an ultimate view to sim trial this on the autotrading based on alert conditions study.

Can you think of way this might be possible?
imageScreenshot 2024-09-12 184646.png / V - Attached On 2024-09-12 17:47:12 UTC - Size: 173.8 KB - 30 views
[2024-09-12 18:07:33]
John - SC Support - Posts: 36238
You can not set an alert based on a color. Refer to the following:
Study/Chart Alerts And Scanning: Writing Formulas Based On Color Settings

The Chop Zone is not a documented study, but the source code is available in the Studies4.cpp file located in the ACS_Source folder under your main Sierra Chart folder. So you would need to look at that code to determine how the values are getting calculated and replicate that to an Alert Condition. Or you can modify the code to get certain values output which you can then use in an alert. Or you can add alert functionality to the study itself. Refer to the following:
How to Build an Advanced Custom Study from Source Code
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