OPEN-SOURCE SCRIPT

Many Moving Averages

Atualizado
This script allows you to add two moving averages to a chart, where the type of moving average can be chosen from a collection of 15 different moving average algorithms. Each moving average can also have different lengths and crossovers/unders can be displayed and alerted on.

The supported moving average types are:

  • Simple Moving Average ( SMA )
  • Exponential Moving Average ( EMA )
  • Double Exponential Moving Average ( DEMA )
  • Triple Exponential Moving Average ( TEMA )
  • Weighted Moving Average ( WMA )
  • Volume Weighted Moving Average ( VWMA )
  • Smoothed Moving Average ( SMMA )
  • Hull Moving Average ( HMA )
  • Least Square Moving Average/Linear Regression ( LSMA )
  • Arnaud Legoux Moving Average ( ALMA )
  • Jurik Moving Average ( JMA )
  • Volatility Adjusted Moving Average ( VAMA )
  • Fractal Adaptive Moving Average ( FRAMA )
  • Zero-Lag Exponential Moving Average ( ZLEMA )
  • Kauman Adaptive Moving Average ( KAMA )


Many of the moving average algorithms were taken from other peoples' scripts. I'd like to thank the authors for making their code available.
  • JayRogers
    Multi Time Frame MA Duplicates [Colour Switch]
  • Alex Orekhov (everget)
    Jurik Moving Average
  • Alex Orekhov (everget)
    Kaufman Adaptive Moving Average
  • Joris Duyck (JD)
    Volatility Adjusted Moving Average - JD
  • nemozny
    FRAMA (Ehlers true modified calculation)
  • Shizaru
    Fractal Adaptive Moving Average (real one)
  • KobySK
    Koby's ZLEMA MACD and KAMA signal
  • Jurik Research and Consulting for inventing the JMA.
Notas de Lançamento
Replaced crosses with triangles and made them a little bit smaller, in order to make them visually less distracting, yet still easily visible.
Notas de Lançamento
Added ALMA to the dropdown
almaJMALeast Squares Moving Average (LSMA)Moving AveragesTriple Exponential Moving Average (TEMA)VAMAZero Lag Exponential Moving Average (ZLEMA)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal