Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 11:24:08 +0000



[Programming Help] - ALERT CONDITION HELP: Simple 3 Condition Alert Needed

View Count: 1289

[2020-03-04 19:40:11]
User873998 - Posts: 11
Hi Team,

Just needing something that I'm sure is quite simple, but alas I've been unable to figure out regardless of attempt after stubbornly failed attempt.

I am needing two alerts

BUY ALERT SETUP CONDITIONS:
1- Price Above 200 SMA
2- Slow Stochastics below 30 + Crossing UP
3- 1st Green Colored Bar Post

*Note these are renko-ashi bars. and it needs to be a GREEN renko ashi bar post as depicted in the chart and NOT a traditional candlestick bar (See Screenshots below for reference)

BUY SETUP EXAMPLE: https://prnt.sc/rbn2ad
=======================================================

SELL ALERT SETUP CONDITIONS:
1- Price Below 200 SMA
2- Slow Stochastics avove 70 + Crossing DOWN
3- 1st Red Colored Bar Post

SELL SETUP EXAMPLES: https://prnt.sc/rbn47z

I have also attached the chart hoping that helps :)

Thanks in advance!
Date Time Of Last Edit: 2020-03-04 20:01:39
attachmentRenko Ashi + SS USD.cht - Attached On 2020-03-04 19:39:16 UTC - Size: 1.01 MB - 252 views
[2020-03-04 21:34:05]
User183724 - Posts: 183
I dont use renko ashi so cant help with that piece however, Alerts are pretty easy once you get the hang of it.

Anyone whos going to help with this is going to need to know the ID number and SGx number of your studies.

If you want, check out this video (and several others by the author) He goes into great detail on how to set up alerts.

https://www.youtube.com/watch?v=zj-vN_1-u2M
[2020-03-05 01:50:42]
User873998 - Posts: 11
Bummer!! What's the best way for a person to get help on this particular issue then??

How can someone set an alert based on the color of the candle?? Be it a red one or a green one??
[2020-03-05 04:07:52]
Sawtooth - Posts: 3989
You access the HA bar colors by referencing the HA study's OHLC subgraphs, and compare opens to closes.

Try this:

Long alert formula:
=AND(ID5.SG4[-1]<ID5.SG1[-1],ID5.SG4>ID5.SG1,CROSSFROMBELOW(ID12.SG1,ID12.SG2),ID12.SG1<ID12.SG4)

Short alert formula:
=AND(ID5.SG4[-1]>ID5.SG1[-1],ID5.SG4<ID5.SG1,CROSSFROMABOVE(ID12.SG1,ID12.SG2),ID12.SG1>ID12.SG3)
[2020-03-05 04:59:12]
User873998 - Posts: 11
@TOMGILB IT WORKED!! OMG. Thank you for taking the time to respond. I appreciate it.

So I'm trying to qualify the Long alert by adding a condition that price must be above the 200SMA. Likewise Price must be below 200SMA for a proper short alert. (200SMA = ID10.SG1)

I have tried adding ,(C>=ID10.SG1) to your long alert formula, and keep getting syntax errors.

Would you mind helping me understand how I would add that condition?? Seriously, thank you for taking the time.
[2020-03-05 09:26:26]
User873998 - Posts: 11
@tomgilb after countless attempts, and flurries of frustration I believe I finally got it! I would have NEVER been able to get the HA bar colors thing on my own so once again thank yoU!
[2020-03-05 13:20:48]
Sawtooth - Posts: 3989
Sorry, I forgot to include the 200SMA.

The HA close is ID5.SG4 so these would be the formulas:

Long alert formula:
=AND(ID5.SG4[-1]<ID5.SG1[-1],ID5.SG4>ID5.SG1,CROSSFROMBELOW(ID12.SG1,ID12.SG2),ID12.SG1<ID12.SG4,ID5.SG4>=ID10.SG1)

Short alert formula:
=AND(ID5.SG4[-1]>ID5.SG1[-1],ID5.SG4<ID5.SG1,CROSSFROMABOVE(ID12.SG1,ID12.SG2),ID12.SG1>ID12.SG3,ID5.SG4<=ID10.SG1)
[2020-03-05 18:19:32]
User873998 - Posts: 11
@tomgilb seriously, much appreciated for you to take the time to help me with that.

Question: would you be open to helping me build out alert formulas such as the one above for a fee in the future??
You were very prompt when you didn't have to be and I really appreciate it.
[2020-03-05 18:35:59]
Sawtooth - Posts: 3989
You can contact me here:
https://www.sawtoothtrade.com/contact.html

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account