tongue1

ALMAQuality

77 0 3
Transformation coordinate
show the price position relative to alma
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("ALMAQuality")
source=close
pip=syminfo.mintick*10
windowsize1 = input(title="Window Size", type=integer, defval=9)
offset1 = input(title="Offset", type=float, defval=0.85)
sigma1 = input(title="Sigma", type=float, defval=6)
al=alma(source, windowsize1,offset1, sigma1)
oc=input(false,title="show only Close and Open")

h=(oc?max(open,close)-al:high-al)/pip
l=(oc?min(open,close)-al:low-al)/pip
o=(open-al)/pip
c=(close-al)/pip
plotbar(o,h,l,c,"",color=close>open?green:red)
b1=input(10,title="border1")
b2=input(20,title="border2")
plot(b1,title='b1up')
plot(-b1,title='b1dn')
plot(b2,title='b2up')
plot(-b2,title='b2dn')
hline(0)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out