Ninorigo

Custom Moving Average (EMA & SMA)

This script is a custom visualization tool to plot 4 Moving Averages (MA).

Each MA is customizable; you can:
  • enable (disable) the plot of MA;
  • select whether the MA is an EMA or an SMA ;
  • the length;
  • the source (open, close, ...);
  • the offset value (default is 0).

Note:
  • The 1st MA is an EMA with length 50.
  • The others MAs are SMA with length 9, 30 and 100 respectively.
Notes de version: Now, you can choice the following type of averages:
  • EMA
  • SMA
  • VWMA
  • TEMA

Note:
TEMA is the acronym of Triple Exponential Moving Average.

The formula and calculation for TEMA is:
TEMA =3∗EMA1 − 3∗EMA2 + EMA3

where:
EMA1 is the Exponential Moving Average (EMA)
EMA2 is the EMA of EMA1
​EMA3 is the EMA of EMA2
Notes de version: New version of script.

The Arnaud Legoux Moving Average (ALMA) is implemented. The ALMA indicator is a superior moving average as compared to the Exponential Moving and Simple Moving Averages.
The objective of the Arnaud Legoux Average is to minimize the noise and produce a more reliable signal than the conventional moving averages. The indicator (ALMA) removes small price fluctuations and also enhances the trend by applying a moving average (MA) twice, once from left to right, and once from right to left.
Script open-source

Dans le plus pur esprit de TradingView, l'auteur de ce texte l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur ! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par les règles internes. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Commentaires

Can you add, TEMA and VWMA for me please?
Répondre
Ninorigo GarethSA
@GarethSA, Sure.
Stay tuned.
Répondre
GarethSA Ninorigo
@Ninorigo, Thanks and is this in the latest pinescript code V4?
Répondre
Ninorigo GarethSA
@GarethSA, Yes. It's the latest version.
Répondre
GarethSA Ninorigo
@Ninorigo,
When can you add those others ? Also everyone says ALMA is difficult to add but maybe you can aswell please?
Répondre
Ninorigo GarethSA
@GarethSA, Hey, my friend. Updated script in which I implemented TEMA and VWMA. :-)
Répondre
GarethSA Ninorigo
@Ninorigo, Thank you a TON
Répondre
GarethSA Ninorigo
@Ninorigo, .......and if you REALLY BORED or in a lockdown please add ALMA
Répondre
Ninorigo GarethSA
@GarethSA, :-D :-D Stay tuned.
Répondre
Ninorigo GarethSA
@GarethSA, ALMA is here :-) :-)

Please, check the script whether is all ok.
Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Amis référés Coins Mes tickets au support Centre d'aide Messages privés Chat Se Déconnecter