Untitled

 avatar
unknown
plain_text
a month ago
377 B
5
Indexable
//@version=2

study(title="FXLIONS MA Trigger", overlay=true)

func_hma(style, length)=>

    return = wma((2 * wma(style, length / 2)) - wma(style, length), round(sqrt(length)))

shortPeriod = input(100, title="HMA")

shortHMA = func_hma(close, shortPeriod)
current = shortHMA[0]
prev = shortHMA[1]

plot(shortHMA, color=current > prev ? green : red, linewidth=2, title="HMA")
Editor is loading...
Leave a Comment