OPEN-SOURCE SCRIPT

EMA 20/50/100/200

आपकी दी गई Pine Script, TradingView के लिए एक तकनीकी इंडिकेटर तैयार करती है जो विभिन्न अवधि की एक्सपोनेंशियल मूविंग एवरेज (EMA) को चार्ट पर प्रदर्शित करती है।

इंडिकेटर का शीर्षक:

indicator(title="EMA 20/50/100/200", overlay=true): यह लाइन इंडिकेटर का नाम "EMA 20/50/100/200" निर्धारित करती है और यह बताती है कि इसे चार्ट पर कीमतों के ऊपर दिखाया जाएगा।
EMA की परिभाषा:

shortest = ta.ema(close, 20): 20-पीरियड का EMA।
short = ta.ema(close, 50): 50-पीरियड का EMA।
longer = ta.ema(close, 100): 100-पीरियड का EMA।
longest = ta.ema(close, 200): 200-पीरियड का EMA।
ये सभी लाइनें विभिन्न अवधि के EMA की कीमतों को वेरिएबल्स में सहेजती हैं, जो बाद में चार्ट पर दिखाई जाएंगी।

EMA की प्लॉटिंग:

plot(shortest, color=color.new(color.black, 0), linewidth=2): 20 EMA को काले रंग में, मोटाई 2 के साथ दिखाता है।
plot(short, color=color.new(color.blue, 0), linewidth=2): 50 EMA को नीले रंग में, मोटाई 2 के साथ दिखाता है।
plot(longer, color=color.new(color.green, 0), linewidth=2): 100 EMA को हरे रंग में, मोटाई 2 के साथ दिखाता है।
plot(longest, color=color.new(color.red, 0), linewidth=2): 200 EMA को लाल रंग में, मोटाई 2 के साथ दिखाता है।
English:
The provided Pine Script creates a technical indicator for TradingView that displays various periods of Exponential Moving Averages (EMA) on the chart.

Indicator Title:

indicator(title="EMA 20/50/100/200", overlay=true): This line sets the indicator's name as "EMA 20/50/100/200" and specifies that it will be displayed on top of the price chart.
EMA Definition:

shortest = ta.ema(close, 20): 20-period EMA.
short = ta.ema(close, 50): 50-period EMA.
longer = ta.ema(close, 100): 100-period EMA.
longest = ta.ema(close, 200): 200-period EMA.
These lines store the EMA values for different periods in variables, which will later be displayed on the chart.

Plotting the EMAs:

plot(shortest, color=color.new(color.black, 0), linewidth=2): Plots the 20 EMA in black with a thickness of 2.
plot(short, color=color.new(color.blue, 0), linewidth=2): Plots the 50 EMA in blue with a thickness of 2.
plot(longer, color=color.new(color.green, 0), linewidth=2): Plots the 100 EMA in green with a thickness of 2.
plot(longest, color=color.new(color.red, 0), linewidth=2): Plots the 200 EMA in red with a thickness of 2.
Exponential Moving Average (EMA)

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