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

    正文概述    2024-05-04 04:17:50  

    通达信公式源码概况:指标类别:通达信公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图 通达信黄金柱幅图公式组合多个指标 自我感觉不错的公式,用以抄底和波段操作,下有走强线,上有顶线。用法自已仔细品味,一定会有收获。公式是死的,人是活的,灵活运用。其中组合了多种公式,如果觉得里边线条较多,可自行在不想显示的公式中加“=”不让它显示,使版干净一点。公式源码如下: KG1:=20; F1:=10; A1:=10; A2:=10; A3:=ZIG(1,A1); A4:=PEAK(1,A1,1); A5:=TROUGH(1,A1,1); CC:=IF((A3 (REF(A3,1))),A4,A5),LINETHICK2; A6:=CROSS((A4-0.02),A3); A7:=CROSS(A3,(A5+0.02)); A8:=A2/100; A9:=IF((A3 (REF(A3,1))),A8,REVERSE(A8)); A10:=IF((A3 (REF(A3,1))),A6,A7); H1:REF((CC*(1-(A9*1))),BARSLAST(A10)),DOTLINE; H2:REF((CC*(1-(A9*2))),BARSLAST(A10)),DOTLINE,LINETHICK0; H3:REF((CC*(1-(A9*3))),BARSLAST(A10)),DOTLINE,LINETHICK0; H4:REF((CC*(1-(A9*4))),BARSLAST(A10)),DOTLINE,LINETHICK0; H5:REF((CC*(1-(A9*5))),BARSLAST(A10)),DOTLINE,LINETHICK0; H6:REF((CC*(1-(A9*6))),BARSLAST(A10)),DOTLINE,LINETHICK0; H7:REF((CC*(1-(A9*7))),BARSLAST(A10)),DOTLINE,LINETHICK0; H8:REF((CC*(1-(A9*8))),BARSLAST(A10)),DOTLINE,LINETHICK0; H9:REF((CC*(1-(A9*9))),BARSLAST(A10)),DOTLINE,LINETHICK0; H10:REF((CC*(1-(A9*10))),BARSLAST(A10)),DOTLINE,LINETHICK0; H11:REF((CC*(1-(A9*11))),BARSLAST(A10)),DOTLINE,LINETHICK0; H12:REF((CC*(1-(A9*12))),BARSLAST(A10)),DOTLINE,LINETHICK0; H13:REF((CC*(1-(A9*13))),BARSLAST(A10)),DOTLINE,LINETHICK0; H14:REF((CC*(1-(A9*14))),BARSLAST(A10)),DOTLINE,LINETHICK0; H15:REF((CC*(1-(A9*15))),BARSLAST(A10)),DOTLINE,LINETHICK0; A11:=BARSLAST((ISLASTBAR=1))+1; A12:=HHV(HIGH,100); A13:=LLV(LOW,100); A14:=IF((PERIOD=12),1.00005,(IF((PERIOD 3),1.0005,1.002))); STICKLINE(((CC =A13)AND(CC =A12)),CC,(CC*A14),10,-1000),COLORRED; STICKLINE(((CC =A13)AND(CC =A12)),H1,H1,5,0),COLORGRAY; STICKLINE(((H1 A13)AND(H1 A12)),H2,H2,5,0),COLORGRAY; STICKLINE(((H2 A13)AND(H2 A12)),H3,H3,5,0),COLORGRAY; STICKLINE(((H3 A13)AND(H3 A12)),H4,H4,5,0),COLORGRAY; STICKLINE(((H4 A13)AND(H4 A12)),H5,H5,5,0),COLORGRAY; STICKLINE(((H5 A13)AND(H5 A12)),H6,H6,5,0),COLORGRAY; STICKLINE(((H6 A13)AND(H6 A12)),H7,H7,5,0),COLORGRAY; STICKLINE(((H7 A13)AND(H7 A12)),H8,H8,5,0),COLORGRAY; STICKLINE(((H8 A13)AND(H8 A12)),H9,H9,5,0),COLORGRAY; STICKLINE(((H9 A13)AND(H9 A12)),H10,H10,5,0),COLORGRAY; STICKLINE(((H10 A13)AND(H10 A12)),H11,H11,5,0),COLORGRAY; STICKLINE(((H11 A13)AND(H11 A12)),H12,H12,5,0),COLORGRAY; STICKLINE(((H12 A13)AND(H12 A12)),H13,H13,5,0),COLORGRAY; STICKLINE(((H13 A13)AND(H13 A12)),H14,H14,5,0),COLORGRAY; STICKLINE(((H14 A13)AND(H14 A12)),H15,H15,5,0),COLORGRAY; DRAWTEXT(BARSLAST(A10),H1, 10 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H2, 20 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H3, 30 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H4, 40 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H5, 50 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H6, 60 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H7, 70 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H8, 80 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H9, 90 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10),H10, 100 ),COLORC0C0C0; KG1:=20; F1:=10; A1:=10; A2:=10; A3:=ZIG(1,A1); A4:=PEAK(1,A1,1); A5:=TROUGH(1,A1,1); CC:=IF((A3 (REF(A3,1))),A4,A5),NODRAW,LINETHICK2; 点:CC REF(CC,1)ORCC REF(CC,1); 正距:=BARSLAST(点),NODRAW,LINETHICK2; 倒距:=IF(BARSNEXT(点=1)=DRAWNULL,CURRBARSCOUNT,BARSNEXT(点=1)),NODRAW; A6:=CROSS((A4-0.02),A3); A7:=CROSS(A3,(A5+0.02)); A8:=A2/100; A9:=IF((A3 (REF(A3,1))),A8,REVERSE(A8)); A10:=IF((A3 (REF(A3,1))),A6,A7); H1:=REF((CC*(1-(A9*1))),BARSLAST(A10)),DOTLINE,LINETHICK0; H2:=REF((CC*(1-(A9*2))),BARSLAST(A10)),DOTLINE,LINETHICK0; H3:=REF((CC*(1-(A9*3))),BARSLAST(A10)),DOTLINE,LINETHICK0; H4:=REF((CC*(1-(A9*4))),BARSLAST(A10)),DOTLINE,LINETHICK0; H5:=REF((CC*(1-(A9*5))),BARSLAST(A10)),DOTLINE,LINETHICK0; H6:=REF((CC*(1-(A9*6))),BARSLAST(A10)),DOTLINE,LINETHICK0; H7:=REF((CC*(1-(A9*7))),BARSLAST(A10)),DOTLINE,LINETHICK0; H8:=REF((CC*(1-(A9*8))),BARSLAST(A10)),DOTLINE,LINETHICK0; H9:=REF((CC*(1-(A9*9))),BARSLAST(A10)),DOTLINE,LINETHICK0; H10:=REF((CC*(1-(A9*10))),BARSLAST(A10)),DOTLINE,LINETHICK0; H11:=REF((CC*(1-(A9*11))),BARSLAST(A10)),DOTLINE,LINETHICK0; H12:=REF((CC*(1-(A9*12))),BARSLAST(A10)),DOTLINE,LINETHICK0; H13:=REF((CC*(1-(A9*13))),BARSLAST(A10)),DOTLINE,LINETHICK0; {==========================} SW2:=HHV(CROSS(H,H2)ORCROSS(H2,L),正距)AND点=0,COLORWHITE; SW3:=HHV(CROSS(H,H3)ORCROSS(H3,L),正距)AND点=0,COLORWHITE; SW4:=HHV(CROSS(H,H4)ORCROSS(H4,L),正距)AND点=0,COLORWHITE; SW5:=HHV(CROSS(H,H5)ORCROSS(H5,L),正距)AND点=0,COLORWHITE; SW6:=HHV(CROSS(H,H6)ORCROSS(H6,L),正距)AND点=0,COLORWHITE; SW7:=HHV(CROSS(H,H7)ORCROSS(H7,L),正距)AND点=0,COLORWHITE; SW8:=HHV(CROSS(H,H8)ORCROSS(H8,L),正距)AND点=0,COLORWHITE; SW9:=HHV(CROSS(H,H9)ORCROSS(H9,L),正距)AND点=0,COLORWHITE; SW10:=HHV(CROSS(H,H10)ORCROSS(H10,L),正距)AND点=0,COLORWHITE; SW11:=HHV(CROSS(H,H11)ORCROSS(H11,L),正距)AND点=0,COLORWHITE; SW12:=HHV(CROSS(H,H12)ORCROSS(H12,L),正距)AND点=0,COLORWHITE; SW13:=HHV(CROSS(H,H13)ORCROSS(H13,L),正距)AND点=0,COLORWHITE; AF2:REFX(HHV(SW2,正距)=1,倒距-1); AF3:REFX(HHV(SW3,正距)=1,倒距-1); AF4:REFX(HHV(SW4,正距)=1,倒距-1); AF5:REFX(HHV(SW5,正距)=1,倒距-1); AF6:REFX(HHV(SW6,正距)=1,倒距-1); AF7:REFX(HHV(SW7,正距)=1,倒距-1); AF8:REFX(HHV(SW8,正距)=1,倒距-1); AF9:REFX(HHV(SW9,正距)=1,倒距-1); AF10:REFX(HHV(SW10,正距)=1,倒距-1); AF11:REFX(HHV(SW11,正距)=1,倒距-1); AF12:REFX(HHV(SW12,正距)=1,倒距-1); AF13:REFX(HHV(SW13,正距)=1,倒距-1); A11:=BARSLAST((ISLASTBAR=1))+1; A12:=HHV(HIGH,100); A13:=LLV(LOW,100); A14:=IF((PERIOD=12),1.00005,(IF((PERIOD 3),1.0005,1.002))); STICKLINE(((CC =A13)AND(CC =A12)),CC,(CC*A14),10,-1000),COLORRED; STICKLINE(((CC =A13)AND(CC =A12)),H1,H1,5,0),COLORGRAY; STICKLINE(((H1 A13)AND(H1 A12))ANDAF2=1,H2,H2,5,0),COLORGRAY; STICKLINE(((H2 A13)AND(H2 A12))ANDAF3=1,H3,H3,5,0),COLORGRAY; STICKLINE(((H3 A13)AND(H3 A12))ANDAF4=1,H4,H4,5,0),COLORGRAY; STICKLINE(((H4 A13)AND(H4 A12))ANDAF5=1,H5,H5,5,0),COLORGRAY; STICKLINE(((H5 A13)AND(H5 A12))ANDAF6=1,H6,H6,5,0),COLORGRAY; STICKLINE(((H6 A13)AND(H6 A12))ANDAF7=1,H7,H7,5,0),COLORGRAY; STICKLINE(((H7 A13)AND(H7 A12))ANDAF8=1,H8,H8,5,0),COLORGRAY; STICKLINE(((H8 A13)AND(H8 A12))ANDAF9=1,H9,H9,5,0),COLORGRAY; STICKLINE(((H9 A13)AND(H9 A12))ANDAF10=1,H10,H10,5,0),COLORGRAY; STICKLINE(((H10 A13)AND(H10 A12))ANDAF11=1,H11,H11,5,0),COLORGRAY; STICKLINE(((H11 A13)AND(H11 A12))ANDAF12=1,H12,H12,5,0),COLORGRAY; STICKLINE(((H12 A13)AND(H12 A12))ANDAF13=1,H13,H13,5,0),COLORGRAY; DRAWTEXT(BARSLAST(A10)=1,H1, 10 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF2=1,H2, 20 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF3=1,H3, 30 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF4=1,H4, 40 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF5=1,H5, 50 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF6=1,H6, 60 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF7=1,H7, 70 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF8=1,H8, 80 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF9=1,H9, 90 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF10=1,H10, 100 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF11=1,H11, 110 ),COLORC0C0C0; DRAWTEXT(BARSLAST(A10)=1ANDAF12=1,H12, 120 ),COLORC0C0C0; RC1:=REF(C,1); 大阴线:=C 0.96*OORC =RC1*0.96ORC 1000ANDC =RC1*0.98; 大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度} 大阴实顶:REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O}; 大阴二一:REF((L+H)/2,大阴T),NODRAW; DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块} DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块} DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}; AA:=(C-REF(C,1))/REF(C,1)*100; ZS:=(NAMELIKE( ST )ORNAMELIKE( *ST )ORNAMELIKE( S ))ANDAA =4.945; DS:=(NAMELIKE( ST )ORNAMELIKE( *ST )ORNAMELIKE( S ))ANDAA =-4.945; 涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW; 跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW; {元帅主图} 比系数:=1.3; 金线:=1; 临界点:=0; MA5:=MA(C,5); MA10:=MA(C,10); MA20:=MA(C,20); 均线:=MA5 REF(MA5,1)ANDMA10 REF(MA10,1)ANDMA20 REF(MA20,1); RV1:=REF(V,1); RV2:=REF(V,2); RV3:=REF(V,3); RC2:=REF(C,2); RC3:=REF(C,3); RC4:=REF(C,4); RO1:=REF(O,1); RO2:=REF(O,2); RO3:=REF(O,3); RO4:=REF(O,4); ma5:MA(C,5)LINETHICK3,COLOR00CCFF; MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); 五日乖离率:=(C-MA5)/MA5*100; BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; IF(BB5 30ANDMA5 REF(MA5,1),MA5,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; IF(BB5 0ANDMA5 REF(MA5,1),MA5,DRAWNULL),LINETHICK3,COLORGREEN; 三拾日乖离率:=(C-MA30)/MA30*100,NODRAW; VAR1:=(MA20-MA30) REF((MA20-MA30),1)ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1); VAR2:=(MA30-MA20) REF((MA30-MA20),1)ANDMA20 REF(MA20,1)ANDMA30 REF(MA30,1); BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 强势狙击:=FILTER(BB30 30ANDBB10 45ANDcrOSS(BB5,60),10); 加仓:=FILTER(COUNT(CROSS(BB5,30),5) =1ANDMA5 REF(MA5,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1) AND加速度5 REF(加速度5,1)AND速度5 REF(速度5,1),10); 清仓:=FILTER(COUNT(CROSS(30,BB5),5) =1AND(C MA30ORO MA30)ANDMA5 REF(MA5,1)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1),10); DRAWTEXT(加仓,LOW*0.98, ←加仓 ),COLORYELLOW; JC:=CROSS(0,五日乖离率)AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA10 REF(MA10,1); 减仓:=FILTER(JC,10); MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDMA5 REF(MA5,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) MA30; 买入:=FILTER(MR,10); 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) REF(V,3)); 三日价涨A:=C =REF(C,1); 三日价涨B:=C REF(C,1); 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3); TIM:=IF(DATE 1140214,1,0); 缩倍柱:=(vol*1.95 =REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C REF(C,1)*1.04AND(VOL =1.9*REF(VOL,1))*TIM; 四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM; 四日前高量柱:=(REF(VOL,3) =REF(VOL,4)ANDREF(VOL,3) 1.9*REF(VOL,4)AND三日量缩)*TIM; 前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0; 倍量黄金柱:=四日前倍量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立; 高量黄金柱:=四日前高量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立; 黄金柱:=倍量黄金柱OR高量黄金柱; 次倍量黄金柱:=NOT(黄金柱)AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立; 次高量黄金柱:=NOT(黄金柱)AND四日前高量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立; 次黄金柱:=次倍量黄金柱OR次高量黄金柱; 准倍量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C)OR(COUNT(倍量柱,3) =1AND三日不破))AND前三引用不成立; 准高量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前高量柱AND(三日量缩AND三日价涨C)AND前三引用不成立; 准黄金柱:=准倍量黄金柱OR准高量黄金柱; 倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND三日不破AND三日价涨AAND前三引用不成立; 高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前高量柱AND三日不破AND三日价涨AAND前三引用不成立; 将军柱:=倍量将军柱OR高量将军柱; 次倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前倍量柱AND三日不破AND三日价涨BAND前三引用不成立; 次高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引用不成立; 次将军柱:=次倍量将军柱OR次高量将军柱; 准倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前倍量柱AND三日价涨CAND前三引用不成立; 准高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前高量柱AND三日价涨CAND前三引用不成立; 准将军柱:=准倍量将军柱OR准高量将军柱; JJ:=(3*C+H+L+O)/6; TJ1:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE VAR1ANDC REF(C,1); LJL:=FILTER(TJ1,5); TJ2:=IF(BArslAst(LJL)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(LJL)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(LJL)=3ANDCLOSE REF(HIGH,3),1,0))); TP:=TJ2=1; STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORYELLOW;{划线} TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE REF(LOW,1),1,IF(BARSLAST(LJL)=2ANDCLOSE REF(LOW,2),1,IF(BARSLAST(LJL)=3ANDCLOSE REF(LOW,3),1,0))); STFZ:=TJ3=1; CL:=STFZANDTP; TJCL:=FILTER(CL,3); DRAWTEXT(LJL,L*0.99, 黄 ),COLORYELLOW; DRAWTEXT(LJL,L*0.95, 金 ),COLORYELLOW; DRAWTEXT(LJL,L*0.90, 柱 ),COLORYELLOW; 压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF; 支撑:MA(REF(LLV(C,30),1),2),COLORABFF46; 不破价顶:=C =RC3ANDRC1 =RC3ANDRC2 =RC3; 不破价底:=L RO3ANDREF(L,1) RO3ANDREF(L,2)  均价:=AMOUNT/VOL/100; RJ1:=REF(均价,1); RJ2:=REF(均价,2); 阳柱:=C =OOR(C OAND均价 RC1); 三日二阳:=COUNT(阳柱,3)  基价柱阳:=RC3  价渐升:=(均价 =RJ1ORC RC1)AND(RJ1 =RJ2ORRC1 =RC2); 均价升:=(C+RC1+RC2)/3  量渐升:=V RV1ANDRV1  量渐减:=V =RV1ANDRV1 =RV2; 均量减:=(V+RV1+RV2)/3 =RV3ANDNOT(量渐升); 日价量比:=C/V; 日价量比升:=日价量比 =REF(日价量比,1)ANDREF(日价量比,1) =REF(日价量比,2); 均价升幅:=(C+RC1+RC2)/3/RC3; 均量升幅:=(V+RV1+RV2)/3/RV3; 价量比:=比系数*均价升幅/均量升幅  基前跳空:=RO3 RC4ANDRC4  黄金柱1T:=基价柱阳AND价渐升AND量渐减AND不破价顶AND不破价底AND基前跳空; BACKSET101T:=BACKSET(黄金柱1T,5); FILTER101T:=FILTER(BACKSET101T,4); 黄金柱1:=基价柱阳AND价渐升AND量渐减AND不破价顶AND不破价底; BACKSET101:=BACKSET(黄金柱1,4); FILTER101:=FILTER(BACKSET101,3); 黄金柱11:=黄金柱1ANDREF(黄金柱1,1); BACKSET1011:=BACKSET(黄金柱11,4); FILTER1011:=FILTER(BACKSET1011,3); 黄金柱12:=黄金柱1ANDREF(黄金柱1,2); BACKSET1012:=BACKSET(黄金柱12,4); FILTER1012:=FILTER(BACKSET1012,3); 黄金柱13:=黄金柱1ANDREF(黄金柱1,3); BACKSET1013:=BACKSET(黄金柱13,4); FILTER1013:=FILTER(BACKSET1013,3); 黄金柱2T:=基价柱阳AND价渐升AND均量减ANDNOT(量渐升)AND不破价顶AND不破价底AND基前跳空ANDNOT(黄金柱1)ANDNOT(黄金柱1T); BACKSET201T:=BACKSET(黄金柱2T,5); FILTER201T:=FILTER(BACKSET201T,4); 黄金柱2:=基价柱阳AND价渐升AND均量减ANDNOT(量渐升)AND不破价顶AND不破价底ANDNOT(黄金柱1)ANDNOT(黄金柱1T); BACKSET201:=BACKSET(黄金柱2,4); FILTER201:=FILTER(BACKSET201,3); 黄金柱21:=黄金柱2ANDREF(黄金柱2,1); BACKSET2011:=BACKSET(黄金柱21,4); FILTER2011:=FILTER(BACKSET2011,3); 黄金柱22:=黄金柱2ANDREF(黄金柱2,2); BACKSET2012:=BACKSET(黄金柱22,4); FILTER2012:=FILTER(BACKSET2012,3); 黄金柱23:=黄金柱2ANDREF(黄金柱2,3); BACKSET2013:=BACKSET(黄金柱23,4); FILTER2013:=FILTER(BACKSET2013,3); 黄金柱3T:=基价柱阳AND均价升AND量渐减AND不破价顶AND不破价底AND基前跳空ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T); BACKSET301T:=BACKSET(黄金柱3T,5); FILTER301T:=FILTER(BACKSET301T,4); 黄金柱3:=基价柱阳AND均价升AND量渐减AND不破价顶AND不破价底ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T); BACKSET301:=BACKSET(黄金柱3,4); FILTER301:=FILTER(BACKSET301,3); 黄金柱31:=黄金柱3ANDREF(黄金柱3,1); BACKSET3011:=BACKSET(黄金柱31,4); FILTER3011:=FILTER(BACKSET3011,3); 黄金柱32:=黄金柱3ANDREF(黄金柱3,2); BACKSET3012:=BACKSET(黄金柱32,4); FILTER3012:=FILTER(BACKSET3012,3); 黄金柱33:=黄金柱3ANDREF(黄金柱3,3); BACKSET3013:=BACKSET(黄金柱33,4); FILTER3013:=FILTER(BACKSET3013,3); 黄金柱4T:=基价柱阳AND均价升AND均量减AND不破价顶AND不破价底AND基前跳空ANDNOT(黄金柱1)ANDNOT(黄金柱1T)ANDNOT(黄金柱2)ANDNOT(黄金柱2T)ANDNOT(黄金柱3)ANDNOT(黄金柱3T); BACKSET401T:=BACKSET(黄金柱4T,5); FILTER401T:=FILTER(BACKSET401T,4); 黄金柱4:=基价柱阳AND均价升AND均量减AND不破价顶AND不破价底ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱3)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T)ANDNOT(黄金柱3T); BACKSET401:=BACKSET(黄金柱4,4); FILTER401:=FILTER(BACKSET401,3); 黄金柱41:=黄金柱4ANDREF(黄金柱4,1); BACKSET4011:=BACKSET(黄金柱41,4); FILTER4011:=FILTER(BACKSET4011,3); 黄金柱42:=黄金柱4ANDREF(黄金柱4,2); BACKSET4012:=BACKSET(黄金柱42,4); FILTER4012:=FILTER(BACKSET4012,3); 黄金柱43:=黄金柱4ANDREF(黄金柱4,3); BACKSET4013:=BACKSET(黄金柱43,4); FILTER4013:=FILTER(BACKSET4013,3); 黄金柱5T:=基价柱阳AND均价升AND价量比AND不破价顶AND不破价底AND基前跳空ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱3)ANDNOT(黄金柱4)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T)ANDNOT(黄金柱3T)ANDNOT(黄金柱4T); BACKSET501T:=BACKSET(黄金柱5T,5); FILTER501T:=FILTER(BACKSET501T,4); 黄金柱5:=基价柱阳AND均价升AND价量比AND不破价顶AND不破价底ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱3)ANDNOT(黄金柱4)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T)ANDNOT(黄金柱3T)ANDNOT(黄金柱4T); BACKSET501:=BACKSET(黄金柱5,4); FILTER501:=FILTER(BACKSET501,3); 黄金柱51:=黄金柱5ANDREF(黄金柱5,1); BACKSET5011:=BACKSET(黄金柱51,4); FILTER5011:=FILTER(BACKSET5011,3); 黄金柱52:=黄金柱5ANDREF(黄金柱5,2); BACKSET5012:=BACKSET(黄金柱52,4); FILTER5012:=FILTER(BACKSET5012,3); 黄金柱53:=黄金柱5ANDREF(黄金柱5,3); BACKSET5013:=BACKSET(黄金柱53,4); FILTER5013:=FILTER(BACKSET5013,3); 黄金柱6T:=基价柱阳AND均价升AND日价量比升AND不破价顶AND不破价底AND基前跳空ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱3)ANDNOT(黄金柱4)ANDNOT(黄金柱5)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T)ANDNOT(黄金柱3T)ANDNOT(黄金柱4T)ANDNOT(黄金柱5T); BACKSET601T:=BACKSET(黄金柱6T,5); FILTER601T:=FILTER(BACKSET601T,4); 黄金柱6:=基价柱阳AND均价升AND日价量比升AND不破价顶AND不破价底ANDNOT(黄金柱1)ANDNOT(黄金柱2)ANDNOT(黄金柱3)ANDNOT(黄金柱4)ANDNOT(黄金柱5)ANDNOT(黄金柱1T)ANDNOT(黄金柱2T)ANDNOT(黄金柱3T)ANDNOT(黄金柱4T)ANDNOT(黄金柱5T); BACKSET601:=BACKSET(黄金柱6,4); FILTER601:=FILTER(BACKSET601,3); 黄金柱61:=黄金柱6ANDREF(黄金柱6,1); BACKSET6011:=BACKSET(黄金柱61,4); FILTER6011:=FILTER(BACKSET6011,3); 黄金柱62:=黄金柱6ANDREF(黄金柱6,2); BACKSET6012:=BACKSET(黄金柱62,4); FILTER6012:=FILTER(BACKSET6012,3); 黄金柱63:=黄金柱6ANDREF(黄金柱6,3); BACKSET6013:=BACKSET(黄金柱63,4); FILTER6013:=FILTER(BACKSET6013,3); FIL1:=(FILTER101ANDNOT(REF(FILTER101,4)))OR(FILTER1011ANDNOT(REF(FILTER1011,4)))OR(FILTER1012ANDNOT(REF(FILTER1012,4)))OR(FILTER1013ANDNOT(REF(FILTER1013,4))); FIL2:=(FILTER201ANDNOT(REF(FILTER201,4)))OR(FILTER2011ANDNOT(REF(FILTER2011,4)))OR(FILTER2012ANDNOT(REF(FILTER2012,4)))OR(FILTER2013ANDNOT(REF(FILTER2013,4))); FIL3:=(FILTER301ANDNOT(REF(FILTER301,4)))OR(FILTER3011ANDNOT(REF(FILTER3011,4)))OR(FILTER3012ANDNOT(REF(FILTER3012,4)))OR(FILTER3013ANDNOT(REF(FILTER3013,4))); FIL4:=(FILTER401ANDNOT(REF(FILTER401,4)))OR(FILTER4011ANDNOT(REF(FILTER4011,4)))OR(FILTER4012ANDNOT(REF(FILTER4012,4)))OR(FILTER4013ANDNOT(REF(FILTER4013,4))); FIL5:=(FILTER501ANDNOT(REF(FILTER501,4)))OR(FILTER5011ANDNOT(REF(FILTER5011,4)))OR(FILTER5012ANDNOT(REF(FILTER5012,4)))OR(FILTER5013ANDNOT(REF(FILTER5013,4))); FIL6:=(FILTER601ANDNOT(REF(FILTER601,4)))OR(FILTER6011ANDNOT(REF(FILTER6011,4)))OR(FILTER6012ANDNOT(REF(FILTER6012,4)))OR(FILTER6013ANDNOT(REF(FILTER6013,4))); FIL:=FIL1ORFIL2ORFIL3ORFIL4ORFIL5ORFIL6; STICKLINE(FILANDNOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT(FILANDNOT(REF(FIL,4)),LOW*0.986, ↖黄金柱 ),COLOR0099FF; K1:=SUMBARS(FIL,1); STICKLINE(K1AND金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF; FIL1T:=(FILTER101TANDNOT(REF(FILTER101T,5))); FIL2T:=(FILTER201TANDNOT(REF(FILTER201T,5))); FIL3T:=(FILTER301TANDNOT(REF(FILTER301T,5))); FIL4T:=(FILTER401TANDNOT(REF(FILTER401T,5))); FIL5T:=(FILTER501TANDNOT(REF(FILTER501T,5))); FIL6T:=(FILTER601TANDNOT(REF(FILTER601T,5))); FILT:=FIL1TORFIL2TORFIL3TORFIL4TORFIL5TORFIL6T; STICKLINE(FILTANDNOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF; DRAWTEXT(FILTANDNOT(REF(FILT,5)),LOW*0.978, ↖元帅柱 ),COLOR0000FF; K2:=SUMBARS(FILT,1); STICKLINE(K2AND金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF; 黄金柱LJ:=(黄金柱1OR黄金柱2OR黄金柱3OR黄金柱4OR黄金柱5OR黄金柱6)AND均线AND临界点; BACKSET10LJ:=BACKSET(黄金柱LJ,4); FILTER10LJ:=FILTER(BACKSET10LJ,3); STICKLINE(FILTER10LJANDNOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT(FILTER10LJANDNOT(REF(FILTER10LJ,4)),LOW*0.958, ↖临界点 ),COLOR0099FF; 黄金柱LJT:=(黄金柱1TOR黄金柱2TOR黄金柱3TOR黄金柱4TOR黄金柱5TOR黄金柱6T)AND均线AND临界点; BACKSET10LJT:=BACKSET(黄金柱LJT,5); FILTER10LJT:=FILTER(BACKSET10LJT,5); STICKLINE(FILTER10LJTANDNOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT(FILTER10LJTANDNOT(REF(FILTER10LJT,4)),LOW*0.958, ↖临界点 ),COLOR0099FF; C2:=REF(C,1); 涨停:=IF((C-C2)*100/C2 =(10-0.01*100/C2),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF; STICKLINE(涨停,H,L,0,0),COLORFF00FF; 跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN; N:=3; a1:=zig(3,n);{设定波段,3为收盘价。要准确判断波段,必须使用这个zig函数} {N自行设置:一般为2、3、5、8、13、21等等} a2:=last(a1 ref(a1,1));{波段上涨天数} a3:=last(a1 ref(a1,1));{波段下跌天数} tt1:=peak(1,N,1);{向前数第一个波峰的值,括号中第一个1表示以最高价作为波峰。这里是用这个波峰值作为这个波段的顶} bb1:=trough(2,N,1);{向前数第一个波谷的值,括号中的2表示以最低价作为波谷。这里以这个波谷的值作为这个波段的底} H1:=tt1-(tt1-bb1)*0.1;{设定波段从顶部落下来时,落下的幅度位置,H1是落下10%的位置。以下依此类推} H2:=tt1-(tt1-bb1)*0.2; H3:=tt1-(tt1-bb1)*0.3; H4:=tt1-(tt1-bb1)*0.4; H5:=tt1-(tt1-bb1)*0.5; H6:=tt1-(tt1-bb1)*0.6; H7:=tt1-(tt1-bb1)*0.7; H8:=tt1-(tt1-bb1)*0.8; H9:=tt1-(tt1-bb1)*0.9; H10:=tt1-(tt1-bb1)*1.0; H11:=tt1-(tt1-bb1)*1.1; H12:=tt1-(tt1-bb1)*1.2; H13:=tt1-(tt1-bb1)*1.3; H14:=tt1-(tt1-bb1)*1.4; H15:=tt1-(tt1-bb1)*1.5; L1:=bb1+(tt1-bb1)*0.1;{设定波段从底部涨上去时,上涨的幅度位置,L1是上涨10%的位置。以下依此类推} L2:=bb1+(tt1-bb1)*0.2; L3:=bb1+(tt1-bb1)*0.3; L4:=bb1+(tt1-bb1)*0.4; L5:=bb1+(tt1-bb1)*0.5; L6:=bb1+(tt1-bb1)*0.6; L7:=bb1+(tt1-bb1)*0.7; L8:=bb1+(tt1-bb1)*0.8; L9:=bb1+(tt1-bb1)*0.9; L10:=bb1+(tt1-bb1)*1.0; L11:=bb1+(tt1-bb1)*1.1; L12:=bb1+(tt1-bb1)*1.2; L13:=bb1+(tt1-bb1)*1.3; L14:=bb1+(tt1-bb1)*1.4; L15:=bb1+(tt1-bb1)*1.5; stickline(a3 0,tt1,tt1,8,0),linethick2,colorred;{画波段顶} stickline(a2 0,bb1,bb1,8,0),linethick2,colorred;{画波段底} stickline(a3 0,H1,H1,8,0),linethick0,colorFF99CC;{波段下跌,在H1位置画 — 线(图)。以下类推。} stickline(a3 0,H2,H2,8,0),linethick0,colorFF99CC;{接上行:因为没有在主图画水平线的函数,所以用一系列的“-”来画出水平线} stickline(a3 0,H3,H3,8,0),linethick0,colorFF99CC; stickline(a3 0,H4,H4,8,0),linethick0,colorFF99CC; stickline(a3 0,H5,H5,8,0),linethick0,colorFF99CC; stickline(a3 0,H6,H6,8,0),linethick0,colorFF99CC; stickline(a3 0,H7,H7,8,0),linethick0,colorFF99CC; stickline(a3 0,H8,H8,8,0),linethick0,colorFF99CC; stickline(a3 0,H9,H9,8,0),linethick0,colorFF99CC; stickline(a3 0,H10,H10,8,0),linethick0,colorFF99CC; stickline(a3 0,H11,H11,8,0),linethick0,colorFF99CC; stickline(a3 0,H12,H12,8,0),linethick0,colorFF99CC; stickline(a3 0,H13,H13,8,0),linethick0,colorFF99CC; stickline(a3 0,H14,H14,8,0),linethick0,colorFF99CC; stickline(a3 0,H15,H15,8,0),linethick0,colorFF99CC; drawtext(a3=1,H1, 10% ),linethick0,colorFF99CC;{波段下跌,在H1*0.95位置标记 10% 。以下类推。} drawtext(a3=1,H2, 20% ),linethick0,colorFF99CC;{接上行:在波段下跌第一天处,标注幅度值,看起来一目了然} drawtext(a3=1,H3, 30% ),linethick0,colorFF99CC; drawtext(a3=1,H4, 40% ),linethick0,colorFF99CC; drawtext(a3=1,H5, 50% ),linethick0,colorFF99CC; drawtext(a3=1,H6, 60% ),linethick0,colorFF99CC; drawtext(a3=1,H7, 70% ),linethick0,colorFF99CC; drawtext(a3=1,H8, 80% ),linethick0,colorFF99CC; drawtext(a3=1,H9, 90% ),linethick0,colorFF99CC; drawtext(a3=1,H10, 100% ),linethick0,colorFF99CC; drawtext(a3=1,H11, 110% ),linethick0,colorFF99CC; drawtext(a3=1,H12, 120% ),linethick0,colorFF99CC; drawtext(a3=1,H13, 130% ),linethick0,colorFF99CC; drawtext(a3=1,H14, 140% ),linethick0,colorFF99CC; drawtext(a3=1,H15, 150% ),linethick0,colorFF99CC; stickline(a2 0,L1,L1,8,0),linethick0,colorFF99CC;{波段上涨,在L1位置画 — 线(图)。以下类推。} stickline(a2 0,L2,L2,8,0),linethick0,colorFF99CC; stickline(a2 0,L3,L3,8,0),linethick0,colorFF99CC; stickline(a2 0,L4,L4,8,0),linethick0,colorFF99CC; stickline(a2 0,L5,L5,8,0),linethick0,colorFF99CC; stickline(a2 0,L6,L6,8,0),linethick0,colorFF99CC; stickline(a2 0,L7,L7,8,0),linethick0,colorFF99CC; stickline(a2 0,L8,L8,8,0),linethick0,colorFF99CC; stickline(a2 0,L9,L9,8,0),linethick0,colorFF99CC; stickline(a2 0,L10,L10,8,0),linethick0,colorFF99CC; stickline(a2 0,L11,L11,8,0),linethick0,colorFF99CC; stickline(a2 0,L12,L12,8,0),linethick0,colorFF99CC; stickline(a2 0,L13,L13,8,0),linethick0,colorFF99CC; stickline(a2 0,L14,L14,8,0),linethick0,colorFF99CC; stickline(a2 0,L15,L15,8,0),linethick0,colorFF99CC; drawtext(a2=1,L1*1.015, 10% ),linethick0,colorFF99CC;{波段上涨,在L1*1.05位置标记 10% 。以下类推。} drawtext(a2=1,L2*1.015, 20% ),linethick0,colorFF99CC;{接上行:在波段上涨第一天处,标注幅度值,看起来一目了然} drawtext(a2=1,L3*1.015, 30% ),linethick0,colorFF99CC; drawtext(a2=1,L4*1.015, 40% ),linethick0,colorFF99CC; drawtext(a2=1,L5*1.015, 50% ),linethick0,colorFF99CC; drawtext(a2=1,L6*1.015, 60% ),linethick0,colorFF99CC; drawtext(a2=1,L7*1.015, 70% ),linethick0,colorFF99CC; drawtext(a2=1,L8*1.015, 80% ),linethick0,colorFF99CC; drawtext(a2=1,L9*1.015, 90% ),linethick0,colorFF99CC; drawtext(a2=1,L10*1.015, 100% ),linethick0,colorFF99CC; drawtext(a2=1,L11*1.015, 110% ),linethick0,colorFF99CC; drawtext(a2=1,L12*1.015, 120% ),linethick0,colorFF99CC; drawtext(a2=1,L13*1.015, 130% ),linethick0,colorFF99CC; drawtext(a2=1,L14*1.015, 140% ),linethick0,colorFF99CC; drawtext(a2=1,L15*1.015, 150% ),linethick0,colorFF99CC; drawtext(a2=1,bb1*0.995, 下跌 +barslast(a3=1)+ 周期 ),coloryellow;{波段上涨开始,在底部标记 前一波下跌 的周期数} drawtext(a3=1,tt1*1.030, 上涨 +barslast(a2=1)+ 周期 ),coloryellow;{波段下跌开始,在顶部标记 前一波上涨 的周期数}; DRAWGBK(1,RGB(33,33,55),RGB(0,0,0),0, 1 ,0); stICKLINE(C =REF(C,1),0,V,2.6,1),COLOR0000FF; STICKLINE(C =REF(C,1),0,V,2.6,1),COLOR885500; DRAWTEXT_FIX(WEEkdAY =5,0.01,0.98,0, JYGOLDPOWEREDBYJY ),COLOR383818; OTTV:ma(vol,120),COLORYELLOW;{120日均量线} JYGOLD:=V==HHV(V,60);{60日内高量,60日周期可以自行修改} JYGOLDV:=VALUEWHEN(JYGOLD,V); STICKLINE(JYGOLD,0,V,3.1,0),COLOR006190; STICKLINE(JYGOLD,0,V,2,0),COLOR0088BB; STICKLINE(JYGOLD,0,V,0.8,0),COLOR00BBEE; STICKLINE(JYGOLD,0,V,0.3,0),COLOR00CCDD; STICKLINE(JYGOLD,0,V,0.0,0),COLOR00FFFF; [源码注释]通达信公式动态公式解读输出乖离率:(收盘价-收盘价的30日简单移动平均)/收盘价的30日简单移动平均*100

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