T+0分时组合(大智慧)

分时买卖:

MA4:MA(CLOSE,4),PRECIS2;

MA4:="MAB.MA4#day";

MA4P:=(MA4-DYNAINFO(3))/DYNAINFO(3)*100;

zt:=1.1*DYNAINFO(3);

dt:=0.9*DYNAINFO(3);

MA4S:=MA4>dt and MA4<zt;

if(MA4S,MA4,DYNAINFO(7)),DOTLINE,colorwhite;

DRAWTEXT(barstatus=2 and DATATYPE=1 ,DYNAINFO(7),'

'+NUMTOSTRN(100*DYNAINFO(14),1)+'%' ),LINETHICK1,ALIGN0,VALIGN1,colorwhite;

DRAWTEXT(barstatus=2,MA4,'4日: '),linethick2,ALIGN0,VALIGN0,colorwhite;

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

阻力:L1+P1*7/8,DOTLINE,COLOR00DD00;

支撑:L1+P1*0.5/8,DOTLINE,COLOR00DD00;

zz:=filter(count(longcross(支撑,c,1),0)>=2,300) ;

ff:=filter(count(longcross(c,阻力,1),0)>=2,300) ;

drawtext(ff,c,'卖'),Color0000FF;

drawtext(zz,c,'买'),Color00FFFF;