OPEN-SOURCE SCRIPT
5 EMAs (HL2): 9, 20, 40, 100, 200

//version=5
indicator("5 EMAs (HL2): 9, 20, 40, 100, 200", overlay=true)
// Punto medio de la vela
hl2 = (high + low) / 2
// EMAs basadas en HL2
ema9 = ta.ema(hl2, 9)
ema20 = ta.ema(hl2, 20)
ema40 = ta.ema(hl2, 40)
ema100 = ta.ema(hl2, 100)
ema200 = ta.ema(hl2, 200)
// Dibujar las EMAs
plot(ema9, title="EMA 9 (HL2)", color=color.red, linewidth=1)
plot(ema20, title="EMA 20 (HL2)", color=color.orange, linewidth=1)
plot(ema40, title="EMA 40 (HL2)", color=color.blue, linewidth=1)
plot(ema100, title="EMA 100 (HL2)", color=color.green, linewidth=1)
plot(ema200, title="EMA 200 (HL2)", color=color.purple, linewidth=2)
indicator("5 EMAs (HL2): 9, 20, 40, 100, 200", overlay=true)
// Punto medio de la vela
hl2 = (high + low) / 2
// EMAs basadas en HL2
ema9 = ta.ema(hl2, 9)
ema20 = ta.ema(hl2, 20)
ema40 = ta.ema(hl2, 40)
ema100 = ta.ema(hl2, 100)
ema200 = ta.ema(hl2, 200)
// Dibujar las EMAs
plot(ema9, title="EMA 9 (HL2)", color=color.red, linewidth=1)
plot(ema20, title="EMA 20 (HL2)", color=color.orange, linewidth=1)
plot(ema40, title="EMA 40 (HL2)", color=color.blue, linewidth=1)
plot(ema100, title="EMA 100 (HL2)", color=color.green, linewidth=1)
plot(ema200, title="EMA 200 (HL2)", color=color.purple, linewidth=2)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.