C3:=REF(C,1); 漲停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(漲停,OPEN,CLOSE,1,0),COLORYELLOW;{漲停K線色} 跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;{跌停K線色} DRAWTEXT_FIX(C>0,0,0.15,0,'黃色K線是漲停,藍(lán)色K線是跌停。'),COLORWHITE
|