gsptZ1:=MA(CLOSE,20);
gsptZ2:=MA(CLOSE,40);
gsptZ3:=MA(CLOSE,60);
gspt1:=OPEN<gsptZ1 OR OPEN<gsptZ2 OR OPEN<gsptZ3;
gspt2:=C>MAX(gsptZ1,MAX(gsptZ2,gsptZ3));
gspt3:=V/MA(V,30)>1.2;
gspt4:=C/REF(C,1)>1.049;
gsptZ4:=EXPMA(EXPMA(CLOSE,50),1);
M125:=MA(CLOSE,125);
M240:MA(CLOSE,240);
ZF:=(C-REF(C,1))/REF(C,1)*100;
HHSS:=HSL;
gsptZ5:=C>gsptZ4 AND gsptZ4>M125 AND M125>M240 AND ZF>6.5 AND HHSS>6;
gsptZ6:=gspt1 AND gspt2 AND gspt3 AND gspt4 AND gsptZ5;
M5:MA(CLOSE,5);
M10:MA(CLOSE,10);
M30:MA(CLOSE,30);
M60:MA(CLOSE,60);
M120:MA(CLOSE,120);
A:=MAX(MAX(MAX(M5,M10),MAX(M30,M60)),M120);
B:=MIN(MIN(MIN(M5,M10),MIN(M30,M60)),M120);
gspt:=O<=B AND C>=A;
只做:=CODELIKE('60')||CODELIKE('00')||CODELIKE('30');
基本面:=FINANCE(30)>0.25;
百战功成:=gspt AND gsptZ6 AND 只做 AND 基本面;
{画买入K线与止损线Z}
STICKLINE(百战功成,O,C,1,0),COLORYELLOW;
DRAWTEXT(百战功成,L*0.97,'百战功成'),COLORYELLOW;
DRAWSL(百战功成,L,0,10,0),COLORYELLOW;