郎少 发表于 2009-12-25 11:22

<DIV class=t_msgfont id=postmessage_63473636>SQX:=(C-MA(CLOSE,13))*100;<BR>DIFF:EMA(MA(SQX,7),1),COLORWHITE;<BR>DEA:EMA(DIFF,7),COLORYELLOW;<BR>MACD:(DIFF-DEA)*2,COLORSTICK;<BR>PARTLINE(15,CROSS(DIFF,DEA) AND DIFF&lt;-0.1),COLORYELLOW,LINETHICK4,CROSSDOT;<BR>低位金叉:IF(CROSS(DIFF,DEA) AND DIFF&lt;-0.1,15,0),COLORYELLOW,LINETHICK0;<BR>JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA&gt;=0));<BR>PARTLINE(28,CROSS(DIFF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=2,21)=1),COLORFF00FF,LINETHICK4,CROSSDOT;<BR>二次金叉:IF(CROSS(DIFF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=2,21)=1,28,0),COLORFF00FF,LINETHICK0;<BR>A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));<BR>PARTLINE(40,REF(CLOSE,A1+1)&gt;CLOSE AND DIFF&gt;REF(DIFF,A1+1) AND CROSS(DIFF,DEA)),COLORRED,LINETHICK4,CROSSDOT;<BR>底背离:IF(REF(CLOSE,A1+1)&gt;CLOSE AND DIFF&gt;REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,0),COLORRED,LINETHICK0;<BR>势: DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN;{,COLORRED;}<BR>A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));<BR>顶背离:=REF(CLOSE,A2+1)&lt;CLOSE AND REF(DIFF,A2+1)&gt;DIFF AND CROSS(DEA,DIFF);<BR>PARTLINE(66,REF(CLOSE,A2+1)&lt;CLOSE AND REF(DIFF,A2+1)&gt;DIFF AND CROSS(DEA,DIFF)),COLORF08000,LINETHICK4,CROSSDOT;<BR>顶背离_:IF(REF(CLOSE,A2+1)&lt;CLOSE AND REF(DIFF,A2+1)&gt;DIFF AND CROSS(DEA,DIFF),66,0),COLORF08000,LINETHICK0;<BR>压: DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFBB99;<BR>A3:=CROSS(DIFF,DEA) AND DEA&lt;0;<BR>PARTLINE(53,FILTER(COUNT(A3,21)=2,10)),COLORWHITE,LINETHICK4,CROSSDOT;<BR>零下二次金叉_:IF(FILTER(COUNT(A3,21)=2,10),53,0),COLORWHITE,LINETHICK0;<BR>DRAWICON(CROSS(DIFF,DEA) ,DIFF,7),LAYER0,ALIGN1;<BR>DRAWICON(CROSS(DEA,DIFF) , DEA,8),LAYER0,ALIGN1;<BR>金叉:if(CROSS(DIFF,DEA),diff,0),color00ff00,stick,linethick1;<BR>死叉:if(CROSS(DEA,DIFF),diff,0),colorff0099,stick,linethick1;</DIV>

雨宸 发表于 2009-12-25 12:16

谢朗少....................

旺旺精彩 发表于 2010-4-10 10:31

谢朗少....................

股少浪子 发表于 2019-4-26 19:44

感谢分享,学习~~

荐股之王追随者 发表于 2020-2-15 21:08


感谢分享,学习~~
页: [1]
查看完整版本: [大智慧L2] MACD强化指标