周N:=BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1;
LL:REF(LLV(L,BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1),BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1);//前一周最低价格,最高价格,
HH:REF(HHV(H,BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1),BARSLAST(WEEKDAY<REF(WEEKDAY,1))+1);//前一周最低价格,最高价格,
LL1:=REF(LL,周N);
DRAWSL(ISLASTBAR,LL1,0,-周N,0,COLORGREEN),DOT;
LL2:=REF(LL,SUMBARS(周N=1,2));
DRAWSL(ISLASTBAR,LL2,0,-SUMBARS(周N=1,2),0,COLORGREEN),DOT;
HH1:=REF(HH,周N);
DRAWSL(ISLASTBAR,HH1,0,-周N,0,COLORRED),DOT;
HH2:=REF(HH,SUMBARS(周N=1,2));
DRAWSL(ISLASTBAR,HH2,0,-SUMBARS(周N=1,2),0,COLORRED),DOT;
DRAWSL(ISLASTBAR,VALUEWHEN(周N=1,O),0,-周N,0,COLORWHITE);
DRAWNUMBER(ISLASTBAR,VALUEWHEN(周N=1,O),VALUEWHEN(周N=1,O),0,COLORWHITE),ALIGN0,VALIGN1;
OO1:REF(O,周N-1);
DRAWSL(ISLASTBAR,OO1,0,-周N,0,COLORWHITE);
OO2:=REF(OO1,SUMBARS(周N=1,2));
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,OO1,OO1,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,OO2,OO2,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,HH,HH,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,LL,LL,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,HH1,HH1,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,LL1,LL1,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,HH2,HH2,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,LL2,LL2,0,COLORWHITE),ALIGN0,VALIGN1;
DRAWTEXT(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,HH,’高’),RGB(255,128,64),VALIGN2,ALIGN2;//
DRAWNUMBER(ISLASTBAR||MOD(DAYBARPOS,180)&&PERIOD<=3||DAYBARPOS=1&&PERIOD=5,HH,HH,2,RGB(255,128,64)),VALIGN2,ALIGN0;