判断趋势的很不错的指标-精品通达信指标公式源码分享
DI:=EMA(CLOSE,12)-EMA(CLOSE,26);DC:=EMA(DI,240);
D1:=EMA(DI,5);E1:=DI-DC;F1:=ABS(E1);
D2:=EMA(DI,10);E2:=D1-DC;F2:=ABS(E2);
D3:=EMA(DI,20);E3:=D2-DC;F3:=ABS(E3);
D4:=EMA(DI,30);E4:=D3-DC;F4:=ABS(E4);
D5:=EMA(DI,45);E5:=D4-DC;F5:=ABS(E5);
D6:=EMA(DI,60);E6:=D5-DC;F6:=ABS(E6);
D7:=EMA(DI,90);E7:=D6-DC;F7:=ABS(E7);
D8:=EMA(DI,100);E8:=D7-DC;F8:=ABS(E8);
D9:=EMA(DI,120);E9:=D8-DC;F9:=ABS(E9);
D0:=EMA(DI,150);E0:=D9-DC;F0:=ABS(E0);
DA:=EMA(DI,180);EA:=D0-DC;FA:=ABS(EA);
DB:=EMA(DI,200);EB:=DA-DC;FB:=ABS(EB);
EC:=DB-DC;FC:=ABS(EC);
FX:E1+E2+E3+E4+E5+E6+E7+E8+E9+E0+EA+EB+EC,COLORRED,LINETHICK2;
JS:F1+F2+F3+F4+F5+F6+F7+F8+F9+F0+FA+FB+FC,STICK,COLORMAGENTA,LINETHICK2;
IF(BACKSET(JS<REF(JS,1),1),JS,DRAWNULL),STICK,COLORGREEN,LINETHICK2;
IF(BACKSET(FX>=REF(FX,1),1),FX,DRAWNULL),COLORYELLOW,LINETHICK2;
0,COLORGRAY;
1.5,COLORGRAY,LINETHICK2;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!