M5:MA(C,5); M10:MA(C,10); M20:MA(C,20); M60:MA(C,60); A:=M5>=M60 AND M10>=M60 AND M20>=M60; T:=BARSLAST(CROSS(A,0.5)); JD:=(ATAN((M60/REF(M60,T)-1)*100)*180/3.1415926); ZF:=(C-REF(C,T+1))/REF(C,T+1)*100; LL:=MIN(MIN(M5,M10),M20); TJ1:=EVERY(LL>M60,T); TJ:=V=HHV(V,60) AND C>REF(C,1)*1.08 AND TJ1 AND ZF<60 AND JD>80; T1:=BARSSINCEN(TJ,T+1); EXT1:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,REF(H,T),T1=0,REF(H,T1),1),COLORYELLOW,LINETHICK2; TJA:=EVERY(C<EXT1,T1); //////////// {突破上升趨勢線選股} S:=IF(DYNAINFO(7)=0,0,1); |
|