当前位置首页 > 通达信指标公式大全

主力专用版相对强度指标通达信

  来源:  

相对强度指标:=EMA(V,5);
通达信:=EMA(C,5);{高手指标公式网www.gs6699.com}
fdeee1:=ATAN((相对强度指标/REF(相对强度指标,1)-1)*100)*180/3.1416;
fdeee2:=ATAN((通达信/REF(通达信,1)-1)*100)*180/3.1416;
fdeee3:IF(fdeee1>30,fdeee1,0),COLOR0000FF,LINETHICK0;
fdeee4:IF(fdeee2>0,fdeee2,fdeee2),COLORFFFFFF,LINETHICK2;
fdeee5:=fdeee2>REF(fdeee2,1) AND fdeee1>80;
fdeee6: IF(CROSS(fdeee2,30),1,0),COLORFFFFFF,POINTDOT,LINETHICK0;
fdeee7:IF(fdeee2>45 AND fdeee5,10,0),COLOR00FFFF,POINTDOT,LINETHICK0;
fdeee8:IF(fdeee2>70 AND fdeee1>80,20,0),COLORFF00FF,POINTDOT,LINETHICK0;
fdeee9:IF(fdeee2>80 AND fdeee1>80,30,0),COLOR0000FF,POINTDOT,LINETHICK0;
WK:=fdeee2=LLV(fdeee2,3) AND fdeee2-HHV(fdeee2,4)<=0-50;
sseww1:IF(WK AND COUNT(fdeee7 OR fdeee8,6),0-30,0),COLOR00FF00;
sseww2:IF(fdeee2<0-75,0-50,0-75),COLORFF8800;
STICKLINE(fdeee1>30,fdeee1,30,0.1,0),COLOR0000FF;
STICKLINE(fdeee7,0,10,4,0),COLOR00FFFF;
STICKLINE(fdeee8,10,20,4,0),COLORFF00FF;
STICKLINE(fdeee9,20,30,4,0),COLOR0000FF;
DRAWTEXT(fdeee6,30, '↑'),COLORFFFFFF;
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,4,0),COLOR0000FF;
STICKLINE(N<0,0-75,0-75+N*2,4,0),COLORFFFF00;

2.jpg
高手公式网