Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 09:28:25 +0000



[User Discussion] - Alert when price touches moving average

View Count: 1968

[2018-10-03 10:39:02]
User300798 - Posts: 23
Hi,

I want to create an alert formula to tell me when price touches a 20 period MA. I have looked at the Study Chart Alerts and Scanning documentation but I'm not familiar with programming so wasn't able to understand how to construct this formula. I assume it is pretty easy so any help would be appreciated!

Many thanks.
[2018-10-04 13:06:16]
bradh - Posts: 853
If the Moving average study is ID1, then add this alert formula: =if(C=ID1.SG1,1,0) or just =(C=ID1.SG1)

(Corrected)
Date Time Of Last Edit: 2018-10-04 16:16:19
[2018-10-04 15:34:38]
Xfanman1 - Posts: 320
L is Bar Low, you'll probably need to use C which is Close/Last to make it non directional.

You could also use the the CROSSOVER function like:

=CROSSOVER(C,ID1.SG1)

--
Scott
[2018-10-05 07:06:36]
User300798 - Posts: 23
hi bradh/Xfanman,

Thanks for your help. I'd like to be alerted as soon as price touches the MA rather than on the close of a bar so I will have a play around to see if I can achieve that. Would the LASTTRADE achieve this? For example =(LASTTRADE=ID4.SG1).

Many thanks.
[2018-10-05 13:30:33]
bradh - Posts: 853
Uncheck Evaluate on Bar Close.
[2018-10-11 07:09:27]
User300798 - Posts: 23
Thanks for help on this. One other question - when this alert triggers I only get the audible alert and not the alert window telling me which alert condition has been triggered on which symbol. I get the window when a symbol alert triggers but not this study alert. Any idea how to activate the alert window for study alerts?

Many thanks.
[2018-10-11 13:38:52]
User300798 - Posts: 23
hi again,

Another issue I'm having is that I only get the stuy alert if the chart is open in my chartbook at the time the alert triggers. I was hoping I would receive alerts for all the symbols I trade whether open in a chartbook or not. With the symbol alerts I receive price alerts even if the symbol is not open in my chartbook. Is this because the alert is triggered in the quoteboard rather than from the charts?

Is there a way to have study alerts trigger even if the symbol is not open in a chartbook?

Many thanks.

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

Login

Login Page - Create Account