通达信弱势肥牛选股指标公式
2020/5/13 18:37:40
QRSI:=0;QCCI:=1;QBOL:=0;QBUY:=1;
N:=14;M:=6;P:=50;
TYPL:=(HIGH+LOW+CLOSE)/3;
CCIM:=(TYPL-MA(TYPL,N))/(0.015*AVEDEV(TYPL,N));
CCIS:=(TYPL-MA(TYPL,M))/(0.015*AVEDEV(TYPL,M));
CCIL:=(TYPL-MA(TYPL,P))/(0.015*AVEDEV(TYPL,P));
T1:=CCIS>REF(CCIS,1) AND CCIM>REF(CCIM,1) AND CCIL>REF(CCIL,1);
T2:=CCIS>=CCIL AND CCIM>CCIL AND CCIL<0;
T3:=CCIL>0;
VALUE:=50;
WILDPER:=14;
M0:=13;
EXPPER:=2*WILDPER-1;
AUC:=EMA( IF(C>REF(C,1),C-REF(C,1),0),EXPPER);
ADC:=EMA( IF(REF(C,1)>C,REF(C,1)-C,0),EXPPER);
X:=(WILDPER-1)*(ADC*VALUE/(100-VALUE)-AUC);
REVENGRSI0:=IF(X>=0,C+X,C+X*(100-VALUE)/VALUE);
REVRSI:=MA(REVENGRSI0,M0);
MARSI:=MA(REVRSI,5);
T4:=IF(QRSI=1,C>REVRSI AND REVRSI>=MARSI,C<REVRSI AND REVRSI<=MARSI);
T5:=IF(QCCI=1,CCIL>=-100,1);
X0:=TYPL;
D1:=H-X0;
D2:=X0-L;
D3:=H-L;
B1:=X0-D1;
S1:=X0+D2;
HBOP:=X0+(D3+D2);
LBOP:=X0-(D3+D1);
X2:=REF(X0,1);
B2:=REF(B1,1);
S2:=REF(S1,1);
HBOP2:=REF(HBOP,1);
LBOP2:=REF(LBOP,1);
T6:=IF(QBUY=1,H>=HBOP2 OR C>=HBOP2,1);
N0:=20;
MB:=MA(CLOSE,N0);
SS:=SQRT(SUM(POW(CLOSE-MB,2),20)/20);
上轨:=MB+SS;
下轨:=MB-SS;
上极:=MB+1.7*SS;
下极:=MB-1.7*SS;
T7:=IF(QBOL=1,上极>=REF(上极,1),1);
((T1 AND T2) OR (T1 AND T3)) AND T4 AND T5 AND T6 AND T7;
投 股票网 www.to u18.cn
股市公式下载推荐