Support Board
Date/Time: Fri, 22 Nov 2024 21:29:42 +0000
Create an alert
View Count: 539
[2023-11-06 17:13:22] |
User823328 - Posts: 27 |
Hello, I would like to create an alert based on different indicators and I don't know if this is possible. I use as indicators: - daily HOLC (only to have the open cash us marked on my chart) - super trend - super trend stop - stochastic slow conditions for the alert to be triggered: - for a buy = if the price is above the open cash, as well as above the super trend and above the super trend stop and the [slow%k(sg1)] and [slow%D(sg2)]are not in the overbought zone and are crossing upwards - for a sale = if the price is below the open cash, as well as below the super trend and below the super trend stop, and the [slow%k(sg1)] and [slow%D(sg2)]are not in the oversold zone and are crossing downwards. can you tell me if this is possible? and if so, can you help me implement the right formulas to have an audible alert and also, if possible, a small upward arrow for a buy below the candle that triggers the alert and a small downward arrow above the candle that triggers the alert? Thanks a lot for your help ant times |
[2023-11-06 17:25:02] |
John - SC Support - Posts: 36237 |
Yes, this can be done, but you need to take the time to put it together. The main thing is that you will need to use the "AND()" and/or "OR()" functions to combine the items together. We are not certain of what you are looking for in terms of the Stochastic Slow %k and %D are "crossing upwards", but here is a general idea of the Alert condition you would write: =AND(C > ID1.SG1, C > ID2.SG1, C > ID3.SG1, ID4.SG1 < ID4.SG3, ID4.SG2 < ID4.SG3) Where ID1 is the Daily OHLC study and SG1 is the first subgraph (Open), ID2 is the Super Trend Study, ID3 is the Super Trend Stop, and ID4 is the Stochastic Slow study. For the Stochastic Slow, you can set the Line value for the Overbought/Oversold regions, so that is referenced with the Subgraph of SG3. Again, we did not put anything in for the crossing since we do not know what you are wanting there, so you would have to add that, but the above should get you going. In order to add an arrow, you would need to use the "Color Bar Based on Alert Condition" study. Refer to the following section specifically for this: Color Bar Based on Alert Condition: Drawing Arrows/Text or Other Styles at the High or Low of Bars Also refer to the general information for setting up Alerts at the following link: Study/Chart Alerts And Scanning For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-06 17:57:25] |
User823328 - Posts: 27 |
thanks for your help, for the cross of the stochastic i use it in a classic mode when the fast line made an upcross with the slow line that give me a buy signal only if the upcross IS not in the overbought zone and if the fast line made an downcross on the slow line that give me a sell signal if the downcross is not on oversold zone. Do you understand better what i need for the stochastic ? Date Time Of Last Edit: 2023-11-06 20:14:33
|
[2023-11-06 21:54:58] |
John - SC Support - Posts: 36237 |
Then you would need to add the following: CROSSFROMBELOW(ID4.SG2, ID4.SG1) So your overall formula would look like the following: =AND(C > ID1.SG1, C > ID2.SG1, C > ID3.SG1, ID4.SG1 < ID4.SG3, ID4.SG2 < ID4.SG3, CROSSFROMBELOW(ID4.SG2, ID4.SG1)) To be perfectly candid, we are not sure which line you wanted to cross which, so you may need to change the particular subgraphs, and there are also options for "CROSSFROMABOVE" and "CROSSOVER". You will find the references to these functions at the following link: https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#CROSSFROMABOVE_Function For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-06 22:48:45] |
User823328 - Posts: 27 |
Ok thanks a lot for the formula. In what study i have to write the formula ? On the "color bar based on alert condition" study ? If yes do i need to add two différents "color bar based on alert condition study" ? one for the sell signal and one for the buy signal ? |
[2023-11-07 00:15:47] |
Sierra_Chart Engineering - Posts: 17145 |
On the "color bar based on alert condition" study ? Yes. Yes. Yes.
If yes do i need to add two différents "color bar based on alert condition study" ? one for the sell signal and one for the buy signal ? Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-07 08:50:22] |
User823328 - Posts: 27 |
ok thanks a lot i have implemented the formula on the color based on alert conditions study and it's work well. this is possible to get the alert only at the clothe of the candle ? because for now the alert sound multiple time when the candle is forming and disappear if condition are not meet at the clothe.
|
[2023-11-07 16:11:29] |
John - SC Support - Posts: 36237 |
Refer to the following: Study/Chart Alerts And Scanning: Evaluate on Bar Close For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-07 20:01:46] |
User823328 - Posts: 27 |
Thanks sierra chart is very an awesome Platforms of trading thanks a lot for your hard work on this Platforms to be perfect. I have see it's possible to create automated trading using the spreadsheet system for trading study. If i use this exact same formula on the spreadsheet system for trading this will be correct ? |
[2023-11-07 21:04:49] |
John - SC Support - Posts: 36237 |
The Alerts and the Spreadsheets use different syntax, so you can not just copy the formula. Refer to the following for how to reference studies in the Spreadsheet studies: Working with Spreadsheets: References to Study Subgraph Columns when using the Spreadsheet Study For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-08 17:04:44] |
Sawtooth - Posts: 4118 |
You can use Alert syntax in the Trading System Based On Alert Condition study. Trading System Based on Alert Condition |
[2024-09-21 15:10:23] |
coachted - Posts: 328 |
How would i right a simple alert if price equals or crosses over the high of the day...
Date Time Of Last Edit: 2024-09-21 15:10:33
|
[2024-09-21 23:07:41] |
John - SC Support - Posts: 36237 |
If you are not already using a specific study to track the High of the day, then start by adding the "Daily OHLC" study and set the following Input: - Graph High and Low Historically: Yes On that study enter the following for your alert condition: =SG2 <> SG2[-1] Where SG2 is the High subgraph. This checks to see if the current value of the High subgraph is not equal to the previous value of the High subgraph, meaning that there has been a new high reached. You can hide the Daily OHLC study if you do not want to view it on your chart. If you put this alert on a different study, then you need to reference the ID of the Daily OHLC subgraph. If you are already using a study to get the Highest High, then use the same concepts from above to get your alert. 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: