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;
}