股票软件通达信精品指标公式-板调量价指标源码通达信公式

2017-11-22    来源:原创    编辑:翔博软件
公式源码: M5:MA(CLOSE,5); M8:MA(CLOSE,8); 支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORMAGENTA; MA13:MA(C,13),COLORLICYAN; MA21:MA(C,21); M60:


公式源码:

M5:MA(CLOSE,5);

M8:MA(CLOSE,8);

支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORMAGENTA;

MA13:MA(C,13),COLORLICYAN;

MA21:MA(C,21);

M60:MA(CLOSE,60),COLORGREEN;

M50:MA(CLOSE,50);

M55:MA(CLOSE,55),COLORCYAN,LINETHICK1.7;

M154:MA(CLOSE,154),COLORBLUE;

DK:=O>REF(H,1) AND C>REF(H,1) AND L>REF(H,1);

ZTQ:=C<REF(C,1)*1.07 AND NOT(REF(C>REF(C,1)*1.09 AND C=H,1));

SYX:=(H-MAX(C,O))/MAX(C,O)*100>4 AND H>HHV(REF(H,1),20);

换手:=VOL/CAPITAL*100; 

T5:=换手>2 AND 换手<35;

跳空上阴:=(DK OR SYX) AND ZTQ AND C<45 AND T5;

DRAWTEXT(跳空上阴,H+0.05,'异动');

THQ:=O>REF(C,1) AND L>REF(C,1) AND C/REF(C,1)>=1.03;

QSJ:=BETWEEN(C>MA(C,20),1,65);

QK:=QSJ AND THQ;

DRAWTEXT(QK AND NOT(C=O),L-0.1,'缺');

平量:=ABS(V-HHV(REF(V,1),5))/HHV(REF(V,1),5)<=0.03 OR ABS(V-REF(V,1))/REF(V,1)<=0.03 AND C>O;

STICKLINE(平量,OPEN,CLOSE,1,0),COLORWHITE;

倍量:=(V/REF(V,1)>=1.90 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.90);

高量:=(V/REF(V,1)>3 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>3);

STICKLINE(高量,C,(C+O)/2,1,0),COLORYELLOW;

STICKLINE(倍量 AND NOT(高量),O,(C+O)/2,0.5,0),COLORYELLOW;

弃婴:=(O<REF(L,1) AND REF(C<O,1) AND BETWEEN(C/O,0.99,1.02) AND C<REF(C,1) AND ABS(OPEN-CLOSE)/CLOSE<0.04 AND CLOSE<MA(CLOSE,5)) OR (O<REF(L,1) AND REF(C<O,1) AND BETWEEN(C/O,0.99,1.02) AND C<REF(C,1));

STICKLINE(弃婴,H,L,0.1,0),COLORYELLOW;

STICKLINE(弃婴,O,C,2,0),COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,HYBLOCK);

DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);

A:=C>REF(C,1)*1.09 AND C=H;

STICKLINE(A,H,L,0,2),COLORYELLOW;

STICKLINE(A,O,C,3,2),LINETHICK2,COLORYELLOW;

TJ1:=REF(ABS(C-O)<0.12,1);

TJ2:=REF(ABS((C-O)/O)<0.03,1);

A1:=IF(C>O,C,O);

TJ3:=REF(H/A1>(1+1/100),1);

TJ4:=(MIN(O,C)-L)/L*100>2 AND (C<=O OR C<REF(H,1)) AND ABS((C-O)/O)<0.01;

CRX:=TJ2 AND TJ3 AND TJ4;

STICKLINE(CRX,H,L,0,2),COLORGREEN,LINETHICK3;

STICKLINE(CRX,O,C,5,2),LINETHICK3,COLORGREEN;

跌幅:=-(C-REF(C,1))/REF(C,1)*100;

XG2:=O<REF(L,1) AND REF(C<O,1) AND BETWEEN(C/O,0.99,1.02) AND C<REF(C,1) AND (跌幅>1.5 OR (C>REF(C,1) AND C<O));

DRAWTEXT(XG2,L-0.03,'弃婴');

TS:= BARSLAST(A);

A2:= IF(REF(L,TS)>REF(H,TS+1),REF(C,TS+1),REF(O,TS));

A22:=IF(REF(L,TS)>REF(H,TS+1),REF(C,TS+1),REF(L,TS));

A3:= BETWEEN(TS,5,8);

A4:= H>=A22;

A5:= V<REF(V,1);

A6:=L<=A2;

XG:=A3 AND A4 AND A6;{板后}

 

AA2:=IF(REF(L,TS)>REF(H,TS+1),(REF(H,TS+1)+REF(C,TS))/2,(REF(O,TS)+REF(C,TS))/2);{涨停当天最低价}

AA22:=IF(REF(L,TS)>REF(H,TS+1),REF(C,TS+1),REF(L,TS));

AA3:=BETWEEN(TS,3,8);

AA4:=L<=AA2;

