源码如下:
MA5:MA(CLOSE,5);
ma10:ma(c,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
ma60:ma(c,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
stickline(c>1.099*ref(c,1),o,c,8,0),coloryellow;
stickline(c>1.099*ref(c,1),o,c,8,0),coloryellow;
火车轨:=MA20>MA30 and MA20>ref(MA20,1) and MA30>ref(MA30,1) and ma20-ma30>ref(ma20-ma30,1);
stickline(火车轨,ma20,ma30,1,0),coloryellow;
Var1:=(h-l)/l*100;
Var2:=ref(Var1,1) ;
Var3:=ref(Var1,2);
Var4:=Var2-Var3;
var5:=Var2+Var4;
drawtext((c/ref(c,1)-1)>Var5 and ma20>ref(ma20,1) and C>O,l*0.95,波动突破),colorred;
QH:=REF(H,2);
QL:=REF(L,2);
QO:=REF(O,2);
QC:=REF(C,2);
ZO:=REF(O,1);
ZC:=REF(C,1);
JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.03 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
JYZHV:=V<REF(V,1) ;
JYZH:=JYZHK AND JYZHV;
DRAWTEXT(JYZH,L,金印);
JGZHK:=ABS(QO-QC)/QO<0.02 AND ZC/ZO>1.05 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
JGZHV:=ref(V,1)>=2*ref(V,2);
JGZH:=JGZHK and JGZHV;
DRAWTEXT(JGZH,H*1.02,金冠),coloryellow;
波动突破选股:=(c/ref(c,1)-1)>Var5 and ma20>ref(ma20,1) and c>o;
XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));
XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);
XL3:=CROSS(XL2,(0 - 20));
DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),买点);
DRAWTEXT((XL3 > 0),(LOW - 0.2),绝对底部);
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9,(HIGH * 1.02),出货),color9000F5;
GG:REF(EMA(C,14),1),COLORff8888;
GGX:=(EMA(C,14)-GG)/GG*100,linethick0;
DP:=REF(EMA(INDEXC,14),1),linethick0;
DPX:=(EMA(INDEXC,14)-DP)/DP*100,linethick0;
STICKLINE(DPX>=0
AND GGX>=0,H,L,0,0 ),COLOR9933FF;
STICKLINE(DPX>=0 AND
GGX>=0,C,O,4,0 ),COLOR0000CC;
STICKLINE(DPX>=0 AND GGX>=0,C,O,1,0
),COLOR0033FF;
STICKLINE(DPX<0 AND GGX<0,L,H,0,0
),COLOR66CC33;
STICKLINE(DPX<0 AND
GGX<0,C,O,4,0),COLOR00CC00;
STICKLINE(DPX<0 AND
GGX<0,C,O,1,0),COLOR66FF00;
STICKLINE(NOT(DPX>=0 AND GGX>=0) AND
NOT(DPX<0 AND GGX<0),C,O,4,0),COLOR00CCFF;
STICKLINE(NOT(DPX>=0 AND
GGX>=0) AND NOT(DPX<0 AND
GGX<0),C,O,1,0),COLOR00DFdd;
STICKLINE(NOT(DPX>=0 AND GGX>=0) AND
NOT(DPX<0 AND GGX<0),C,O,0.5,0),COLOR66FFFF;
STICKLINE(NOT(DPX>=0
AND GGX>=0) AND NOT(DPX<0 AND GGX<0),H,L,0,0),COLOR00FFFF;
|
|
|
|
|