通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、出手就赢主图指标公式 A0:=(L+H+C*2)/4; A1:=EMA(A0,14)COLORYELLOW,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(EMA(A0,20)-REF(EMA(A0,20),1))/REF(EMA(A0,20),1)*100; G1:=BARSLAST(CROSS(A1X,0)); 买⼊⽌损:REF(A0,G1),COLORWHITE,LINETHICK1; 脉冲:(A0-A1)/A1*100,NODRAW; 斜脉冲:(A0-REF(A0,1))/(A1-REF(A1,1)),NODRAW; 买⼊盈利:(A0-买⼊⽌损)/买⼊⽌损*100,NODRAW; Y1:=REF(A0,G1)*1.1,COLORGREEN; Y2:=REF(A0,G1)*1.2,COLORGREEN; Y3:=REF(A0,G1)*1.3,COLORGREEN; Y4:=REF(A0,G1)*1.4,COLORGREEN; Y5:=REF(A0,G1)*1.5,COLORGREEN; Y6:=REF(A0,G1)*1.6,COLORGREEN; Y7:=REF(A0,G1)*1.7,COLORGREEN; B1:IF(A1X =0,买⼊⽌损,DRAWNULL),COLORRED,LINETHICK1; B2:IF(A1X =0,A1,DRAWNULL),COLORFF33FF,LINETHICK2; ①:IF(H =Y1,Y1,DRAWNULL),COLORGREEN,LINETHICK3; ②:IF(H =Y2,Y2,DRAWNULL),COLORGREEN; ③:IF(H =Y3,Y3,DRAWNULL),COLORGREEN,CIRCLEDOT; ④:IF(H =Y4,Y4,DRAWNULL),COLORGREEN; ⑤:IF(H =Y5,Y5,DRAWNULL),COLORGREEN; ⑥:IF(H =Y6,Y6,DRAWNULL),COLORGREEN; ⑦:IF(H =Y7,Y7,DRAWNULL),COLORGREEN; JX1:=MA(C,5); JX2:=MA(C,10); JX3:=MA(C,20); JTTJ1:=BARSLAST(CROSS(JX1,JX2)); JTTJ2:=BARSLAST(CROSS(JX1,JX3)); JTTJ3:=BARSLAST(CROSS(JX2,JX3)); JTTJ4:=JTTJ1 =JTTJ2; JTTJ5:=JTTJ2 =JTTJ3; JTTJ6:=JTTJ3=0; ⽉价托:=JTTJ4ANDJTTJ5ANDJTTJ6; JX4:=MA(C,40); JX5:=MA(C,60); JTTJ7:=BARSLAST(CROSS(JX3,JX4)); JTTJ8:=BARSLAST(CROSS(JX3,JX5)); JTTJ9:=BARSLAST(CROSS(JX4,JX5)); JTTJ10:=JTTJ7 =JTTJ8; JTTJ11:=JTTJ8 =JTTJ9; JTTJ12:=JTTJ9=0; 季价托:=JTTJ10ANDJTTJ11ANDJTTJ12; JTTJ13:=BARSLAST(CROSS(JX1,JX2)); JTTJ14:=BARSLAST(CROSS(JX1,JX5)); JTTJ15:=BARSLAST(CROSS(JX2,JX5)); JTTJ16:=JTTJ13 =JTTJ14; JTTJ17:=JTTJ14 =JTTJ15; JTTJ18:=JTTJ15=0; 短长托:=JTTJ16ANDJTTJ17ANDJTTJ18; BOLL:=MA(C,20); UPPER:=BOLL+2*STD(C,20); LOWER:=BOLL-2*STD(C,20); ⼤⿊马:=CROSS(C,UPPER)ANDC/REF(C,1) 1.05,COLORRED; DRAWTEXT(⼤⿊马ANDC MA(C,60)ANDC MA(C,90)ANDC MA(C,120)AND C MA(C,250),H*1.03,敢死队),COLORYELLOW; DRAWTEXT(⽉价托,L*0.98,⽉价托),COLORWHITE; DRAWTEXT(季价托,H+0.05,季价托),COLORWHITE; DRAWTEXT(短长托,L-0.1,短长托),COLORWHITE; 回归斜率线A:=EMA(SLOPE(C,4)*20+C,42); 经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))); MAHL2:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,EMA(C,3),LLV(EMA((H+L)/2,5),30)); MAHL3:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,LLV(EMA((H+L)/2,5),30),EMA(C,5));回归 斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154)); 上线:=SMA(C,6.5,1); ⼀号⽀撑线:SMA(C,14.5,1); 上线1:=SMA(C,3,1); ⼀号⽀撑线1:=SMA(C,8,1); 上线2:=SMA(C,3.5,1); DRAWTEXT(CROSS(⼀号⽀撑线1,上线1),H*1.08,洗盘),COLOR00FF00; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4; UPR:=BBI+3*STD(BBI,13),LINETHICK2; DWN:=BBI-3*STD(BBI,13); 安全:=MA(CLOSE,55),LINETHICK2; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(82,RSI)ANDCLOSE 上线1,HIGH*1.04,减仓) ,COLORFF9966,LINETHICK2; A7:=(2*C+H+L)/4; 操作:MA(A7,5),COLORBLUE,LINETHICK2; 操作1:=MA(A7,5)*1.03,LINETHICK2; 操作2:=MA(A7,5)*0.97,LINETHICK2; DRAWTEXT(CROSS(上线1,上线)AND上线1 操作,LOW*0.92,买进),COLORYELLOW; VAR1:LLV(A7,21); VAR2:HHV(A7,30); DRAWTEXT(CROSS(上线1,操作)AND上线1 ⼀号⽀撑线AND上线1 ⼀号⽀撑线1AND上线1 上线andclose VAR1,LOW*0.98,见底),COLORYELLOW; YCX:=操作 =REF(操作,1); H1:=MAX(MAX(上线,⼀号⽀撑线1),⼀号⽀撑线); L1:=MIN(MIN(上线,⼀号⽀撑线1),⼀号⽀撑线); DRAWTEXT(CROSS(上线1,⼀号⽀撑线1)AND上线1 操作,LOW*0.98,全仓 ),COLORYELLOW; SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); SD:=EMA(0.667*REF(SK,1)+0.333*SK,5); M1:=1000*操作/⼀号⽀撑线 =1015and1000*操作 =975; M2:=1000*⼀号⽀撑线1/⼀号⽀撑线 =1020and⼀号⽀撑线1 =980; M3:=1000*上线/⼀号⽀撑线 =1015and上线 =985; DRAWTEXT(IF(COUNT(CLOSE6/10AND COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND OPEN REF(CLOSE,1),1,0),LOW*0.94,买进),COLORYELLOW; D:=MA(CLOSE,89)-MA(CLOSE,10)/3; DRAWTEXT(IF(CLOSEMA(VOL,5)/240AND CLOSE REF(CLOSE,1)*1.08 ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW*0.88,抄底),COLORBROWN; RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K:=SMA(RSV,3,1); D1:=SMA(K,3,1); J:=3*K-2*D1; VAR3:=(2*CLOSE+HIGH+LOW)/3;VAR4:=EMA(EMA(EMA(VAR3,4),4),4);E:=(VAR4- REF(VAR4,1))/REF(VAR4,1)*100; F:=MA(E,3)+0.03; G:=MA(E,1); DRAWICON(CROSS(F,G)ANDJ 65,HIGH*1.02,15),COLORGREEN; DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW; DRAWTEXT(CLOSE OPENANDH1 CANDO L1ANDYCXANDCROSS(上线1,操作) ANDLOW VAR1AND上线1 ⼀号⽀撑线ANDJ 90,LOW*0.9,主升),COLORRED; DRAWTEXT(CROSS(上线1,操作)ANDM1ANDM2ANDM3,LOW*0.94,买进 ),COLORYELLOW; DRAWTEXT(CLOSE OPENAND上线 ⼀号⽀撑线1AND⼀号⽀撑线1 ⼀号⽀撑线AND CLOSE MA(CLOSE,⼀号⽀撑线)AND操作 =REF(CLOSE,操作)ANDCROSS(上线1,操作) ANDLOW VAR1ANDJ 90,LOW*0.9,主升),COLORRED; DRAWTEXT(CLOSE OPENAND操作 上线AND上线 ⼀号⽀撑线1AND⼀号⽀撑线1 ⼀号 ⽀撑线ANDCROSS(上线1,操作)ANDLOW VAR1ANDJ 90,LOW*0.86,回踩买进 ),COLORRED; DRAWTEXT(CLOSE OPENANDCROSS(上线,⼀号⽀撑线)ANDLOW VAR1AND J 90,LOW*0.86,回踩买进),COLORRED; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,0),COLORRED; STICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,3,0),COLOR000055;; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.7,0),COLOR000077;; STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.1,0),COLOR000099; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD; STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF; STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999; STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD; STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN; STICKLINE(CO,C,O,3,0),COLORFFCC00; STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,3,0),COLOR990000; STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,2.7,0),COLORCC0000; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800; STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,3.2,0),COLORBB00FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,2.7,0),COLORFF33FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,2.1,0),COLORFF66FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1)ANDJ 70,CLOSE,OPEN,0.3,0),COLORFFDDFF; MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA30:MA(CLOSE,30); MA54:=MA(CLOSE,54); MA60:MA(CLOSE,60); MA120:MA(CLOSE,120); stICKLINE(C/REF(C,1) =1.096ANDH=C,O,C,2,0),COLORMAGENTA; HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100 HJ_9:=FILTER(HJ_8,10); HJ_10:=BArslAST(HJ_9); HJ_11:=REF(HIGH,HJ_10+2); HJ_12:=REF(HIGH,HJ_10+1); HJ_13:=REF(HIGH,HJ_10); HJ_14:=MAX(HJ_11,HJ_12); HJ_15:=MAX(HJ_14,HJ_13); HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 HJ_17:=HJ_10 HJ_18:=(OPEN-HJ_15)/HJ_15*100 HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100 HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100 HJ_21:=vol/MA(VOL,5) HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100 HJ_25:=HJ_16ANDHJ_17ANDHJ_18ANDHJ_19ANDHJ_20ANDHJ_21 ANDHJ_22; 暴利:=FILTER(HJ_25,15); PL1:=(((CLOSE-MA54)/MA54) 0.1); PL2:=(((CLOSE-MA10)/MA10) 0.3); 偏离率:=(((PL1=1)AND(PL2=1))*0.2); 平台突破:=((((偏离率=0)AND(REF(偏离率,1)=0.2))AND(REF((COUNT((偏离率 =0.2),10)=10),1)=1))*-0.1); 妖股突破:=平台突破=-0.1; XDF:=(暴利OR妖股突破); VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); VARAA:=DYNAINFO(7)/(REF(CLOSE,1)) 1.05AND(DYNAINFO(7)/O 1.05); FLIGA:=(VOL/REF(VOL,1) 1.2ANDCOUNT(CLOSE OPEN,1))OR (LOW REF(HIGH,1)ANDCOUNT(OPEN CLOSE,1)AND VOL/REF(VOL,1) 1.2); 妖股:XDFANDC/REF(C,1) 1.095ANDFLIGAANDVARAA,NODRAW; DRAWICON(妖股,LOW*0.995,7); DRAWTEXT(妖股,LOW*0.975, 妖股起飞 ),COLORYELLOW;二、庄家成本主图指标公式 X_1:=FROMOPEN X_2:=X_1 X_3:=1; X_4:=1281210; X_5:=IF(DATE X_4,X_2,X_3); X_6:=IF(DATE X_4,0,1); X_7:=IF(DATE X_4,1,0); CLOSE; DRAWGBK(OPEN CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0); X_8:=1ANDX_6; X_9:=(XMA(XMA(HIGH,25),25)- XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25); X_10:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)- XMA(XMA(LOW,25),25))*1; X_11:=X_8*(XMA(XMA(HIGH,60),60)- XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60); X_12:=X_8*XMA(XMA(LOW,60),60)- (XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8; X_13:=X_8*(X_9+X_11)/2; X_14:=X_8*(X_10+X_12)/2; DRAWBAND(X_13,RGB(0,100,0),X_11,RGB(0,100,0)); DRAWBAND(X_14,RGB(150,0,150),X_12,RGB(150,0,150)); 收盘价:CLOSE,NODRAW,COLORWHITE; 涨最 DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 跌幅:(CLOSE- 新 REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW; 价:IF(CLOSE,CONST(CLOSE),DRAWNULL),DOTLINE,COLORRED; X_15:=(HIGH+LOW)/2; X_16:=X_15; X_17:=XMA(X_15,3); X_18:=XMA(X_15,5); X_19:=XMA(X_15,10); X_20:=XMA(X_15,15); X_21:=XMA(X_15,20); X_22:=XMA(X_15,25); X_23:=XMA(X_15,30); X_24:=XMA(X_15,35); X_25:=XMA(X_15,40); X_26:=XMA(X_15,45); X_27:=XMA(X_15,50); X_28:=XMA(X_15,55); X_29:=XMA(X_15,60); X_30:=(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_ 25+X_26+X_27+X_28+X_29)/13; X_31:=(X_16+X_17+X_18)/3; X_32:=PLOYLINE(2 1,X_30); X_33:=X_16 X_17ANDX_16 X_18ANDX_16 X_19AND X_16 X_20ANDX_16 X_21ANDX_16 X_22ANDX_16 X_23 ANDX_16 X_24ANDX_16 X_25ANDX_16 X_26AND X_16 X_27ANDX_16 X_28ANDX_16 X_29ANDX_17 X_18 ANDX_17 X_19ANDX_17 X_20ANDX_17 X_21AND X_17 X_22ANDX_17 X_23; X_34:=X_17 X_24ANDX_17 X_25ANDX_17 X_26AND X_17 X_27ANDX_17 X_28ANDX_17 X_29ANDX_18 X_19 ANDX_18 X_20ANDX_18 X_21ANDX_18 X_22AND X_18 X_23ANDX_18 X_24ANDX_18 X_25ANDX_18 X_26 ANDX_18 X_27ANDX_18 X_28ANDX_18 X_29AND X_19 X_20ANDX_19 X_21ANDX_19 X_22ANDX_19 X_23 ANDX_19 X_24ANDX_19 X_25ANDX_19 X_26AND X_19 X_27ANDX_19 X_28ANDX_19 X_29; X_35:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND X_23 X_24ANDX_23 X_25; X_36:=X_23 X_26ANDX_23 X_27ANDX_23 X_28AND X_23 X_29ANDX_24 X_25ANDX_24 X_26ANDX_24 X_27 ANDX_24 X_28ANDX_24 X_29ANDX_25 X_26AND X_25 X_27ANDX_25 X_28ANDX_25 X_29ANDX_26 X_27 ANDX_26 X_28ANDX_26 X_29ANDX_27 X_28AND X_27 X_29ANDX_28 X_29; X_37:=X_33ANDX_34ANDX_35ANDX_36; X_38:=X_16 X_17ANDX_16 X_18ANDX_16 X_19AND X_16 X_20ANDX_16 X_21ANDX_16 X_22ANDX_16 X_23 ANDX_16 X_24ANDX_16 X_25ANDX_16 X_26AND X_16 X_27ANDX_16 X_28ANDX_16 X_29ANDX_17 X_18 ANDX_17 X_19ANDX_17 X_20ANDX_17 X_21AND X_17 X_22ANDX_17 X_23; X_39:=X_17 X_24ANDX_17 X_25ANDX_17 X_26AND X_17 X_27ANDX_17 X_28ANDX_17 X_29ANDX_18 X_19 ANDX_18 X_20ANDX_18 X_21ANDX_18 X_22AND X_18 X_23ANDX_18 X_24ANDX_18 X_25ANDX_18 X_26 ANDX_18 X_27ANDX_18 X_28ANDX_18 X_29AND X_19 X_20ANDX_19 X_21; X_40:=X_19 X_22ANDX_19 X_23ANDX_19 X_24AND X_19 X_25ANDX_19 X_26ANDX_19 X_27ANDX_19 X_28 ANDX_19 X_29ANDX_20 X_21ANDX_20 X_22AND X_20 X_23ANDX_20 X_24ANDX_20 X_25ANDX_20 X_26 ANDX_20 X_27ANDX_20 X_28ANDX_20 X_29AND X_21 X_22; X_41:=X_21 X_23ANDX_21 X_24ANDX_21 X_25AND X_21 X_26ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29 ANDX_22 X_23ANDX_22 X_24ANDX_22 X_25AND X_22 X_26ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29 ANDX_23 X_24ANDX_23 X_25ANDX_23 X_26AND X_23 X_27; X_42:=X_23 X_28ANDX_23 X_29ANDX_24 X_25AND X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; X_43:=X_38ANDX_39ANDX_40ANDX_41ANDX_42; X_44:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)- LLV(LOW,36))*100; X_45:=SMA(X_14,3,1); X_46:=SMA(X_45,3,1); X_47:=SMA(X_46,3,1); X_48:=X_46; X_49:=X_47; X_50:=X_46 X_51:=X_46 X_52:=X_50ORX_51; STICKLINE(X_37ANDCLOSE =OPENANDCLOSE X_13*1.1 ANDX_52,HIGH,LOW,0.6,0),COLORRED; STICKLINE(X_37ANDCLOSE =OPENANDCLOSE X_13*1.1 ANDX_52,CLOSE,OPEN,3,0),COLORRED; STICKLINE(X_43ANDCLOSE =OPENANDCLOSE X_13*1.1 ANDX_52,HIGH,LOW,0.6,0),COLORRED; STICKLINE(X_43ANDCLOSE =OPENANDCLOSE X_13*1.1 ANDX_52,CLOSE,OPEN,3,0),COLORRED; STICKLINE(X_37ANDCLOSE OPENANDCLOSE X_14*1.1 ANDX_52,HIGH,LOW,0.6,0),COLORGREEN; STICKLINE(X_37ANDCLOSE OPENANDCLOSE X_14*1.1 ANDX_52,CLOSE,OPEN,3,0),COLORGREEN; STICKLINE(X_43ANDCLOSE OPENANDCLOSE X_14*1.1 ANDX_52,HIGH,LOW,0.6,0),COLORGREEN; STICKLINE(X_43ANDCLOSE OPENANDCLOSE X_14*1.1 ANDX_52,CLOSE,OPEN,3,0),COLORGREEN; X_53:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10) +XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30 )+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,5 0)+XMA(HIGH,55)+XMA(HIGH,60))/14; X_54:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+X MA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XM A(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA( LOW,55)+XMA(LOW,60))/14; X_55:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND X_23 X_24ANDX_23 X_25ANDX_23 X_26ANDX_23 X_27 ANDX_23 X_28ANDX_23 X_29ANDX_24 X_25AND X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; X_56:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND X_23 X_24ANDX_23 X_25ANDX_23 X_26ANDX_23 X_27 ANDX_23 X_28ANDX_23 X_29ANDX_24 X_25AND X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; X_57:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30),10); X_58:=XMA(X_54/X_53*X_30-(X_30-X_54/X_53*X_30),10); X_59:=IF(REF(X_30,1) X_30 NOT(X_55),X_57,DRAWNULL); X_60:=IF(REF(X_30,1) X_30 NOT(X_56),X_58,DRAWNULL); X_61:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2,10); X_62:=XMA(X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30),10); X_63:=IF(REF(X_30,1) X_30,X_61,DRAWNULL); X_64:=IF(REF(X_30,1) X_30,X_62,DRAWNULL); X_65:=X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5; X_66:=X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30); AND AND X_67:=PLOYLINE(2 1,X_65); X_68:=PLOYLINE(2 1,X_66); X_69:=IF(REF(X_30,1) X_30ANDX_55,X_65,DRAWNULL); X_70:=IF(REF(X_30,1) X_30ANDX_56,X_66,DRAWNULL); X_71:=IF(X_37,X_65,DRAWNULL); X_72:=IF(X_43,X_66,DRAWNULL); 交时1:=FROMOPEN 交时2:=交时1 交时3:=1; DAYN1:=1281210; 定时1:=IF(DATE DAYN1,交时2,交时3); 定时2:=IF(DATE DAYN1,0,1); 定时3:=IF(DATE DAYN1,1,0); 所属板块:=STRCAT( 【所属板块】 ,STRCAT(STRCAT(STRCAT( 【行业】 ,HYBLOCK),STRCAT( 【地域】 ,DYBLOCK)),STRCAT( 【概 念】 ,GNBLOCK))); DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORYELLOW; DRAWTEXT_FIX(1AND定时3,0.30,0.75,0, 如果看到这些文字, 说明【印钞机3代】指标公式试用已到期,如果认为对你炒股,炒原 油,炒外汇黄金 ),COLORYELLOW; DRAWTEXT_FIX(1AND定时3,0.30,0.81,0, 等期货有用,请加设 计编写QQ:2679426676,或者到股票公式指标群重新下载,(**号: 303313976) ),COLORYELLOW; DRAWTEXT_FIX(1AND定时3,0.30,0.87,0, 【印钞机3代】必须 与副图的【印钞机副图3】MACD背离指标同步使用,则神效更准, 高胜算率。 ),COLORYELLOW; 鬼头鬼脸鬼脚:IF(定时3,0,DRAWNULL),COLORBLUE; KS:=(C-MA(C,13))/MA(C,13)*(-100); RKS:=REF(KS,1); MLS:=RKS/KS =1.23ANDRKS =8ANDC/REF(C,1) =1.02; 反弹:STICKLINE(MLS=1,H,L,0,1),COLORMAGENTA,LINETHICK1; STICKLINE(MLS=1,O,C,7,1),COLORMAGENTA,LINETHICK1; 顶:COST(98),COLORYELLOW; 拉升:COST(75),COLOR0066CC; 平均成本:COST(50),COLORGREEN; 控盘成本30:COST(30),COLORLIGRAY; 主力成本5:COST(5),COLORCYAN; 底:COST(0.05)COLORBLUE; N:=10; V1:=ISLASTBAR; V2:=REF(HIGH,N)=HHV(HIGH,2*N+1); V3:=FILTER(V2,N); V4:=BACKSET(V3,N+1); V5:=FILTER(V4,N); V6:=V5ORV1; V7:=REF(LOW,N)=LLV(LOW,2*N+1); V8:=FILTER(V7,N); V9:=BACKSET(V8,N+1); VA:=FILTER(V9,N); VB:=VAANDNOT(V5); VC:=BACKSET(V6,REF(BARSLAST(VB),1)+1); VD:=VC REF(VC,1); VE:=BACKSET(VD,2); VF:=VE REF(VE,1); V10:=BACKSET(VF V11:=V10 REF(V10,1); V12:=BACKSET(V11AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2); AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2); V13:=V12 REF(V12,1); V14:=IF(V6,COUNT(VB,REF(BARSLAST(V6),1)+1),0); V15:=IF(V14=1ANDV6,BARSLAST(VF),0); V16:=IF(V6 T(V11),BARSLAST(VF)); V17:=IF(V14=2ANDV6,V16,0); V18:=IF(V14 =3 ,0); V19:=V15+V17+V18; V1A:=BACKSET(V6,V19); V1B:=V1A REF(V1A,1); V1C:=BACKSET(V1B,2); V1D:=V1C REF(V1C,1); V1E:=V1DORV1; V1F:=BACKSET(V1E,REF(BARSLAST(V6),1)+1); V20:=V1F REF(V1F,1); V21:=BACKSET(V20,2); V22:=V21 REF(V21,1); V23:=BACKSET(V22 2); V24:=V23 REF(V23,1); V25:=BACKSET(V24 2); V26:=V25 REF(V25,1); V27:=IF(V1E,COUNT(V5,REF(BARSLAST(V1E),1)+1),0); V28:=IF(V27=1ANDV1E,BARSLAST(V22),0); AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+ AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+ ANDV6,IF(V6AND REF(LOW,V16) =REF(LOW,BARSLAST(V13)),BARSLAST(V13),V16) AND REF(LOW,BARSLAST(VF)) =REF(LOW,BARSLAST(V11)),BARSLAS V29:=IF(V1E AST(V24),BARSLAST(V22)); V2A:=IF(V27=2ANDV1E,V29,0); V2B:=IF(V27 =3 9),0); V2C:=V28+V2A+V2B; V2D:=BACKSET(V1E,V2C); V2E:=V2D REF(V2D,1); V2F:=BACKSET(V2E,2); V30:=V2F REF(V2F,1); DRAWLINE(V1D,LOW,V30,HIGH,0),LINETHICK3; DRAWLINE(V30,HIGH,V1D,LOW,0),LINETHICK3; V31:=BACKSET(V1,BARSLAST(V1D)+1); V32:=V31 REF(V31,1); V33:=BACKSET(V1,BARSLAST(V30)+1); V34:=V33 REF(V33,1); V35:=IF(BARSLAST(V32) BARSLAST(V34),V32,V34); V36:=IF(BARSLAST(V32) BARSLAST(V34),LOW,HIGH); DRAWLINE(V35,V36,V1,CLOSE,0); V37:=BACKSET(V1,BARSLAST(V1D)+1); V38:=V37 REF(V37,1); V39:=BACKSET(V38,REF(BARSLAST(V1D),1)+2); V3A:=V39 REF(V39,1); {DRAWLINE(V3A,LOW,V38,LOW,1);} V3B:=BACKSET(V1,BARSLAST(V30)+1); V3C:=V3B REF(V3B,1); V3D:=BACKSET(V3C,REF(BARSLAST(V30),1)+2); V3E:=V3D REF(V3D,1); ANDV1E,IF(V1E AND REF(HIGH,BARSLAST(V22)) =REF(HIGH,BARSLAST(V24)),BARSL AND REF(HIGH,V29) =REF(HIGH,BARSLAST(V26)),BARSLAST(V26),V2 {DRAWLINE(V3E,HIGH,V3C,HIGH,1);} {前一低:REF(LOW,BARSLAST(V38)),COLORCCFF99,DOTLINE; 前二低: REF(LOW,BARSLAST(V3A)),COLORMAGENTA,DOTLINE; 前一高:REF(HIGH,BARSLAST(V3C)),COLORCCFF99; 前二高:REF(HIGH,BARSLAST(V3E)),COLORMAGENTA;} {以下语句是大盘指数显示} A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点} A2:=REF(LOW,3)=LLV(LOW,2*3+1); C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点} E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} H1:=(D1ANDNOT(D2ANDE1 =E2))ORISLASTBAROR BARSCOUNT(CLOSE)=1; L1:=(D2ANDNOT(D1ANDE1 E2));H2:=D1ANDNOT(D2 ANDE1 =E2); X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1AND COUNT(L1,X1) 0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1 REF(F1,1);I1:=BACKSET(G1,2);LD:=I1 REF(I1,1);{过 滤后低点} L2:=LDORISLASTBARORBARSCOUNT(CLOSE)=1; X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2AND COUNT(H2,X2) 0,HHVBARS(IF(H2,HIGH,0),X2)); G2:=F2 REF(F2,1);I2:=BACKSET(G2,2);HD:=I2 REF(I2,1);{过 滤后高点} UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); VV:=UU REF(UU,1); WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2); XX:=WW REF(WW,1); B2:=FILTER(A2,3); B1:=FILTER(A1,3); 常 1:=REF(INDEXC,BARSLAST(VV))/REF(CLOSE,BARSLAST(VV)); 常 2:=REF(INDEXC,BARSLAST(XX))/REF(CLOSE,BARSLAST(XX)); {DRAWNUMBER(HD,HIGH*(1+0.002),2),COLORFF00FF; 数数 DRAWNUMBER(LD,LOW*(1.001-0.002),2),COLORFF00FF;}{有 未来函数}; {源码如下} ZT:=C REF(C,1)*1.098ANDC=HANDPERIOD=5; DT:=C REF(C,1)*0.902ANDC=LANDPERIOD=5; STICKLINE(ZT,C,O,3.0,0),COLOR00BBFF; STICKLINE(ZT,C,O,2.4,0),COLOR00CCFF; STICKLINE(ZT,C,O,1.8,0),COLOR00DDFF; STICKLINE(ZT,C,O,1.2,0),COLOR00EEFF; STICKLINE(ZT,C,O,0.6,0),COLOR00FFFF; STICKLINE(ZT,H,L,0.0,0),COLOR00FFFF; STICKLINE(DT,C,O,3.0,0),COLOR00BB00; STICKLINE(DT,C,O,2.4,0),COLOR00CC00; STICKLINE(DT,C,O,1.8,0),COLOR00DD00; STICKLINE(DT,C,O,1.2,0),COLOR00EE00; STICKLINE(DT,C,O,0.6,0),COLOR00FF00; STICKLINE(DT,H,L,0.0,0),COLOR00FF00; STICKLINE(H=ZTPRICE(REF(C,1),0.1) STICKLINE(L=DTPRICE(REF(C,1),0.1) AND AND C H C L AND AND PERIOD=5,C,O,1,0),COLOR00FFFF;{盘中涨停实体K线上画细黄柱} PERIOD=5,C,O,1,0),COLOR00FF00;{盘中跌停实体K线上画细绿柱}; N,1,100,30M,1,300,95} V1:EMA(CLOSE,5),COLORYELLOW; V2:=EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66; DRAWICON(CROSS(V1,V2),V2,1); V3:EMA(CLOSE,10),COLORFF00FF; V4:EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF; DRAWICON(CROSS(V3,V4),V4,1); VAR1:=AMOUNT/VOL/100; 庄家运作成本:MA(CLOSE,18),COLORWHITE; 庄家平均成本:EMA(EMA(VAR1,2),N),COLOR00FF00; 庄家底仓成本:EMA(EMA(VAR1,13),M),COLORBLUE; 无穷成本均线:DMA(CLOSE,VOL/CAPITAL),COLORBLUE; STICKLINE(C =O,C,O,3,0),COLOR00009F; STICKLINE(C =O,C,O,1.5,0),,COLOR0E21C8{B0B0FF}; {STICKLINE(C =O,C,O,1,0),COLORYELLOW;} STICKLINE(C =O,H,L,0,0),,COLOR0E21FC; STICKLINE(C =O,C,O,3,0),,,COLORC35924; {STICKLINE(C =O,C,O,2,0),COLORFF6600;} STICKLINE(C =O,C,O,1.5,0),{COLORCYAN;},COLORF37A2B; STICKLINE(C =O,H,L,0,0),{COLORCYAN},COLORF37A89; VAR326:=IF(CLOSE REF(CLOSE,1),88,0); VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDHIGH/CLOSE 1.010andvar326 0,91, 0); {STICKLINE(VAR327 90,L*0.99,L*0.95,4,0),COLORYELLOW;} DRAWTEXT(VAR327 90,LOW*0.99, 追涨 ),COLORYELLOW;[源码注释]通达信公式动态公式解读输出开盘换手:开盘金额/开盘价/自由流通股本(股)*100输出开盘量比:开盘金额/开盘价/100/前5日每分钟均量输出竞价量:开盘金额/开盘价/1000000输出开盘首量:(当前离开盘分钟数+1日前的成交量(手))[取日线数据]/10000输出封单额:买量(即买一量)*收盘价/100推荐阅读:黑马赢家主力进场指标公式 N:=9;M1:=3;M2:=3;P:=9; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1),COLORRED,LINETHICK2; D:=SMA(K,M2,1),COLOR00FF00; JJ:=P*(3*D-2*K),COLOR00FF00; J:=((3*K)-(2*D)); MAIRU:=CROSS(K,D)ANDK MAICHU:=CROSS(D,K)ANDD VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,30); VAR6:=HHV(VAR4,30); VAR7:=IF(MA(CLOSE,58),1,0); VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; VAR9:=IF(VAR8 100,100,VAR8); 吸筹:STICKLINE(VAR9 -120,0,VAR9,6,1),COLORF00FF0; 快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F; 慢线:SMA(快线,M1,1),COLORRED,LINETHICK2; 空:SMA(慢线,M2,1),COLOR00FF00; 牛股:IF(BARSLAST(CROSS(慢线,空)) PANDBARSLAST(CROSS(空,慢线)) PAND CROSS(慢线,空)AND慢线 20,90,0),STICK,COLORFF937F; STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F; BB:=IF(BARSLAST(CROSS(慢线,快线)) =3ANDCROSS(快线,慢线)AND慢线 30,20,0); 买:STICKLINE(BB,0,20,7,1),COLORYELLOW; AA:=IF(BARSLAST(CROSS(快线,慢线)) =4ANDCROSS(慢线,快线)AND快线 50,20,0); 卖:STICKLINE(AA,80,100,7,1),COLOR00FF00; 参数:N1(1,100,9),N2(1,100,5) MTM:=C-REF(C,1); ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE; MAZL:MA(ZLGJ,N2),COLORYELLOW; VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1); VAR3:=EMA(VAR2,10); VAR4:=LLV(LOW,33); VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3); 主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR000055; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR000077; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR000099; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR0000BB; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR0000DD; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR0000FF; 洗盘:IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR005500; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR007700; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR009900; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00; STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;