Support Board
Date/Time: Sat, 04 May 2024 04:52:24 +0000
[Programming Help] - Need help creating an alert
View Count: 1231
[2020-04-19 13:21:10] |
User657265 - Posts: 19 |
Hello, I would like to create an alert on a set of rules and I would like this alert to be made only on the first bar. If anyone can help me, it would be super nice. The alert would be on a renko graph: - 1st condition: change of color of the closed candle (from red to green) - 2nd condition: the price must be above the senkou span A - 3rd condition: The chikou span must be above the price thank you in advance for your help Cedric |
alerte renko.PNG / V - Attached On 2020-04-19 13:19:35 UTC - Size: 37.06 KB - 283 views |
[2020-04-19 16:00:05] |
Sawtooth - Posts: 3993 |
Question about your 3rd condition: The Chikou Span study has no value at the current bar, or for the previous 25 bars (because it is displaced -26 bars). Do you want to use its [-26] value for all bars from then until the current bar, and use the plotted value for all bars [-26] and before? (The final 2 arrows in your pic are at bars closing below the -26 Chickou Span.) |
[2020-04-19 16:24:58] |
Ackin - Posts: 1865 |
tomgilb) You're right. The condition is unnecessary. This lagging MA is mostly used differently. Perhaps it is also the idea of the author's text above and missing a few words in the text. People working with this tool manually monitor mainly whether the curve often crosses through the graph, but certainly not its position relative to the Close of the last bar. Date Time Of Last Edit: 2020-04-19 16:31:43
|
[2020-04-19 17:42:32] |
User657265 - Posts: 19 |
and if we remove the third condition
|
[2020-04-19 18:32:56] |
Sawtooth - Posts: 3993 |
and if we remove the third condition
Try this:Green to red, close below Span A: =AND(ID0.SG22[-1]<ID0.SG23[-1],ID0.SG22>ID0.SG23,C<ID1.SG1) Red to green, close above Span A: =AND(ID0.SG22[-1]>ID0.SG23[-1],ID0.SG22<ID0.SG23,C>ID1.SG1) where: ID0.SG22 is the Renko open ID0.SG23 is the Renko close ID1.SG1 is the Span A. Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables |
[2020-04-19 19:25:58] |
User657265 - Posts: 19 |
Super is exactly what I was looking for. Thank you |
[2020-04-19 19:33:53] |
User657265 - Posts: 19 |
Now I want to add another variable if possible. It would be necessary to add the chikou span (id2.sg1) if it is above the price when the candle is not red to green and below the price when the candle goes from green to red. thank you in advance |
[2020-04-19 20:34:24] |
Sawtooth - Posts: 3993 |
It would be necessary to add the chikou span
You will need to answer my question in post #2.If you don't extend the displaced Chikou Span to the current bar, it's not possible to use it in an alert at the current bar. IOW, how do you want to use the Chikou Span in your alert since it is displaced 26 bars in the past? Date Time Of Last Edit: 2020-04-19 20:37:23
|
[2020-04-19 21:12:20] |
User657265 - Posts: 19 |
ok thank you for your return. the formula you gave me already fills me
|
[2020-04-22 21:32:50] |
User657265 - Posts: 19 |
Hello, I will still need your help, indeed it would be worth an alert that would start with the same conditions of the alert that you gave me except that it must continue until the next color change. I hope it's clear
|
InkedInkedalerte renko_LI.jpg / V - Attached On 2020-04-22 21:32:36 UTC - Size: 793.28 KB - 262 views |
[2020-04-23 00:09:56] |
Sawtooth - Posts: 3993 |
except that it must continue until the next color change. I hope it's clear
If you want an alert at every bar, use these:Green to red, close below Span A: =AND(ID0.SG22>ID0.SG23,ID0.SG23<ID1.SG1) Red to green, close above Span A: =AND(ID0.SG22<ID0.SG23,ID0.SG23>ID1.SG1) If you want an alert at only the color change, use these corrected formulas instead: Green to red, close below Span A: =AND(ID0.SG22[-1]<ID0.SG23[-1],ID0.SG22>ID0.SG23,ID0.SG23<ID1.SG1) Red to green, close above Span A: =AND(ID0.SG22[-1]>ID0.SG23[-1],ID0.SG22<ID0.SG23,ID0.SG23>ID1.SG1) Date Time Of Last Edit: 2020-04-23 00:32:18
|
[2020-04-23 11:25:04] |
User657265 - Posts: 19 |
Thank you
|
[2021-11-12 11:42:55] |
User657265 - Posts: 19 |
Hello, I am coming to you because I need help creating an alert. When I put the conditions, this one appears on all the candles whereas I would like it only on the first candle. Can you help me. Thank you Here is the formula I use : =AND(C>ID2.SG1,ID2.SG1[-1]<=ID2.SG1,ID11.SG1>=ID12.SG1,C>=ID15.SG2) ID2.SG1 : T3 ID11.SG1 : EMA50 ID12.SG1 : EMA144 ID15.SG2 : CLOUD. tHANKS |
[2021-11-12 13:27:28] |
Sawtooth - Posts: 3993 |
Your formula has 4 conditions. Do you want an alert when any of the 4 become TRUE while the other 3 are already TRUE? IOW, the first time all 4 are TRUE. Or do you want to limit it to just one (or more) of the conditions becoming TRUE, while the others are already TRUE? |
[2021-11-12 13:44:45] |
User657265 - Posts: 19 |
Whenever the 4 conditions are true. I'm sending you a screenshot. thanks in advance |
Capture d’écran 2021-11-12 144224.png / V - Attached On 2021-11-12 13:44:34 UTC - Size: 41.33 KB - 122 views |
[2021-11-12 14:03:10] |
Sawtooth - Posts: 3993 |
Try this: =OR( AND(C<=ID2.SG1[-1],C>ID2.SG1, ID2.SG1[-1]<=ID2.SG1, ID11.SG1>=ID12.SG1, C>=ID15.SG2), AND(C>ID2.SG1, ID2.SG1[-2]>ID2.SG1[-1],ID2.SG1[-1]<=ID2.SG1, ID11.SG1>=ID12.SG1, C>=ID15.SG2), AND(C>ID2.SG1, ID2.SG1[-1]<=ID2.SG1, ID11.SG1[-1]<ID12.SG1[-1],ID11.SG1>=ID12.SG1, C>=ID15.SG2), AND(C>ID2.SG1, ID2.SG1[-1]<=ID2.SG1, ID11.SG1>=ID12.SG1, C<ID15.SG2[-1],C>=ID15.SG2)) Note that each of the AND statements has a transition of one of the conditions, and it will alert when any of the AND statements make that transition. Date Time Of Last Edit: 2021-11-12 15:11:44
|
[2021-11-12 14:17:26] |
User657265 - Posts: 19 |
I just tried your formula, it doesn't seem to have an error, however the alerts are not displayed on the chart
|
[2021-11-12 15:12:56] |
Sawtooth - Posts: 3993 |
I corrected the formula in post 16. Try it now.
|
[2021-11-12 17:09:57] |
User657265 - Posts: 19 |
Super thank you, it works, on the other hand sometimes, the alert does not appear and I do not know why. In any case, thank you for your sharing. I send you a screenshot of the day of November 2 with green vertical lines or the alert is not triggered |
Capture d’écran 2021-11-12 180906.png / V - Attached On 2021-11-12 17:09:50 UTC - Size: 27.65 KB - 139 views |
[2021-11-12 18:47:27] |
Sawtooth - Posts: 3993 |
sometimes, the alert does not appear and I do not know why.
Set the Value Format of the T3 study settings from Inherited to 0.001 or smaller.Study/Chart Alerts And Scanning: The Effect of the Value Format on Identifier Values You may need to change the Value Format on the others also. |
[2021-11-12 18:52:28] |
User657265 - Posts: 19 |
I'll try. Thank you very much for your time
|
To post a message in this thread, you need to log in with your Sierra Chart account: