{漲跌停標識} 漲停:=IF(REF(C,1)*1.095-C<0.01 ,1,0); STICKLINE(漲停,OPEN,CLOSE,4,0),COLORYELLOW; STICKLINE(漲停,OPEN,CLOSE,3,0),COLORYELLOW; DRAWTEXT(漲停,L-0.1,'漲停'),COLORYELLOW; C3:=REF(C,1); 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,4,0),COLOR00FF00; STICKLINE(跌停,OPEN,CLOSE,3,0),COLOR00FF00; DRAWTEXT(跌停,H+0.3,'跌停'),COLOR00FF00; |
|