M:=1.04;
DRAWBAND(MA(C,60),RGB(120,0,0),MA(C,120),RGB(0,0,200));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA13:=MA(CLOSE,13);
MA34:=MA(CLOSE,34);
MA55:=MA(CLOSE,55);
{涨跌停}
STICKLINE(C>1.097*REF(C,1),C,O,2.8,0)COLORRED;
STICKLINE(C<0.907*REF(C,1),C,O,2.8,0)COLORGREEN;
YY1:=O<MA13 AND C>MA13;
YY2:=O<MA34 AND C>MA34;
YY3:=O<MA55 AND C>MA55;
YY4:=C/O>=M;
YY5:=V>HHV(H,10);
YY6:=MA13>=REF(MA13,1);
AQ:=YY1 AND YY2 AND YY3 AND YY4 AND YY5 AND YY6;
DRAWBMP(AQ,L,'B');
半分位:=(O+C)/2;
DRAWTEXT(AQ,半分位,'—————————————————止损线'),COLORYELLOW;