AA6:=L>=AA22;

XG1:=AA3 AND AA4 AND AA6;{板后}

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=(DIFF-DEA)*2;

VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);

VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

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;

XXMA:=MA(C,3);

DD5:=XXMA<REF(XXMA,1);

持币:=IF(DD5,XXMA,DRAWNULL);

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

多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)

+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)

+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+

REF(X,20))/210;

DD:=多空线<REF(多空线,1);

AX:=(XXMA>多空线);

A1X:=(XXMA<多空线);

V1:=CLOSE*VOL;

V2:=EMA(V1,13)/EMA(VOL,13);

CYS:=(EMA((CLOSE-V2)/V2,1)*100);

AA:=CYS;

MIDD:=MA(CYS,20);

CC:=MIDD+0.85*STD(CYS,10);

TM6:=AA>CC;

MD1:=VAR1A  AND DIFF<=DEA AND XXMA>多空线;

MA20:=MA(C,20);

A201:= REF(MA20,1)*0.98;

A202:= REF(MA20,2)*0.98;

B202:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+2;

B201:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+1;

ZZ:=IF((REF(C,2)>=REF(MA20,2)) AND (REF(C,1)<REF(MA20,1)),

IF(REF(MA20,2)<REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2)>=REF(MA20,2) 

AND REF(C,1)<REF(MA20,1))>0,IF(REF(MA20, B202)< REF(MA20, B201),

REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));

中止:=ZZ;

A1Z:=MA20*0.98;

A2Z:=REF(MA20,1)*0.98;

A3Z:=BARSLAST(REF(C,1)>=REF(MA20,1) AND C<MA20)+1;

A4Z:=BARSLAST(REF(C,1)>=REF(MA20,1) AND C<MA20);

AA5Z:=IF((REF(C,1)>=REF(MA20,1)) AND (C<MA20),

IF(REF(MA20,1)<MA20,A1Z,A2Z),IF(BARSSINCE(REF(C,1)>=REF(MA20,1) AND 

C>MA20)>0,IF(REF(MA20, A3Z)< REF(MA20, A4Z),

REF(MA20,A4Z)*0.98, REF(MA20,A3Z)*0.98), REF(MA20,1)));

拐点支撑:=AA5Z<中止 AND AA3;{支撑位}

倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >2.5*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5);

STICKLINE(倒转锤头,O,C,1,0),COLORMAGENTA;

STICKLINE(倒转锤头,H,L,0,0),COLORMAGENTA;

火:=BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));

山:=COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);

调整:=REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1);

DT:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>-5.4;  

TOU:=V<REF(V,1) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);

DRAWICON(COUNT(XG1 OR XG,5)>0 AND NOT(MD1) AND NOT(VAR1A) AND (NOT(调整) OR TOU) AND (VAR19 OR 倒转锤头) AND NOT(REF(A,TS+1)),L-0.2,13);

PT:= REF(HIGH,1)-REF(LOW,1);

重心:=(HIGH + LOW + CLOSE)/3,NODRAW;

压力Ⅰ:=2*重心-LOW,NODRAW;

压力Ⅱ:=重心 + PT,NODRAW;

支撑Ⅰ:=2*重心-HIGH,NODRAW;

支撑Ⅱ:=重心 - PT,NODRAW;

AAA:=CONST(HHV(H,90));

R1:=MA(CLOSE,1);

R2:=MA(CLOSE,3);

R3:=(MA(R2,1)*1);

R4:=(MA(R2,3)*1);

TS1:= BARSLAST(A);

AQ3:=BETWEEN(TS1,2,20);

DRAWTEXT(CROSS(R3,R4) AND AQ3,(LOW-0.1),'B'),COLORBDB76B;

X1:=(C+L+H)/3;

DDQ:=TOTALCAPITAL;

SS:=FINANCE(7);

GG:=FINANCE(33);

TH:=DYNAINFO(39);

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

LC:=REF(CLOSE,1);

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

FF:=EMA(CLOSE,3);

MA15:=EMA(CLOSE,21);

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'S'),COLORGREEN;

双线持币:=HHV(MA(HIGH,(3)),2),LINETHICK1,COLOR00FF00;

单线持股:=LLV(MA(HIGH,(3)),1),LINETHICK1,COLOR0000FF;

VAREC:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

VAR12C:=(HIGH+LOW+CLOSE)/3;

VAR13C:=(VAR12C-MA(VAR12C,14))/(0.015*AVEDEV(VAR12C,14));

VAR14C:=(VAR12C-MA(VAR12C,70))/(0.015*AVEDEV(VAR12C,70));

VAR15C:=IF(VAR13C>=150 AND VAR13C<200 AND VAR14C>=150 AND VAR14C<200,10,0);

VAR16C:=IF(VAR13C<=-150 AND VAR13C>-200 AND VAR14C<=-150 AND VAR14C>-200,-10,VAR15C);

VAR17C:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

