通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

通达信精准买卖副图指标公式源码

N:=3;

L0:=0.02;{点位差参数}

{底精准线}

L1:=ABS(L-REF(L,1))=L0;

L2:=ABS(L-REF(L,2))=L0;

L3:=ABS(L-REF(L,3))=L0;

L4:=ABS(L-REF(L,4))=L0;

L5:=ABS(L-REF(L,5))=L0;

精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;

精准左:=FILTER(精准线首次,N) ;

天数:=BARSLAST(精准左);

LTS:=REF(L,天数);

精准右:=ABS(L-LTS)=L0;

STICKLINE(精准左,L,L,50,-1),COLORMAGENTA;

DRAWLINE(精准左,L,精准右,LTS,1),COLORMAGENTA;

{顶精准线}

G1:=ABS(H-REF(H,1))=L0;

G2:=ABS(H-REF(H,2))=L0;

G3:=ABS(H-REF(H,3))=L0;

G4:=ABS(H-REF(H,4))=L0;

G5:=ABS(H-REF(H,5))=L0;

精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;

精准左1:=FILTER(精准线首次1,N) ;

天数1:=BARSLAST(精准左1);

GTS:=REF(L,天数1);

精准右1:=ABS(H-GTS)=L0;

STICKLINE(精准左1,H,H,50,-1),COLORGREEN;

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

V2:=EMA(V1,13)-EMA(V1,34);

V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;

主力撤: IF(V4=0,V4,0),COLORBLUE;

主力进: IF(V4=0,V4,0),COLORFF00FF;

V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;

V6:=EMA(3*V5-2*SMA(V5,18,1),5);

V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;

V8:=(INDEXC*2+INDEXH+INDEXL)/4;

V9:=EMA(V8,13)-EMA(V8,34);

VA:=EMA(V9,3);

VB:=(V9-VA)/2;

大盘资金进场:IF(VB=0,VB,0),COLORRED;

大盘资金撤走:IF(VB=0,VB,0),COLORGREEN;

V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);

趋势线: EMA(V11,3);

V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;

准备现金: STICKLINE(趋势线=13,0,20,2,0),COLORCC9900;

AA:=(趋势线=13) AND FILTER((趋势线=13),15);

DRAWTEXT (AA,40,'准备现金'),COLORCC9900;

买入股票: STICKLINE(趋势线=13 AND V1213,0,50,2,0),COLOR0099FF;

BB:= (趋势线=13 AND V1213) AND FILTER((趋势线=13 AND V1213),10) ;

DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;

卖临界: STICKLINE(趋势线90 AND 趋势线REF(趋势线,1),100,95,6,1),COLORFFFF00;

见顶清仓:FILTER(趋势线90 AND 趋势线REF(趋势线,1) AND 主力进REF(主力进,1),8);

DRAWTEXT( 见顶清仓,90,'逃顶'),COLORYELLOW;

CC:=(趋势线=90 AND V12) AND FILTER((趋势线=90 AND V12),10);

STICKLINE(大盘资金进场 AND 趋势线13,0,30,4,0),COLORRED;

STICKLINE(大盘资金撤走 AND 趋势线90,0,30,4,0),COLORGREEN;

STICKLINE(主力进 AND 趋势线13,0,40,4,0),COLORFF00FF;

STICKLINE(主力撤 AND 趋势线90,0,40,4,0),COLORBLUE;

image.png

通达信买卖精确副图指标源码

       VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

VAR5:=(VAR2+2*VAR3+3*VAR4)/6;

VAR6:=MA(VAR5,3);

MACD: VAR6*5,COLORSTICK ,LINETHICK2 ;

提醒: STICKLINE(VAR6=-6,0,-25,5,0), COLOR88B7EA ;

关注: STICKLINE(VAR6=-8,5,25,7,0), ;

出击: STICKLINE(VAR6=-10,80,100,5,0), COLORYELLOW;

警戒雷达: IF(VAR6-6,20,0),LINETHICK3 , COLORFF0000;

引导雷达: STICKLINE(VAR6=-10,65,35,4,0),;

制导雷达: STICKLINE(VAR6=-10,40,0,4,0), COLORRED;

发射: STICKLINE(VAR6=-10,80,30,3,0), COLORGREEN;

导弹: STICKLINE(VAR6=-10,80,60,3,0), COLORWHITE;

K: SMA(VAR1,3,1), COLORGREEN;

D: SMA(K,3,1), COLORYELLOW;

J: 3*K-2*D, COLORWHITE;

底: 20,LINETHICK1 , COLOR77AA1A;

入顶: 80,LINETHICK1 , COLOR9966FF;

大顶: 100,LINETHICK1 ,COLOR22A6E6;

MA3:=MA(C,3);

YTSL:=(3*C+L+O+H)/6;

辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLORFFFF00;

牵牛线:MA(C,26),COLOR669933;

等待:IF(MA3=辰星线,牵牛线,DRAWNULL),COLORGREEN,LINETHICK2;

中轨:=MA(C,26);

上轨:=中轨+STD(C,20);

下轨:=中轨-STD(C,20);

上极限:(中轨+2*STD(C,20)),COLORFF937F,LINETHICK2;

下极限:(中轨-2*STD(C,20)),COLORWHITE,LINETHICK2;

急速超跌:=(C-MA(C,34))/MA(C,34)*100-14;

VAR1:=(CREF(C,1) AND CREF(C,2));

VAR2:=(REF(VAR1,1) AND C=REF(C,1) AND C=REF(C,2));

VAR3:=(REF(VAR2,1) AND C=REF(C,1) AND C=REF(C,2));

VAR4:=(REF(VAR3,1) AND C=REF(C,1) AND C=REF(C,2));

VAR5:=(REF(VAR4,1) AND C=REF(C,1) AND C=REF(C,2));

VAR6:=(REF(VAR5,1) AND C=REF(C,1) AND C=REF(C,2));

VAR7:=(REF(VAR6,1) AND C=REF(C,1) AND C=REF(C,2));

VAR8:=(REF(VAR7,1) AND C=REF(C,1) AND C=REF(C,2));

VAR9:=(REF(VAR8,1) AND C=REF(C,1) AND C=REF(C,2));

VARA:=(REF(VAR9,1) AND C=REF(C,1) AND C=REF(C,2));

VARB:=(REF(VARA,1) AND C=REF(C,1) AND C=REF(C,2));

VARC:=(REF(VARB,1) AND C=REF(C,1) AND C=REF(C,2));

持股:IF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,辰星线,DRAWNULL),COLORRED,POINTDOT,LINETHICK5;

VARD:=(CREF(C,1) AND CREF(C,2));

VARE:=(REF(VARD,1) AND C=REF(C,1) AND C=REF(C,2));

VARF:=(REF(VARE,1) AND C=REF(C,1) AND C=REF(C,2));

VAR10:=(REF(VARF,1) AND C=REF(C,1) AND C=REF(C,2));

VAR11:=(REF(VAR10,1) AND C=REF(C,1) AND C=REF(C,2));

VAR12:=(REF(VAR11,1) AND C=REF(C,1) AND C=REF(C,2));

VAR13:=(REF(VAR12,1) AND C=REF(C,1) AND C=REF(C,2));

VAR14:=(REF(VAR13,1) AND C=REF(C,1) AND C=REF(C,2));

VAR15:=(REF(VAR14,1) AND C=REF(C,1) AND C=REF(C,2));

VAR16:=(REF(VAR15,1) AND C=REF(C,1) AND C=REF(C,2));

VAR17:=(REF(VAR16,1) AND C=REF(C,1) AND C=REF(C,2));

VAR18:=(REF(VAR17,1) AND C=REF(C,1) AND C=REF(C,2));

持币:IF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,辰星线,DRAWNULL),COLORLIGRAY,POINTDOT,LINETHICK5;

VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);

VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);

DRAWTEXT(VAR19,L,'短买'),COLOR33FFCC;

DRAWTEXT(VAR1A,H+0.1,'离场'),COLORFF99FF;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。