通达信选股公式

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

{MACD、KDJ、RSI底背离}

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)

A2:=BARSLAST(REF(CROSS(""(9,3,3),""(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF(""(9,3,3),A2+1)<""(9,3,3) AND CROSS(""(9,3,3),""(9,3,3));

A3:=BARSLAST(REF(CROSS(""(6,12,24),""(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF(""(6,12,24),A3+1)<""(6,12,24) AND CROSS(""(6,12,24),""(6,12,24));

底背离:B1>0 OR B2>0 OR B3>0;

{集成了MACD、KDJ、RSI三个指标的底背离};

老鼠仓

AA1:=AMOUNT/VOL;

BB1:=L< AA1*;

CC1:=(C-REF(C,1))/REF(C,1)*100> ;

DD1:=L< MA(C,5)*;

EE1:=VOL< MA(V,5)*;

老鼠仓:BB1 AND CC1 AND DD1 AND EE1;

抄底高手

{M 15 35 30

N 12 32 27

D 18 50 42}

VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;

VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;

VAR3:=VAR1 AND VAR2;

VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND DATE>940101 AND (CLOSE>OPEN OR CLOSE

-REF(CLOSE,1))/REF(CLOSE,1)> AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)

(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)REF(CLOSE,3) OR REF

(OPEN,3)REF(CLOSE,4) OR REF(OPEN,4)

(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)

VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/CAPITAL);

VAR6:=(CLOSE-VAR5)/VAR5*100;

VAR7:=REF(VAR6,1)+D<0 AND VAR6>REF(VAR6,1) AND REF(VAR6,1) AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND (REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));

VAR4 OR VAR7;

短线黑马

{K 100 140 100}

VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);

VAR2:=DMA(CLOSE,VOL/MA(VOL,33)/33);

VAR3:=(CLOSE-VAR1)/VAR1*100<-11/K*100;

VAR4:=(VAR1-VAR2)/VAR2*100

VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN

(OPEN-REF(CLOSE,1))/REF(CLOSE,1)> AND

(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)

(REF(OPEN,2)>REF(CLOSE,2) OR REF

(OPEN,2)REF(CLOSE,3) OR REF(OPEN,3)

(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)REF(CLOSE,5) OR REF(OPEN,5)

REF(CLOSE,6) OR REF(OPEN,6)REF

(CLOSE,7) OR REF(OPEN,7)

VAR6:=DMA(CLOSE,VOL/MA(VOL,3)/3);

VAR7:=DMA(CLOSE,VOL/MA(VOL,33)/33);

VAR8:=(CLOSE-VAR6)/VAR6*100<-5;

VAR9:=(VAR6-VAR7)/VAR7*100<-18;

VARA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;

VARB:=SMA(VARA,30,1);

VARC:=SMA(VARB,50,1);

VARD:=VAR8 AND VAR9 AND (OPEN>CLOSE OR OPEN

(OPEN-REF(CLOSE,1))/REF(CLOSE,1)> AND

(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)

VARE:=VARD AND COUNT(VARD,2)=1 ;

VAR5 OR VARE;

逆势操作

VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);

相关文档
最新文档