EduardoMattje

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

EduardoMattje Telah dikemas kini   
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.
Nota Keluaran:
Added an option to view where crossovers and crossunders happened. You need to select which MA type you want.
Nota Keluaran:
Fixed typo.
Nota Keluaran:
Yet another typo.
Nota Keluaran:
Ok this the last one I swear
Nota Keluaran:
Included FRAMA and made VIDYA actually working.
Nota Keluaran:
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.
Nota Keluaran:
Included DEMA and LSMA. Also added an option to offset every average.
Nota Keluaran:
I made use of the new inline and group features on the input functions, so now they should be clearer and better organized.
Nota Keluaran:
I made some changes to the code to make it more readable.
Nota Keluaran:
Oops, wrong graph.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?