主图及选股指标公式,信号比较多,结合其它指标使用。
主图源码:
M1:=5;
M2:=10;
M3:=22;
M4:=120;
M5:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(M5>9.8,O,C,3,0),COLORYELLOW;
STICKLINE(M5<-9.8,O,C,3,0),COLORGREEN;
STICKLINE(LOW >REF(HIGH,1),LOW,REF(HIGH,1),5,1),COLORRED;
STICKLINE(C<REF(C,1) AND REF(L,1)>H,REF(L,1),H,5,1),COLORMAGENTA;
DRAWTEXT_FIX(C>O,0,0.95,0,’SGZBK.TOP’),COLORWHITE;
EMA5:EMA(C,M1),LINETHICK1,COLORBLUE;
EMA10:EMA(C,M2),LINETHICK1,COLORYELLOW;
EMA22:EMA(C,M3),LINETHICK1,COLORRED;
EMA120:EMA(CLOSE,M4),LINETHICK2,COLORGREEN;
ZB1:=EMA5>=EMA10 AND EMA10>=EMA22;
ZB2:=EMA22>=EMA10 AND EMA10>=EMA5;
DRAWICON(CROSS(EMA5,EMA10),L,34);
DRAWICON(CROSS(EMA10,EMA5),H,35);
DRAWTEXT(ZB1>REF(ZB1,1),L,’↑火凤凰’),COLORRED;
DRAWTEXT(ZB2>REF(ZB2,1),H,’↓凤凰尾’),COLORGREEN;
选股源码:
M1:=5;
M2:=10;
M3:=22;
M4:=120;
M5:=(C-REF(C,1))/REF(C,1)*100;
EMA5:=EMA(C,M1);
EMA10:=EMA(C,M2);
EMA22:=EMA(C,M3);
ZB1:=EMA5>=EMA10 AND EMA10>=EMA22;
ZB2:=EMA22>=EMA10 AND EMA10>=EMA5;
XG:ZB1>REF(ZB1,1);
指标仅供参考,不作投资依据。