Jay Multi SMA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Jay_king

//@version=5
indicator("Jay Multi SMA", overlay = true)

Lenghtsma1 = input.int(title = "SMA1", defval = 30, minval = 1, maxval = 200)
Lenghtsma2 = input.int(title = "SMA2", defval = 40, minval = 1, maxval = 200)
Lenghtsma3 = input.int(title = "SMA3", defval = 50, minval = 1, maxval = 200)
Lenghtsma4 = input.int(title = "SMA4", defval = 60, minval = 1, maxval = 200)
Lenghtsma5 = input.int(title = "SMA5", defval = 200, minval = 1, maxval = 200)

// SMA INDICATOR
SMA1 = ta.sma(close,Lenghtsma1)
SMA2 = ta.sma(close,Lenghtsma2)
SMA3 = ta.sma(close,Lenghtsma3)
SMA4 = ta.sma(close,Lenghtsma4)
SMA5 = ta.sma(close,Lenghtsma5)

//PLOT
plot(SMA1, color = color.new(color.green,0))
plot(SMA2, color = color.new(color.yellow,0))
plot(SMA3, color = color.new(color.white,0))
plot(SMA4, color = color.new(color.red,0))
plot(SMA5, color = color.new(color.fuchsia,0))