以下是通达信原创趋势指标
通达信原创趋势指标
源码
0;
5;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
AA:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;
BB:=MA(AA,5);
VAR4:=(2*CLOSE+HIGH+LOW)/4;
FF:=EMA(VAR4,233)*1;
DD:=FF*1.382;
XG:CROSS(H,FF);
XG1:CROSS(H,AA) AND AA>BB;
XG2:CROSS(H,DD);
DRAWTEXT(XG,1,'始'),COLORRED;
DRAWTEXT(XG,2,'开'),COLORRED;
DRAWTEXT(XG,3,'势'),COLORRED;
DRAWTEXT(XG,4,'趋'),COLORRED;
DRAWTEXT(XG1,1,'续'),COLORYELLOW;
DRAWTEXT(XG1,2,'延'),COLORYELLOW;
DRAWTEXT(XG1,3,'势'),COLORYELLOW;
DRAWTEXT(XG1,4,'趋'),COLORYELLOW;
DRAWTEXT(XG2,1,'飞'),COLORGREEN;
DRAWTEXT(XG2,2,'腾'),COLORGREEN;
DRAWTEXT(XG2,3,'势'),COLORGREEN;
DRAWTEXT(XG2,4,'趋'),COLORGREEN;