首页 > 通达信选股公式

豪杰红星系列之彩虹线主图MACD狙击手豪杰DDX异动DDX通达信指标

作者:爱指标源码创建日期:2023-11-13

主图S43K线密码—破译K线的密码

MA5:MA(CLOSE,5),COLORMAGENTA;S43K线密码—破译K线的密码

MA8:MA(CLOSE,8),COLORBLUE;S43K线密码—破译K线的密码

MA10:MA(CLOSE,10),COLORCYAN;S43K线密码—破译K线的密码

MA13:MA(CLOSE,13),COLORGREEN;S43K线密码—破译K线的密码

MA16:MA(CLOSE,16),COLORYELLOW;S43K线密码—破译K线的密码

MA20:MA(CLOSE,20),COLORLIRED;S43K线密码—破译K线的密码

MA24:MA(CLOSE,24),COLORRED;S43K线密码—破译K线的密码

X_1:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);S43K线密码—破译K线的密码

X_2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.2);S43K线密码—破译K线的密码

X_3:=IF(FINANCE(3)=3 OR FINANCE(3)=4,X_2,X_1);S43K线密码—破译K线的密码

STICKLINE(X_3,OPEN,CLOSE,2,0),COLORYELLOW;S43K线密码—破译K线的密码

STICKLINE(X_3,HIGH,LOW,0,0),COLORYELLOW;S43K线密码—破译K线的密码

DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLORYELLOW;S43K线密码—破译K线的密码

DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;S43K线密码—破译K线的密码

DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORYELLOW;S43K线密码—破译K线的密码

DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK);S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

副图1S43K线密码—破译K线的密码

X_1:=MACD.MACD;S43K线密码—破译K线的密码

X_2:=HHVBARS(X_1,BARSLAST(X_1<0)+1);S43K线密码—破译K线的密码

X_3:=CROSS(BACKSET(CROSS(0,X_1),REF(X_2,1)+2),0.5);S43K线密码—破译K线的密码

X_4:=CROSS(BACKSET(CROSS(0,X_1) OR (ISLASTBAR AND X_1>0),REF(X_2,1)+2),0.5);S43K线密码—破译K线的密码

X_5:=DRAWLINE(X_3,X_1,REF(X_3,1),REF(X_1,1),1);S43K线密码—破译K线的密码

STICKLINE(X_1>0,0,X_1,1.8,0),COLORAA00AA;S43K线密码—破译K线的密码

STICKLINE(X_1<0,0,X_1,1.8,0),COLORLICYAN;S43K线密码—破译K线的密码

X_6:=LLVBARS(X_1,BARSLAST(X_1>0)+1);S43K线密码—破译K线的密码

X_7:=CROSS(BACKSET(CROSS(X_1,0),REF(X_6,1)+2),0.5);S43K线密码—破译K线的密码

X_8:=BARSLAST(FILTERX(CROSS(0,X_1),BARSCOUNT(CLOSE)));S43K线密码—破译K线的密码

X_9:=DRAWLINE(X_7,X_1,REF(X_7,1),REF(X_1,1),1);S43K线密码—破译K线的密码

STICKLINE(X_1<0 AND X_1<X_9 AND X_9<0,X_1,X_9,1,0),COLORBLUE;S43K线密码—破译K线的密码

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;S43K线密码—破译K线的密码

DEA:EMA(DIF,9),COLORGREEN,LINETHICK2;S43K线密码—破译K线的密码

X_10:=BARSLAST(REF(CROSS(DIF,DEA),1));S43K线密码—破译K线的密码

X_11:=REF(CLOSE,X_10+1)>CLOSE AND DIF>REF(DIF,X_10+1) AND CROSS(DIF,DEA);S43K线密码—破译K线的密码

底背:DRAWLINE(X_10=0,DEA,X_11,DEA,0),COLORRED,LINETHICK2;S43K线密码—破译K线的密码

X_12:=BARSLAST(REF(CROSS(DEA,DIF),1));S43K线密码—破译K线的密码

