Support Board
Date/Time: Sat, 18 Jan 2025 07:50:08 +0000
[User Discussion] - Alert when price crosses through the ichimoku kumo cloud
View Count: 2756
[2018-01-25 14:22:38] |
grantx - Posts: 244 |
Ive read through the alert documentation but just wondering if you could help with an alert for when price crosses through the ichimoku kumo cloud? See image http://www.sierrachart.com/image.php?Image=1516889628195.png Thanks. |
[2018-01-25 16:49:08] |
Sawtooth - Posts: 4154 |
Do you require that price enter the cloud from one side then exit it on the other side? If so, you'll need to use the Spreadsheet System/Alert study so that you can create a persistent 1 when it enters. Is the color of the cloud a consideration? If you need to use the spreadsheet study, you may also need to add the Renko Visual Open/Close Values study so that the spreadsheet has access to those values. |
[2018-01-25 21:10:28] |
grantx - Posts: 244 |
Thanks for answering tomgilb. Not necessary to cross from one side to the other. Basically only if it exits a cloud would I need the alert. I dont mind what the colour of the cloud is.
|
[2018-01-25 22:53:12] |
Sawtooth - Posts: 4154 |
Put this formula in the alerts tab of the Senkou Span A & B study: =OR( AND(ID0.SG23[-1]<MAX(SG1[-1],SG2[-1]),ID0.SG23>MAX(SG1,SG2)), AND(ID0.SG23[-1]>MIN(SG1[-1],SG2[-1]),ID0.SG23<MIN(SG1,SG2)) ) |
[2018-01-26 11:43:40] |
grantx - Posts: 244 |
Thank you tomgilb. Works perfectly. Really appreciate your help. |
[2018-01-31 10:35:58] |
grantx - Posts: 244 |
Hi tomgilb, what does this part do: ID0.SG23[-1] What is ID0? What is SG23? What is [-1] Thanks. |
[2018-01-31 14:23:19] |
Sawtooth - Posts: 4154 |
ID0 is the Main Price Graph. SG23 is the visual Renko close, which sometimes differs from the underlying close. [-1] is an offset representing the previous bar. Here is the documentation: Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart |
[2018-01-31 15:12:45] |
grantx - Posts: 244 |
Im not sure what Ive done wrong here. It wont fire on EURUSD or GBPUSD. Attached are my settings for GBP I haven't changed the code at all. http://www.sierrachart.com/image.php?Image=1517411289262.png |
[2018-02-01 15:35:57] |
Sawtooth - Posts: 4154 |
Use this formula instead: =OR( AND(CROSSOVER(ID0.SG23,ID1.SG1),ID1.SG1>ID1.SG2), AND(CROSSOVER(ID0.SG23,ID1.SG1),ID1.SG1<ID1.SG2), AND(CROSSOVER(ID0.SG23,ID1.SG2),ID1.SG1>ID1.SG2), AND(CROSSOVER(ID0.SG23,ID1.SG2),ID1.SG1<ID1.SG2)) Apparently the MAX and MIN functions don't always work in Simple Alert formulas. |
[2018-02-01 20:49:30] |
grantx - Posts: 244 |
Hey tomgilb Thanks for your help with this. Unfortunately that one doesnt work either. Please dont worry with this I dont want to waste your time. Ill try and figure this out you have given me a good starting point. |
[2018-02-01 21:06:30] |
Sawtooth - Posts: 4154 |
It works for me on the EURUSD. You might try setting the Value Format to a smaller increment. |
[2018-02-02 13:23:06] |
grantx - Posts: 244 |
Still not working. Im using flex renko and Ive tried 15-8-4 10-5-2 50-25-5 Ive also tried the standard renko with 5 10 and 15 but no luck. Alerts are firing if I put a simple line cross alert so I bet this is something simple. What are your renko settings? |
[2018-02-02 19:29:21] |
Sawtooth - Posts: 4154 |
The formula in post #9 works for me with any of the Renko or Flex Renko settings you mention, on the EURUSD. Add the Color Bar Based On Alert study and put the formula in post #9 on its Alerts tab. This will give you a visual of every alert so you can quickly see if it's working properly. The formula in post #9 assumes your Senkou Span A & B study is ID1. Please verify this, and edit the formula if needed. I forgot to mention that. |
[2018-02-03 01:06:40] |
Sawtooth - Posts: 4154 |
Thinking about this more, use this formula instead: =OR( AND(CROSSFROMBELOW(ID0.SG23,ID1.SG1),ID1.SG1>ID1.SG2), AND(CROSSFROMABOVE(ID0.SG23,ID1.SG1),ID1.SG1<ID1.SG2), AND(CROSSFROMABOVE(ID0.SG23,ID1.SG2),ID1.SG1>ID1.SG2), AND(CROSSFROMBELOW(ID0.SG23,ID1.SG2),ID1.SG1<ID1.SG2)) where the Senkou Span A & B study is ID1. |
[2018-02-03 16:52:50] |
grantx - Posts: 244 |
Wasnt working for me no matter what I did so I added Senkou SpanA and Senkou SpanB studies separately and then referenced them instead. Now its working! Really appreciate your help tomgilb. Here is your formula with references to the other studies. =OR( AND(CROSSFROMBELOW(ID0.SG23,ID4.SG1),ID4.SG1>ID3.SG1), AND(CROSSFROMABOVE(ID0.SG23,ID4.SG1),ID4.SG1<ID3.SG1), AND(CROSSFROMABOVE(ID0.SG23,ID3.SG1),ID4.SG1>ID3.SG1), AND(CROSSFROMBELOW(ID0.SG23,ID3.SG1),ID4.SG1<ID3.SG1)) |
To post a message in this thread, you need to log in with your Sierra Chart account: