当前位置:首页 > 通达信公式 > 正文

K线微积分律指标 通达信 副图 波段 短线 操盘控盘

2019-03-10原创 编 辑:翔博软件

问题怎样才能每天都收到这类文章!

答案只需点击上方《翔博软件工作室

做价值的传播者,路同行,一起成长



公式源码:

 

DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信订阅号:翔博软件工作室'),COLOR556699;

DRAWGBK(C>0,RGB(0,20,100),RGB(80,80,80),0,'12',0);

MACD:="MACD.MACD"*3,NODRAW;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.0001,0),COLORRED;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.0001,0),COLORLIRED;

STICKLINE(MACD<REF(MACD,1),0,MACD,0.0001,0),COLORCYAN;

VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);

VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);

QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);

前高:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORBLUE;

VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);

VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);

BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));

前低:DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1);

BDTJ:=IF(MACD<0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),

BARSCOUNT(C)),DRAWNULL);

TSBDTJ:=BARSLAST(BDTJ);

BDZH:=FILTERX(MACD<CONST(LLV(MACD,BD+1)),BARSCOUNT(C));

BDTS:=BARSLAST(BDZH);

本低:IF(BD+1>=1,CONST(LLV(MACD,BD+1)),DRAWNULL);

BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;

终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,

IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));

UU:=(终点=1 OR 终点=2) AND MACD>0;

ZZ:=FILTERX(UU,BARSCOUNT(C));

本高:DRAWLINE(ZZ,MACD,REF(ZZ,1),REF(MACD,1),1),COLORWHITE;

横线:=CONST(REF(MACD,BARSLAST(ZZ)));

WW:=MACD>横线;

起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));

天数:BARSLAST(起始点),COLORYELLOW,NODRAW;

 

{多空与微积分}

SHORT:=12;LONG:=26;MID:=9;

M1:=3;M2:=3;KG:=1;

DFC:=C-REF(C,1);

WJXS:=(LONG-SHORT)/2;

JGL_JF:WJXS*EMA(DFC,SHORT)COLORYELLOW;

DIF_JIP:=EMA(JGL_JF,LONG),COLOR1188FF;

DEA_GEM:=EMA(DIF_JIP,MID),COLORGREEN;

MACD_LING:=2*(DIF_JIP-DEA_GEM),COLOR1133FF,COLORSTICK;

K_DF_J:=SMA(JGL_JF,M1,1),DOTLINE,COLORFEDCBA;

D_DF_G:=SMA(K_DF_J,M2,1),DOTLINE,COLOR13F8F9;

J_DF_L:=2.5*K_DF_J-1.5*D_DF_G,COLORF813F9;

RF:=REF(J_DF_L,1);

DJ:=ABS(J_DF_L-RF);

MM:=(HHV(DJ,120)+LLV(DJ,120))/2;

STICKLINE(J_DF_L>RF,J_DF_L,RF,2.3,0),COLOR1388D3;

STICKLINE(J_DF_L>RF,J_DF_L,RF,1.0,0),COLOR13AAD3;

STICKLINE(J_DF_L<RF,J_DF_L,RF,2.3,0),COLOR338833;

STICKLINE(J_DF_L<RF,J_DF_L,RF,1.0,0),COLOR33AA33;

N:=SQRT(SHORT*LONG);

NN:=IF(N<9,9,N);

BZC:=STD(DFC,NN);

U:IF(KG=1,K_DF_J+2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;

D:IF(KG=1,K_DF_J-2*BZC,MA(C,25600)),COLORFE9813,CROSSDOT,LINETHICK2;

IF( U >= REF(U,1), U, DRAWNULL ), COLORRED,CROSSDOT,LINETHICK2;

IF( D >= REF(D,1), D, DRAWNULL ), COLORRED,CROSSDOT,LINETHICK2;

DRAWTEXT(TIME=70000,-0.4,'亚盘')COLORCYAN;

DRAWTEXT(TIME=160000,-0.4,'欧盘');

DRAWTEXT(TIME=210000,-0.4,'美盘')COLORYELLOW;

U1:(U+D)/2;

G:=CONST(IF(CURRBARSCOUNT<=81,HHV(H,BARSLAST(CURRBARSCOUNT=81)),0));

DA:=CONST(IF(CURRBARSCOUNT<=81,LLV(L,BARSLAST(CURRBARSCOUNT=81)),0));

STICKLINE(DATE!=REF(DATE,1) AND PERIOD<5,0.4,-0.4,0,-1)COLORWHITE;

上横线:DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;

下横线:DRAWLINE(BDZH,CONST(LLV(MACD,BD+1)),BDTJ=1,MACD,0),COLOR8080FF,DOTLINE;

DRAWNUMBER(BDTJ,CONST(LLV(MACD,BD+1))*0.9,BDTS);

DRAWNUMBER(ZZ,上横线*1.1,天数);

TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);