X_13:=REF(CLOSE,X_12+1)<CLOSE AND REF(DIF,X_12+1)>DIF AND CROSS(DEA,DIF);S43K线密码—破译K线的密码

顶背:DRAWLINE(X_12=0,DEA,X_13,DEA,0),COLORBLUE,LINETHICK2;S43K线密码—破译K线的密码

MACD1:(DIF-DEA)*2,COLORSTICK,COLORLIBLUE;S43K线密码—破译K线的密码

X_14:=COUNT(MACD1>0,30)=0 AND BARSCOUNT(MACD1=LLV(MACD1,30))>=15 AND DYNAINFO(4)>0 AND HHV(MACD1,5)>REF(MACD1,12) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,15);S43K线密码—破译K线的密码

DRAWICON(X_14,X_1*1.01,25);S43K线密码—破译K线的密码

DRAWTEXT(X_14,0*0.1,3),COLORGREEN;S43K线密码—破译K线的密码

X_15:=COUNT(MACD1>0,10)=0 AND BARSCOUNT(MACD1=LLV(MACD1,10))>=6 AND DYNAINFO(4)>0 AND HHV(MACD1,3)>REF(MACD1,7) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,7);S43K线密码—破译K线的密码

DRAWICON(X_15,X_1*1.01,26);S43K线密码—破译K线的密码

DRAWICON(X_15,X_1*1.01,26);S43K线密码—破译K线的密码

X_16:=CROSS(DEA,0) AND DIF>0;S43K线密码—破译K线的密码

X_17:=21;S43K线密码—破译K线的密码

X_18:=FILTER(BACKSET(FILTER(REF(X_1,X_17)=HHV(X_1,2*X_17+1),X_17),X_17+1),X_17);S43K线密码—破译K线的密码

TOP21:DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(X_18))+1,X_1,ISLASTBAR,REF(X_1,BARSLAST(X_18)),1),COLORGREEN;S43K线密码—破译K线的密码

X_19:=CROSS(DEA,DIF) AND DEA>0 AND DIF>0;S43K线密码—破译K线的密码

X_20:=CROSS(DIF,DEA) AND COUNT(X_19=1,6)>=1 AND DIF>0 AND DEA<0.55 AND X_1>REF(X_1,2);S43K线密码—破译K线的密码

DRAWICON(X_20,0-0.05,34);S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

副图2S43K线密码—破译K线的密码

AA:=IF(CLOSE<0,0,SUM(IF(CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1),VOL,0),2));S43K线密码—破译K线的密码

BB:=IF(CLOSE<0,0,SUM(IF(CLOSE<REF(CLOSE,1) AND VOL<REF(VOL,1),VOL,0),2));S43K线密码—破译K线的密码

DD:=IF(CLOSE<0,0,AA-BB);S43K线密码—破译K线的密码

X0:=IF(CLOSE<0,0,IF(DD>0 AND (CLOSE/REF(CLOSE,1)-1)*100>0,AMOUNT/100,0));S43K线密码—破译K线的密码

X1:=IF(CLOSE<0,0,IF(DD<0 AND (CLOSE/REF(CLOSE,1)-1)*100<0,AMOUNT/100,0));S43K线密码—破译K线的密码

DDX:IF(CLOSE<0,0,(X0-X1)/CAPITAL*CLOSE/100),NODRAW;S43K线密码—破译K线的密码

选股:IF(CLOSE<0,0,DDX>=0 AND (CLOSE/REF(CLOSE,1)-1)*100>4),NODRAW;S43K线密码—破译K线的密码

DRAWTEXT(选股,DDX*1.06,'★买'),LINETHICK2,COLORYELLOW;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,3.5,0),COLOR00AAAA;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,3,0),COLOR00BBBB;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,2.5,0),COLOR00CCCC;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,2,0),COLOR00DDDD;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,1,0),COLOR00EEEE;S43K线密码—破译K线的密码

