UPRATE:=IF(SETCODE==2,1.05,1.02);
{DOWNRATE:=IF(SETCODE==2,0.95,0.98);}
ISAG:=(FINANCE(3)>0 AND FINANCE(3)<6);
TENRATE:=MINDIFF*10;
上限:=MAX(UPRATE*C,C+TENRATE);
笼子上限:=IF(DYNAINFO(26)>0,IF(DYNAINFO(26)>0 AND USEDDATANUM<250,MIN(上限,DYNAINFO(26)),上限),C),DOTLINE,COLORRED;
DRAW1:=IF(ISAG,DYNAINFO(28),C);
DRAWNUMBER(ISLASTBAR AND ISAG,DRAW1,DRAW1),COLORRED;
{下限:=MIN(DOWNRATE*C,C-TENRATE);}
{笼子下限:=IF(DYNAINFO(27)>0,IF(DYNAINFO(27)>0 AND USEDDATANUM<250,MAX(下限,DYNAINFO(27)),下限),C),DOTLINE,COLORGREEN;}
DRAW2:=IF(ISAG,DYNAINFO(29),C);
{DRAWNUMBER(ISLASTBAR AND ISAG,DRAW2,DRAW2),COLORGREEN;}
TPLZ:=CROSS(C,UPRATE*REF(C,1));
DRAWTEXT(TPLZ AND TIME<=0932 AND ISAG,C,'突破笼子'),COLORRED;
{DPLZ:=CROSS(DOWNRATE*REF(C,1),C);}
{DRAWTEXT(DPLZ AND ISAG,C,'跌破笼子'),COLORGREEN;};