大智慧梦幻通道副图指标
源码
P:=(3*C+H+L+O)/6;
X:=EMA(EMA(EMA(EMA(P,2),2),5),5);
X1:=REF(X,1);
X5:=REF(X,5);
X9:=REF(X,9);
X11:=REF(X,11); X12:=REF(X,12); X13:=REF(X,13);
A1:=X>X1;
A7:=X>X7;
A11:=X>X11;
涨势级别:A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+A11+A12+A13,COLOR0000FF,LINETHICK0;
B1:=X<X1;B2:=X<X2;B3:=X<X3;B4:=X<X4;B5:=X<X5;B6:=X<X6;
B7:=X<X7;B8:=X<X8;B9:=X<X9;B10:=X<X10;
B11:=X<X11;B12:=X<X12;B13:=X<X13;
跌势级别:B1+B2+B3+B4+B5+B6+B7+B8+B9+B10+B11+B12+B13,COLOR00FF00,LINETHICK0;
DIFF:涨势级别-跌势级别,COLORFF00FF,LINETHICK0;
STICKLINE(DIFF>=REF(DIFF,1),DIFF,0,4,0),COLOR0000FF;
STICKLINE(DIFF<REF(DIFF,1) OR DIFF=-13,DIFF,0,4,0),COLOR00FF00;
STICKLINE(C,0,0,6,0),COLORRED;
STICKLINE(C,0,0,6,0),COLORFFAA00;