DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;低位金叉:=CROSS(DIFF,DEA) AND DIFF<-;STICKLINE(低位金叉,0,,6,0),COLORYELLOW;DRAWTEXT(低位金叉,,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(二次金叉,0,,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*,1) ;DRAWTEXT(二次金叉,,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;DRAWTEXT(底背离,,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4; DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,,'三全项'),COLOR0000FF,LINETHICK2;
关键字:指标,DEA,金叉,DIFF,AND,背离,
1
精选ppt
良友精准macd(无未来)),与主力同步,真正的蚂蝗盯庄,死缠烂打(大智慧L2公式)
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF,MID);MACD:(DIF-DEA)*2,COLORSTICK;买:STICKLINE(CROSS(DIF,DEA),DEA,0,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(DIF,DEA),0,,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(DIF,DEA),,' 买'),COLORFFFFCC;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00BBFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0011BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORBB11BB;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFBB11;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;MM:=IF(MACD< 0,MACD,0); JJ:=MM> REF(MM,1); ZZ:=REF(JJ,1)=1; 准备:=(JJ AND ZZ)*DEA;
JH:=HHV(MAX(K,MAX(D,J)),250);DH:=HHV(MAX(DIF,DEA),250);SH:=INTPART(JH/DH)/2;DIFF50:=SH*DIF+50;DEA50:=SH*DEA+50;缩头:=IF(*(DIFF50-DEA50)>0 AND REF(*(DIFF50-DEA50),1)>REF(*(DIFF50-DEA50),2) AND *(DIFF50-DEA50)< REF(*(DIFF50-DEA50),1),1,0);缩脚:=IF(*(DIFF50-DEA50)<0 AND REF(*(DIFF50-DEA50),1)< REF(*(DIFF50-D
《实战指标编程》PPT课件 来自淘豆网m.daumloan.com转载请标明出处.