最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 指标资讯

    正文概述    2024-05-04 03:41:27  

    通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信速度趋势线指标公式 A:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; B:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW; 红柱:=SMA(A,3,1),LINETHICK0,COLOR0000FF; 蓝柱:=SMA(B,3,1),COLORSTICK,COLORFFFF00; {红柱} STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,2,0),COLOR888800; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,2,0),COLOR000088; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱} STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,2,0),COLOR880088; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.8,0),COLORDD00DD; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,2,0),COLOR888800; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱 REF(红柱,1)AND红柱 0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱 REF(蓝柱,1)AND蓝柱 0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57; VAR400:=EMA(VAR300,5); 操盘:=3*VAR300-2*VAR400; 伏:=CROSS(操盘,VAR300)ANDVAR300 2.1ANDC  { STICKLINE(选股,5,0,4,0),COLOR770077; { STICKLINE(选股,5,0,3,0),COLOR990099; STICKLINE(选股,5,0,2,0),COLORBB00BB; STICKLINE(选股,5,0,1,0),COLORDD00DD; STICKLINE(选股,5,0,0.3,0),COLORFF00FF; DRAWTEXT(选股,4.2, 伏击 ),COLORRED; } STICKLINE(伏,0,10,2,0),COLORLIMAGENTA; DRAWTEXT(伏,7.4, ★潜伏主力 ),COLORYELLOW; DRAWICON(伏,10,29); DRAWICON(伏,9.3,29); DRAWICON(伏,9,29); A1:=C/REF(C,1) =1.097; DRAWTEXT(A1AND伏,5.4, ★打板 ),COLORMAGENTA; B1:=C/REF(C,1) =1.05ANDC/REF(C,1) 1.097; DRAWTEXT(B1AND伏,3.4, ★大阳 ),COLORMAGENTA; X_1:=LLV(MA((LOW+HIGH+3*CLOSE+OPEN)/6,6),89); 散筹:EMA((LOW+HIGH+3*CLOSE+OPEN)/6*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+X_1,2),COLORGREEN,LINETHICK3; 趋势:1.86*EMA(CLOSE,5)-EMA(CLOSE,13),COLORRED,LINETHICK5; X_2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); X_3:=IF(MA(CLOSE,17) X_2,X_2,MA(CLOSE,17)); 浮筹:X_3-(EMA(CLOSE,3)-X_3),COLORGREEN,LINETHICK3; DRAWICON(CROSS(趋势,散筹)ANDREF(趋势,1) REF(散筹,1),散筹+2,13); DRAWTEXT(CROSS(趋势,散筹)ANDREF(趋势,1) REF(散筹,1),散筹+3.5, 主  DRAWTEXT(CROSS(趋势,散筹)ANDREF(趋势,1) REF(散筹,1),散筹+1.5, 升  STICKLINE(CROSS(趋势,散筹)ANDREF(趋势,1) REF(散筹,1),散筹+3.5,散筹+5.8,0.8,1),COLORRED; DRAWTEXT(CROSS(散筹,15)ANDREF(散筹,1) 15,浮筹+3.5, 跌  DRAWICON(CROSS(趋势,浮筹)ANDREF(趋势,1) REF(浮筹,1),浮筹+2,30); DRAWTEXT(CROSS(趋势,浮筹)ANDREF(趋势,1) REF(浮筹,1),浮筹+3.5, 走  DRAWTEXT(CROSS(趋势,浮筹)ANDREF(趋势,1) REF(浮筹,1),浮筹+1.5, 牛  STICKLINE(CROSS(趋势,浮筹)ANDREF(趋势,1) REF(浮筹,1),散筹+3.5,散筹+5.8,0.8,1),COLORYELLOW; DRAWTEXT(CROSS(散筹,趋势)ANDREF(散筹,1) REF(趋势,1)AND趋势 浮筹,散筹-1, 卖  STICKLINE(CROSS(散筹,趋势)ANDREF(散筹,1) REF(趋势,1),散筹+3.5,散筹+5.8,0.8,1),COLORGREEN; VAR1:=(H+L)/2; AO:=MA(VAR1,5)-MA(VAR1,34); AC:AO-MA(AO,5),COLOR6699CC; STICKLINE(AC REF(AC,1),0,AC,0.5,1),COLORRED; STICKLINE(AC REF(AC,1),0,AC,0.5,1),COLORGREEN; X_1:=7; X_2:=5; X_3:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; X_4:=SMA(X_3,X_1,1); X_5:=SMA(X_4,X_2,1); STICKLINE(X_4 X_5,X_4,X_5,0.8,1),COLORRED; STICKLINE(X_4 X_5,X_4,X_5,0.8,1),COLORGREEN; X_6:=(2*CLOSE+HIGH+LOW+OPEN)/5; X_7:=LLV(LOW,34); X_8:=HHV(HIGH,34); X_9:=EMA((X_6-X_7)/(X_8-X_7)*100,13); X_10:=EMA(X_9,3); STICKLINE(X_9 X_10,X_9,X_10,0.8,0),COLORCYAN; STICKLINE(X_9 X_10,X_9,X_10,0.8,0),COLORLIRED; 中趋:X_4,NODRAW,COLORRED; 小趋:X_9,NODRAW,COLORLIRED; STICKLINE(X_9 =90ORX_4 =90,96,101,4,1),COLORYELLOW; STICKLINE(X_4 =90ANDX_9 =90,96,101,4,0),COLORYELLOW; STICKLINE(X_9 =10ORX_4 =10,(-1),4,4,1),COLORBLUE; STICKLINE(X_4 =10ANDX_9 =10,(-1),4,4,0),COLORBLUE; STICKLINE(X_9 =10ORX_4 =10ANDX_4 REF(X_4,1)ANDX_9 REF(X_9,1),(-1),4,4,1),COLOR7F00FF; STICKLINE(X_4 =10ANDX_9 =10ANDX_4 REF(X_4,1)ANDX_9 REF(X_9,1),(-1),4,4,0),COLOR7F00FF; STICKLINE(X_9 =90ORX_4 =90ANDX_4 REF(X_4,1)ANDX_9 REF(X_9,1),96,101,4,1),COLORWHITE; STICKLINE(X_4 =90ANDX_9 =90ANDX_4 REF(X_4,1)ANDX_9 REF(X_9,1),96,101,4,0),COLORWHITE; 小均值:EMA(X_9,5),COLORGRAY; IF(小均值 =REF(小均值,1),小均值,DRAWNULL),COLORMAGENTA; 中均值:EMA(X_4,5),COLORCYAN; IF(中均值 =REF(中均值,1),中均值,DRAWNULL),COLORRED; XG:=中均值 REF(中均值,1)AND中均值 REF(中均值,3); 短高:90,DOTLINE,COLORGREEN; 高抛:80,DOTLINE,COLORYELLOW; 低吸:20,DOTLINE,COLORYELLOW; 短底:10,DOTLINE,COLORRED;二、通达信突破趋势线指标公式 M1:=5; M2:=10; M3:=20; M4:=60; M5:=120; M6:=250; MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); MA5:MA(CLOSE,M5); MA6:MA(CLOSE,M6); LT:=LLVBARS(L,60); LT1:=LLVBARS(L,60); LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1); HT:=FINDHIGHBARS(H,LT+1,60,1); DT:=FINDLOW(L,LT1+1,60,1); 锅顶:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORYELLOW,LINETHICK2;TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1); AA:=CROSS(C,CONST(锅顶)); TJ:=COUNT(AA,TT+1)=1ANDAA; TJ1:=COUNT(V MA(V,277),TT+1); BL:=TJ1/(TT+1)*100; XG:=TJANDTT 40ANDBL  XGT:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(XG))+1); ZH:=REF(H,TT); YL:=REF(L,LTT); XC:=REF(C,XGT); YZ:=(XC-YL)/YL*100; ZBL:=YZ/REF(LTT,XGT); XGA:=XGANDZBL 2.95; BB:DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK2; 锅底:DRAWLINE(CURRBARSCOUNT CONST(LT1)+0,L,ISLASTBAR,REF(L,LT1),0),COLORWHITE,LINETHICK3; B:=DRAWLINE(CURRBARSCOUNT DLOW,L,ISLASTBAR,REF(H,DLOW),0),COLORRED,LINETHICK2; DRAWLINE(LTT=0,L,XGT=0,L,0),COLORRED; DRAWICON(XGA,L*0.95,9); XG1:=TJANDTT 40ANDBL  DRAWGBK(C 0,RGB(1,1,1),RGB(1,1,1),0, 0 ,0); VAR2:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100); VAR3:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100); VAR4:=SMA(VAR3,9,1); VAR5:=SMA(VAR4,3,1); 红线在上持股:((3*VAR4)-(2*VAR5)),LINETHICK2,COLORRED; VAR6:=(红线在上持股 (1*REF(红线在上持股,1))); VAR7:=LLVBARS(LOW,50); VAR8:=SUM(VOL,VAR7); VAR9:=HHVBARS(HIGH,50); VAR10:=SUM(VOL,VAR9); VAR11:=(((CLOSE-REF(OPEN,VAR9))/REF(OPEN,VAR9))*100); VAR12:=((VAR10/CAPITAL)*100); VAR13:=(((CLOSE-REF(OPEN,VAR7))/REF(OPEN,VAR7))*100); VAR14:=((VAR8/CAPITAL)*100); VAR15:=(MA(WINNER(CLOSE),3)*100); VAR16:=EMA(VAR4,3); 回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2; 红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66; 无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966; 仅供参考:EMA(无量阴跌空仓,3),COLORCC6666; A6:EMA(仅供参考,3),COLORCC3366; A7:EMA(A6,3),LINETHICK2,COLORCC3366; VAR17:=EMA(A7,3); VAR18:=EMA(VAR17,3); VAR19:=EMA(VAR18,3); AA:EMA(仅供参考,6),COLORFF0000; DRAWICON(CROSS(红线在上持股,A7),(红线在上持股-0.01),25); DRAWTEXT(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓, 小心 ),COLORYELLOW; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57; VAR400:=EMA(VAR300,5); 操盘:=3*VAR300-2*VAR400; A1:=CROSS(操盘,VAR300)ANDVAR300 2.1ANDC  STICKLINE(A1,30,0,4,0),COLOR770077; STICKLINE(A1,30,0,3,0),COLOR990099; STICKLINE(A1,30,0,2,0),COLORBB00BB; STICKLINE(A1,30,0,1,0),COLORDD00DD; STICKLINE(A1,30,0,0.3,0),COLORFF00FF; DRAWTEXT(A1,36, 底部 ),COLORRED;[源码注释]通达信公式动态公式解读输出XG:平滑异同平均的MACD 0上穿0.5 AND 最近3日存在(收盘价/1日前的收盘价-1)*100 5 推荐阅读:通达信公式完美趋势线指标 H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:=L1+P1*7/8,colorgreen; 支撑:=L1+P1*0.5/8,colorred; 中线:=(支撑+阻力)/2,colorwhite,POINTDOT; 10,colorcyan; 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),LINETHICK2,colorlimagenta; V12:=(金龙-REF(金龙,1))/REF(金龙,1)*100; 准备买入:STICKLINE(金龙 11,金龙,11,5,0),coloryellow; AA:=(金龙 11)ANDFILTER((金龙 =11),15)ANDC  BB0:REF(金龙,1) 11ANDCROSS(金龙,11)ANDC  BB1:=REF(金龙,1) 11ANDREF(金龙,1) 6ANDCROSS(金龙,11); BB2:=REF(金龙,1) 6ANDREF(金龙,1) 3ANDCROSS(金龙,6); BB3:=REF(金龙,1) 3ANDREF(金龙,1) 1ANDCROSS(金龙,3); BB4:=REF(金龙,1) 1ANDREF(金龙,1) 0ANDCROSS(金龙,1); BB5:=REF(金龙,1) 0ANDCROSS(金龙,0); BB:=BB1=1ORBB2=1ORBB3=1ORBB4=1ORBB5=1; 下单买入:STICKLINE(BB=1ANDC 中线,11,20,2,0),colorred; 买:DRAWTEXT(BB0,20, 买 ),coloryellow; DRAWTEXT(AA,16, 准 ),coloryellow; 准备卖出:=STICKLINE(金龙 89,金龙,89,5,0),colorwhite; CC:=(金龙 89)ANDFILTER((金龙 89),15)ANDC  DD0:=REF(金龙,1) 89ANDCROSS(89,金龙)ANDC  DD1:=REF(金龙,1) 89ANDREF(金龙,1) 94ANDCROSS(89,金龙); DD2:=REF(金龙,1) 94ANDREF(金龙,1) 97ANDCROSS(94,金龙); DD3:=REF(金龙,1) 97ANDREF(金龙,1) 99ANDCROSS(97,金龙); DD4:=REF(金龙,1) 99ANDREF(金龙,1) 100ANDCROSS(99,金龙); DD5:=REF(金龙,1) 100ANDCROSS(100,金龙); DD:=DD1=1ORDD2=1ORDD3=1ORDD4=1ORDD5=1; 下单卖出:STICKLINE(DD=1ANDC 中线,89,50,5,0),colorgreen; DRAWICON(DD=1ANDC 中线,45,2); DRAWTEXT(DD0,40, ★卖 ),colorgreen; DRAWTEXT(CC,84, 准备卖出 ),colorwhite; 顶:89,colorgreen; 中:50,POINTDOT,colorwhite; DRAWTEXT(ISLASTBAR,顶, 顶 ),colorgreen; DRAWTEXT(ISLASTBAR,中, 中 ),colorwhite; //金龙上升XG:50*(COUNT(金龙 REF(金龙,1),3) =3AND金龙 50AND金龙 10),NODRAW; //金龙下跌XG:50*(COUNT(金龙 REF(金龙,1),10) =10AND金龙 70AND金龙 10)NODRAW; //金龙两天向上:COUNT(金龙 REF(金龙,1),2) =2ANDREF(金龙,1)  DRAWGBK(C 0,RGB(1,1,1),RGB(1,1,1),0, 0 ,0); {MACD周金叉} DFFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DAAA:=EMA(DFFF,9); 周DIF:= MACD.DIF#WEEK (12,26,9),NODRAW; 周DEA:= MACD.DEA#WEEK (12,26,9),NODRAW; 周金叉:=周DIF 周DEA; STICKLINE(周金叉,DFFF,DAAA,0.8,0),COLOR0080FF; {30分钟MACD彩带} DIF30分钟:=(EMA(CLOSE,12/4)-EMA(CLOSE,26/4)),NODRAW; DEA30分钟:=(EMA(DIF30分钟,9/4)),NODRAW; DRAWBAND(DIF30分钟,RGB(255,150,255),DEA30分钟,RGB(128,128,255)); {DJG波段风暴} DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34); DEAA:=EMA(DIFF,8); MACDD:=3.8*(DIFF-DEAA); MARDD:=SMA(MACDD,2,1); STICKLINE(MACDD MARDD,MACDD,MARDD,1.8,0),COLORMAGENTA; STICKLINE(MACDD MARDD,MACDD,MARDD,1.8,0),COLORFF8000; {底部信号} BB值:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3); AAA:=EMA(CLOSE,12)-EMA(CLOSE,26); DRAWTEXT(CROSS(BB值,9),0, 底部 ),COLORYELLOW; DRAWICON(CROSS(BB值,9),0,41); STICKLINE(CROSS(BB值,9),AAA,0,2,0),COLORYELLOW; {DJG_MACD的柱线} MACD2:=2*( MACD.DIF - MACD.DEA  STICKLINE(MACD2 =0,0,MACD2,0,0),COLORRED;{0上升} STICKLINE(MACD2 =0ANDMACD2 REF(MACD2,1),0,MACD2,0,0),COLORGREEN;{0上跌} STICKLINE(MACD2 0,0,MACD2,0,0),COLORGREEN;{0下跌} STICKLINE(MACD2 0ANDMACD2 REF(MACD2,1),0,MACD2,0,0),COLORRED;{0下升} {DIF和DEA线} DIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLORWHITE,LINETHICK2; DEA:EMA(DIF,9)COLOR0080FF; DRAWTEXT(ISLASTBAR,DIF, ←DIF ),COLORWHITE; DRAWTEXT(ISLASTBAR,DEA, ←DEA ),COLOR0080FF; {金叉和背离的标识} JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA =0)); 二次金叉:=CROSS(DIF,DEA)ANDDEA 0ANDCOUNT(JCCOUNT=2,21)=1; DRAWICON(二次金叉,DEA*0.5,41); DRAWTEXT(二次金叉,DEA*0.5, 二次金叉 ),COLORYELLOW; A1:=BARSLAST(REF(CROSS(DIF,DEA),1)); 底背离:=REF(CLOSE,A1+1) CLOSEANDDIF REF(DIF,A1+1)ANDCROSS(DIF,DEA); DRAWTEXT(底背离,DIF*1, 底背离 ),COLORWHITE; DRAWICON(底背离,DIF*1,38); A2:=BARSLAST(REF(CROSS(DEA,DIF),1)); 顶背离:=REF(CLOSE,A2+1) CLOSEANDREF(DIF,A2+1) DIFANDCROSS(DEA,DIF); DRAWTEXT(顶背离,DIF*1, 顶背离 ),COLORGREEN; DRAWICON(顶背离,DIF*1,39); DA1:=BARSLAST(REF(CROSS(DIF,DEA),1)); D底背离:=REF(CLOSE,DA1+1) CLOSEANDDIF REF(DIF,DA1+1)ANDCROSS(DIF,DEA); 底背画线:DRAWLINE(DA1=0,DEA,D底背离,DEA,0),COLORWHITE,DOTLINE; DA2:=BARSLAST(REF(CROSS(DEA,DIF),1)); D顶背离:=REF(CLOSE,DA2+1) CLOSEANDREF(DIF,DA2+1) DIFANDCROSS(DEA,DIF); 顶背画线:DRAWLINE(DA2=0,DEA,顶背离,DEA,0),COLORGREEN,DOTLINE; {MACD KDJ金叉共振} {DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)); K:SMA(RSV,9,3),NODRAW; D:SMA(K,9,3),NODRAW; J:3*K-2*D,NODRAW; A:=CROSS(DIF,DEA)ANDCROSS(K,D)ANDCROSS(J,D); DRAWICON(A,DEA*1.2,25); DRAWTEXT(A,DEA*1.2, 金叉共振 ),COLORYELLOW; 0,COLORGRAY,DOTLINE;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 指标资讯 加入收藏