[
]V5:=LLVBARS(V2,V4);
V6:=SUMBARS(V2,V4);
V7:=SUMBARS(V4,V2);
V8:=SUMBARS(V4+V2,V2);
V9:=SUMBARS(V2+V4,V4);
VERTLINE(V2),colorFFFF;
VERTLINE(V4),LINETHICK4,colorFF;
DRAWTEXT(V2,HIGH*1.09,'下
跌
周
期 '),ALIGN4,colorFFFF10;
DRAWTEXT(V4,LOW*0.97,'上
涨
周
期 '),ALIGN4,colorFF;
AA1:=BACKSET(ISLASTBAR,HHVBARS(HIGH,M)+1);
BB2:=COUNT(AA1,M)=1;
DRAWTEXT(BB2,HIGH*1.05,' 新高 '),ALIGN1;
AA3:=BACKSET(AA1,LLVBARS(LOW,M1)+1);
BB4:=COUNT(AA3,M1)=1;
前底:REF(LOW,BARSLAST(BB4)),LINETHICK2,colorFFFF;
底:REF(LOW,BARSLAST(BB4))*0.83,LINETHICK2,colorFF;
目标1:=前底*1.1;
目标2:前底*1.2,POINTDOT,LINETHICK3,colorFF;
目标3:前底*1.3,POINTDOT,LINETHICK2,colorFFCC99;
目标4:前底*1.4,POINTDOT,LINETHICK4,colorFF00;
目标5:前底*1.618,POINTDOT,LINETHICK1,colorFFFFFF;
目标6:=前底*1.88;
目标7:=前底*2;
DRAWNUMBER(SYSPARAM(3)=BARPOS,目标2,目标2,2),ALIGN2,SHIFT3,colorFF;
DRAWNUMBER(SYSPARAM(3)=BARPOS,目标5,目标5,2),ALIGN2,SHIFT3,colorFFCC99;
DRAWNUMBER(SYSPARAM(3)=BARPOS,目标4,目标4,2),ALIGN2,SHIFT3,colorFF00;
DRAWNUMBER(SYSPARAM(3)=BARPOS,前底,前底,2),ALIGN2,SHIFT3,colorFFFF66;
DRAWNUMBER(SYSPARAM(3)=BARPOS,底,底,2),ALIGN2,SHIFT3,colorFFFFFF;
VV1:=TROUGHBARS(LLV(LOW,20),5,1);
VV2:=COUNT(VV1,1);
VV3:=BACKSET(ISLASTBAR,VV2+1);
VV4:=REF(VV1,BARSLAST(VV3))+1;
DRAWTEXT(FILTER(VV4,1),LLV(LOW,40)*0.94,'天'),SHIFT3,colorFF00;
DRAWNUMBER(SYSPARAM(3)=BARPOS,LLV(LOW,40)*0.94,VV4,0),SHIFT1,colorFF00;
TJ1:=VV4=7 OR VV4=13 OR VV4=21 OR VV4=34 OR VV4=55 OR VV4=89 OR VV4=114;
DRAWTEXT(FILTER(TJ1,1),LLV(LOW,40)*0.9,'关注日'),colorFFFF;
VA1:=PEAKBARS(HHV(HIGH,10),5,1);
VA2:=COUNT(VA1,1);
VA3:=BACKSET(ISLASTBAR,VA2+1);
VA4:=REF(VA1,BARSLAST(VA3))+1;
DRAWNUMBER(SYSPARAM(3)=BARPOS,HHV(HIGH,40)*1.08,VA4,0),SHIFT1,colorFFFFFF;
DRAWTEXT(FILTER(VV4,1),HHV(HIGH,40)*1.099,'天'),SHIFT3,colorFFFFFF;
TJ2:=VA4=7 OR VA4=13 OR VA4=21 OR VA4=34 OR VA4=55 OR VA4=89 OR VA4=114;
DRAWTEXT(FILTER(TJ2,1),HHV(HIGH,40)*1.06,' 关注日'),colorFFFF;
DRAWICON(TJ1 OR TJ2,CLOSE,1),ALIGN4;