通达信寂寞短线,布林底部综合选股,源码
{寂寞短线,布林底部综合选股}
{布林底部}
N:=20;
MID:=MA(C,N);
VAR1:=POW((C-MID),2);
VAR2:=MA(VAR1,N);
VAR3:=SQRT(VAR2);
UPPER:=MID+2*VAR3;
LOWER:=MID-2*VAR3;
TYP:=(HIGH+LOW+CLOSE)/3;
CCA:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BIAS5:=(MA(CLOSE,5)-C)/C>0.11;
寂寞短线:BIAS5 AND C<LOWER AND CCA<-200 AND J<0;