OPEN-SOURCE SCRIPT

Every single moving average (ALMA, EMA, HMA, KAMA, RMA, SMA...)

Actualizado
So you may be looking at the graph and thinking "this is a mess", and I agree.

The purpose of this script is to plot in the same graph every single type of moving average that I could think of, so you can find the ones that are better for your timeframe and for your asset. Once you add it, disable those types that doesn't seem to serve your purpose, until you can select one you like.

The average types are: ALMA, EMA, HMA, KAMA, RMA, SMA, SWMA, VIDYA, VWAP, VWMA, and WMA. Each one is ploted two times (except SWMA and VWAP), one with a short period, and another with a long, both of which you can configure.
Notas de prensa
Added an option to view where crossovers and crossunders happened. You need to select which MA type you want.
Notas de prensa
Fixed typo.
Notas de prensa
Yet another typo.
Notas de prensa
Ok this the last one I swear
Notas de prensa
Included FRAMA and made VIDYA actually working.
Notas de prensa
I made the adaptive MAs better at the beginning by using the start price instead of 0. You can also see how many crossovers and crossunders happened, and noew you can easily disable short and long MAs. I also generated new colors so now it looks even more like a unicorn's puke.
Notas de prensa
Included DEMA and LSMA. Also added an option to offset every average.
Notas de prensa
I made use of the new inline and group features on the input functions, so now they should be clearer and better organized.
Notas de prensa
I made some changes to the code to make it more readable.
Notas de prensa
Oops, wrong graph.
crossovercrossunderExponential Moving Average (EMA)HMALeast Squares Moving Average (LSMA)Moving AveragesrmaSimple Moving Average (SMA)sma

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad