以下是牛长熊短主图及选股指标公式

M5:MA(C,5);
 M10:MA(C,10);
 M20:MA(C,20);
 M60:MA(C,60);
 TJ:=M5>M10 AND M10>M20 AND M20>M60 AND M5>=REF(M5,1) AND M10>=REF(M10,1) AND M20>=REF(M20,1)AND M60>=REF(M60,1);
 TJ1:=RANGE((C-REF(C,1))/REF(C,1)*100,-5,5);
 T:=BARSLAST(CROSS(TJ AND TJ1,0.5));
 TJ3:=C>=M5 AND O<M5;
 TJ4:=DOWNNDAY(MIN(C,O),2);
 TJ5:=M5/M20<1.1;
 XG:=TJ3 AND EVERY(TJ AND TJ1,T+1) AND T>12 AND TJ4 AND TJ5;
 STICKLINE(XG,C,O,2,0),COLORGREEN;
 STICKLINE(XG,H,L,0,0),COLORGREEN;
 DRAWTEXT(XG,L*0.95,’爬山踏青’),COLORGREEN;
 {
选股公式:
M5:=MA(C,5);
 M10:=MA(C,10);
 M20:=MA(C,20);
 M60:=MA(C,60);
 TJ:=M5>M10 AND M10>M20 AND M20>M60 AND M5>=REF(M5,1) AND M10>=  REF(M10,1) AND M20>=REF(M20,1)AND M60>=REF(M60,1);
 TJ1:=RANGE((C-REF(C,1))/REF(C,1)*100,-5,5);
 T:=BARSLAST(CROSS(TJ AND TJ1,0.5));
 TJ3:=C>=M5 AND O<M5;
 TJ4:=DOWNNDAY(MIN(C,O),2);
 TJ5:=M5/M20<1.1;
 XG:TJ3 AND EVERY(TJ AND TJ1,T+1) AND T>12 AND TJ4 AND TJ5;
 }
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。