Cryptotech91

Awesome Moving Averages

This script allows you to add up to four simple and exponential moving averages the the chart instead of adding 4 simple moving averages and 4 exponential moving averages individually.

The stronger lines are SMA's and the thinner lines are EMA's.
White - "1st SMA" and "1st EMA"
Green - "2nd SMA" and "2nd EMA"
Blue - "3rd SMA" and "3rd EMA"
Red - "4th SMA" and "4th EMA"

You can modify which moving averages are visible on the chart and also modify the period of the moving averages.
There are four periods which you can edit - each period applies to a pair of moving averages (a pair of SMA and EMA). For example: "1st MA Length" option applies to "1st SMA" and "1st EMA" etc.
 
In addition to that Awesome Moving Averages script allows you to keep the daily moving averages resolution on intraday charts.
For example - here we have only "1st SMA" and "1st EMA" enabled and we are viewing a daily chart:

Now if we have "Keep Daily MA Resolution On Intraday Periods" option enabled we would see the daily moving averages (SMA and EMA) on intraday periods. Here we are viewing a 4h chart:

If you disable this option you would see the moving averages on intraday charts with the intraday MA lengths as you expect:

"Visible MA's On Intraday Periods" option allows you to choose which MA's you would like to be visible on intraday charts if the "Keep Daily MA Resolution On Intraday Periods" option is enabled.

If you have any thoughts or ideas on how to improve the "Awesome Moving Averages" script then let me know!
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?