通达信老鼠仓副图指标
源码
GJ:=AMOUNT/VOL/100;
MA5:MA(GJ,5),COLORRED;
MA13:MA(GJ,13);
MA60:=MA(C,60);
MA90:=MA(C,90);
MA120:=MA(CLOSE,120);
AA:=CROSS(MA(C,5),MA(C,20))AND CROSS(MA(C,5),MA(C,30))AND CROSS(MA(C,5),MA(C,60));
BB:=MA(C,60)>MA(C,10)AND CROSS(MA(C,10),MA(C,30))AND MA(C,30)>MA(C,20)AND ABS(MA(C,60)-MA(C,20))/MA(C,20)<0.05;
CC:=MA(C,30)>MA(C,5)AND CROSS(MA(C,5),MA(C,20))AND MA(C,20)>MA(C,10);
DD:=ABS((MA(C,5)-MA(C,10))+(MA(C,10)-MA(C,20))+(MA(C,20)-MA(C,30)))<0.02 AND MA(C,5)>REF(MA(C,5),1)AND MA(C,10)>REF(MA(C,10),1);
EE:=MA(C,20)>MA(C,5)AND CROSS(MA(C,5),MA(C,10))AND MA(C,10)>MA(C,60)AND ABS(MA(C,20)-MA(C,60))/MA(C,60)<0.05;
FF:=AA OR BB OR CC OR DD OR EE;
AA1:=AMOUNT/V;
BB1:=L
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L
EE1:=V
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,L*0.99,' 老鼠仓'),COLORYELLOW;
STICKLINE(FF1,H,L,0.5,0),COLORMAGENTA;
STICKLINE(FF1,O,C,7,0),COLORMAGENTA;
644511419.jpg
|