Y:=2012;
M:=6;
D:=6;
T1:=DATE>=(Y*10000+M*100+D-19000000);
GC:=IF(T1,C,DRAWNULL);
个股:(GC/REF(GC,BARSSINCE(GC))-1)*100;
IC:=IF(T1,INDEXC,DRAWNULL);
大盘: (IC/REF(IC,BARSSINCE(IC))-1)*100;
BC:=IF(T1,IF(HY_INDEXC=0,REF(HY_INDEXC,1),HY_INDEXC),DRAWNULL);
行业:(BC/REF(BC,BARSSINCE(BC))-1)*100;
DRAWTEXT(CURRBARSCOUNT=8,个股,STKNAME),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=8,大盘,'对应大盘'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=8,行业,'对应行业'),COLORMAGENTA;
=================
出现白线上穿黄线开始预警
Y:=2012;
M:=6;
D:=6;
T1:=DATE>=(Y*10000+M*100+D-19000000);
GC:=IF(T1,C,DRAWNULL);
个股:=(GC/REF(GC,BARSSINCE(GC))-1)*100;
IC:=IF(T1,INDEXC,DRAWNULL);
大盘: =(IC/REF(IC,BARSSINCE(IC))-1)*100;
cross(个股,大盘); |