OPEN-SOURCE SCRIPT

SMA 20 and 50 with ATR Volatility

This indicator combines the analysis of two SMAs (20 and 50) with a volatility filter using ATR (Average True Range). It identifies long and short entry signals based on SMA crossovers while filtering out sideways markets using ATR. Volatility levels are categorized into low, medium, and high, with each level color-coded on the chart for easy identification (green for low, yellow for medium, and red for high). The indicator also visualizes entry points with triangles and dynamically adjusts price levels based on ATR. It helps traders make decisions based on trend direction and market volatility.
Average True Range (ATR)Simple Moving Average (SMA)Trend Analysis

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer