ihzx 发表于 2021-8-21 14:02:00

大智慧保花短线指标公式

<p>一号线:eMA(CLOSE,144);<br />
工作线:eMA(CLOSE,14),colorred;<br />
二号线:eMA(CLOSE,25);<br />
三号线:eMA(CLOSE,318);<br />
生命线:eMA(CLOSE,453),colorred,linethick2;<br />
五号线:eMA(CLOSE,550);<br />
六号线:eMA(CLOSE,610);<br />
七号线:eMA(CLOSE,730);<br />
八号线:eMA(CLOSE,888);<br />
九号线:eMA(CLOSE,99),colorgreen;<br />
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));<br />
DEA:=EMA(DIFF,9);<br />
MACD:=0.90*(DIFF-DEA);<br />
tj:=(diff&gt;=dea);<br />
tj1:=(diff&gt;=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&lt;dea,h,l,0.5,0),colorf0f000;<br />
stickline(diff&lt;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&lt;-0.04 and (c-ref(c,1))/ref(c,1)&gt;=0.03) or (cross(sk,sd) and sk&lt;=-0.14 )<br />
or (cross(sk,sd) and sk&lt;=0.05 and (v/ma(v,5)&gt;2 or c/ref(c,1)&gt;0.035)) ,l*0.99,'短线'),colorgreen;<br />
stickline((cross(sk,sd) and sk&lt;-0.04 and (c-ref(c,1))/ref(c,1)&gt;=0.03) or (cross(sk,sd) and sk&lt;=-0.14 )<br />
or (cross(sk,sd) and sk&lt;=0.05 and (v/ma(v,5)&gt;2 or c/ref(c,1)&gt;0.035)),h,l,0.5,0),colorred;<br />
stickline((cross(sk,sd) and sk&lt;-0.04 and (c-ref(c,1))/ref(c,1)&gt;=0.03) or (cross(sk,sd) and sk&lt;=-0.14 )<br />
or (cross(sk,sd) and sk&lt;=0.05 and (v/ma(v,5)&gt;2 or c/ref(c,1)&gt;0.035)),o,c,10,1),linethick3,colorred;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧保花短线指标公式