结构:=200;//200现价:ZIGZAG(IF(C REF(C,1),C,C),0,0),NOTEXT,COLORYELLOW,LINETHICK1,PRECIS0;NN:=BACKSET(ISLASTBAR,SUMBARS(PEAKBARS(C,0,0,0)=1||TROUGHBARS(C,0,0,0)=1,结构));IF(PERIOD =8 NN,现价,NULL),NOTEXT,COLORWHITE,LINETHICK1,NODRAW;//画白色的结构转折线DRAWCOLORLINE(现价 REF(现价,1),现价,COLORRED,COLORGREEN);X1:=现价 REF(现价,1) 现价 REFX(现价,1);X2:=现价 REF(现价,1) 现价 REFX(现价,1);DRAWSL(PERIOD =8 ISLASTBAR 结构 0,REF(C,BARSLAST(X1)),0,10,0,COLORGREEN),DOT;//画结构最近一次的高点水平虚线DRAWSL(PERIOD =8 ISLASTBAR 结构 0,REF(C,BARSLAST(X2)),0,10,0,COLORRED),DOT;//画结构最近一次的低点水平虚线DRAWSL(ISLASTBAR,C,0,-100,0,COLOR6060FF ),DOT;//最新收盘价向左延伸水平虚线//DRAWSL(ISLASTBAR,C,0,1.5,0,COLORGREEN),DOT;//最新收盘价向右延伸水平虚线//DRAWSHIFTNUMBER(ISLASTBAR,C,C,0,COLORYELLOW,1,2),NODRAW,VALIGN1,ALIGN2;//在K线右侧空位2位置显示最新价格,黄色;DRAWSHIFTNUMBER(PERIOD =8 ISLASTBAR 结构 0,REF(C,BARSLAST(X1)),REF(C,BARSLAST(X1)),0,COLORGREEN,1,5),NODRAW,VALIGN2,ALIGN2;//在K线右侧空位5位置显示上次最高收盘价;DRAWSHIFTNUMBER(PERIOD =8 ISLASTBAR 结构 0,REF(C,BARSLAST(X2)),REF(C,BARSLAST(X2)),0,COLORRED,1,5),NODRAW,VALIGN0,ALIGN2;//在K线右侧空位5位置显示上次最低收盘价;HH8:=MAX(O,REF(REF(C,BARSLAST(X1)),1));LL8:=MIN(O,REF(REF(C,BARSLAST(X2)),1));STICKLINE(PERIOD =8 ISUP CROSS(C,REF(REF(C,BARSLAST(X1)),1)),HH8,C,COLORMAGENTA,0);STICKLINE(PERIOD =8 ISDOWN CROSSDOWN(C,REF(REF(C,BARSLAST(X2)),1)),LL8,C,COLORGREEN,0);AA:=PERIOD =8 ISUP CROSS(C,REF(REF(C,BARSLAST(X1)),1));BB:=PERIOD =8 ISDOWN CROSSDOWN(C,REF(REF(C,BARSLAST(X2)),1));STICKLINE(AA COUNT(AA,BARSLAST(BB)),HH8,C,COLORRED,0);STICKLINE(BB COUNT(BB,BARSLAST(AA)),LL8,C,COLORBLUE,0);