以下是通达信指标条件选股公式源码3
{周线MACD选股}
DIFF := EMA(CLOSE,12) – EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
DIFF< 0 AND DEA< 0 AND CROSS(DIFF,DEA) AND VOL> MA(VOL,5) AND MA(VOL,5)> MA(VOL,34) AND MA(C,30)>= REF(MA(C,30),1);
==================================
{四方力道选股}
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(V1,3),1);
杀:CROSS(CLOSE,HY1);
===================================
{关注买选股}
{N=30,M=60}
散户线:= 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
关注买:FILTER(J> REF(J,1)AND 走势>= REF(走势,1) AND 走势< 25 ,5);
======================================
{散户看盘选}
{M: 3,100,60}
{N: 3,100,30}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
XG:FILTER(J> REF(J,1) AND 走势>= REF(走势,1) AND 走势< 25 ,5);
======================================
{股经叠彩线选}
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
HJX3:=(3*A+2*REF(A,1)+REF(A,2))/6;
DC1:=EMA(HJX3,4);
DC2:=EMA(DC1,3);
选股: CROSS(DC1,DC2);
====================================
{低位金叉选股}
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
低位金叉选股:CROSS(DIFF,DEA) AND DIFF< -0.1;
=====================================
{短线强弱选股}
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
VAR28:=SMA(VAR26,3,1);
散户:=SMA(VAR28,3,1);
主力:=SMA(散户,3,1);
CROSS(散户,主力);
======================================
{黑马选股}
SMA(CLOSE,2,1)-SMA(HIGH,21,2)*1.05>= 0;
========================================
{黑牛均线}
买线:=EMA(C,3);
卖线:=EMA(SLOPE(C,21)*20+C,42);
B1:=CROSS(买线,卖线);
散户:=EMA(CLOSE,5);
B2:=CROSS(散户,卖线);
TC:=C> O AND C> REF(H,1);
TF:=FINANCE(33)> 0.05 AND DYNAINFO(37)> 0.01 AND DYNAINFO(10)/10000> 1000;
TC AND TF AND B1 AND B2;
==========================================
{午盘横盘选股}
BETWEEN(ABS((C-DYNAINFO(11))/C),0,0.02) AND BETWEEN(ABS((C-DYNAINFO(4))/C),0,0.02) AND HIGH<=dynainfo(4)*1.02 and="" low="">=DYNAINFO(4)*0.98 AND DYNAINFO(4)>= DYNAINFO(3);
================================================
{爆发买点选股}
MA4:=MA(CLOSE,90);
MA5:=MA(CLOSE,288);
九天:=IF(1.1> SMA(CLOSE,2,1)/SMA(CLOSE,13,2)> 1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05);
逼空:= IF(1.09> SMA(CLOSE,5,1)/SMA(CLOSE,15,1)> 0.45,SMA(LOW,10,1),SMA(LOW,5,1));
雪鹰:=IF(MA(VOL,2)> MA(VOL,3)/2> MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ;
神枪:= IF(MA(VOL,3)> MA(VOL,5)> MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5,1));
爆发买点:CROSS(雪鹰,九天) OR CROSS(MA4,逼空) OR CROSS(九天,MA5);
===========================================
{当日涨停选股}
VAR11:=(0 – ((100 * (HHV(HIGH,17) – CLOSE)) / (HHV(HIGH,17) – LLV(LOW,17))));
VAR12:=((CLOSE > (0.899 * REF(CLOSE,1))) AND (CLOSE < (0.901 * REF(CLOSE,1))));
VAR13:=(EMA(CLOSE,30) – EMA(CLOSE,17));
VAR16:=EMA(VAR13,5);
VAR17:=MA(CLOSE,5);
VAR18:=MA(CLOSE,10);
VAR19:=MA(CLOSE,30);
VAR20:=(SUM(((CLOSE * VOL) * 100),28) / SUM((VOL * 100),28));
VAR21:=(INTPART((VAR20 * 100)) / 100);
短线趋势:=(EMA(CLOSE,5) – EMA(CLOSE,10));
中线趋势:=EMA(短线趋势,9);
VAR22:=REF(中线趋势,1);
VAR23:=中线趋势;
VAR24:=(VAR23 – VAR22);
VAR25:=REF(短线趋势,1);
VAR26:=短线趋势;
VAR27:=(VAR26 – VAR25);
VAR28:=((CLOSE > MA(CLOSE,60)) AND (MA(CLOSE,10) > REF(MA(CLOSE,10),1)));
VAR29:=(((CLOSE – LLV(LOW,27)) / (HHV(HIGH,27) – LLV(LOW,27))) * 100);
VAR30:=SMA(VAR29,3,1);
VAR31:=SMA(VAR30,3,1);
VAR32:=((3 * VAR30) – (2 * VAR31));
VAR33:=(((((((VAR31 < 100) AND (VAR32 > (VAR30 * 1.008))) AND (VAR30 > VAR31)) AND (VAR31 > (REF(VAR31,1) * 1.001))) AND (VAR30 > (REF(VAR30,1) * 1))) AND (VAR31 > (REF(VAR31,1) * 1))) AND (CLOSE > (OPEN * (1 + (3 / 100)))));
((VAR11 = 0) AND (DATE < 1050630));
========================================
{新股海神偷选股}
AA:=LLV(LOW,13);
BB:=HHV(HIGH,13);
风险:=80,COLORFF00FF;
狼狗:=87.5,COLOR00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股海神偷:=DD,COLORRED,LINETHICK2;
股海:=(((DD-LLV(DD,21))/(HHV(DD,13)-LLV(DD,21)))*(4))*(25);
目标出现:IF(CROSS(股海,90) AND (股海神偷< 40),70,0),COLOR00FFFF;
=========================================
{四线金叉选}
EMA30:=EMA(C,30),COLORWHITE,LINETHICK2;
EMA60:=EMA(C,60),COLORFF00FF;
EMA90:=EMA(C,90),COLORYELLOW;
EMA120:=EMA(C,120),COLORFFCC66;
EMA250:=EMA(C,250),COLORBLUE;
SS:=CROSS(EMA30,EMA60) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA30,EMA120) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA60,EMA90) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA30,EMA90) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018 {AND CROSS(EMA30,EMA120)};
{DRAWICON(SS,L-0.04,1);}
DD:=CROSS(EMA60,EMA90) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA60,EMA250) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA90,EMA120) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018
OR CROSS(EMA60,EMA120) AND C> O AND C> REF(C,1) AND C/REF(C,1)>= 1.018 AND CROSS(EMA30,EMA250);
{DD:=CROSS(EMA30,EMA250);}
{DRAWICON(DD,L-0.04,3);};
金叉:SS OR DD;
=================================
{方舟选股}
EMA13:=EMA(C,13);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
EMA120:=EMA(C,120);
AR1:=EMA55> EMA34 AND EMA34> EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100< -6);
AR3:=EMA13>= REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)= 1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
====================================
{通达信 枯木逢春 选股}
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<= VAR4,VAR3,0),3);
枯木逢春:IF(VAR5> REF(VAR5,1),VAR5,0);
====================================
{资金流量 选股}
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE> OPEN,QJJ*(HIGH-LOW),IF(CLOSE< OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE> OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流量:LLJX> 0;
=====================================
{主力进出 N:1,100,8;M:1,100,13;P:1,100,60;S:1,100,3}
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
{主力开始出: IF(V4<= 0,V4,0),COLOR00FF00,LINETHICK2;}
主力开始进: IF(V4>= 0,V4,0){,COLORFF00FF,LINETHICK2};
{V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场: IF(VB>= 0,VB,0),COLORRED,LINETHICK2;
大资金撤走: IF(VB<= 0,VB,0),COLORBLUE,LINETHICK2;};
======================================
{海底探宝 设置 K>D}
{N 2 90 30 M 2 30 3}
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:=EMA(RSV,M);
D:=MA(K,M);
海底探宝:K> D;
评论(0)