M1Z:=36;

N1:=13;

N:=100;

Q:=5;

SHORT:=21;

LONG:=44;

MID:=11;

P2:=11;

{DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);}

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

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

P1:=H1-L1;

阻力:=L1+P1*7/8,COLORGREEN;

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

中:(支撑+阻力)/2,COLORWHITE,POINTDOT;

现价:CLOSE,COLORWHITE,LINETHICK2;

顶卖:=STICKLINE(C>阻力,阻力,C,5,0),COLORGREEN;

底买:STICKLINE(C<支撑,支撑,C,5,0),COLORRED;

MRZ:=C<支撑 AND CROSS(C,REF(C,2));

STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORYELLOW;

DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW;

MC:=C>阻力 AND CROSS(REF(C,2),C);

{STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;

STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;}

MA5:=MA(C,5),COLORYELLOW;

MA10:=MA(CLOSE,10),COLORFF00FF;

MA30:=MA(C,30),COLORRED,LINETHICK2;

跌:=IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2;

MA60:=MA(CLOSE,60),COLORFFCC66;

M1:=EMA(C,12)-EMA(C,26);

M2:=EMA(M1,9);

MR:=CROSS(M1,M2) AND V/REF(V,1)>2 AND CROSS(MA5,MA10) AND C>O AND TIME<=0935;

STICKLINE(MR,O,(O+C)/2,2.5,0),COLORYELLOW;

DRAWTEXT(MR,L*1,'好买点'),COLORBLUE;