次上轨:VARR*1.1,DOTLINE,COLORFF9900;
次下轨:VARR*0.9,DOTLINE,COLORYELLOW;
{STICKLINE(LOW<=下轨 AND CLOSE>OPEN,CLOSE, OPEN,3,0.5),COLORMAGENTA;
STICKLINE(LOW<=下轨 AND CLOSE>OPEN,CLOSE, HIGH,0,0.5),COLORMAGENTA;
STICKLINE(LOW<=下轨 AND CLOSE>OPEN,OPEN, LOW,0,0.5),COLORMAGENTA;
STICKLINE(LOW<=下轨 AND CLOSE<=OPEN,CLOSE, OPEN,3,0),COLORMAGENTA;
STICKLINE(LOW<=下轨 AND CLOSE<=OPEN,CLOSE, LOW,0,0),COLORMAGENTA;
STICKLINE(LOW<=下轨 AND CLOSE<=OPEN,OPEN, HIGH,0,0),COLORMAGENTA;
{}
STICKLINE(HIGH>=上轨 AND CLOSE>OPEN,CLOSE, OPEN,3,0.5),COLORFF9900;
STICKLINE(HIGH>=上轨 AND CLOSE>OPEN,CLOSE, HIGH,0,0.5),COLORFF9900;
STICKLINE(HIGH>=上轨 AND CLOSE>OPEN,OPEN, LOW,0,0.5),COLORFF9900;
STICKLINE(HIGH>=上轨 AND CLOSE<=OPEN,CLOSE, OPEN,3,0),COLORFF9900;
STICKLINE(HIGH>=上轨 AND CLOSE<=OPEN,CLOSE, LOW,0,0),COLORFF9900;
STICKLINE(HIGH>=上轨 AND CLOSE<=OPEN,OPEN, HIGH,0,0),COLORFF9900;}
DRAWTEXT(FILTER((CROSS(次上轨,CLOSE) OR (H>次上轨 AND C<次上轨) AND C<=REF(C,1)),7),HIGH*1.01,'小顶'),COLORFF9900;
DRAWTEXT(FILTER((CROSS(CLOSE,次下轨) OR (L<次下轨 AND C>次下轨) AND C>REF(C,1)),7),LOW*0.99,'小底'),COLORYELLOW;
DRAWTEXT(FILTER((CROSS(上轨,CLOSE) OR (H>上轨 AND C<上轨) AND C<=REF(C,1)),5),HIGH*1.01,'大顶'),COLORGREEN;
DRAWTEXT(FILTER((CROSS(CLOSE,下轨) OR (L<下轨 AND C>下轨) AND C>REF(C,1)),5),LOW*0.99,'大底'),COLORRED;