通达信新否极泰来指标公式

通达信3n1主图指标公式

通达信新否极泰来指标公式:

B1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

B2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

B3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;

B4:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;

M:=(LOW+HIGH+CLOSE)/3;

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=(SUM(IF(((HD>0) AND (HD>LD)),HD,0),5) );

DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),5);

stX:=(((DMP)*100)/TR);

FZX:=((DMM*100)/TR);

XXX:=(MA(((Abs((FZX-STX))/(FZX+STX)) * 100),3));

WJDB:=IF(((XXX>88) AND (STX<5.8)),25,0);

DRAWICON(WJDB=25,-5,9);

STICKLINE(B1<-7,5,0,3,0),COLOR0099FF;

STICKLINE(B2<-9,10,0,2.2,0),COLOR0066FF;

STICKLINE(B3<-11,15,0,1.4,0),COLOR0033FF;

STICKLINE(B4<-13,20,0,0.6,0),COLOR0000FF;

DRAWTEXT(B1<-7 AND B2<-9 AND B3<-11 AND B4<-13,18,'超跌'),COLORYELLOW;

STICKLINE(B1>10,0,-5,3,0),COLORFFFF33;

STICKLINE(B2>15,0,-10,2.2,0),COLORFFCC00;

STICKLINE(B3>20,0,-15,1.4,0),COLORFF9933;

STICKLINE(B4>25,0,-20,0.6,0),COLORFF6633;

DRAWTEXT(B1>10 AND B2>15 AND B3>20 AND B4>25,-18,'预警'),COLORYELLOW;

BL:(B1+B2+B3+B4)/2,LINETHICK2,COLORFF00FF;

BLMA:MA(BL,6),LINETHICK2,COLORCC0000;

DRAWTEXT(BL>50,BL-2,'◆谨慎'),COLORYELLOW;

DRAWTEXT(BL<-35,BL+2,'◆关注'),COLORYELLOW;

通达信抓起点指标公式