How To Create an EMA Touch Alert?


1
1

I’ve found with numerous backtests that a pullback to the 50 EMA (Exponential Moving Average) has a high probability of reversing to the long-side. When I see this move, I ALWAYS buy. Waiting for this to happen, if ever, on short timeframes (1 minute), can be emotionally exhausting. I’m a day trader, and I will literally sit for hours and hours waiting for this setup. An alert would be ideal.

Pete, do you know how to create an alert when price pulls back to a moving average line?

Example:

Attachments:
RESOLVED
Marked as spam
Posted by (Questions: 4, Answers: 1)
Asked on November 14, 2020 10:44 am
186 views
1
Private answer

I just figured this out. It was SUPER simple. Code provided below:

low crosses below MovAvgExponential("length" = 50)

Marked as spam
Posted by (Questions: 4, Answers: 1)
Answered on November 14, 2020 11:00 am
Excellent! Thanks for the post and taking the time to provide your solution.
( at November 14, 2020 11:25 am)
Is there a way to put an offset function to this? For example, I want to be notified when the distance between 50MA and price is 5% of price. (Gives me some time to prepare instead of reacting when price hits a moving average.) is it something that I would have to code? Thanks!!
( at March 4, 2021 9:52 am)