M1:=36;
N1:=13;
N:=100;
Q:=5;
SHORT:=21;
LONG:=44;
MID:=11;
P2:=11;
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,COLORMAGENTA;
中:(支撐+阻力)/2,COLORWHITE,POINTDOT;
現(xiàn)價:CLOSE,COLORWHITE,LINETHICK1;
頂賣:STICKLINE(C>阻力,阻力,C,1,0),COLORGREEN;
底買:STICKLINE(C<支撐,支撐,C,1,0),COLORRED;
MR:=C<支撐 AND CROSS(C,REF(C,2));
STICKLINE(CROSS(支撐,現(xiàn)價),支撐,(支撐-中)/5+支撐,1,0),COLORYELLOW;
DRAWTEXT(CROSS(支撐,現(xiàn)價),(支撐-中)/5+支撐,'★底'),COLORYELLOW;
MC:=C>阻力 AND CROSS(REF(C,2),C);
STICKLINE(CROSS(現(xiàn)價,阻力),阻力,阻力-(支撐-中)/5,1,0),COLORMAGENTA;
DRAWTEXT(CROSS(現(xiàn)價,阻力),阻力-(支撐-中)/5,'★頂'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,阻力,'頂'),COLORGREEN;
DRAWTEXT(ISLASTBAR,支撐,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,(支撐+阻力)/2,'中'),COLORWHITE;