This script defines an indicator that calculates the 21 Exponential Moving Average (EMA) and the Average True Range (ATR) for a given period. It then computes the distance between the most recent closing price and the 21 EMA in terms of ATR units. If this distance is equal to or greater than 3 ATRs, a small green circle is plotted below the corresponding bar on the chart, indicating a potential reversal condition.
This script will plot a red circle above the candle when the distance is greater than or equal to 3 and the close is above the 21 EMA. It will also plot a green circle below the candle when the distance is less than or equal to 3 and the close is below the 21 EMA.
It is strongly recommended to adjust the ATR values and thoroughly back test this indicator for the specific instrument and time frame you intend to trade.
Will update the script with ATR bands to increase performance.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.