以下是通达信均线粘合主图和选股公式
通达信均线粘合主图和选股公式
看到一个均线粘合主图,但没有参数 于是应同学要求根据原作者思路从新整理 与大家分享
出票不多 11月份四支票 上图是其中一只 如果需要中线 长线选股源码
均线粘合主图
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;
评论(0)