通达信黑马起涨点指标公式通达信公式
2017-07-26 来源:网络 编辑:翔博软件
DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:MACD. MACD ,NODRAW; STICKLINE((DIF=DEA),DIF,DEA,3,0)COLORFF5050; STICKLINE((DIFDEA),DEA,DIF,3,0)COLOR50FF50; W
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:"MACD.MACD",NODRAW;
STICKLINE((DIF>=DEA),DIF,DEA,3,0)COLORFF5050;
STICKLINE((DIF<DEA),DEA,DIF,3,0)COLOR50FF50;
W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;
W2:STICKLINE(MACD<0,MACD,0,3,1),COLORCYAN;
A:STICKLINE((DIF>=0 AND DIF>=DEA),0,MACD,2,0),COLOR8050FF;
DRAWICON((DIF>=0 AND DIF>=DEA),0-0.05,23);
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
AA:=DIF>=0 AND DIF>=DEA AND ((超B+大B)-(超S+大S))>0 AND CROSS(C,MA(C,50));
DRAWTEXT(AA,DEA-0.15,'★黑码起涨点★');