Login Page - Create Account

Support Board


Date/Time: Thu, 27 Feb 2025 09:19:06 +0000



Post From: Simple user drawn line alert - without using the standard alert dialogue box?

[2021-06-23 15:07:38]
John - SC Support - Posts: 38222
We are not quite sure what you are saying with this:
I can play around in the code but I'm guessing it would have to be a drawing object - line, rectangle etc. rather than a subgraph plot - eg. MA, VWAP etc.? In which case I might be stuck...

You can generate alerts off Subgraphs and/or drawing tools. Refer to the information starting here and the following sections:
Study/Chart Alerts And Scanning: Referencing Study Subgraphs

Also refer to the following for Alerts in Studies:
ACSIL Interface Members - Functions: sc.EvaluateGivenAlertConditionFormulaAsBoolean()

And look through the rest of the ACSIL functions as there are other Alert related functions that you may want to use.



If not could a button be attached to a subgraph plot to turn an alert on and off?

You can use the Custom ACS Buttons to turn on/off the alert from within your study.

There is not a way to have a button to turn off study/symbol/drawing alerts, as there is no easy way to tie the button to the specific alert.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing