改的选股公式。本人刚开始学习写指标,有不到之处请老师指正。
TYP:=(HIGH+LOW+CLOSE)/3;
G_CCI:=EMA((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2);
BB:=G_CCI<-150;
{STICKLINE(C>0,-150,-151,2.5,0),COLORLIBLUE;
STICKLINE(C>0,+150,+151,2.5,0),COLORLIBLUE;
STICKLINE(C>0,+100,+100,2.5,0),COLORYELLOW;
STICKLINE(C>0,-100,-100,2.5,0),COLORYELLOW;
STICKLINE(C>0,0,0,2.5,0),COLORYELLOW;}
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
Ö÷Á¦Ç±·ü:= COUNT(MACD<0,10)=10;
{STICKLINE(Ö÷Á¦Ç±·ü,0,MACD*200,3.5,0),COLORRED;}
RSIµ×:= RSI.RSI1#WEEK<20;
XG: RSIµ×=0 AND REF(RSIµ×,1)=1 ;
原指标请下载附件