思路:股价在boll中轨与上轨之间运行,某天缩量大跌跌破boll中轨,在3天内重新突破boll中轨,同时或者而后macd金叉。
PS:思路引进,非本人原创!
代码:{纯粹无聊}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
N:=20;
MID:=MA(C,N);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:=REF(MID,1);
UB:=REF(UPPER,1);
LB:=REF(LOWER,1);
ZZ1:=EVERY(C>BOLL AND C
ZZ4:=CROSS(C,BOLL);
TT1:=BARSLAST(ZZ1)<5;
TT2:=BARSLAST(ZZ4)<5;
TT1 AND TT2 AND ZZ2 AND ZZ3;