STICKLINE(DDX>0,0,DDX,0.3,0),COLOR00FFFF;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,3.5,0),COLORFF9900;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,3,0),COLORFFAA00;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,2.5,0),COLORFFBB00;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,2,0),COLORFFCC00;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,1,0),COLORFFDD00;S43K线密码—破译K线的密码

STICKLINE(DDX<0,0,DDX,0.3,0),COLORFFEE00;S43K线密码—破译K线的密码

周净流入:SUM(X0-X1,5),COLOR6622FF,NODRAW;S43K线密码—破译K线的密码

DDX1:=EMA(DDX,60)*15.367;S43K线密码—破译K线的密码

DDX2:=MA(DDX1,5);S43K线密码—破译K线的密码

DDX3:=MA(DDX1,10);S43K线密码—破译K线的密码

天:=COUNT(X0-X1>0,5);S43K线密码—破译K线的密码

SNJW:="KDJ.J" - REF("KDJ.J",1) > 30 AND CLOSE / REF(CLOSE,1) > 1.043 AND "MACD.MACD" > 0 AND "MACD.DEA" > 0;S43K线密码—破译K线的密码

DRAWTEXT(SNJW,DDX*0.6,'★九稳'),LINETHICK2,COLORYELLOW;S43K线密码—破译K线的密码

上影部分:=(H-C)/(H-L);S43K线密码—破译K线的密码

实体部分:=(C-O)/(H-L);S43K线密码—破译K线的密码

下影部分:=(O-L)/(H-L);S43K线密码—破译K线的密码

拉中:=实体部分*0.8*V;S43K线密码—破译K线的密码

拉上:=上影部分*0.2*V;S43K线密码—破译K线的密码

拉下:=下影部分*0.2*V;S43K线密码—破译K线的密码

洗中:=实体部分*0.2*V;S43K线密码—破译K线的密码

洗上:=上影部分*0.8*V;S43K线密码—破译K线的密码

洗下:=下影部分*0.8*V;S43K线密码—破译K线的密码

Z:=拉中+拉上+拉下;S43K线密码—破译K线的密码

F:=洗中+洗上+洗下;S43K线密码—破译K线的密码

燃料:(Z-F)/10000,NODRAW;S43K线密码—破译K线的密码

温度:(C-MA(C,24))/MA(C,240)*100,NODRAW;S43K线密码—破译K线的密码

STICKLINE( 燃料>0,0,DDX/2,2,0),COLORRED;S43K线密码—破译K线的密码

{黑马庄现}S43K线密码—破译K线的密码

VAR260:=EMA(CLOSE,2)-EMA(CLOSE,150);S43K线密码—破译K线的密码

VAR270:=EMA(VAR260,100);S43K线密码—破译K线的密码

VAR280:=2*(VAR260-VAR270);S43K线密码—破译K线的密码

VAR290:=POW(VAR280,3)*0.1+POW(VAR280,1);S43K线密码—破译K线的密码

龙抬头:=IF( VAR280>0.1,VAR290,0)*5;S43K线密码—破译K线的密码

TSWR:=REF(龙抬头,1)=0 AND REF(龙抬头,2)=0 AND REF(龙抬头,3)=0 AND 龙抬头>0;S43K线密码—破译K线的密码

SC:=100*(CLOSE-MA(CLOSE,26));S43K线密码—破译K线的密码

MAO:=EMA(SC,9);S43K线密码—破译K线的密码

VAR1G:=(CLOSE*2+HIGH+LOW)/4;S43K线密码—破译K线的密码

VAR2G:=EMA(VAR1G,13)-EMA(VAR1G,26);S43K线密码—破译K线的密码

VAR3G:=EMA(VAR2G,2);S43K线密码—破译K线的密码

A11:=(-2)*(VAR2G-VAR3G)*10000;S43K线密码—破译K线的密码

B11:=2*(VAR2G-VAR3G)*10000;S43K线密码—破译K线的密码

必涨A:=CROSS(B11,A11);  S43K线密码—破译K线的密码

DRAWTEXT(TSWR>0.1 AND CROSS(SC,MAO),0,'↑  马'),COLORMAGENTA;S43K线密码—破译K线的密码

