|
BAND:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),1,0);
{以下为涨停板}
ZTZ1:=INTPART(ROUND(100*1.1*REF(C,1)))/100;
ZTZ2:=INTPART(ROUND(100*1.05*REF(C,1)))/100;
涨停板:IF(BAND=1 AND C>=ZTZ2,1,IF(BAND=0 AND C>=ZTZ1,1,0)) COLORRED;
触及涨停:IF(BAND=1 AND C<ZTZ2 AND H>=ZTZ2,1,IF(BAND=0 AND C<ZTZ1 AND H>=ZTZ1,1,0)) COLORBLUE;
{以下为跌停板};
DTZ1:=INTPART(ROUND(100*0.9*REF(C,1)))/100;
DTZ2:=INTPART(ROUND(100*0.95*REF(C,1)))/100;
跌停板:IF(BAND=1 AND C<=DTZ2,1,IF(BAND=0 AND C<=DTZ1,1,0)) COLORGREEN;
触及跌停:IF(BAND=1 AND C>DTZ2 AND L<=DTZ2,1,IF(BAND=0 AND C>DTZ1 AND L<=DTZ1,1,0)) COLORYELLOW; |
|