OPEN-SOURCE SCRIPT

5 EMAs (HL2): 9, 20, 40, 100, 200

77
//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)

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.