Login Page - Create Account

Support Board


Date/Time: Mon, 30 Dec 2024 17:47:58 +0000



[User Discussion] - Problem with Alert by crossing EMA

View Count: 1006

[2014-12-28 17:08:48]
nicktrader - Posts: 723
I'd like to have a sound alert if the price crosses an EMA. I am using this formula: - =AND(SG1 <= H, SG1 >= L.

The attached file show a M5 chart with an EMA10

For bar no 1 I got a correct alert because it was crosses directly.

Bar no 2 is the problem. As you can see the green bar before the EMA was much higher as the bar. Bar no 2 open and dropped immediately. In that case the bar did not cross the EMA but I got an alert when the EMA hit the bar before it closed.

The big problem is that the EMA is running with the price in every single second.

I need a formula only when the bar crosses directly the EMA and not the EMA crosses the bar.

Many thanks for your help.




imageFDax 2014-12-19 EMA.png / V - Attached On 2014-12-28 16:51:32 UTC - Size: 8.75 KB - 385 views
[2014-12-28 20:18:19]
Sawtooth - Posts: 4144
Try this:
=CROSSOVER(C,SG1)

This will alert when the Last (close) price crosses the EMA, compared to the Close price of the previous bar.
[2014-12-29 15:09:52]
nicktrader - Posts: 723
Many thanks, tomgilb. It works.

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

Login

Login Page - Create Account