HARKAT momentom
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © kkaa562

//@version=5
indicator("HARKAT",timeframe="",timeframe_gaps=true)
len=input.int(10,minval=1,title="LENGTH")
src=input(hl2)
harkat=ta.ema(high-low,len)*100/(src[1]*.5+src[len]*.5)+(high[1]-low[1])*100/(src[1]*.5+src[1]*.5)


plot(.5*harkat,color=#0a0ec2,title="h")
