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

大智慧黄金七线主图指标公式

<p>DRAWRECTABS(0,0,30,32,rgb(250,60,80)),color000099;<br />
DRAWRECTABS(0,30,30,33,rgb(250,250,80)),colorred;<br />
DRAWTEXTABS(2,15,'肖晓山'),colorFFFFFF,LINETHICK1;<br />
DRAWTEXTABS( 0,45 , bkname),COLORFF00FF;<br />
DRAWTEXTABS(0,30,'流通盘:'+CAPITAL/100+'万股,利润增长:'+FINANCE2(10)+'%。每股收益:'+FINANCE2(3)+'元。' ),COLORFF00FF;<br />
p:=hhv(h,75);<br />
p1:=llv(l,75);<br />
h1:p-(p-p1)*0.191;<br />
h3:p-(p-p1)*0.35765;<br />
h5:p-(p-p1)*0.5;<br />
h6:p-(p-p1)*0.6423;<br />
h8:p-(p-p1)*0.809,COLORBROWN;<br />
绝底:p-(p-p1);<br />
绝顶:p1+(p-p1),COLORRED;<br />
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);<br />
DEA:=EMA(DIFF,9);<br />
MACD :=2*(DIFF-DEA);<br />
drawicon(ref(macd,1)=llv(macd,3),l,7),align1;<br />
V1:=EMA(EMA(EMA(CLOSE,8),13),55);<br />
V2:=(REF(HIGH,1)+REF(LOW,1))/2;<br />
V3:=MA(CLOSE,20)+2*STD(CLOSE,20);<br />
DRAWICON(CROSS(V2,V3),HIGH*1.035,10);<br />
DRAWTEXT(CROSS(V2,V3),HIGH*1.02,'绝顶'),COLORblue;<br />
V4:=REF(CLOSE,1);<br />
V5:=SMA(MAX(CLOSE-V4,0),7,1)/SMA(ABS(CLOSE-V4),7,1)*100;<br />
V6:=CROSS(79,V5);<br />
V7:=FILTER(V6,4);<br />
DRAWICON(V7,HIGH*1.035,10);<br />
DRAWTEXT(V7,HIGH*1.02,'绝顶'),COLORgreen;<br />
R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;<br />
K:=SMA(R,3,1);<br />
D:=SMA(K,3,1);<br />
DRAWICON(CROSS(D,K),HIGH*1.035,10);<br />
DRAWTEXT(CROSS(D,K),HIGH*1.02,'逃'),COLORgreen;<br />
a1:=ref(c,5)&lt;ref(O,5) and ref(c,4)&lt;ref(O,4) and ref(c,3)&lt;ref(O,3);<br />
DRAWTEXT((a1 AND all(C&gt;O,2)) OR (a1 AND C&gt;O AND REF(C,1)&lt;REF(O,1) AND REF(C,2)&gt;REF(O,2)),L*0.965,'抄底');</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧黄金七线主图指标公式