SeaSide420

ZendicatoR

Hull MA cross & Daily close cross



+ 3 MA's
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("ZendicatoR", overlay=true)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)
keh=input(title="Double HullMA Cross",type=integer,defval=14, minval=1)
che1=input(title="MA 1",type=integer,defval=34,minval=1)
che2=input(title="MA 2",type=integer,defval=144,minval=1)
che3=input(title="MA 3",type=integer,defval=377,minval=1)
amnt=input(title="TP ($)",type=integer,defval=4200,minval=1)
wma1=wma(close,che1)
wma2=wma(close,che2)
wma3=wma(close,che3)
A=security(tickerid, 'D', close)
B=security(tickerid, 'D', close[1])
C=A>B?green:red
D=wma2>wma3?green:red
plot(wma1,style=line,color=C,linewidth=4,title="MA1")
p1=plot(wma2,style=line,color=D,title="MA2")
p2=plot(wma3,style=line,color=D,title="MA3")
fill(p1, p2, color=D, transp=75)
n2ma=2*wma(close,round(keh/2))
nma=wma(close,keh)
diff=n2ma-nma,sqn=round(sqrt(keh))
n2ma1=2*wma(close[2],round(keh/2))
nma1=wma(close[2],keh)
diff1=n2ma1-nma1,sqn1=round(sqrt(keh))
n1=wma(diff,sqn)
n2=wma(diff1,sqn)
E=n1>n2?green:red
plot(n1,style=line,color=E,title="hull_MA1")
plot(n2,style=line,color=E,title="Hull_MA2")
plot(cross(n1, n2) ? n1 : na, style = circles,color=E, linewidth = 3,title="Hull_MA Cross")
plot(cross(A, B) ? A : na, style = circles,color=C, linewidth = 5,title="DailyClose Cross")
Akhmatbek
5 months ago
Thank you. May I can use this indicator on other pair?
Reply
SeaSide420 PRO Akhmatbek
5 months ago
yes
Reply
karabogerald
5 months ago
Another one, thanks man.
Reply
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