[转载]CCI+RSI选股公式

原文地址:CCI+RSI选股公式作者:pengjiutong0516

公式源码:

CC:=(-2*REF(C,3)+3*REF(C,2)+6*REF(C,1)+7*C)/14;

T1:=MA(CC,1);
Q:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,Q))/(0.015*AVEDEV(TYP,Q));
N1:=6;
N2:=12;
N3:=24;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
RSIDT:=C>T1 AND RSI1>REF(RSI1,1) AND RSI2>REF(RSI2,1) AND RSI3>REF(RSI3,1);
{DRAWICON(CCI<-130 AND RSIDT AND NOT(REF(RSIDT,1)),(L * 0.996),11),LINETHICK1;}
XG:CCI<-130 AND RSIDT AND NOT(REF(RSIDT,1));
 
注:以中线为主,信号出后,等底部企稳介入。
(0)

相关推荐