望高手帮我把以下的公式,改为大智慧的公式:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),COLORwhite;
DEA : EMA(DIFF,9),COLORYELLOW;
MACD : 2*(DIFF-DEA),colorSTICK;
STICKLINE((MACD > 0),0,MACD,2,0),COLORCC0033;
STICKLINE((MACD > 0),0,MACD*0.9,2,0),COLOREE0033;
STICKLINE((MACD > 0),0,MACD*0.8,2,0),COLORFF1133;
STICKLINE((MACD > 0),0,MACD*0.7,2,0),COLORFF3333;
STICKLINE((MACD > 0),0,MACD*0.6,2,0),COLORFF5533;
STICKLINE((MACD > 0),0,MACD*0.5,2,0),COLORFF7733;
STICKLINE((MACD > 0),0,MACD*0.4,2,0),COLORFF9933;
STICKLINE((MACD > 0),0,MACD*0.3,2,0),COLORFFBB33;
STICKLINE((MACD > 0),0,MACD*0.2,2,0),COLORFFDD33;
STICKLINE((MACD > 0),0,MACD*0.1,2,0),COLORFFFF33;
STICKLINE((MACD < 0),0,MACD,2,0),COLOR0000CC;
STICKLINE((MACD < 0),0,MACD*0.9,2,0),COLOR0000EE;
STICKLINE((MACD < 0),0,MACD*0.8,2,0),COLOR0011FF;
STICKLINE((MACD < 0),0,MACD*0.7,2,0),COLOR0033FF;
STICKLINE((MACD < 0),0,MACD*0.6,2,0),COLOR0055FF;
STICKLINE((MACD < 0),0,MACD*0.5,2,0),COLOR0077FF;
STICKLINE((MACD < 0),0,MACD*0.4,2,0),COLOR0099FF;
STICKLINE((MACD < 0),0,MACD*0.3,2,0),COLOR00BBFF;
STICKLINE((MACD < 0),0,MACD*0.2,2,0),COLOR00DDFF;
STICKLINE((MACD < 0),0,MACD*0.1,2,0),COLOR00FFFF;
强度:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背: DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORLIRED,LINETHICK3;
DRAWTEXT(底背离,DIFF,'底背'),COLOR0000FF;
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),COLORBLUE,LINETHICK3;
DRAWTEXT(顶背离,DIFF,'顶背'),COLORGREEN;
0; |