通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
相关简介:通达信精准选股公式(能抓几乎所有黑马)源码分享
一、先说买点的选择:
开盘后走高,回调不破开盘价位
若个股当日想走强,开盘后会表现出上升的强势征兆,如遭大盘下跌抛压,但个股回调能护住开盘价位不破,这种既有升势,又有回调的稳健走势,排除了开盘后急拉猛升所暗藏的企图,将在以后向上的趋势中非常稳健。
长时间横盘
早盘横盘的个股在后市有出色的表现,那是因为经受住了大盘在第一个回合中下跌的考验。长时间横盘的个股更是经历了多次的考验,理应不该看坏。早盘横盘的个股因时间短,振幅间距小,表面看振荡较小不易辨认。而长时间横盘的个股,由于横盘时间较长,均价线水平状态易于查觉,股价缠绕均价线小幅上下波动的现象明显。此种情况由于多产生在k线形态跌势的底部或上升回调的盘局,抛压轻,庄家护盘,所以,应对这种股票高度关注,一旦有上攻苗头,买盘大笔出现,应及时跟进。因为这类个股有可能平地拔起、快升至涨停板都不足为奇。
二、再说说卖点的选择:
阴跌
前面讲过股价急跌不可怕,那是庄家震仓行为。阴跌则不同,那是庄家出逃的真动作,出发点多在股价的高位区或者有鸡狗有了新欢。庄家要拉高出货势会受到获利盘抛压。无疑要造成不必要的资金损失,而急跌又不能卖出好价钱。唯有阴跌适中,因为有些人看大势向好,料想该股会跟随或有反弹。阴跌走势的个股庄家做空意志坚定,大盘转好也改变不了初衷。仓中有这样股票,发现大盘走势向好已带动不了该股的走强,应及早斩仓,转投有强势征兆的个股。
直线上升,多头陷井(除尾市)
有的个股分时走势原处在跌势中,突然股价直线拔高上升,瞬间上窜到令人惊讶的高度,大有封板之势。追上这般强势股票,岂不很快涨停?岂不暴利?无论大盘,还是个股,在正常情况下,缓步攀升为放心走势,急促地拉升股价,常是多头陷井。庄家制造出升高假像,为的是吸引跟风盘以达到某种目的,走势疲惫谁去追捧?遇见这种走势,有票可在高位择机派发,无票切不可追涨,股价冲至一定高度定会落下,那时再考虑是否介入不迟。就可能到那时狐狸尾巴已露,你或许已没有吃的“胃口”了。
通达信指标公式源码:
涨幅:=DYNAINFO(14)*100,NODRAW;
N3:=BARSLAST(CROSS(C,MA(C,20)));
N4:=BARSLAST(CROSS(MA(C,20),C));
黑马跟踪:IF(N3<N4,N3+1,0);
涨幅跟踪:(C-REF(C,黑马跟踪))/REF(C,黑马跟踪)*100;
换手:vol/CAPITAL*100 LINETHICK0,NODRAW;
百日换手:SUM(换手,100)LINETHICK0,NODRAW;
换手跟踪:SUM(换手,0)-REF(SUM(换手,0),黑马跟踪),COLORFF937F LINETHICK0;
跟踪系数:换手跟踪/涨幅跟踪,COLOR00FF00 LINETHICK0;
N1:=BARSLAST(CROSS(C,MA(C,250)));
N2:=BARSLAST(CROSS(MA(C,250),C));
长期趋势:IF(N1<N2,N1+1,0),NODRAW;
乖离率:(C-MA(C,250))/MA(C,250)*100,NODRAW;
A1:=CROSS(“MACD.DIF”,”MACD.DEA”);
A2:=CROSS(“KDJ.K”,”KDJ.D”)AND”KDJ.K”<-20;
A3:=”CCI.CCI”<-90 AND”CCI.CCI”>-100;
A4:=CROSS(“rsi.RSI1″,”RSI.RSI2″)AND”RSI.RSI1″<50;
A5:=REF(“WR.WR1”,1)>90 AND”WR.WR1″<70;
A6:=CROSS(“BIAS.BIAS1”,-5);
A7:=REF(“DMI.PDI”,1)<REF(“DMI.MDI”,1)AND REF(“DMI.PDI”,1)<REF(“DMI.ADX”,1)AND REF(“DMI.PDI”,1)<REF(“DMI.ADXR”,1)AND”DMI.PDI”>”DMI.MDI”AND”DMI.PDI”>”DMI.ADX”AND”DMI.PDI”>”DMI.ADXR”;
A8:=CROSS(“MFI.MFI”,20)AND REF(“MFI.MFI”,1)<20;
MTM:=CLOSE-REF(CLOSE,20);
MAMTM:=MA(MTM,60);
A9:=CROSS(MTM,MAMTM);
OSC:=100*(CLOSE-MA(CLOSE,20));
MAOSC:=EXPMEMA(OSC,6);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:=MA(DKX,20);
A10:=”ADTM.ADTM”<-0.8;
AA1:=A1 AND A2 AND A3;
AA2:=A1 AND A2 AND A4;
AA3:=A1 AND A2 AND A5;
AA4:=A1 AND A2 AND A6;
AA5:=A1 AND A2 AND A7;
AA6:=A1 AND A2 AND A8;
AA7:=A1 AND A2 AND A9;
AA8:=A1 AND A2 AND A10;
AA9:=A1 AND A3 AND A4;
AA10:=A1 AND A3 AND A5;
AA11:=A1 AND A3 AND A6;
AA12:=A1 AND A3 AND A7;
AA13:=A1 AND A3 AND A8;
AA14:=A1 AND A3 AND A9;
AA15:=A1 AND A3 AND A10;
AA16:=A1 AND A4 AND A5;
AA17:=A1 AND A4 AND A6;
AA18:=A1 AND A4 AND A7;
AA19:=A1 AND A4 AND A8;
AA20:=A1 AND A4 AND A9;
AA21:=A1 AND A4 AND A10;
AA22:=A1 AND A5 AND A6;
AA23:=A1 AND A5 AND A7;
AA24:=A1 AND A5 AND A8;
AA25:=A1 AND A5 AND A9;
AA26:=A1 AND A5 AND A10;
AA27:=A1 AND A6 AND A7;
AA28:=A1 AND A6 AND A8;
AA29:=A1 AND A6 AND A9;
AA30:=A1 AND A6 AND A10;
AA31:=A1 AND A7 AND A8;
AA32:=A1 AND A7 AND A9;
AA33:=A1 AND A7 AND A10;
AA34:=A1 AND A8 AND A9;
AA35:=A1 AND A8 AND A10;
AA36:=A1 AND A9 AND A10;
AA37:=A2 AND A3 AND A4;
AA38:=A2 AND A3 AND A5;
AA39:=A2 AND A3 AND A6;
AA40:=A2 AND A3 AND A7;
AA41:=A2 AND A3 AND A8;
AA42:=A2 AND A3 AND A9;
AA43:=A2 AND A3 AND A10;
AA44:=A2 AND A4 AND A5;
AA45:=A2 AND A4 AND A6;
AA46:=A2 AND A4 AND A7;
AA47:=A2 AND A4 AND A8;
AA48:=A2 AND A4 AND A9;
AA49:=A2 AND A4 AND A10;
AA50:=A2 AND A5 AND A6;
AA51:=A2 AND A5 AND A7;
AA52:=A2 AND A5 AND A8;
AA53:=A2 AND A5 AND A9;
AA54:=A2 AND A5 AND A10;
AA55:=A2 AND A6 AND A7;
AA56:=A2 AND A6 AND A8;
AA57:=A2 AND A6 AND A9;
AA58:=A2 AND A6 AND A10;
AA59:=A2 AND A7 AND A8;
AA60:=A2 AND A7 AND A9;
AA61:=A2 AND A7 AND A10;
AA62:=A2 AND A8 AND A9;
AA63:=A2 AND A8 AND A10;
AA64:=A2 AND A9 AND A10;
AA65:=A3 AND A4 AND A5;
AA66:=A3 AND A4 AND A6;
AA67:=A3 AND A4 AND A7;
AA68:=A3 AND A4 AND A8;
AA69:=A3 AND A4 AND A9;
AA70:=A3 AND A4 AND A10;
AA71:=A3 AND A5 AND A6;
AA72:=A3 AND A5 AND A7;
AA73:=A3 AND A5 AND A8;
AA74:=A3 AND A5 AND A9;
AA75:=A3 AND A5 AND A10;
AA76:=A3 AND A6 AND A7;
AA77:=A3 AND A6 AND A8;
AA78:=A3 AND A6 AND A9;
AA79:=A3 AND A6 AND A10;
AA80:=A3 AND A7 AND A8;
AA81:=A3 AND A7 AND A9;
AA82:=A3 AND A7 AND A10;
AA83:=A3 AND A8 AND A9;
AA84:=A3 AND A8 AND A10;
AA85:=A3 AND A9 AND A10;
AA86:=A4 AND A5 AND A6;
AA87:=A4 AND A5 AND A7;
AA88:=A4 AND A5 AND A8;
AA89:=A4 AND A5 AND A9;
AA90:=A4 AND A5 AND A10;
AA91:=A4 AND A6 AND A7;
AA92:=A4 AND A6 AND A8;
AA93:=A4 AND A6 AND A9;
AA94:=A4 AND A6 AND A10;
AA95:=A4 AND A7 AND A8;
AA96:=A4 AND A7 AND A9;
AA97:=A4 AND A7 AND A10;
AA98:=A4 AND A8 AND A9;
AA99:=A4 AND A8 AND A10;
AA100:=A4 AND A9 AND A10;
AA101:=A5 AND A6 AND A7;
AA102:=A5 AND A6 AND A8;
AA103:=A5 AND A6 AND A9;
AA104:=A5 AND A6 AND A10;
AA105:=A5 AND A7 AND A8;
AA106:=A5 AND A7 AND A9;
AA107:=A5 AND A7 AND A10;
AA108:=A5 AND A8 AND A9;
AA109:=A5 AND A8 AND A10;
AA110:=A5 AND A9 AND A10;
AA111:=A6 AND A7 AND A8;
AA112:=A6 AND A7 AND A9;
AA113:=A6 AND A7 AND A10;
AA114:=A6 AND A8 AND A9;
AA115:=A6 AND A8 AND A10;
AA116:=A6 AND A9 AND A10;
AA117:=A7 AND A8 AND A9;
AA118:=A7 AND A8 AND A10;
AA119:=A7 AND A9 AND A10;
AA120:=A8 AND A9 AND A10;
XG:=AA1 OR AA2 OR AA3 OR AA4 OR AA5 OR AA6 OR AA7 OR AA8 OR AA9 OR AA10 OR AA11 OR AA12 OR AA13 OR AA14 OR
AA15 OR AA16 OR AA17 OR AA18 OR AA19 OR AA20 OR AA21 OR AA22 OR AA23 OR AA24 OR AA25 OR AA26 OR AA27 OR
AA28 OR AA29 OR AA30 OR AA31 OR AA32 OR AA33 OR AA34 OR AA35 OR AA36 OR AA37 OR AA38 OR AA39 OR AA40 OR
AA41 OR AA42 OR AA43 OR AA44 OR AA45 OR AA46 OR AA47 OR AA48 OR AA49 OR AA50 OR AA51 OR AA52 OR AA53 OR
AA54 OR AA55 OR AA56 OR AA57 OR AA58 OR AA59 OR AA60 OR AA61 OR AA62 OR AA63 OR AA64 OR AA65 OR AA66 OR
AA67 OR AA68 OR AA69 OR AA70 OR AA71 OR AA72 OR AA73 OR AA74 OR AA75 OR AA76 OR AA77 OR AA78 OR AA79 OR
AA80 OR AA81 OR AA82 OR AA83 OR AA84 OR AA85 OR AA86 OR AA87 OR AA88 OR AA89 OR AA90 OR AA91 OR AA92 OR
AA93 OR AA94 OR AA95 OR AA96 OR AA97 OR AA98 OR AA99 OR AA100 OR AA102 OR AA103 OR AA104 OR AA105 OR
AA106 OR AA107 OR AA108 OR AA109 OR AA110 OR AA112 OR AA113 OR AA114 OR AA115 OR AA116 OR AA117 OR
AA118 OR AA119 OR AA120;
选股:IF(XG,1,0),COLORRED;
stICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;
STICKLINE(C<OANDC>REF(C,1),C,O,3,0),COLORFFCC00;
STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,3,0),COLORred;
STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.7,0),COLORred;
STICKLINE(CLOSE>REF(CLOSE,1)ANDC>O,OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;
STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;
回归斜率线A:=Ema(SLOPE(C,4)*20+C,42);
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D;
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
MAHL2:=IF(EMA(C,2)>回归斜率线AANDMAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
MAHL3:=IF(EMA(C,2)>回归斜率线AANDMAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
上线:=SMA(C,6.5,1);
支撑线:SMA(C,14.5,1),COLORFF00FF;
上线1:=SMA(C,3,1);
一号支撑线1:=SMA(C,8,1);
上线2:=SMA(C,3.5,1);
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
UPR:=BBI+3*STD(BBI,13);
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,55);
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
DRAWTEXT(crOSS(82,RSI)ANDCLOSE<上线1,HIGH*1.04,’减仓’),COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作线:MA(A7,5),COLORRED,LINETHICK2;
操作1:=MA(A7,5)*1.03;
操作2:=MA(A7,5)*0.97;
PARTLINE(操作线,操作线>=REF(操作线,1),RGB(255,0,0),操作线<REF(操作线,1),RGB(0,255,0)),Linethick2;
a38:=BIGORDER(1,2);
a39:=BIGORDER(2,2);
a40:=(((a38-a39)*vol)/CAPITAL)*500;
a16:=REF(CLOSE,1);
DRAWTEXT(((((OPEN/a16)>1.03)AND(CLOSE<OPEN))AND(a40<0)),H+0.4,’←出货’),colorMagenta;
DRAWTEXT(CROSS(操作线,支撑线),LOW*0.95,’↑做多’),COLORRED;
箱底:LLV(A7,21),Color006EFF;
箱顶:HHV(A7,30),COLORFFBB77;
DRAWTEXT(CROSS(支撑线,操作线),H*1.06,’清仓’),COLOR00FF00;
YCX:=操作线>=REF(操作线,1);
H1:=MAX(MAX(上线,一号支撑线1),支撑线);
L1:=MIN(MIN(上线,一号支撑线1),支撑线);
M1:=1000*操作线/支撑线<=1015AND1000*操作线/支撑线>=975;
M2:=1000*一号支撑线1/支撑线<=1020AND一号支撑线1/支撑线>=980;
M3:=1000*上线/支撑线<=1015AND上线/支撑线>=985;
D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<DANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08ANDCLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,’抄底‘),COLORBROWN;
RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
K:=SMA(RSV,3,1);
D1:=SMA(K,3,1);
J:=3*K-2*D1;
VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}
VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}
E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;
F:=MA(E,3)+0.03;
G:=MA(E,1);
DRAWICON(CROSS(F,G)ANDJ>65,HIGH*1.02,15),COLORGREEN;
DRAWICON(CROSS(G,F),LOW*1.01,12),COLORYELLOW;
DRAWTEXT(CLOSE>OPENANDH1<CANDO<L1ANDYCXANDCROSS(上线1,操作线)ANDLOW>箱底AND上线1>支撑线ANDJ<90,LOW*0.9,’主升’),COLORRED;
DRAWTEXT(CROSS(上线1,操作线)ANDM1ANDM2ANDM3,LOW*0.94,’买进’),COLORYELLOW;
DRAWTEXT(CLOSE>OPENAND上线>一号支撑线1AND一号支撑线1>支撑线ANDCLOSE>MA(CLOSE,支撑线)AND操作线>=REF(CLOSE,操作线)ANDCROSS(上线1,操作线)ANDLOW>箱底ANDJ<90,LOW*0.9,’主升’),COLORRED;
重心:(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);
DRAWTEXT(CROSS(SJ,ZJ)ANDSJ<30,L-0.05,’←低吸’),COLOR00FFFF;
DRAWTEXT(CROSS(ZJ,SJ)ANDSJ>70,H+0.05,’←高抛’),COLOR00FFFF;
[源码注释]通达信公式动态翻译结果
ZT赋值:如果模糊匹配品种名称ORNAMELIKE(‘*ST’),返回计算涨停价,否则返回如果模糊匹配品种代码OR(模糊匹配品种代码ANDDATE>=1200824),返回计算涨停价,否则返回计算涨停价
1日前的最近2日存在收盘价=ZT
评论(0)