当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:我的通达信公式集(源码)
软件名称:[B]我的通达信公式集(源码)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:解密版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2009-07-16 06:46:22
软件简介:
全部公式仅仅提供源码
通达信的七条均线及洗盘公式
M5:MA(CLOSE,5);
M10:MA(CLOSE,10);
M20:MA(CLOSE,20);
M30:MA(CLOSE,30);
M60:MA(CLOSE,60),LINETHICK2;
M120:MA(CLOSE,120),LINETHICK2;
M250:MA(CLOSE,250),LINETHICK2;
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J<20;
STICKLINE(REF(J,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ),(C+O)/2,O,3,0 ),COLORAA00BB;
双多阴买入
抄跌:CROSS(C,MA(C,2)) AND C<MA(C,5) AND C<0.88*HHV(H,5) AND REF(O>C,1) AND REF(O>C,2);
抄跌:CROSS(C,MA(C,2)) AND C<MA(C,5) AND C<0.88*HHV(H,5) AND REF(O>C,1) AND REF(O>C,2);
TDX成交量选股
条件:今天的成交量等于或者小于昨天的成交量的三分之二。ST及停盘的股票除外。
{去停牌除ST 且今天的成交量等于或者小于昨天的成交量的三分之二}
除ST:=EXIST(ABS(C-REF(C,1))/REF(C,1)>0.06,120);
量:=V<=0.6666*REF(V,1);
除停牌:=DYNAINFO(8)>0;
XG:除ST AND 量 AND 除停牌;
条件:今天的成交量等于或者小于昨天的成交量的三分之二。ST及停盘的股票除外。
{去停牌除ST 且今天的成交量等于或者小于昨天的成交量的三分之二}
除ST:=EXIST(ABS(C-REF(C,1))/REF(C,1)>0.06,120);
量:=V<=0.6666*REF(V,1);
除停牌:=DYNAINFO(8)>0;
XG:除ST AND 量 AND 除停牌;
十字星选股公式!!!
KSTAR:CLOSE=OPEN&&HIGH>LOW;
KSTAR:CLOSE=OPEN&&HIGH>LOW;
画线买主图
p 1.00 50.00 8.00
DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) AND C<HHV(C,45),HHV(HIGH,3),1),COLORYELLOW;
DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1),COLORFFCCCC;
AB:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;
DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),COLORBLUE;
VA11:=HIGH>=HHV(HIGH,60);
V1:=(REF(VA11,1)>0 AND VA11<1);
VA12:=LOW<=LLV(LOW,60);
V2:=REF(VA12,1)>0 AND VA12<1;
CD:DRAWLINE(V2,LOW,V1,LLV(LOW,6),1),COLOR0099FF;
DRAWICON(CROSS(C,AB),L*0.98,7);
DRAWTEXT(CROSS(CD,C),L*0.98,'注'),COLORYELLOW;
波段线:=ZIG(3,P),COLORWHITE;
波段涨天:BARSLASTCOUNT(波段线>REF(波段线,1)),NODRAW;
VAR1:=(C-REF(C,波段涨天))/REF(C,波段涨天)*100;
涨幅%:IF(波段涨天>0,VAR1, DRAWNULL),NODRAW;
波段跌天:BARSLASTCOUNT(波段线<REF(波段线,1)),NODRAW;
VAR2:=(C-REF(C,波段跌天))/REF(C,波段跌天)*100;
跌幅%:IF(波段跌天>0,VAR2, DRAWNULL),NODRAW;
AA2:=AMOUNT/V;
BB2:=L<AA2*0.9;
CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD2:=L<MA(C,5)*0.921;
EE2:=V<MA(V,5)*1.5;
FF2:=BB2 AND CC2 AND DD2 AND EE2,LINETHICK0;
{DRAWTEXT(FF2,L*0.99,' 鼠'),COLORYELLOW;}
STICKLINE(FF2,O,C,4,0),COLORRED;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWICON(CROSS(88,RSI),(HIGH * 1.02),2);
p 1.00 50.00 8.00
DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) AND C<HHV(C,45),HHV(HIGH,3),1),COLORYELLOW;
DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1),COLORFFCCCC;
AB:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;
DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),COLORBLUE;
VA11:=HIGH>=HHV(HIGH,60);
V1:=(REF(VA11,1)>0 AND VA11<1);
VA12:=LOW<=LLV(LOW,60);
V2:=REF(VA12,1)>0 AND VA12<1;
CD:DRAWLINE(V2,LOW,V1,LLV(LOW,6),1),COLOR0099FF;
DRAWICON(CROSS(C,AB),L*0.98,7);
DRAWTEXT(CROSS(CD,C),L*0.98,'注'),COLORYELLOW;
波段线:=ZIG(3,P),COLORWHITE;
波段涨天:BARSLASTCOUNT(波段线>REF(波段线,1)),NODRAW;
VAR1:=(C-REF(C,波段涨天))/REF(C,波段涨天)*100;
涨幅%:IF(波段涨天>0,VAR1, DRAWNULL),NODRAW;
波段跌天:BARSLASTCOUNT(波段线<REF(波段线,1)),NODRAW;
VAR2:=(C-REF(C,波段跌天))/REF(C,波段跌天)*100;
跌幅%:IF(波段跌天>0,VAR2, DRAWNULL),NODRAW;
AA2:=AMOUNT/V;
BB2:=L<AA2*0.9;
CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD2:=L<MA(C,5)*0.921;
EE2:=V<MA(V,5)*1.5;
FF2:=BB2 AND CC2 AND DD2 AND EE2,LINETHICK0;
{DRAWTEXT(FF2,L*0.99,' 鼠'),COLORYELLOW;}
STICKLINE(FF2,O,C,4,0),COLORRED;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWICON(CROSS(88,RSI),(HIGH * 1.02),2);
简单的DMI选股公式!
n 2.00 90.00 14.00
m 2.00 60.00 6.00
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI: DMP*100/TR;
MDI: DMM*100/TR;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:EXPMEMA(ADX,M);
PDI上穿ADX和ADXR的同时ADX已经上穿了ADXR选股公式
n 2.00 90.00 14.00
m 2.00 60.00 6.00
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI: DMP*100/TR;
MDI: DMM*100/TR;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:EXPMEMA(ADX,M);
PDI上穿ADX和ADXR的同时ADX已经上穿了ADXR选股公式
七条均线源码
M5:MA(CLOSE,5);
M10:MA(CLOSE,10);
M20:MA(CLOSE,20);
M30:MA(CLOSE,30);
M60:MA(CLOSE,60),LINETHICK2;
M120:MA(CLOSE,120),LINETHICK2;
M250:MA(CLOSE,250),LINETHICK2;
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J<20;
STICKLINE(REF(J,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ),(C+O)/2,O,3,0 ),COLORAA00BB;
求出现紫色买点的选股公式
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J<20;
XG:REF(J,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ);
M5:MA(CLOSE,5);
M10:MA(CLOSE,10);
M20:MA(CLOSE,20);
M30:MA(CLOSE,30);
M60:MA(CLOSE,60),LINETHICK2;
M120:MA(CLOSE,120),LINETHICK2;
M250:MA(CLOSE,250),LINETHICK2;
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J<20;
STICKLINE(REF(J,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ),(C+O)/2,O,3,0 ),COLORAA00BB;
求出现紫色买点的选股公式
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=MA(RSV,2.5);
D:=MA(K,2.5);
J:=3*K-2*D;
JJ:=J<20;
XG:REF(J,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ);
股价选股
选出股价在4.00————6.00之间的股票,ST以及停牌的除外
{去停牌除ST 且4-6元}
除ST:=EXIST(ABS(C-REF(C,1))/REF(C,1)>0.06,120);
元4~6:=C>4 AND C<6;
除停牌:=DYNAINFO(8)>0;
除ST AND 元4~6 AND 除停牌;
选出股价在4.00————6.00之间的股票,ST以及停牌的除外
{去停牌除ST 且4-6元}
除ST:=EXIST(ABS(C-REF(C,1))/REF(C,1)>0.06,120);
元4~6:=C>4 AND C<6;
除停牌:=DYNAINFO(8)>0;
除ST AND 元4~6 AND 除停牌;
今天的成交量是昨天的三分之二
VOL<=REF(VOL,1)*2/3;
VOL<=REF(VOL,1)*2/3;
[url=http://www.70822.com/soft/sort013/sort05/down-10891.html]我的通达信公式集(源码)[/url]