VAR18C:=100-ABS(VAR17C);

VAR19C:=IF(VAR18C<90,VAR18C,100);

VAR1AC:=IF(VAREC>0,VAREC,0);

VAR1BC:=IF(VAR14C>=200 AND VAR13C>=150,15,IF(VAR14C<=-200 AND VAR13C<=-150,-15,VAR16C))+60;

VAR1CC:=VAR1AC>48 AND VAR1BC>60 AND VAR19C<100;

DRAWTEXT(VAR1 AND COUNT(VAR1,30)=1,HIGH*1.02,'出货'),LINETHICK1,COLORFFCC66;

AA1:=AMOUNT/V;

BB1:=L<AA1*0.9;

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;

EE1:=V<MA(V,5)*1.5;

老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;

DRAWTEXT(老鼠仓,(LOW* 0.99),'鼠'),COLOR40CCFF;

LL:=REF(L,2);

XQK:=REF(H,1)<LL;

YSB:=REF(C,1)<REF(O,1) AND REF(VOL,1)/VOL>1.90;

STICKLINE(XQK AND YSB,H,L,0.1,0),COLORLICYAN;

DRAWTEXT(XQK AND YSB,L-0.1,'试底');

涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);

LCA:=REF(CLOSE,1);

操作线:=SMA(MAX(CLOSE-LCA,0),2,1)/SMA(ABS(CLOSE-LCA),2,1)*100;

趋势线:=SMA(MAX(CLOSE-LCA,0),14,1)/SMA(ABS(CLOSE-LCA),14,1)*100;

震仓线:=45;

震仓线2:=50;

逃命线:=80;

抄底线:=20;

绝底线:=5;

PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;

PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

HH:=COUNT(涨停,8)>=1;

QA:=SMA(L,4,3) ;

ZTHMQ:=QA AND (REF(PP,1) OR REF(PP3,1)) AND HH;

STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;

STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;

STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;

E3:=EMA(C,3),COLOR61DC16;

E5:=EMA(C,5),COLOR61DC16;

E8:=EMA(C,8),COLOR61DC16;

E10:=EMA(C,10),COLOR61DC16;

E12:=EMA(C,12),COLOR61DC16;

E15:=EMA(C,15),COLOR61DC16;

E30:=EMA(C,30),COLORD1875A;

E35:=EMA(C,35),COLORD1875A;

E40:=EMA(C,40),COLORD1875A;

E45:=EMA(C,45),COLORD1875A;

E50:=EMA(C,50),COLORD1875A;

E60:=EMA(C,60),COLORD1875A;

AAX:=BETWEEN(TS,3,18);

DRAWICON(AAX AND EMA(C,8)>EMA(C,15) AND EMA(C,40)>REF(EMA(C,40),1) AND CROSS(EMA(C,3),EMA(C,35)),L-0.20,24);

DRAWICON(AAX AND EMA(C,15)>EMA(C,40) AND EMA(C,35)>REF(EMA(C,35),1) AND CROSS(EMA(C,3),EMA(C,5)),L-0.20,25);

DRAWICON(AAX AND ABS(EMA(C,15)-EMA(C,60))/C<0.01 AND EMA(C,15)>EMA(C,30) AND O<EMA(C,3) AND C>EMA(C,3) AND O<EMA(C,15) AND C>EMA(C,15) AND O<EMA(C,30) AND C>EMA(C,30) AND O<EMA(C,60) AND C>EMA(C,60),L-0.20,27);

DRAWICON(AAX AND ABS(EMA(C,45)-EMA(C,30))/C<0.011 AND EMA(C,3)>EMA(C,15) AND EMA(C,15)>EMA(C,40) AND CROSS(EMA(C,5),EMA(C,60)),L-0.20,13);

A133:=OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60);

A23:=C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)));

A33:=V/MA(V,10)>1.2;

A43:=C/REF(C,1)>1.049;

出水芙蓉:=A133 AND A23 AND A33 AND A43 AND O<EMA(C,60) AND C>EMA(C,60);

DRAWICON(出水芙蓉,L-0.20,9);

M:=10;

回踩线:=MA(C,M);

中期线:=MA(C,60);

长期线:=MA(C,89);

均线多头:=中期线>REF(中期线,1) AND 长期线>REF(长期线,1);

大阳:=C/REF(C,1)>=1.09;

DYSJ:=BARSLAST(大阳);

跟踪:=BETWEEN(DYSJ,3,13) AND COUNT(L>REF(L,DYSJ),DYSJ)=DYSJ { AND C/REF(C,DYSJ)<0.95};

阻击点:=V/REF(V,DYSJ) AND  L<回踩线 AND C>回踩线;

机会:=跟踪 AND 阻击点 AND 均线多头;

DRAWICON(机会,L-0.20,1);

 

特别提示:

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

 

一个聚百万原创指标公式圈子

	

	

原创价值分享思维

ID:xiangbogongshi

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