X1:=13;//自调画线周期
X2:=-13;//自调画线周期
Y_HIGH:=REF(HHV(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,1)),COLORCYAN;//昨日最高价
Y_LOW:=REF(LLV(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,1)),COLORCYAN;//昨日最低价
T_OPEN:=REF(O,DAYBARPOS-1);//今日开盘价
DRAWSL(ISLASTBAR,压力,0,10,0,COLORCYAN),DOT;
DRAWSL(ISLASTBAR,支撑,0,10,0,COLORCYAN),DOT;
DRAWSL(ISLASTBAR,压力,0,-DAYBARPOS,0,COLORCYAN),DOT;
DRAWSL(ISLASTBAR,支撑,0,-DAYBARPOS,0,COLORCYAN),DOT;
DRAWLINE3(ISLASTBAR,REF(压力,DAYBARPOS),DAYBARPOS,1,REF(压力,DAYBARPOS),SUMBARS(DAYBARPOS=1,2),0),COLORCYAN,DOT;
DRAWLINE3(ISLASTBAR,REF(支撑,DAYBARPOS),DAYBARPOS,1,REF(支撑,DAYBARPOS),SUMBARS(DAYBARPOS=1,2),0),COLORCYAN,DOT;