DRAWTEXT(TSWR>0.1 AND 必涨A,0,'↑庄'),COLORMAGENTA;S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

副图3S43K线密码—破译K线的密码

JJ:=(HIGH+LOW+CLOSE)/3;S43K线密码—破译K线的密码

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);S43K线密码—破译K线的密码

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));S43K线密码—破译K线的密码

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));S43K线密码—破译K线的密码

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));S43K线密码—破译K线的密码

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));S43K线密码—破译K线的密码

DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;S43K线密码—破译K线的密码

V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);S43K线密码—破译K线的密码

V5:=SMA(V2*240/FROMOPEN*0.9,5,1);S43K线密码—破译K线的密码

DIFF:(EMA(V2,12)-EMA(V2,26))*100/EMA(V2,26),COLORRED;S43K线密码—破译K线的密码

DEA:EMA(DIFF,9),COLORRED;S43K线密码—破译K线的密码

DIF:IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;S43K线密码—破译K线的密码

ADEA:IF(DEA<REF(DEA,1),DEA,DRAWNULL),COLORGREEN;S43K线密码—破译K线的密码

V10:=SMA(V5,5,1);S43K线密码—破译K线的密码

V20:=SMA(V10,5,1);S43K线密码—破译K线的密码

DRAWKLINE(V2*1.01*10,REF(V2,1)*10,REF(V2,1)*0.99*10,V2*10);S43K线密码—破译K线的密码

当日DDX:DDX,NODRAW;S43K线密码—破译K线的密码

STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),REF(V2,1),MAX(V2,V2*120/FROMOPEN*0.8),0,0),COLORLIMAGENTA;S43K线密码—破译K线的密码

STICKLINE(CURRBARSCOUNT=1 AND C<REF(C,1),REF(V2,1),MIN(V2,V2*120/FROMOPEN*0.8),0,0),COLORLIGREEN;S43K线密码—破译K线的密码

DRAWTEXT(DIFF<-200,DIFF,'异动'),COLORMAGENTA;S43K线密码—破译K线的密码

DRAWTEXT(CROSS(V2,REF(V2,1)*1.2) AND LONGCROSS(CLOSE,REF(C,1)*1.025,4) AND DDX/REF(MA(DDX,5),1)>2,REF(V2,1),'★'),COLORMAGENTA;S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

DRAWICON(CROSS(DIFF,DEA),DEA,1);S43K线密码—破译K线的密码

X:=(3*C+L+O+H)/6;S43K线密码—破译K线的密码

多空线:=(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)S43K线密码—破译K线的密码

+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)S43K线密码—破译K线的密码

+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+S43K线密码—破译K线的密码

REF(X,20))/210,COLORFF00FF,LINETHICK2;S43K线密码—破译K线的密码

注意:ABS(DIFF)-ABS(REF(DIFF,1))>28 AND REF(多空线,1)<多空线  AND DIFF<0;S43K线密码—破译K线的密码

DRAWTEXT(注意,DIFF,'注意'),COLORMAGENTA;S43K线密码—破译K线的密码

{强攻:REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,1)<DIFF AND REF(V2*1.01,1)-REF(V2,2)*0.99<0 AND V2*1.01-REF(V2,1)*0.99>0 AND REF(DIFF,1)>REF(DEA,1);S43K线密码—破译K线的密码

DRAWICON(强攻,DEA,25);}S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

今日量:V2*1.01-REF(V2,1)*0.99,NODRAW;{K线柱大小}S43K线密码—破译K线的密码

昨日量:REF(V2*1.01,1)-REF(REF(V2,1)*0.99,1),NODRAW;S43K线密码—破译K线的密码

倍量:今日量/ABS(昨日量),NODRAW;S43K线密码—破译K线的密码

 S43K线密码—破译K线的密码

上一篇:豪杰红星系列之操盘主图超短买入注意买入等通达信主图副图指标

下一篇:巡航定速主图豪杰极品KDJ豪杰低吸通达信指标

猜你喜欢