CL PMA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Mreg36

//@version=5
plot(close)
indicator("CL PMA", overlay=true)

sma1_period = input(title="SMA1 Period", defval=14)
sma2_period = input(title="SMA2 Period", defval=30)
sma3_period = input(title="SMA3 Period", defval=50)

sma1 = ta.sma(hlc3, sma1_period)
sma2 = ta.sma(hlc3, sma2_period)
sma3 = ta.sma(hlc3, sma3_period)

colors1 = color.orange
colors2 = color.blue
colors3 = color.green

sma1_plot = plot(sma1, color=colors1)
sma2_plot = plot(sma2, color=colors2)
sma3_plot = plot(sma3, color=colors3)
