DRAWICON(CROSS(MA20,MA10),MA20,6); {10日下穿20日做记号}
DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}
STICKLINE(C<0.90*REF(C,1),C,O,4,0),COLORGREEN;
STICKLINE(C>1.099*REF(C,1),C,O,4,0),COLORYELLOW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;
三、选股(源码不全,需者联系,有偿的,有点贵喔)
1、稳赚MACD选股1,MACD金叉 强势股精选。
DIF:=EMA(CLOSE,12) -
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
MACD金叉:=CROSS(DIF,DEA);
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,60);
M5:=MA(C,120);
N2:=M1>M2 AND (M1>=M4) AND (M2>=M4) AND M4>M5;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
T1:=HHV(OBV,60);
T2:=REF(T1,1);
V5:=MA(V,5);
V10:=MA(V,10);
V60:=MA(V,60);
COUNT(MACD金叉,金叉天数)>=1 {MACD金叉}