均线粘合主图
N:=0.01;
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
MA90:MA(C,90);
MA120:MA(C,120);
MA240:MA(C,240);
DQNH:=ABS(MA5/MA10-1)<N AND
ABS(MA5/MA20-1)<N AND
ABS(MA5/MA60-1)<N AND
ABS(MA5/MA90-1)<N AND
ABS(MA5/MA120-1)<N AND
ABS(MA5/MA240-1)<N;
DRAWTEXT(DQNH AND FILTER(DQNH,2),L*0.98,'短线')COLORRED;
ZQNH:=ABS(MA20/MA60-1)<N AND
ABS(MA20/MA90-1)<N AND
ABS(MA20/MA120-1)<N AND
ABS(MA60/MA90-1)<N AND
ABS(MA90/MA120-1)<N;
DRAWTEXT(ZQNH AND FILTER(ZQNH,2),L*0.95,'中线') COLORYELLOW;
CXNH:=ABS(MA60/MA120-1)<N AND
ABS(MA60/MA90-1)<N AND
ABS(MA60/MA240-1)<N AND
ABS(MA90/MA120-1)<N AND
ABS(MA90/MA240-1)<N AND
ABS(MA120/MA240-1)<N;
DRAWTEXT(CXNH AND FILTER(ZQNH,2),H*1.1,'长线')COLORGREEN;
短线选股
N:=0.01;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA90:=MA(C,90);
MA120:=MA(C,120);
MA240:=MA(C,240);
DQNH:=ABS(MA5/MA10-1)<N AND
ABS(MA5/MA20-1)<N AND
ABS(MA5/MA60-1)<N AND
ABS(MA5/MA90-1)<N AND
ABS(MA5/MA120-1)<N AND
ABS(MA5/MA240-1)<N;
XG:DQNH;