jmosullivan

EMA Levels, Multi-Timeframe

jmosullivan Updated   
The exponential moving average (EMA) tracks price over time, giving more importance to recent price data than simple moving average (SMA). EMAs for larger timeframes are generally considered to be stronger supports/resistances for price to move through than smaller timeframes. This indicator allows you to specify two different EMA lengths that you want to track. Additionally, this indicator allows you to display not just the EMA levels of your currently viewed timeframe on the chart, but also shows the EMA levels of up to 4 different timeframes on the same chart. This allows you to quickly see if multiple EMA levels are aligning across different timeframes, which is an even stronger indication that price is going to meet support or resistance when it meets those levels on the chart. There are a lot of nice configuration options, like:

  • Ability to customize the EMA lengths you want to track
  • Style customization (color, thickness, size)
  • Hide any timeframes/levels you aren't interested in
  • Labels on the chart so you can tell which plots are the EMA levels
  • Optionally display the plot as a horizontal line if all you care about is the EMA level right now
Release Notes:
Modified script to optionally switch to simple moving averages instead of exponential moving averages. Changed all associated labels, etc.
Release Notes:
Overhaul of entire indicator that brings it up to date with the following improvements:

  • Fixed bug that caused lower timeframe MAs to calculate incorrectly when on the daily timeframe and above
  • Improved performance (fewer request.security calls)
  • Updated to use our standardized libraries
  • Improved configuration & appearance
Release Notes:
Code cleanup
Release Notes:
A couple of minor improvements:
  • Added smoother lines for higher timeframe plots with "Gaps" option.
  • Added option to hide lower timeframe plots when on higher timeframe charts.
Release Notes:
Bugfix: SMA levels were not calculating correctly.

I release TradingView indicators and libraries designed to make you a better trader. For detailed info about them, head over to improve.trading
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?