OPEN-SOURCE SCRIPT

Multiple EMAs BY Abhijit DGP

Description for Multiple EMAs Pine Script
Multiple EMAs BY Abhijit DGP
Overview
This Pine Script calculates and plots four Exponential Moving Averages (EMAs) on a TradingView chart: the 9-period EMA, 21-period EMA, 50-period EMA, and 200-period EMA. These EMAs are commonly used by traders to identify trends, potential support and resistance levels, and to make trading decisions.

Features
Customizable Input Lengths:

The script allows users to input custom lengths for the EMAs directly from the TradingView interface. The default lengths are set to 9, 21, 50, and 200 periods, which can be adjusted based on the user's preference.

Calculations:

The script uses the ta.ema function to calculate the EMAs for the specified periods. The EMA is a type of moving average that places a greater weight and significance on the most recent data points.

Plotting:

Each EMA is plotted on the chart with distinct colors and line widths for easy identification:

The 9-period EMA is plotted in blue.

The 21-period EMA is plotted in red.

The 50-period EMA is plotted in green.

The 200-period EMA is plotted in orange.

This color-coding helps traders quickly distinguish between the different EMAs on the chart.
Moving Averages

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script 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 nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité