Support Board
Date/Time: Thu, 27 Feb 2025 09:26:10 +0000
Simple user drawn line alert - without using the standard alert dialogue box?
View Count: 914
[2021-06-22 14:58:26] |
ATricky1 - Posts: 16 |
Reasonably new user here... I draw lots of lines on my charts to alert me when price hits or crosses them. Is there any way of NOT using the Chart Drawing Alert Dialogue box each time? Having to: 1) Right click on the line 2) Select Alerts 3) Enable alert for chart drawing 4) Pick Last 5) Crossing (default) 6) Only trigger once 7) Alert once per bar ....every time is ridiculous! Does a study exist that could run in the background instead to give an alert? Not essential but perhaps even send an email? Or is there something that I'm missing? Thanks a bunch. |
[2021-06-22 15:17:00] |
ATricky1 - Posts: 16 |
Sorry - I've found the Tool config which sets defaults for the lines - including the alert set up. Will save some time.
|
[2021-06-22 15:58:05] |
John - SC Support - Posts: 38222 |
You could always create your own program that checks the lines and gives an alert, or you can even setup the alerts through the program. Refer to the information starting here: Advanced Custom Study Interface and Language (ACSIL): Introduction Also, in terms of email for an alert, refer to the following: https://www.sierrachart.com/index.php?page=doc/GeneralSettings.html#EmailNotifications For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-22 16:32:19] |
ATricky1 - Posts: 16 |
Thanks a lot John. I found more stuff on alerts. It should do everything I need. Damn this is a good platform :) Just got to transfer coding skills to ACSIL.... How many of you put the Sierra documentation together? It's like War and Peace - but on a larger scale! Kudos to you all. Richard |
[2021-06-22 17:04:32] |
John - SC Support - Posts: 38222 |
Thank you for your kind words. The documentation has just grown over time to encompass all aspects of the software and we try hard to keep it up to date so we don't get overwhelmed with changes at some point in the future. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-23 09:46:21] |
ATricky1 - Posts: 16 |
One further question John. For any studies that draw lines what is the quickest way of getting an alert when price touches/crosses a line? Is a right click on the line possible to either automatically set an alert or bring up a dialogue box for an alert? I've trawled through settings but can't find anything that might do the trick. I'm looking for a one off alert then reset not an alert set from within the study which would be permanent. e.g a one off MA hit or cross by price. Thanks. Date Time Of Last Edit: 2021-06-23 10:36:15
|
[2021-06-23 13:57:26] |
John - SC Support - Posts: 38222 |
Keep in mind, you can always do what you are asking in code, and just keep track of whether the alert has triggered or not, and then not fire again. But, in terms of setting up an alert for a drawing from a study, you would need to make the drawing a User Drawn drawing, then you can use the standard Drawing Tool Alert options, which have an option for Only Trigger Once. Refer to the following regarding User Drawn drawings from studies: Using Drawing Tools From an Advanced Custom Study: s_UseTool::AddAsUserDrawnDrawing For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-23 14:20:02] |
ATricky1 - Posts: 16 |
Thanks John. 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... I know of a couple of other packages that have this feature and it would be the icing on the cake if Sierra could do this. If not could a button be attached to a subgraph plot to turn an alert on and off? |
[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 |
[2021-06-23 15:39:51] |
ATricky1 - Posts: 16 |
OK - more reading for me John. Looks like it's feasible. I've coded in Metatrader for years now so that will help - I'll just have to bite the bullet and get up to speed with ACSIL. Thanks for all your help. Most appreciated. I'll leave you alone for a while......well for at least a day ;) |
To post a message in this thread, you need to log in with your Sierra Chart account: