股票软件通达信精品指标公式-裸K4主图指标源码通达信公式

2017-11-03    来源:原创    编辑:翔博软件
公式源码: DRAWGBK(C0,RGB(20,10,80),RGB(10,1,5),1,0,1); Z1:=STRCAT(HYBLOCK, ); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2, ); DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBL


公式源码:

DRAWGBK(C>0,RGB(20,10,80),RGB(10,1,5),1,0,1);

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;

{蓝}

STICKLINE(OPEN>=CLOSE,H,L,0,0),COLORFFFF00,LINETHICK1;{此为日K线的竖细线}

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.2,0),COLORFFBB00;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFDD00;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLORFFFF00;

{红}

STICKLINE(CLOSE>OPEN,H,L,0,0),COLORRED,LINETHICK1;{此为日K线的竖细线} 

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR000088;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0),COLOR0000BB;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.6,0),COLOR0000DD; 

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLOR0000FF;

A1:=EMA(C,14)COLORWHITE,LINETHICK1;

A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

看多做多:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORCYAN,LINETHICK1;

动态止损度:=3;

止损价:=CONST(HHV(C,5)*(100-动态止损度)/100);

止损:PLOYLINE(CONST(C)<=止损价,止损价),COLOR008000;

熊五:=MA(CLOSE,5),COLORWHITE,LINETHICK2;

牛十:=MA(CLOSE,10),COLORMAGENTA,LINETHICK2;

工作线:=EMA(CLOSE,34),COLOR00FFFF,LINETHICK2;

生命线:=EXPMA(EXPMA(CLOSE,50),1),COLORRED,LINETHICK2;

半:=MA(CLOSE,125),COLORCYAN,LINETHICK1;

年:=MA(CLOSE,250),COLORFF7F00,LINETHICK1;

LC:= REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

逃顶:=CROSS(80,RSI),COLORYELLOW,POINTDOT;

DRAWICON(CROSS(80,RSI),HIGH,2);

DRAWTEXT(FILTER(逃顶=1,1),HIGH*1.02,'顶'),COLORGRAY;

{追}

VAR112:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));

VAR113:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

DRAWTEXT(CROSS(VAR112,MA(VAR113,6)) AND 熊五>REF(熊五,1),(LOW * 1) ,'↖买'),COLORLIBLUE,LINETHICK1;

EM1:=EMA(C,5);

EM2:=EMA(C,7);

EM3:=EMA(C,11);

TJ:=BETWEEN(EM2,EM1,EM3);

立桩量:=FILTER(TJ=0,5);

突破买:REF(H,BARSLAST(立桩量))COLORRED,NODRAW;

TC1:=IF(H=HHV(H,8*14),H,DRAWNULL);

TC2:=CONST(BARSLAST(TC1=H))+1;

UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));

BC1:=IF(L=LLV(L,8*20),L,DRAWNULL);

BC2:=CONST(BARSLAST(BC1=L))+1;

LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));

LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}

HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位};

STICKLINE(LP,L*0.992,L,13,0),COLORFF00FF;

STICKLINE(HP,H,H*1.005,13,0),COLOR00FF00;

IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORLICYAN,POINTDOT,LINETHICK5;

DRAWTEXT(ISLASTBAR,看多做多*1.001,' 看多做多'),COLORC0C0C0,LINETHICK1;

PLOYLINE(CONST(C)<=止损价,止损价),COLOR008000,POINTDOT,LINETHICK4;

DRAWTEXT(DYNAINFO(7)<=止损价 AND ISLASTBAR,止损价*1.02,'☆止损'),COLOR008000,LINETHICK1;

{企稳箭头}

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

金牛线:=(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,COLOR999900,DOTLINE;

金马线:=MA(金牛线,6),COLORYELLOW;

DRAWICON(FILTER(CROSS(金牛线,金马线),20),金马线-0.2 ,25);

A0:=(L+H+C*2)/4;

工作:=EMA(A0,14)COLORYELLOW,LINETHICK1;

度假:=EMA(A0,25)COLORYELLOW,LINETHICK2;

A1X1:=(工作-REF(工作,1))/REF(工作,1)*100;

A2X1:=(度假-REF(度假,1))/REF(度假,1)*100;

减:IF(A2X1>=0,度假,DRAWNULL),COLORFF8080,LINETHICK2;

少:IF(A1X1>=0,工作,DRAWNULL),COLOR00FF00,DOTLINE;

 

特别提示:

选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280

1
3
点击进入翔博软件旗下官方微店--指标超市