Jurik MA [lastguru]
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © lastguru, 2022. All right reserved

//@version=5
indicator("Jurik MA by lastguru", "JMA [lastguru]", overlay=true)
import lastguru/CommonFilters/2 as cf

////////////
// Inputs //
////////////

src = input(close, title="Source", inline="1")

Length = input.int(title="Length", defval=7)
Phase = input.int(title="Phase", defval=50)

float out = cf.jma(src, Length, Phase)

//////////////
// Plotting //
//////////////

plot(out, "JMA", color=color.yellow, linewidth=2)
