Mastering ATR: Wilder Smoothing for Enhanced Trading Insights

Mike 2025.10.23 22:03 39 0 0
Attachments

Good morning, fellow traders!

If you run into any issues with this code, whether it’s a glitch or due to MQL5 updates, just drop me a line, and I’ll fix it up for you. Thanks!

Looking for more indicators? You can check out all my multi-timeframe codes in CodeBase or the Marketplace by simply searching for "William210". There’s both free and paid stuff available!


Why This Code Matters

The Average True Range (ATR) indicator, crafted by J. Welles Wilder back in 1978, is a key tool for traders to gauge the volatility of an asset. By averaging the largest True Ranges over a specified period, it provides insights into price movements and helps identify potential trading opportunities.

It’s worth noting that the original ATR didn’t include any smoothing techniques.

Wilder Smoothing came into play later on, designed to smooth out the fluctuations of the ATR indicator, making it much easier to analyze. Essentially, it’s a simple moving average applied to ATR values, typically over a 14-period timeframe.


Wishing You Success with This Code!

If you find this code helpful, don’t forget to give it a star! And feel free to add me as a friend to be the first to know when my latest codes hit the CodeBase or Marketplace.

I’ve also penned down other handy codes over in CodeBase:

I also offer plenty of multi-timeframe smoothing options in the Marketplace!

From simple averages to more complex ones like EMA, SMA, and even volume-weighted averages such as VWMA and VEMA—there's something for everyone.

Have ideas for new codes? I’m all ears! You can request them on this thread.

ATR without iATR() with smoothing Wilder by William210

List
Comments 0