智能线:EMA(CLOSE,10),COLORYELLOW;
辅助线:EMA(CLOSE,60),COLORRED;
DRAWICON(CROSS(智能线,辅助线),L-0.05,1);
涨停价:=IF((C-REF(C,1))/REF(C,1)>0.097,1,0);
STICKLINE(涨停价,OPEN,CLOSE,3,0),COLORMAGENTA;
SY01:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(SY01<-9.9,O,C,3.1,0),COLORGREEN;
STICKLINE(SY01<-9.9,O,C,2.1,0),COLORGREEN;
STICKLINE(SY01<-9.9,O,C,1.2,0),COLORGREEN;
STICKLINE(SY01<-9.9,O,C,0.2,0),COLORGREEN;
STICKLINE(SY01<-9.5,H,L,0,0),COLORGREEN;
SY02:=NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S');
涨停:IF(SY02,REF(C,1)*1.05,REF(C,1)*1.1),COLORMAGENTA,NODRAW;
跌停:IF(SY02,REF(C,1)*0.95,REF(C,1)*0.9),COLORLICYAN,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块};
{
选股公式:
智能线:=EMA(CLOSE,10);
辅助线:=EMA(CLOSE,60);
XG:CROSS(智能线,辅助线);
}