通达信主力动态指标公式

MV5:=EMA(V,5);

MA5:=EMA(C,5);

MV5 角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;

MA5 角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;

量角:IF(MV5 角度>30,MV5 角度,0),COLOR0000FF,LINETHICK0;

价角:IF(MA5 角度>0,MA5 角度,MA5 角度),COLORFFFFFF,LINETHICK2;

IF(价角>REF(价角,1) AND 价角>=0,价角,DRAWNULL),COLORRED,LINETHICK2;

IF(价角<REF(价角,1) AND 价角>0,价角,DRAWNULL),COLOR00FF00,LINETHICK2;

QSXS:=MA5 角度>REF(MA5 角度,1) AND MV5 角度>80;

∠45↑: IF(CROSS(MA5 角度,30),1,0),COLORFFFFFF,POINTDOT,LINETHICK0;

买强:IF(MA5 角度>45 AND QSXS,10,0),COLOR00FFFF,POINTDOT,LINETHICK0;

防火:IF(MA5 角度>70 AND MV5 角

度>80,20,0),COLORFF00FF,POINTDOT,LINETHICK0;

卖疯:IF(MA5 角度>80 AND MV5 角

度>80,30,0),COLOR0000FF,POINTDOT,LINETHICK0;

WK:=MA5 角度=LLV(MA5 角度,3) AND MA5 角度-HHV(MA5 角度,4)<=0-50;

挖坑:IF(WK AND COUNT(买强 OR 防火,6),0-30,0),COLOR00FF00;

海底:IF(MA5 角度<0-75,0-50,0-75),COLORFF8800;

{以下设置副图显示方式}

STICKLINE(MV5 角度>30,MV5 角度,30,0.1,0),COLOR0000FF;

STICKLINE(买强,0,10,2,0),COLOR00FFFF;

STICKLINE(防火,10,20,2,0),COLORFF00FF;

STICKLINE(卖疯,20,30,2,0),COLOR0000FF;

DRAWTEXT(∠45↑,30, '↑'),COLORFFFFFF;

STICKLINE(∠45↑,0-90,30,0.1,0),COLOR00FFFF;

30,COLORFFFFFF;

{以下设置短线强弱提示}

M3:=MA(C,3);

M5:=MA(C,5);

N1:=BARSLAST(CROSS(M3,M5));

N2:=BARSLAST(CROSS(M5,M3));

N:=IF(N1<N2,N1+1,0-N2-1);

STICKLINE(N>0,0-75,0-75+N*2,2,0),COLOR0000FF;

STICKLINE(N<0,0-75,0-75+N*2,2,0),COLORFFFF00;

image.png

通达信主力动向指标公式

var1:=((close-ma(close,6))/ma(close,6)*100+(close-ma(close,24))/ma(close,

24)*100+(close-ma(close,32))/ma(close,32)*100)/3;

drawicon(var1<-9 and var1> ref(var1,1),3,7);

买入:var1<-9 and var1> ref(var1,1),colorred;

stickline(var1>20 and filter(var1< ref(var1,1),5),var1+5,0,7,1),color00ff00;

大顶:var1>20 and filter(var1< ref(var1,1),5),color00ff00;

stickline(var1>9 and filter(var1< ref(var1,1),5),var1+2,0,3,1),colorgreen;

短顶:var1>9 and filter(var1< ref(var1,1),5),colorgreen;

var2:=hhv(var1>20,10);

stickline(var2 and

cross((ref(high,1)+ref(low,1))/2,ma(close,20)+2*std(close,20)),var1,0,7,0),co

lorblue;

危险:var2 and

cross((ref(high,1)+ref(low,1))/2,ma(close,20)+2*std(close,20)),colorblue;

stickline(var2 and filter(var1< ref(var1,1),6) and

cross(ma(close,5),ma(close,2)),var1,0,7,0);

注意止损:var2 and filter(var1< ref(var1,1),6) and

cross(ma(close,5),ma(close,2));

stickline(var1<-20 and filter(var1> ref(var1,1),5),var1-5,0,7,1),coloryellow;

大底:var1<-20 and filter(var1> ref(var1,1),7),coloryellow;

stickline(var1<-9 and var1> ref(var1,1),var1-2,0,3,1),colorff00ff;

短底:var1<-9 and var1> ref(var1,1),colorff00ff;

持币区域:var1,colorfedcba;

持股区域:if(var1>0,var1,0),colorred;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。