EMA TrendSurfer - RamRapolu
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © RamRapolu
//@version=5
indicator('EMA TrendSurfer', overlay=true)
ema4 = ta.ema(close, 4)
ema6 = ta.ema(close, 6)
ema8 = ta.ema(close, 8)
ema12 = ta.ema(close, 12)
ema15 = ta.ema(close, 15)
ema18 = ta.ema(close, 18)
ema21_middle = ta.ema(close, 21)
ema30 = ta.ema(close, 30)
ema35 = ta.ema(close, 35)
ema40 = ta.ema(close, 40)
ema45 = ta.ema(close, 45)
ema50 = ta.ema(close, 50)
ema60 = ta.ema(close, 60)

plot(series=ema4, color=color.new(color.blue, 0), linewidth=2)
plot(series=ema6, color=color.new(color.blue, 0), linewidth=2)
plot(series=ema8, color=color.new(color.blue, 0), linewidth=2)
plot(series=ema12, color=color.new(color.blue, 0), linewidth=2)
plot(series=ema15, color=color.new(color.blue, 0), linewidth=2)
plot(series=ema21_middle, color=color.new(color.yellow, 0), linewidth=2)
plot(series=ema30, color=color.new(color.red, 0), linewidth=2)
plot(series=ema35, color=color.new(color.red, 0), linewidth=2)
plot(series=ema40, color=color.new(color.red, 0), linewidth=2)
plot(series=ema45, color=color.new(color.red, 0), linewidth=2)
plot(series=ema50, color=color.new(color.red, 0), linewidth=2)
plot(series=ema60, color=color.new(color.green, 0), linewidth=2)
