股票软件通达信精品指标公式-涨停板回调点指标源码通达信公式

2017-11-20    来源:原创    编辑:翔博软件
公式源码: MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA60:MA(CLOSE,60); MA120:MA(CLOSE,120); MA250:MA(CLOSE,250); CM:=IF(WINNER(CLOSE),WINNER(CLOSE)*10


公式源码:

MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA60:MA(CLOSE,60);

MA120:MA(CLOSE,120);

MA250:MA(CLOSE,250);

CM:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,20)<10 AND C<O;

STICKLINE(CM,O,C,1,0),COLORLICYAN;

CM1:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,20)<0.2 AND C<O;

STICKLINE(CM1,O,C,1,0),COLORGREEN;

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,'异动');

TH:=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 TH;

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;

★早晨之星:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND

CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);

★黄昏之星:=REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND

CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2);

★长十字:=CLOSE=OPEN AND HIGH/LOW >1.03;

★垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH;

★早晨十字星:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND

CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);

★黄昏十字星:=REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND

CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2);

★射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >2.3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);

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

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

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

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

STICKLINE(★锤头,O,C,2,0),COLORMAGENTA;

★吊颈:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);

★穿头破脚:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))

OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1));

★乌云盖顶:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1);

★曙光初现:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);

STICKLINE(★曙光初现,O,(C+O)/2,1,0),COLORLIMAGENTA;

★身怀六甲:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND

MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1));

★十字胎:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN AND

CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1));

★平顶:=ABS(HIGH-REF(HIGH,1))/HIGH<0.001;

★平底:=(ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001);

★大阳烛:=CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018;

★红三兵:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN

AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1);

★双飞乌鸦:=REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98;

★孕育线:=REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100  AND REF(OPEN,1)>=REF(CLOSE,1) AND

(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND

(CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100;

★多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;

★出水芙蓉:=(OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))

AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049);

★上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND

REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND

REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4);

★下跌三部曲:= REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND

REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND

CLOSE<REF(CLOSE,4);

★跳空缺口:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1);

★三只乌鸦:=REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1);

★光脚阴线:=LOW=CLOSE AND HIGH!=LOW;

★光头阳线:=HIGH=CLOSE AND HIGH!=LOW;

★分离:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0;

★长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;

★长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;

★十字星:=CLOSE=OPEN AND HIGH!=LOW;

★大阴烛:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;

★好友反攻:=(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)

OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002);

★倾盆大雨:=REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1);

DRAWTEXT( ★早晨之星,IF(★早晨之星,H,L),IF(★黄昏之星,IF(★十字星,'',''),IF(★十字星,'晨十字','晨星'))),COLORGREEN;

DRAWTEXT(★乌云盖顶 OR ★曙光初现 OR ★好友反攻,IF(★乌云盖顶,H,L-L*0.01),IF(★乌云盖顶,'',IF(★曙光初现,'曙',''))),COLORLIGRAY;

DRAWTEXT(★射击之星 OR ★吊颈 OR ★十字胎,IF(★射击之星,H,L),IF(★射击之星,'',IF(★吊颈,'','十字胎'))),COLORLIBLUE;

DRAWTEXT(★锤头 OR ★倒转锤头 OR ★孕育线,IF(★锤头,H,L),IF(★锤头,'锤头',IF(★倒转锤头,'锤','孕线'))),COLORLIGREEN;

DRAWTEXT(★平顶 OR ★平底,IF(★平顶,H,L),IF(★平底,'','')),COLORLICYAN;

STICKLINE(C>REF(C,1) AND C<O,O,C,1,0),LINETHICK3,COLORRED;

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;

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

CY1:=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(CY1,L-0.03,'弃婴');

弃婴1:=(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(弃婴1 OR CRX OR CY1,H,L,0.1,0),COLORYELLOW;

STICKLINE(弃婴1 OR CRX OR CY1,O,C,2,0),COLORGREEN;

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.2,'洗盘底');

N1:=30;

LLL:=REF(L,1);

XQK1:=H<LLL;

STICKLINE(XQK1,H,LLL,0.2*N1,2),COLORBLUE;

STICKLINE(YSB,O,C,2,0),COLORMAGENTA;

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

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

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

TS:= BARSLAST(ZT);

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,3,8);

A4:= H>=A22;

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

A6:=L<=A2;

XGG:=A3 AND A4 AND A6 AND A5;

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,5,9);

AA4:=L<=AA2;

AA6:=L>=AA22;

XG1:=AA3 AND AA4 AND AA6;

火:=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:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);

年线1:=EMA(C,83);

主力1:=EMA(C,3)/1.01; 

压力1:=MA(LLV(C,3)*1.1,8); 

支撑1:=MA(HHV(C,8)*0.9,8); 

多空线:=(压力1+支撑1)/2; 

散户:=(压力1+支撑1)/2;

趋势线:=SMA(LLV(C,3)*1.1,22,1);

牛熊线:=SMA(年线1-(主力1-年线1)*0.5,5,1);

FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));

FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);

撑压线:=IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17));

LTP:=C<40 AND FINANCE(7)/100000000<8  AND IF(NAMELIKE('*'),0,1)  AND  IF(NAMELIKE('S'),0,1);

T:=IF((BARSCOUNT(C)>7),(100)*((MA(C,7))/(LLV(MA(C,7),7))-1),1);

N:=IF((T>0.35),6,65) AND C>MA(C,5);

GO:=CROSS(撑压线,牛熊线) OR (撑压线>=牛熊线 AND C>撑压线 AND C>牛熊线);

GO1:=COUNT(XG1 OR XGG,5)>0 AND NOT(调整) AND TOU AND NOT(REF(ZT,TS+1));

LSG:=DYNAINFO(11)+(DYNAINFO(11)*0.001);

XG:=GO AND GO1  AND N {AND DYNAINFO(7)>DYNAINFO(11) } AND IF(C>AMOUNT/V/100+AMOUNT/V/100*0.012,1,0);

DRAWICON(XG,L-0.1,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(ZT);

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

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

 

涨停:=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;

趋势线1:=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,26);

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,26);

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,26);

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,26);

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;

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

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

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

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

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

 

 

 

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

	

	

原创价值分享思维

ID:xiangbogongshi

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