红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MACD>0,天数),DRAWNULL),COLORWHITE,NODRAW;

横线起始价:=REF(C,天数),NODRAW;

空间评估:=(横线起始价-C)/C*100,NODRAW;

TT:=BARSLAST(ZZ);

WQG:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),ZZ)=1,0.5) AND ZZ>=0;

STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 AND

MACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;

前高本高二分位:IF(MACD>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1)

,DRAWNULL),COLORC0C000,DOTLINE;

AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估,

DRAWNULL),2));

DRAWTEXT_FIX(C>0,0,1,0,STRCAT(AA,'﹪')),COLORWHITE;

DRAWTEXT(WQG,MACD*1.1,'本高成立'),COLORWHITE;

DRAWTEXT(BDCL,MACD*1.1,'本低成立'),COLORWHITE;

STICKLINE(WQG,MACD,0,1,0),COLORGREEN;

B1:=IF(CROSS(MACD<0,0.5),BARSNEXT(BDTJ),DRAWNULL);

TSB1:=BARSLAST(MACD>0)-1;

STICKLINE(BARSLAST(BDCL)>=0 AND MACD<前低  AND MACD<0,MACD,前低,1,0),COLORGREEN;

STICKLINE(BDCL,MACD,0,1,0),COLORWHITE;

STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(WQG)>0,

MACD,前高,1,0),COLORRED;

DRAWTEXT(VA2 AND VA2!=UU,U,'空');

DRAWTEXT(ZZ,(MACD/10)*9,'本'),COLORWHITE;

DRAWTEXT(ZZ,MACD/10,'高'),COLORWHITE;

DRAWTEXT(BDTJ,(MACD/10)*9,'低'),COLORRED;

DRAWTEXT(BDTJ,MACD/10,'本'),COLORRED;

IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;

STICKLINE(MACD>前高,MACD,前高,0.0001,0),COLORYELLOW;

STICKLINE(MACD<0 AND MACD<前低 AND 前低<0,MACD,前低,2,0),COLORBLUE;

倍量:=U>=2*REF(U,1) AND REF(U,1)<=REF(U,2) AND C>REF(C,1);

DRAWTEXT(倍量>=1 AND  U >= REF(U,1),0.25,'∠多'),COLORYELLOW;

STICKLINE(倍量>=1 AND  U >= REF(U,1),0.2,-0.2,0.00001,0),COLORRED;

EMA(JGL_JF,LONG)COLORGREEN,LINETHICK2;

IF(DIF_JIP>REF(DIF_JIP,1),DIF_JIP,DRAWNULL),COLORRED,LINETHICK3;

反均差:=EMA(CLOSE,26)*10-EMA(CLOSE,12)*10;

正均差:=EMA(CLOSE,12)*10-EMA(CLOSE,26)*10;

均差:=(正均差-反均差),COLORRED,LINETHICK1;

量比:VOL/REF(MA(VOL,5),1),,COLORYELLOW,NODRAW;

STICKLINE(量比>1.5 AND C>O AND 均差>0,U,0,0.5,0),COLORLIMAGENTA;

 

 天天有更新,每日领福利。

1,翔博软件新产品发布推广;

2,各大炒股名师讲座课程。

3,每天发布的指标公式,右上点“分享”右下点“好看”后,加在线客服免费领取!

马上加微信:xiangbosoft 回复“好看”参加,名额有限!

========================

提供服务如下:

1、转换 --- 根据客户提供的电脑板或者手机版技术指标源码,转换成自己的手机软件使用

2、编写 --- 按照客户定制指标时“提供的编写要求”,制作技术指标

3、修改 --- 按照客户“提供的修改要求”,修改技术指标

特别提示:

有手机指标的转换 测试 编写需求的朋友, 请联系微信:xiangbosoft 

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标