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

    正文概述    2024-05-04 04:36:30  

    以下是很有用的通达信指标公式源码和使用说明


    很有用的通达信指标公式源码:

       AAATYP:=(HIGH+LOW+CLOSE)/3;

       AAA1:=(AAATYP-ma(AAATYP,14))/(0.015*AVEDEV(AAATYP,14));

       C1:=SMA(AAA1,3,1);

       C2:=SMA(C1,3,1);

       C3:=3*C1-2*C2;

       CB1:=EMA(C3,5);

       CB2:=REF(CB1,1);

       LC:=REF(CLOSE,1);

       1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;

       RSI:=(RSI1-50)*5;

       R1:=SMA(RSI,3,1);

       D1:=SMA(R1,3,1);

       J1:=3*R1-2*D1;

       RR1:=EMA(J1,5);

       RR2:=REF(RR1,1);

       RR:=RR1

       RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

       K:=SMA(RSV,3,1);

       K1:=(K-50)*5;

       K2:=SMA(K1,3,1);

       D2:=SMA(K2,3,1);

       J2:=3*K2-2*D2;

       BB1:=EMA(J2,5);

       BB2:=REF(BB1,1);

       三宝:RRANDNOT(REF(RR,1))AND(RR1 -100ANDBB1 -100)ANDCB1 -100,COLORGREEN,NODRAW;

       stICKLINE(三宝,5,0,3,0)COLORGREEN;

       {极地上涨}

       VA1:=HHV(HIGH,9)-LLV(LOW,9);

       VA2:=HHV(HIGH,9)-CLOSE;

       VA3:=CLOSE-LLV(LOW,9);

       VA4:=VA2/VA1*100-70;

       VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

       VA6:=(CLOSE+HIGH+LOW)/3;

       VA7:=SMA(VA3/VA1*100,3,1);

       VA8:=LLV(LOW,34);

       VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);

       VARA:=IF(VA9 100,VA9-100,0);

       VARB:=HHV(HIGH,34);

       VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);

       VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);

       VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;

       VARF:=MA(VARE,3);

       VAR1:=HHV(HIGH,9)-LLV(LOW,9);

       VAR2:=HHV(HIGH,9)-CLOSE;

       VAR3:=CLOSE-LLV(LOW,9);

       VAR4:=((VAR2)/(VAR1))*(100)-70;

       VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);

       VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);

       VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);

       VAR8:=LLV(LOW,34);

       VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);

       VAR10:=IF((VAR9 100),VAR9-100,0);

       VAR11:=HHV(HIGH,34);

       B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);

       领先:=EMA(B1,5);

       生命线:=EMA(VARD,1);

       V1:=MA(C,5)=HHV(MA(C,5),20);

       V2:=MA(C,5) MA(C,10);

       V3:=MA(V,5) MA(V,40)*1.01;

       V4:=COUNT(MA(C,1) REF(C,1),2)=2;

       VV:=V1ANDV2ANDV3ANDV4;

       A1:=EMA(CLOSE,8);

       A2:=EMA(A1,20);

       A3:=crOSS(A1,A2);

       A4:=A1 EMA(CLOSE,120);

       A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*

       SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);

       安全位:=20;

       低位转强:=CROSS(A5,安全位);

       开始拉升:=CROSS(VARC,生命线)ANDVARC VARDANDVARC 55ANDC

       A6:=LLV(C,500)=LLV(C,5)ANDC/REF(C,1) (1+9.8/100);

       极地上涨:=A6;

       极地:开始拉升 0AND开始拉升 400OR极地上涨 0AND极地上涨 400

       OR(低位转强 0AND低位转强 400)OR(低位转强 0),COLORYELLOW,NODRAW;

       STICKLINE(极地,10,15,3,0),COLORYELLOW;

       {好底}

       D:=EMA((C*3+H+L+O)/6,5);

       :=D,COLORGREEN,LINETHICK2;

       A线:=HHV(D,13)COLORYELLOW,LINETHICK2;

       B线:=LLV(D,13)COLORYELLOW,LINETHICK2;日平:=".MacD#DAY"(12,26,9);

       周平:="MACD.MACD#WEEK"(12,26,9);

       JC:=(A线-B线);

       壹:=COUNT(JC REF(JC,1)ANDA线 REF(A线,1),5)=1ANDJC REF(JC,1)ANDA线 REF(A线,1)ANDD =REF(D,1);

       G1:=FILTER(壹=1,10);

       G2:=BArslAST(G1

       G3:=IFF(G2 0ANDG2 =10,1,0)=1AND((C-REF(C,G2))/REF(C,G2))*100

       概壹:=(SUM(FILTER(G3,10),0)/SUM(G1 0,0))*100;

       加1:=COUNT(日平 =0AND周平 =0,5)=1AND日平 =0AND周平

       加2:=FILTER(D=A线ANDREF(D,1) REF(A线,1)ANDREF(D,2) REF(A线,2),10);

       ①:=FILTER(加1=1,10);

       ②:=BARSLAST(①

       ③:=IFF(② 0AND② =10,1,0)=1AND((C-REF(C,②))/REF(C,②))*100

       概加1:=(SUM(FILTER(③,10),0)/SUM(① 0,0))*100;

       好底:FILTER(COUNT(D=B线,3) =2ANDD B线,5),COLORBLUE,NODRAW;

       STICKLINE(好底,15,20,3,0),COLORBLUE;

       {}

       MMM:=1;

       S:=INTPART(SUM(V,0)/CAPITAL);

       TJ0:=SVOL REF(SVOL,1)ORBARSSINCE(CLOSE)=0;

       S1:=BARSLAST(TJ0)+1;

       TJJ2:=S1 REF(S1,1);

       S2:=IF(TJJ2,REF(S1,1)+1,S1);

       S3:=SUM(TJJ2,0);

       ZK1:="kd.K#WEEK"(9,3,3);

       ZD2:="KD.D#WEEK"(9,3,3);

       ZF1:="MACD.DIF#WEEK"(12,26,9);

       ZA2:="MACD.DEA#WEEK"(12,26,9);

       换手:=V/CAPITAL*100,LINETHICK0;

       JCD:=CROSS(ZK1,ZD2)ANDREF(ZD2,1)

       抄底:EXIST(JCD,MMM),COLORCYAN,NODRAW;

       STICKLINE(抄底,20,25,3,0),COLORCYAN;

       {只做牛市}

       HR:=HHV(HIGH,55);

       HRY:=LLV(LOW,55);

       HRY11:=HR*HRY;

       HRY33:=SQRT(HRY11);

       WLT1:=EMA(C,3);

       WLT2:=EMA(C,5);

       WLT3:=EMA(WLT2,5);

       HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE 0.10;

       LB:=VOL/MA(VOL,5);

       X1:=(C+L+H)/3;

       BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;

       EMA3:=EMA(C,3);

       TT:=FILTER(BB5 1ANDEMA(X1,7) REF(EMA(X1,7),1),10);

       MM:=WLT1 REF(WLT1,1)ANDREF(WLT1,1) REF(WLT1,2);

       GG1:=CROSS(WLT1,WLT2);

       TYP:=(HIGH+LOW+CLOSE)/3;

       1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));

       差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;

       CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));

       差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;

       CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));

       差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;

       CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));

       差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;

       CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));

       差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;

       CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2,COLORRED,LINETHICK2;

       WLT91:=HHV(CCI,13);

       WLT92:=LLV(CCI,13) -100;

       WLT95:=COUNT(WLT92,13)

       WLT93:=CCI WLT91;

       WLT96:=CROSS(CCI,100);

       TJ91:=WLT95ANDWLT96;

       JLP:=FILTER(TJ91,5);

       超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1);

       超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9);

       TEND:=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42);

       DD:=TEND REF(TEND,1)ANDREF(TEND,1) REF(TEND,2);

       GG2:=CROSS(WLT1,TEND);

       HRY1:=LLV(LOW,55);

       HRY2:=HHV(HIGH,21);

       GG3:=C HRY2*0.8ANDC HRY33;

       JJ1:=C HRY1*1.62;

       TJ1:=GG1;

       TJ2:=GG2ANDJJ1;

       TJ3:=GG1ANDGG3;

       XG:=TJ1ORTJ3;

       XG2:=C HRY2*0.86ORLB

       XG1:=XGANDXG2ANDC HRY33ANDJLP;

       XG3:=XGANDC HHV(HIGH,250)*0.3;

       XG11:=XG1ORXG3;

       W8:=XG11ORXG1;

       GET:=zig(3,5),COLORFFFFFF;

       PL5:=ZIG(3,5);

       EN1:=ZIG(3,5) REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1) =REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2) =REF(ZIG(3,5),3);

       EX1:=ZIG(3,5) REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1) =REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2) =REF(ZIG(3,5),3);

       PL10:=ZIG(3,10);

       EN2:=ZIG(3,10) REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1) =REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2) =REF(ZIG(3,10),3);

       EX2:=ZIG(3,10) REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1) =REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2) =REF(ZIG(3,10),3);

       PL20:=ZIG(3,20);

       EN3:=ZIG(3,20) REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1) =REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2) =REF(ZIG(3,20),3);

       EX3:=ZIG(3,20) REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1) =REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2) =REF(ZIG(3,20),3);

       PL40:=ZIG(3,40);

       走强1:=BARSLAST(PL5 REF(PL5,1));

       走弱1:=BARSLAST(PL5 REF(PL5,1));

       走强2:=BARSLAST(PL10 REF(PL10,1));

       走弱2:=BARSLAST(PL10 REF(PL10,1));

       走强3:=BARSLAST(PL20 REF(PL20,1));

       走弱3:=BARSLAST(PL20 REF(PL20,1));

       ZTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走强2),0);

       ZTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走强2),0);

       DTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走弱2),0);

       DTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走弱2),0);

       ZTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走强3),0);

       ZTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走强3),0);

       DTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走弱3),0);

       DTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走弱3),0);

       WLT11:=EN1ANDDTJZ5=1;

       WLT22:=EN2ANDZTJZ5=1;

       WLT33:=WLT11ORWLT22;

       WLT01:=EN2ANDDTJZ10=1;

       WLT02:=EN3ANDZTJZ10=1;

       WLT03:=WLT01ORWLT02;

       WLT:=WLT33ANDWLT03;

       未来牛:W8ORWLT,COLORLIMAGENTA,NODRAW;

       STICKLINE(未来牛,5,10,3,0),COLORLIMAGENTA;

       {雨青底}

       M5:=MA(CLOSE,5);

       M4:=MA(CLOSE,4);

       MA3:=MA(CLOSE,3);

       VOL5:=MA(VOL,5);

       雨青:M5 M4ANDSLOPE(M5,5) 0ANDSLOPE(M4,4) 0ANDSLOPE(MA3,3)ANDREF(M4 MA3,1)ANDCROSS(MA3,M4)ANDVOL VOL5,COLORRED,NODRAW;

       STICKLINE(雨青,25,30,3,0),COLORRED;

       {千均买}

       JE:=VOL;

       JJ2:=(HIGH+LOW+CLOSE)/3;

       QJ00:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

       主买:=(QJ00*(JJ2-MIN(CLOSE,OPEN)));

       主卖:=(QJ00*(MIN(OPEN,CLOSE)-LOW));

       AAQ:=IF(C (H+L)/2,JE,0);

       BBQ:=IF(C (H+L)/2,JE,0);

       F1:=SUM(AAQ,5);F2:=SUM(BBQ,5);F3:=EMA(F1-F2,3);

       千均买:主买 主卖ANDCROSS(F3,REF(F3,1))ANDF3 0ANDC 15,COLORWHITE,NODRAW;

       STICKLINE(千均买 0,30,35,3,0),COLORWHITE;

       {BAIS买入}

       bias5:=(C-MA(C,6))/MA(C,6)*100;

       BIAS6:=(C-MA(C,12))/MA(C,12)*100;

       BIAS7:=(C-MA(C,24))/MA(C,24)*100;

       BIAS8:=(BIAS5+2*BIAS6+3*BIAS7)/6;

       乖离1:=MA(BIAS8,6);

       乖离:CROSS(BIAS8,乖离1)AND乖离1 -9,COLORYELLOW,NODRAW;

       DRAWTEXT(乖离,40,'乖'),COLORYELLOW;

       {枯木逢春}

       急速超跌:=(C-MA(C,34))/MA(C,34)*100 {34日乖离率}

       当日收阳:=(H-L)/L 0.07{当天振幅大于7%}

       AND(C-O)/O 0.07{当天的实体长度大于7%}

       ANDC/REF(C,1) 1.05{当日涨幅超过5%};

       枯木逢春:急速超跌AND当日收阳,COLORFF00FF,NODRAW;

       STICKLINE(枯木逢春,40,45,3,0),COLORFF00FF;

       Z1:0,COLORYELLOW;

       Z2:5,COLORWHITE,POINTDOT;

       Z3:10,COLORWHITE,POINTDOT;

       Z4:15,COLORWHITE,POINTDOT;

       Z5:20,COLORWHITE,POINTDOT;

       Z6:25,COLORWHITE,POINTDOT;

       Z7:30,COLORWHITE,POINTDOT;

       Z8:35,COLORWHITE,POINTDOT;

       Z9:40,COLORWHITE,POINTDOT;

       Z10:45,COLORYELLOW;

       通达信:=MA(CLOSE,5);

       BB:=MA(CLOSE,10);

       CC:=MA(CLOSE,20);

       指标公式大全:=通达信 BBANDCC REF(CC,1)ANDCLOSE

       DRAWICON(指标公式大全,LOW,1),COLORYELLOW;

       ffdss1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;

       K:=SMA(ffdss1,5,1);

       D:=MA(K,7);

       E:=MA(K,3);

       J:=3*K-2*D;

       STICKLINE((K-D 0),K,E,8,1),COLORRED;

       STICKLINE((K-D 0),K,E,8,1),COLORGREEN;

       fffffd1:=(2*CLOSE+HIGH+LOW)/4;

       fffffd2:=LLV(LOW,34);

       fffffd3:=HHV(HIGH,34);

       fffffda1:EMA((fffffd1-fffffd2)/(fffffd3-fffffd2)*100,13);

       fffffda2:=EMA(0.667*REF(fffffda1,1)+0.333*fffffda1,2);

       fffffda3:fffffda2;

       X1:STICKLINE(CROSS(fffffda1,20)ANDfffffda2 fffffda1,fffffda1+19,fffffda1-10,4,1),COLORRED;

       X2:DRAWTEXT(CROSS(fffffda1,20)ANDfffffda2 fffffda1,fffffda1-5,'建仓'),LINETHICK3,COLORMAGENTA;

       fffffda4:STICKLINE(fffffda2 fffffda1,fffffda1,fffffda2,2.5,1),COLORRED;

       fffffda5:STICKLINE(fffffda2 fffffda1,fffffda1,fffffda2,2.5,1),COLORBLUE;

       fffffda6:=CROSS(fffffda1,30)ANDfffffda2 fffffda1;

       fffffda7:DRAWICON(CROSS(fffffda1,fffffda2),fffffda2,5);

       fffffda8:DRAWICON(CROSS(fffffda2,fffffda1),fffffda2,15);

       TT:=240/FROMOPEN;

       比:=TT;

       J12:=(HIGH-((HIGH-LOW)/3));

       J23:=(LOW+((HIGH-LOW)/3));

       AAA:=CONST(HHV(H,190));

       BBB:=CONST(LLV(L,180));

       DRAWBAND(AAA,RGB(50,100,00),BBB,RGB(00,00,00));

       MA1:EMA(CLOSE,5);

       MA2:EMA(CLOSE,13);

       MA3:EMA(CLOSE,21);

       MA4:EMA(CLOSE,55);

       MA5:EMA(CLOSE,181),POINTDOT;

       DRAWKLINE(H,O,L,C);

       T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 0.95ANDREF(OPEN,1)

        REF(CLOSE,2)ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.03AND

       CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2)),1,0));

       T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 1.03ANDREF(OPEN,1)

        REF(CLOSE,2)ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.02

       ANDCLOSE/OPEN 0.97ANDCLOSE REF(CLOSE,2)),1,0));

       T3{长十字}:=CONST(IF((CLOSE=OPENANDHIGH/LOW 1.03),1,0));

       T4{垂死十字}:=CONST(IF((CLOSE=OPENANDCLOSE=LOWANDCLOSE!=HIGH),1,0));

       T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 0.95ANDREF(OPEN,1)

        REF(CLOSE,2)ANDREF(OPEN,1)=REF(CLOSE,1)AND

       CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2)),1,0));

       T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 1.05ANDREF(OPEN,1)

        REF(CLOSE,2)ANDREF(OPEN,1)=REF(CLOSE,1)AND

       CLOSE/OPEN 0.95ANDCLOSE REF(CLOSE,2)),1,0));

       T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW

       3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSE MA(CLOSE,5)),1,0));

       T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW

       3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSE MA(CLOSE,5)),1,0));

       T9{锤头}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW

       3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSE MA(CLOSE,5)),1,0));

       T10{吊颈}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW

       3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSE MA(CLOSE,5)),1,0));

       T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1) 1.03ANDCLOSE/OPEN 0.96

       ANDCLOSE REF(OPEN,1)

       ANDOPEN REF(CLOSE,1))OR(REF(CLOSE,1)/REF(OPEN,1) 0.97ANDCLOSE/OPEN 1.04

       ANDCLOSE REF(OPEN,1)ANDOPEN REF(CLOSE,1))),1,0));

       T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1) 1.03ANDCLOSE/OPEN 0.97

       ANDOPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1)),1,0));

       T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1) 0.97ANDCLOSE/OPEN 1.03

       ANDOPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1)),1,0));

       T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) 0.04

       ANDABS(CLOSE-OPEN)/CLOSE 0.005AND

       MAX(CLOSE,OPEN) MAX(REF(CLOSE,1),REF(OPEN,1))ANDMIN(CLOSE,OPEN)

        MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));

       T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) 0.04

       ANDCLOSE=OPENAND

       CLOSE MAX(REF(CLOSE,1),REF(OPEN,1))ANDCLOSE MIN(REF(CLOSE,1)

       ,REF(OPEN,1))),1,0));

       T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH 0.001),1,0));

       T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW 0.001ANDABS(REF(LOW,1)

       -REF(LOW,2))/REF(LOW,1) =0.001)),1,0));

       T18{大阳烛}:=CONST(IF((CLOSE/OPEN 1.05ANDHIGH/LOW CLOSE/OPEN+0.018),1,0));

       T19{三个白武士}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1)

        REF(OPEN,1)ANDCLOSE OPEN

       ANDREF(CLOSE,1) REF(CLOSE,2)ANDCLOSE REF(CLOSE,1)),1,0));

       T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN

       ANDCLOSE/OPEN 0.98),1,0));

       T21{孕育线}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)AND(REF(CLOSE,2)

       -REF(OPEN,2))/REF(OPEN,2) =2/100ANDREF(OPEN,1) =REF(CLOSE,1)

       AND(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) =2/100ANDREF(OPEN,1)

        =REF(CLOSE,2)ANDREF(CLOSE,1) =REF(OPEN,2)ANDC =OPEN

       AND(CLOSE-OPEN)/OPEN =2/100ANDCLOSE =REF(OPEN,1)ANDOPEN =REF(CLOSE,1)

       AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))

        =1/100),1,0));

       T22{多方炮}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)

       ANDCLOSE OPEN),1,0));

       T23{出水芙蓉}:=CONST(IF(((OPEN EMA(C,20)OROPEN EMA(C,40)OROPEN

       EMA(C,60))AND(C MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)

        1.2ANDC/REF(C,1) 1.049)),1,0));

       T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4) 1.03ANDREF(CLOSE,3)

        REF(OPEN,3)ANDREF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)

       ANDREF(LOW,4) REF(LOW,3)ANDREF(LOW,4) REF(LOW,2)ANDREF(LOW,4)

        REF(LOW,1)ANDREF(HIGH,4) REF(HIGH,3)ANDREF(HIGH,4) REF(HIGH,2)

       ANDREF(HIGH,4) REF(HIGH,1)ANDCLOSE/OPEN 1.03ANDCLOSE REF(CLOSE,4)),1,0));

       T25{下跌三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4) 0.97ANDREF(CLOSE,3)

        REF(OPEN,3)ANDREF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)

       ANDREF(LOW,4) REF(LOW,3)ANDREF(LOW,4) REF(LOW,2)ANDREF(LOW,4)

        REF(LOW,1)ANDREF(HIGH,4) REF(HIGH,3)ANDREF(HIGH,4) REF(HIGH,2)ANDREF(HIGH,4) REF(HIGH,1)ANDCLOSE/OPEN 0.97AND

       CLOSE REF(CLOSE,4)),1,0));

       T26{跳空}:=CONST(IF(HIGH REF(LOW,1)ORLOW REF(HIGH,1),1,0));

       T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1)

        REF(OPEN,1)ANDCLOSE OPENANDREF(CLOSE,1) REF(CLOSE,2)

       ANDCLOSE REF(CLOSE,1)),1,0));

       T28{光脚阴线}:=CONST(IF((LOW=CLOSEANDHIGH!=LOW),1,0));

       T29{光头阳线}:=CONST(IF((HIGH=CLOSEANDHIGH!=LOW),1,0));

       T30{分离}:=CONST(IF((OPEN=REF(OPEN,1)AND(CLOSE-OPEN)*(REF(CLOSE,1)

       -REF(OPEN,1)) 0),1,0));

       T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW) 0.667),1,0));

       T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667),1,0));

       T33{十字星}:=CONST(IF((CLOSE=OPENANDHIGH!=LOW),1,0));

       T34{大阴烛}:=CONST(IF((OPEN/CLOSE 1.05ANDHIGH/LOW OPEN/CLOSE+0.018),1,0));

       T35{好友反攻}:=CONST(IF(((REF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN

       ANDABS(CLOSE-REF(CLOSE,1))/CLOSE 0.002)OR(REF(CLOSE,1) REF(OPEN,1)

       ANDCLOSE OPENANDABS(CLOSE-REF(CLOSE,1))

       /CLOSE 0.002)),1,0));

       T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1) =1.03ANDO REF(C,1)ANDO

        REF(O,1)ANDC REF(O,1)),1,0));

       T37{M9}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1));

       T38{M10}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1));

       T39{M11}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1));

       T40{M12}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1));

       T41{M13}:=CONST((((IF((CLOSE=OPEN),1,0)+IF((CLOSE =J12),1,0))+IF((CLOSE =J23),1,0))

       T42{M14}:=CONST((((AMOUNT/VOL)/100) REF(HIGH,1)));

       T43{M15}:=CONST((((AMOUNT/VOL)/100) REF(LOW,1)));

       TS1:=IF(T1=1,0+0.03,0);

       TS2:=IF(T2=1,TS1+0.03,TS1);

       TS3:=IF(T3=1,TS2+0.03,TS2);

       TS4:=IF(T4=1,TS3+0.03,TS3);

       TS5:=IF(T5=1,TS4+0.03,TS4);

       TS6:=IF(T6=1,TS5+0.03,TS5);

       TS7:=IF(T7=1,TS6+0.03,TS6);

       TS8:=IF(T8=1,TS7+0.03,TS7);

       TS9:=IF(T9=1,TS8+0.03,TS8);

       TS10:=IF(T10=1,TS9+0.03,TS9);

       TS11:=IF(T11=1,TS10+0.03,TS10);

       TS12:=IF(T12=1,TS11+0.03,TS11);

       TS13:=IF(T13=1,TS12+0.03,TS12);

       TS14:=IF(T14=1,TS13+0.03,TS13);

       TS15:=IF(T15=1,TS14+0.03,TS14);

       TS16:=IF(T16=1,TS15+0.03,TS15);

       TS17:=IF(T17=1,TS16+0.03,TS16);

       TS18:=IF(T18=1,TS17+0.03,TS17);

       TS19:=IF(T19=1,TS18+0.03,TS18);

       TS20:=IF(T20=1,TS19+0.03,TS19);

       TS21:=IF(T21=1,TS20+0.03,TS20);

       TS22:=IF(T22=1,TS21+0.03,TS21);

       TS23:=IF(T23=1,TS22+0.03,TS22);

       TS24:=IF(T24=1,TS23+0.03,TS23);

       TS25:=IF(T25=1,TS24+0.03,TS24);

       TS26:=IF(T26=1,TS25+0.03,TS25);

       TS27:=IF(T27=1,TS26+0.03,TS26);

       TS28:=IF(T28=1,TS27+0.03,TS27);

       TS29:=IF(T29=1,TS28+0.03,TS28);

       TS30:=IF(T30=1,TS29+0.03,TS29);

       TS31:=IF(T31=1,TS30+0.03,TS30);

       TS32:=IF(T32=1,TS31+0.03,TS31);

       TS33:=IF(T33=1,TS32+0.03,TS32);

       TS34:=IF(T34=1,TS33+0.03,TS33);

       TS35:=IF(T35=1,TS34+0.03,TS34);

       TS36:=IF(T36=1,TS35+0.03,TS35);

       TS37:=IF(T37=1,TS36+0.03,TS36);

       TS38:=IF(T38=1,TS37+0.03,TS37);

       TS39:=IF(T39=1,TS38+0.03,TS38);

       TS40:=IF(T40=1,TS39+0.03,TS39);

       TS41:=IF(T41=1,TS40+0.03,TS40);

       TS42:=IF(T42=1,TS41+0.03,TS41);

       TS43:=IF(T43=1,TS42+0.03,TS42);

       DRAWTEXT(T1=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升‖'),COLORFF00FF;

       DRAWTEXT(T2=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落‖'),COLORFFFF00;

       DRAWTEXT(T3=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原停顿或‖'),COLOR00FFFF;

       DRAWTEXT(T4=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号‖'),COLORFFFF00;

       DRAWTEXT(T5=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升‖'),COLORFF00FF;

       DRAWTEXT(T6=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖'),COLORFFFF00;

       DRAWTEXT(T7=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖'),COLORFFFF00;

       DRAWTEXT(T8=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升‖'),COLORFF00FF;

       DRAWTEXT(T9=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈‖'),COLOR0000FF;

       DRAWTEXT(T10=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号‖'),COLORFFFF00;

       DRAWTEXT(T11=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号‖'),COLORFFFF00;

       DRAWTEXT(T12=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号‖'),COLORFFFF00;

       DRAWTEXT(T13=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。后市见底回升‖'),COLORFF00FF;

       DRAWTEXT(T14=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS14),'身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖'),COLOR00FFFF;

       DRAWTEXT(T15=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS15),'十字胎‖'),COLOR00FFFF;

       DRAWTEXT(T16=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS16),'平顶,行情见顶,股价将反转。但下跌力度较小‖'),COLORFFFFFF;

       DRAWTEXT(T17=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS17),'平底,行情探低见底,股价行将反转上升,但力度较小‖'),COLORFFFFFF;

       DRAWTEXT(T18=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS18),'大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹‖'),COLOR0000FF;

       DRAWTEXT(T19=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS19),'三个白武士,每日收盘价上移,表示可能见底回升‖'),COLORFFFFFF;

       DRAWTEXT(T20=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS20),'双飞乌鸦,行情开始疲软将见顶回落‖'),COLORFF0000;

       DRAWTEXT(T21=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS21),'孕育线,注意股价位置‖'),COLOR00FFFF;

       DRAWTEXT(T22=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS22),'多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖'),COLOR00FFFF;

       DRAWTEXT(T23=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS23),'出水芙蓉,阳线穿过20、40、60日,上攻势头初现‖'),COLORFF00FF;

       DRAWTEXT(T24=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS24),'上升三部曲,上涨信号‖'),COLORFF00FF;

       DRAWTEXT(T25=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS25),'下跌三部曲,下跌信号‖'),COLORFFFF00;

       DRAWTEXT(T26=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS26),'跳空缺口,盘整,向上涨、向下跌开始‖'),COLOR00FFFF;

       DRAWTEXT(T27=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS27),'三只乌鸦站枝头,可能见顶回落‖'),COLORFFFF00;

       DRAWTEXT(T28=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS28),'光脚阴线,下跌信号‖'),COLORFFFF00;

       DRAWTEXT(T29=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS29),'光头阳线,多方积极上攻态势,后市看涨‖'),COLOR0000FF;

       DRAWTEXT(T30=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS30),'分离,注意看涨分离和看跌分离‖'),COLOR00FFFF;

       DRAWTEXT(T31=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS31),'长下影,有可能止跌回升,升势末期,须小心‖'),COLOR00FFFF;

       DRAWTEXT(T32=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS32),'长上影,表明行情上档压力沉重,升势受阻‖'),COLORFFFF00;

       DRAWTEXT(T33=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS33),'十字星,重要的警告信号,原趋势停顿或反转‖'),COLOR00FFFF;

       DRAWTEXT(T34=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS34),'大阴烛,后市向淡,发生逆转‖'),COLORFF0000;

       DRAWTEXT(T35=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS35),'好友反攻,跌势已尽,要展开一段反弹行情‖'),COLORFF00FF;

       DRAWTEXT(T36=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS36),'倾盆大雨,见顶信号‖'),COLORFFFF00;

       DRAWTEXT(T37=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS37),'今日大于昨日,且有继续增大趋势'),COLORYELLOW;

       DRAWTEXT(T38=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS38),'今日成交量小于昨日,但有放大迹象'),COLORFFFF00;

       DRAWTEXT(T39=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS39),'今日成交量大于昨日,但有缩小迹象'),COLORRED;

       DRAWTEXT(T40=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS40),'今日成交量小于昨日,且有缩小迹象'),COLORRED;

       DRAWTEXT(T41=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS41),'极端行情,在未来的几日内有85%的机会变更方向'),COLORWHITE;

       DRAWTEXT(T42=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS42),'上涨趋势'),COLORRED;

       DRAWTEXT(T43=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS43),'下跌趋势'),COLORGREEN;




    很有用的通达信指标公式截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 很有用的通达信指标公式大全 加入收藏