通达信时间指标源码大全(通达信最新指标源码)
本文目录一览:
通达信斐波那契时间指标公式
DRAWGBK(CO,RGB(20,10,90),RGB(0,0,0),0,'1',0);
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORFFFFFF;
DEA1:=EMA(DIFF1,9),COLORYELLOW;
macd1:=2*(DIFF1-DEA1);
MacD2:=EMA(MACD1,5);
stICKLINE(MACD1MACD2 AND MACD10,0,MACD1,3,0),COLOR000055;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,2.5,0),COLOR000077;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1.5,0),COLOR000099;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1,0),COLOR0000FF;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,3,0),COLOR222222;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,2.5,0),COLOR444444;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1.5,0),COLOR666666;
STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,0,0),COLOR999999;
STICKLINE(MACD1MACD2,0,MACD1,3,0),COLORA80000;
STICKLINE(MACD1MACD2,0,MACD1,2.5,0),COLORB80000;
STICKLINE(MACD1MACD2,0,MACD1,1.5,0),COLOREC1000;
STICKLINE(MACD1MACD2,0,MACD1,1,0),COLORFF4600;
STICKLINE(MACD1MACD2,0,MACD1,0,0),COLORFFAA00;
低位金叉:=crOSS(DIFF1,DEA1) AND DIFF1-0.1;
STICKLINE(低位金叉,0,DIFF1,3,0),COLOR002222;
STICKLINE(低位金叉,0,DIFF1,2.5,0),COLOR006666;
STICKLINE(低位金叉,0,DIFF1,1.5,0),COLOR009999;
STICKLINE(低位金叉,0,DIFF1,1,0),COLOR00FFFF;
DRAWTEXT(低位金叉,0.2,' 低位金叉'),COLOR00FF88;
JCCOUNT:=COUNT(CROSS(DIFF1,DEA1),BArslAST(DEA1=0));
二次金叉:=CROSS(DIFF1,DEA1) AND DEA10 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,MACD1,-0.01,3,0),COLOR440044;
STICKLINE(二次金叉,MACD1,-0.01,2.5,0),COLOR660066;
STICKLINE(二次金叉,MACD1,-0.01,1.5,0),COLOR990099;
STICKLINE(二次金叉,MACD1,-0.01,1,0),COLORFF00FF;
DRAWTEXT(二次金叉,DEA1*1.3,' 二次金叉'),COLORYELLOW;
A1:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)CLOSE AND DIFF1REF(DIFF1,A1+1) AND CROSS(DIFF1,DEA1);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
DRAWLINE(A1=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK1;
DRAWTEXT(底背离,0.03,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA1,DIFF1),1));
顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF1,A2+1)DIFF1 AND CROSS(DEA1,DIFF1);
DRAWLINE(A2=0,DEA1,顶背离,DEA1,0),COLORFF8800,LINETHICK1;
DRAWTEXT(顶背离,-0.02,' 顶背离'),COLORFFFF00;
DIFF:DIFF1,COLOR009922;
DEA:DEA1,COLORYELLOW;
ZT:=CROSS(DEA,DIFF);
LS0:=BARSLAST(ZT);
S1:=IF(1,LS0=1,ZT) AND IF(1,DIFFDEA,0);
DRAWTEXT(S1 AND DIFF0,DIFF*0.8,'1'),COLOR00FF00;
DRAWTEXT(S1 AND DIFF0,DIFF*1.8,'1'),COLOR00FF00;
S3:=IF(3,LS0=3,ZT) AND IF(3,DIFFDEA,0);
DRAWTEXT(S3 AND DIFF0,DIFF*0.8,'3'),COLOR00FF00;
DRAWTEXT(S3 AND DIFF0,DIFF*1.4,'3'),COLOR00FF00;
S5:=IF(5,LS0=5,ZT) AND IF(5,DIFFDEA,0);
DRAWTEXT(S5 AND DIFF0,DIFF*0.8,'5'),COLOR00FF00;
DRAWTEXT(S5 AND DIFF0,DIFF*1.4,'5'),COLOR00FF00;
S8:=IF(8,LS0=8,ZT) AND IF(8,DIFFDEA,0);
DRAWTEXT(S8 AND DIFF0,DIFF*0.8,'8'),COLOR00FF00;
DRAWTEXT(S8 AND DIFF0,DIFF*1.8,'8'),COLOR00FF00;
S13:=IF(13,LS0=13,ZT) AND IF(8,DIFFDEA,0);
DRAWTEXT(S13 AND DIFF0,DIFF*0.8,'13'),COLOR00FF00;
DRAWTEXT(S13 AND DIFF0,DIFF*1.2,'13'),COLOR00FF00;
S21:=IF(21,LS0=21,ZT) AND IF(21,DIFFDEA,0);
DRAWTEXT(S21 AND DIFF0,DIFF*0.8,'21'),COLOR00FF00;
DRAWTEXT(S21 AND DIFF0,DIFF*1.2,'21'),COLOR00FF00;
S26:=IF(26,LS0=26,ZT) AND IF(26,DIFFDEA,0);
DRAWTEXT(S26 AND DIFF0,DIFF*0.8,'26'),COLOR00FF00;
DRAWTEXT(S26 AND DIFF0,DIFF*1.2,'26'),COLOR00FF00;
S29:=IF(29,LS0=29,ZT) AND IF(29,DIFFDEA,0);
DRAWTEXT(S29 AND DIFF0,DIFF*0.8,'29'),COLOR00FF00;
DRAWTEXT(S29 AND DIFF0,DIFF*1.2,'29'),COLOR00FF00;
S34:=IF(34,LS0=34,ZT) AND IF(34,DIFFDEA,0);
DRAWTEXT(S34 AND DIFF0,DIFF*0.8,'34'),COLOR00FF00;
DRAWTEXT(S34 AND DIFF0,DIFF*1.8,'34'),COLOR00FF00;
S55:=IF(55,LS0=55,ZT) AND IF(55,DIFFDEA,0);
DRAWTEXT(S55 AND DIFF0,DIFF*0.8,'55'),COLOR00FF00;
DRAWTEXT(S55 AND DIFF0,DIFF*1.8,'55'),COLOR00FF00;
S68:=IF(68,LS0=68,ZT) AND IF(68,DIFFDEA,0);
DRAWTEXT(S68 AND DIFF0,DIFF*0.8,'68'),COLOR00FF00;
DRAWTEXT(S68 AND DIFF0,DIFF*1.8,'68'),COLOR00FF00;
ZTJ:=CROSS(DIFF,DEA);
LSJ:=BARSLA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LORFFFFFF;
DRAWTEXT(SJ26 AND DIFF0,DIFF*0.8,'26'),COLORFFFFFF;
SJ29:=IF(29,LSJ=29,ZTJ) AND IF(29,DIFFDEA,0);
DRAWTEXT(SJ29 AND DIFF0,DIFF*1.2,'29'),COLORFFFFFF;
DRAWTEXT(SJ29 AND DIFF0,DIFF*0.8,'29'),COLORFFFFFF;
SJ34:=IF(34,LSJ=34,ZTJ) AND IF(34,DIFFDEA,0);
DRAWTEXT(SJ34 AND DIFF0,DIFF*1.2,'34'),COLORFFFFFF;
DRAWTEXT(SJ34 AND DIFF0,DIFF*0.8,'34'),COLORFFFFFF;
SJ47:=IF(47,LSJ=47,ZTJ) AND IF(47,DIFFDEA,0);
DRAWTEXT(SJ47 AND DIFF0,DIFF*1.2,'47'),COLORFFFFFF;
DRAWTEXT(SJ47 AND DIFF0,DIFF*0.8,'47'),COLORFFFFFF;
SJ55:=IF(55,LSJ=55,ZTJ) AND IF(55,DIFFDEA,0);
DRAWTEXT(SJ55 AND DIFF0,DIFF*1.2,'55'),COLORFFFFFF;
DRAWTEXT(SJ55 AND DIFF0,DIFF*0.8,'55'),COLORFFFFFF;
SJ60:=IF(60,LSJ=60,ZTJ) AND IF(60,DIFFDEA,0);
DRAWTEXT(SJ60 AND DIFF0,DIFF*1.2,'63'),COLORFFFFFF;
DRAWTEXT(SJ60 AND DIFF0,DIFF*0.8,'63'),COLORFFFFFF;
SJ68:=IF(68,LSJ=68,ZTJ) AND IF(68,DIFFDEA,0);
DRAWTEXT(SJ68 AND DIFF0,DIFF*1.2,'68'),COLORFFFFFF;
DRAWTEXT(SJ68 AND DIFF0,DIFF*0.8,'68'),COLORFFFFFF;
通达信指标公式源码很实用的抄底逃顶指标
通达信指标公式源码很实用通达信时间指标源码大全的抄底逃顶指标
在底部出现买入信号通达信时间指标源码大全,在高点出现卖出信号
通达信 dkx多空线指标源码?
DKX 多空线 通达信 主图、选股、源码请参考下面内容:
通达信 DKX 多空线(系统)通达信系统自身指标,DKX自身指标为副图,为方便你的认识,改为主图、增加选股。
DKX 多空线 源码由下面组合成;
MID:=(3*收盘价+最低价+开盘价+最高价)/6;
DKX:(20*MID+19*向前引用(MID,1)+18*向前引用(MID,2)+17*向前引用(MID,3)+16*向前引用(MID,4)+15*向前引用(MID,5)+14*向前引用(MID,6) +13*向前引用(MID,7)+12*向前引用(MID,8)+11*向前引用(MID,9)+10*向前引用(MID,10)+9*向前引用(MID,11)+8*向前引用(MID,12) +7*向前引用(MID,13)+6*向前引用(MID,14)+5*向前引用(MID,15)+4*向前引用(MID,16)+3*向前引用(MID,17)+2*向前引用(MID,18)+ 向前引用(MID,20))/210;
其实DKX指标是一个在事后来看很准的一个指标,由于DKX指标不受短期波动的影响,滞后性是肯定的。
DKX指标实际上就是个“看上去很美”的指标,但是却是很难把握其运用时机的指标。
多空线主图 源码:
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,10),DOTLINE;
IF((MADKX=REF(MADKX,1)),MADKX,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF((MADKX选股:=CLOSE=DKX AND CROSS(DKX,MADKX);
DRAWICON(选股,L*0.96,30);
选股 源码:
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,10);
选股:CLOSE=DKX AND CROSS(DKX,MADKX);
多空线是一个统计性指标。它是将主动买、主动卖的成交按时间区间分别统计而形成的一个曲线,其坐标为0-100,在买卖双方愿望相同的情况下,它在50左右徘徊, 当接近100时,表示买力愿望加强,预示后市有上升的可能,当接近0值时,表示卖目录一览方愿望强烈,预示后示有下降可能。对于50线的穿越,结合量的配合要特别留意。
多空线有两条线,以交叉方式提示买入卖出。第一个参数是移动平均周期, 用以滤除干扰,第二个参数是放量概念,是一个倍数,指示现时间段的成交量和前五个时间段的成交量的倍数, 当放量向上突破50线时,多空线打出红色标志,向下突破时, 打出绿色标志引起注意。多空线适合各种的分析周期。
求通达信指定时间段总跌幅的选股公式
SS:=REFDATE(CLOSE0,1091231);SSANDC/REFDATE(CLOSE,1091231)一、《通达信集成版》v7.52软件新语法新函数引用各种公式从《通达信集成版》软件开始,交易系统公式,条件选股公式也可以被引用.引用时若有参数指定,则使用指定参数,否则使用指标通达信时间指标源码大全的缺省参数;指定通达信时间指标源码大全了指标的某一条输出线,则使用该输出线,否则使用第一条输出线.引用画线指标公式画线指标直接引用或以引号说明.例如:MID:=KDJ.K(10,2)MID:=KDJ.K(10,2)表示以(10,2)为参数计算指标公式KDJ的K值,并赋值给MID.
二、引用分析家的公式通达信时间指标源码大全:公式名称.指标线名称(参数表)中参数表中的参数个数应该与该公式的实际参数数量一致,若不写参数表,则表示使用缺省参数.例如MACD.DIF表示引用根据缺省参数计算的MACD指标中的DIF指标线数值.引用交易系统公SYSTEM.公式名称.交易类型(参数表)
三、交易类型可以为ENTERLONG,EXITLONG,ENTERSHORT或者EXITSHORT,分别示引用多头买入,多头卖出,空头买入,空头卖出.考虑兼容,BUYPOINT,SELLPOINT等老的方式仍然支持.引用条件选股公式条件选股公式由EXPLORER导出.暂时还不支持引用五彩K线公式.例如,要指示涨停版的K线画蓝色,可以定义输出线:UP:CLOSE=REF(CLOSE,1)×1.1,COLORBLUE.跨周期引用公式引用其通达信时间指标源码大全他周期数据,使用#运算符指明周期.包括:MIN1[分钟],MIN5[5分钟],MIN15[15分钟],MIN30[30分钟],MIN60[60分钟],DAY[日线],WEEK[周线],MONTH[月线].例如得到KDJ的周线数据,可以表述为:MACD#WEEK.应注意的是,只从较短周期引用较长周期,反方向的引用不允许.
四、引用其它股票数据:您还可以在公式中引用其它任和股票的数据,方法为:股票代码$数据名称例如要得到0001的收盘价,可以表示:0001$CLOSE;数据名称可以是OPEN,HIGH,LOW,CLOSE,VOL,AMOUNT,分别表示包括开盘价,最高价,最低价,收盘价,交量,成交额.公式导出,导入导出公式1.点击公式管理器的〖导出公式〗按钮,弹出对话框供用户输出公式.2.在输出公式时,系统列出可供输出的四类公式,用鼠标点取待输出公式前的方框将其选中.导入公式在引入公式时,系统显示所有待引入的公式.若某公式在系统中已存在同名公式则会在导公式对话框下方提示.新引入公式的名称可以被更改,方法是先选中该公式,然后用鼠标再次点击它的名称部分.临时引入临时引入的公式将不保存在系统硬盘上,退出后这些公式随即自动消失.这对需要公式保密的网络版用户很有帮助.