bstashio

Moving Averages With Cross Alerts

A simple way to add up to 5 moving averages with optional crossover/crossunder alerts.


Available options for Moving Average Type are:
  • SMA
  • EMA (default)
  • HMA
  • RMA
  • WMA
  • VWMA
  • VWAP
  • ALMA


By default, 5 moving averages are enabled and set to the following:
  • MA1 set to 5
  • MA2 set to 13
  • MA3 set to 50
  • MA4 set to 200
  • MA5 set to 800


Each moving average has the following options:
  • Enable/Disable
  • Source (default is close)
  • Length
  • Color
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?