支撑:(H-L)/3+L;
压力:(H-L)/3+H;
真实波幅:支撑-压力,NODRAW;
IF(ISUP,(2*H+L+C)/2-H,(2*L+H+C)/2-H);
IF(ISUP,(2*H+L+C)/2-L,(2*L+H+C)/2-L);
DRAWICON(CROSS(O>REF(支撑,1),0.5),L,4),VALIGN0;
DRAWICON(CROSS(O<REF(支撑,1),0.5),H,5);
A:=REFX(DAYBARPOS=1,1)||REFX(TIME=0900,1)||REF(TIME=0900,1);
DRAWCOLORKLINE(A&&L<REF(支撑,1)&&NOT(H>REF(压力,1))&&ISDOWN,COLORYELLOW,0);
DRAWCOLORKLINE(A&&NOT(L<REF(支撑,1))&&H>REF(压力,1)&&ISDOWN,COLORBLUE,0);
DRAWCOLORKLINE(A&&L<REF(支撑,1)&&H>REF(压力,1)&&ISDOWN,COLORBLACK,0);
DRAWCOLORKLINE(A&&L<REF(支撑,1)&&NOT(H>REF(压力,1))&&ISDOWN=0,COLORYELLOW,1);
DRAWCOLORKLINE(A&&NOT(L<REF(支撑,1))&&H>REF(压力,1)&&ISDOWN=0,COLORBLUE,1);
DRAWCOLORKLINE(A&&L<REF(支撑,1)&&H>REF(压力,1)&&ISDOWN=0,COLORBLACK,1);