通达信MA黑马主图指标公式

通达信撒鱼网指标公式

通达信MA黑马主图指标公式:

M1:=5;

M2:=10;

M3:=20;

M4:=60;

MA1:MA(CLOSE,M1),COLORMAGENTA;

MA2:MA(CLOSE,M2),COLORCYAN;

MA3:MA(CLOSE,M3),COLORRED;

MA4:MA(CLOSE,M4),COLORYELLOW;

IF(MA3>=REF(MA3,1),MA3,DRAWNULL),COLORRED,LINETHICK2;

IF(MA3<REF(MA3,1),MA3,DRAWNULL),COLORGREEN,LINETHICK2;

IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORYELLOW,LINETHICK2;

IF(MA4<REF(MA4,1),MA4,DRAWNULL),COLORWHITE,LINETHICK2;

DRAWTEXT(crOSS(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,10),'拐点'),COLORWHITE;

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);

stICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(涨停,H,L,0,0),COLORYELLOW;

ZT:=C/REF(C,1)>1.099 AND C=H;

AA:=REF(C,BArslAST(ZT AND CURRBARSCOUNT<60));

Z1:=STRCAT(HYBLOCK,'----');

Z2:=STRCAT(Z1,FGBLOCK);

Z3:=STRCAT(Z2,DYBLOCK);

Z4:=STRCAT(Z3,'----');

DRAWTEXT_FIX(1,0.00,0.06,0,' 【主概】:')COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;

DRAWTEXT_FIX(1,0.07,0.24,0,EXTERNSTR(0,14))COLORYELLOW;

MA250:=EMA(C,905),COLORCYAN,LINETHICK1;

黑马线:EMA(REF(MA250,1),200),COLOR0080FF,LINETHICK2;

DRAWTEXT(CROSS(C,黑马线),黑马线,'突破'),COLORRED;

通达信方便直观的财务指标公式