短线工作线主图叠加(飞狐)
<p>ma5:ema(c,5),colorwhite;<br />工作线:ema(c,14),colorf00ff0,linethick1;<br />
二号线:ema(c,25),color00ff00,linethick1;<br />
九号线:eMA(CLOSE,99),linethick1;<br />
MA120:eMA(CLOSE,120),linethick1;<br />
生命线:eMA(CLOSE,453),linethick1,colorred;<br />
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));<br />
DEA:=EMA(DIFF,9);<br />
MACD:=0.90*(DIFF-DEA);<br />
tj:=(diff>=dea);<br />
tj1:=(diff>=0);<br />
stickline(tj,h,l,0.5,0),COLORyellow;<br />
stickline(tj,o,c,4,0),COLORyellow;<br />
stickline(tj1 and tj,h,l,0.5,0),colorf00ff0;<br />
stickline(tj1 and tj,o,c,4,1),colorf00ff0;<br />
stickline(diff<dea,h,l,0.5,0),colorf0f000;<br />
stickline(diff<dea,o,c,4,0),colorf0f000;<br />
Var1:=(CLOSE*2+HIGH+LOW)/4;<br />
SK:= EMA(Var1,13)-EMA(Var1,73);<br />
SD:= EMA(SK,2);<br />
drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,'短线'),colorred;<br />
stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;<br />
stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,6,1),linethick3,colorred;</p>
<p></p>
<p> </p>
页:
[1]