最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信仙人指路主图选股公式(通达信公式)

    正文概述    2024-05-04 03:57:14  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信仙人指路主图公式


     

    EMA5:EMA(C,5); 

    EMA14:EMA(C,14),COLORRED,LINETHICK2; 

    EMA25:EMA(C,25),COLORYELLOW,LINETHICK2; 

    EMA60:EMA(C,60),COLORFF00FF; 

    EMA90:EMA(C,90),COLORGREEN; 

    EMA120:EMA(C,120),COLORBLUE; 

    M1:=1000*EMA14/EMA25 =1115AND1000*EMA14/EMA25 =870; 

    M2:=1000*EMA25/EMA60 =1115AND1000*EMA25/EMA60 =875; 

    M3:=1000*EMA60/EMA90 =1120AND1000*EMA60/EMA90 =880; 

    M4:=1000*EMA90/EMA120 =1015AND1000*EMA90/EMA120 =885; 

    DRAWICON(M1ANDM2ANDM3ANDM4ANDCROSS(EMA5,EMA14),L-0.20,9); 

    {N:11005M:110013} 

    上:=EMA(C,3),COLORRED,LINETHICK1; 

    中:=EMA(C,5),COLOR00FF00,LINETHICK1; 

    下:=EMA(中,5),COLORWHITE,LINETHICK1; 

    线:=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4; 

    V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); 

    V2:=(1-7/100)*(DMA(CLOSE,V1)); 

    V3:=(1+7/100)*(DMA(CLOSE,V1)); 

    V5:=MA((LOW+HIGH+CLOSE)/3,5); 

    支撑:=REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF; 

    阻力:=REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN; 

    MA1:=MEMA(CLOSE,5); 

    MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416; 

    MA3:=IF(MA2 0,MA2,MA2); 

    MA5:=MA(CLOSE,N),COLOR888899; 

    MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2; 

    VAR1:=CLOSE=HHV(C,4)AND(REF(C,1) =REF(C,2)ORREF(C,1) =REF(C,3)) 

    ORREF(C,1)=HHV(C,4)ANDCLOSE =REF(C,2)ORREF(C,2)=HHV(C,4)AND 

    REF(C,3)=LLV(C,4)ANDC =REF(C,1)ORREF(C,3)=HHV(C,4)AND 

    C =REF(C,1)ANDC =REF(C,2); 

    VAR2:=CLOSE=HHV(C,4)ANDREF(C,1)=LLV(C,4); 

    VAR3:=CLOSE=LLV(C,4)AND(REF(C,1) REF(C,2)ORREF(C,1) REF(C,3))OR 

    REF(C,1)=LLV(C,4)ANDC REF(C,2)ORREF(C,2)=LLV(C,4)AND 

    REF(C,1)=HHV(C,4)ANDC REF(C,1)ORREF(C,3)=LLV(C,4)AND 

    C REF(C,1)ANDC REF(C,2); 

    VAR4:=REF(C,1)=LLV(C,4)ANDC =REF(C,2)ORREF(C,2)=LLV(C,4)AND 

    REF(C,1) =REF(C,3)ANDREF(C,2) REF(C,4)ANDC =REF(C,1); 

    VAR5:=REF(C,1)=HHV(C,4)ANDC REF(C,2)OR(REF(C,2)=HHV(C,4)AND 

    REF(C,1) REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1) REF(C,2))AND 

    REF(C,2) =REF(C,4)ANDC REF(C,1); 

    VAR6:=V5 REF(V5,1)ANDREF(V5,1) REF(V5,2); 

    VAR7:=LOW HHV(V5,13)ANDHIGH HHV(V5,13)ANDCLOSE REF(C,1)ANDCLOSE OPEN; 

    VAR8:=VAR7ANDCOUNT(VAR6,2); 

    VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); 

    VAR10:=EMA(MA(C,13),13); 

    VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7)ANDCOUNT(VAR9 0,2)AND 

    CROSS(VAR9,MA(VAR9,2)))=1,5); 

    VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7)ANDCOUNT(VAR9 50,2)AND 

    CROSS(MA(VAR9,2),VAR9))=1,1); 

    VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10; 

    VAR14:=FILTER(((CROSS(VAR13,0)ORCROSS(C,VAR10))ANDVAR11)=1,3); 

    VAR15:=MA(C,18) =REF(MA(C,18),3)ANDCROSS(C,MA(C,18)); 

    VAR16:=VAR8ANDNOT(REF(VAR8,1)); 

    强攻:=IF(MA3 REF(MA3,1)ANDMA3 =0,MA13,DRAWNULL),COLORYELLOW,LINETHICK2; 

    回调:=IF(MA3 REF(MA3,1)ANDMA3 0,MA13,DRAWNULL),COLORGREEN,LINETHICK2; 

    {KDJ} 

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

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

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

    J:=3*K-2*D; 

    :=CROSS(J,D); 

    死叉:=CROSS(D,J); 

    买1:=(VAR14ORVAR15)ANDVAR11; 

    买2:=(VAR14ORVAR15)ANDVAR4; 

    买3:=(VAR14ORVAR15)ANDVAR2; 

    买4:=(VAR2ANDVAR11)OR(VAR4ANDVAR11); 

    买5:=(金叉ANDVAR4)OR(金叉ANDVAR2)OR(金叉ANDVAR11); 

    {} 

    STICKLINE(CLOSE REF(CLOSE,1)*1.0985ANDCLOSE=HIGH,CLOSE,OPEN,4,-1), 

    COLOR00FFFF; 

    {跌停} 

    STICKLINE(CLOSE REF(CLOSE,1)*0.9015ANDCLOSE=LOW,CLOSE,OPEN,4,-1), 

    COLORGREEN; 

    {蓝} 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,3.3,0),COLORFF7700; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.4,0),COLORFF9900; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,1.3,0),COLORFFBB00; 

    STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.8,0),COLORCYAN; 

    {红} 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,3.3,0),COLOR000099; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.4,0),COLOR0000CC; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.3,0),COLOR0000FF; 

    STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.8,0),COLORCC66FF; 

    {绿} 

    STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900; 

    STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00; 

    STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00; 

    STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.8,0),COLOR00FF00; 

    {灰} 

    STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999; 

    STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; 

    STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD; 

    STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.8,0),COLORFFFFFF; 

    STICKLINE(金叉,OPEN,CLOSE,1,0),COLORYELLOW; 

    STICKLINE(死叉,OPEN,CLOSE,1,0),COLOR000099; 

    DRAWICON(VAR16,LOW-0.02,7); 

    DRAWICON(买1OR买2OR买3OR买4OR买5,LOW-0.01,1); 

    DRAWICON(死叉ORVAR12ORCROSS(40,VAR9),HIGH+0.01,2); 

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

    BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10; 

    EMA8:=EMA(C,8); 

    DRAWTEXT(FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10), 

    EMA8, ∠45升 ),COLORWHITE; 

    VAR81:=1; 

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

    低金叉进:=20,COLORYELLOW,LINETHICK2; 

    高死叉出:=90,COLORGREEN,LINETHICK3; 

    VAR84:=LLV(LOW,5); 

    VAR85:=HHV(HIGH,4); 

    C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81),COLORFF00FF,LINETHICK2; 

    C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINETHICK2; 

    条件:=CROSS(C1,C2)ANDC1 40; 

    条件0:=CROSS(C2,C1)ANDC1 90; 

    TJ1:=CROSS(C1,C2); 

    TJ2:=CROSS(C2,C1); 

    TJ3:=CROSS(C1,C2)ANDREF(C1,1) 20; 

    TJ4:=CROSS(C2,C1)ANDREF(C1,1) 80; 

    DRAWTEXT(条件0,H*1.02, S ),COLORBLUE; 

    {DRAWTEXT(CROSS(C1,75),H*1.013, 险区 ),COLORGREEN;} 

    DRAWTEXT(TJ3,L*0.98, 买底 ),COLORFF00FF; 

    DRAWTEXT(TJ4,H*1.02, ),COLORGREEN; 

    E1:=BARSCOUNT(C); 

    AH:=HHV(H,200); 

    AL:=LLV(L,200); 

    B0:=(AH-AL)/40; 

    KB1:=H+B0; 

    KB2:=L-B0; 

    STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHICK3; 

    DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0, 时窗 ),COLORYELLOW; 

    水平面:=EMA(CLOSE,89),COLOR3399FF; 

    AAA:=(3*C+H+L+O)/6; 

    短趋:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; 

    中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3; 

    {STICKLINE(C 中趋,短趋,中趋,0,0),COLORYELLOW;} 

    TTJ1:==HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE 短趋; 

    立桩量:=FILTER(TTJ1,5); 

    TTJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(HIGH,3),1,0))); 

    :=TTJ2=1; 

    TTJ3:=IF(BARSLAST(立桩量)=1ANDCLOSE REF(LOW,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE REF(LOW,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE REF(LOW,3),1,0))); 

    三天法则:=TTJ3=1; 

    成立:=三天法则AND突破; 

    条件成立:=FILTER(成立,3); 

    DRAWICON(条件成立,L*0.91,1); 

    DRAWTEXT(条件成立,L*0.91, 立桩 ),COLORFF26FF; 

    MA(C,9),LINETHICK0,COLORYELLOW; 

    MA(C,21),LINETHICK0,COLORRED; 

    IF(MA(C,9) REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK0,COLORBLUE; 

    IF(MA(C,21) REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK0,COLORGREEN; 

    VAR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4) 0)AND((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2) REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1) REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2) REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3))); 

    DRAWTEXT(VAR90,L*0.98, 短买 ),COLORRED; 

    DRAWTEXT(CROSS(MA(C,3),MA(C,9))ANDC =REF(C,1) 

    ANDC O,L*0.98, 追加 ),COLORMAGENTA; 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( MACD.DIF , MACD.DEA ),1))+1) CAND 

    REF( MACD.DIF ,BARSLAST(REF(CROSS( MACD.DIF , MACD.DEA ),1))+1) 

    MACD.DIF ANDCROSS( MACD.DIF , MACD.DEA ) 

    0,L-0.02, ★M ),COLORFF00FF;{MACD底} 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( KDJ.K , KDJ.D ),1))+1) CAND 

    REF( KDJ.K ,BARSLAST(REF(CROSS( KDJ.K , KDJ.D ),1))+1) KDJ.K AND 

    CROSS( KDJ.K , KDJ.D ),L-0.10, ◎K ),COLORFF00FF;{KDJ底背离} 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( RSI.RSI1 , RSI.RSI2 ),1))+1) CAND 

    REF( RSI.RSI1 ,BARSLAST(REF(CROSS( RSI.RSI1 , RSI.RSI2 ),1))+1) 

    RSI.RSI1 ANDCROSS( RSI.RSI1 , RSI.RSI2 ) 

    0,L-0.18, ◆R {RSI底背离}; 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( MACD.DEA , MACD.DIF ),1))+1) C 

    ANDREF( MACD.DIF ,BARSLAST(REF(CROSS( MACD.DEA , MACD.DIF ),1))+1) 

    MACD.DIF ANDCROSS( MACD.DEA , MACD.DIF ) 

    0,H+0.16, ★M ),COLORGREEN;{MACD顶背离}; 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( KDJ.D , KDJ.K ),1))+1) C 

    ANDREF( KDJ.K ,BARSLAST(REF(CROSS( KDJ.D , KDJ.K ),1))+1) 

    KDJ.K ANDCROSS( KDJ.D , KDJ.K ) 0,H+0.08, ◎K {KDJ顶背离} 

    DRAWTEXT(REF(C,BARSLAST(REF(CROSS( RSI.RSI2 , RSI.RSI1 ),1))+1) CAND 

    REF( RSI.RSI1 ,BARSLAST(REF(CROSS( RSI.RSI2 , RSI.RSI1 ),1))+1) RSI.RSI1  

    ANDCROSS( RSI.RSI2 , RSI.RSI1 ) 0,H+0.04, ◆R  

    GLL:=-6; 

    VARY13:=HHV(HIGH,21); 

    VARY14:=LLV(LOW,21); 

    D:=Ema((CLOSE-VARY14)/(VARY13-VARY14)*100,5),,COLORREDLINETHICK2; 

    K:=EMA((CLOSE-VARY14)/(VARY13-VARY14)*100,20),,LINETHICK2COLORFF9933; 

    底:=5,,POINTDOTLINETHICK1COLORGREEN; 

    IF(crOSS(K,D)ANDD 55,100,115),COLORCYAN,LINETHICK2; 

    JM:=IF(YEAR =2006ANDMONTH 12,0,1); 

    VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200; 

    VAR2:=SMA(VAR1,3,1); 

    VAR3:=SMA(VAR2,3,1); 

    VAR4:=3*VAR2-2*VAR3; 

    VAR5:=LLV(LOW,5); 

    VAR6:=HHV(HIGH,5); 

    VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2; 

    VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2); 

    VAR9:=3*VAR7-2*VAR8; 

    VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5); 

    VARB:=POW(MA(LOW,5),2)+MA(LOW,5); 

    VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5); 

    VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10; 

    VARE:=SMA(VARD,3,1)*1.5-100; 

    VARF:=SMA(VARE,3,1); 

    VAR10:=3*VARE-2*VARF; 

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

    VAR12:=EMA(VAR11,13); 

    VAR13:=stD(VAR11,13); 

    VAR14:=(VAR11-VAR12)*100/VAR13; 

    VAR15:=EMA(VAR14,5); 

    VAR16:=EMA(VAR15,13); 

    VAR17:=EMA(VAR15,13)+200-100; 

    VAR18:=EMA(VAR17,10); 

    VAR19:=3*VAR17-2*VAR18; 

    VAR1A:=VAR2+VAR7+VARE+VAR17; 

    VAR1B:=VAR3+VAR8+VARF+VAR18; 

    VAR1C:=VAR4+VAR9+VAR10+VAR19; 

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

    VAR1E:=AMOUNT/vol/100; 

    VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100; 

    VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34)); 

    VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); 

    VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4; 

    VAR23:=EMA(VAR22,24); 

    VAR24:=STD(VAR22,24); 

    VAR25:=(VAR22-VAR23)/VAR24*100; 

    VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24)); 

    VAR27:=EMA(VAR25,5); 

    VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21)); 

    VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90)); 

    VAR2A:=(({VAR29+VAR28+}VAR27+VAR26+VAR20)/3+165)/4; 

    VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21; 

    VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15; 

    VAR2D:=EMA(VAR2C,13);{13} 

    VAR2E:=(VAR2A+VAR2C)/2/1.1; 

    DXM:=VAR2E*JM,COLORRED,LINETHICK1; 

    DX1:EMA(DXM,1),COLORFF3366,LINETHICK2; 

    DX2:=EMA(DX1,12),COLOR889900,LINETHICK2; 

    ZX:EMA((VAR2B+VAR2D)/2,2),COLORDDDDDD,LINETHICK2; 

    炒:=EMA(ZX,34),COLOR889900; 

    STICKLINE(ZX-REF(ZX,1) 0,ZX,0,10,0),COLORWHITE,LINETHICK1,POINTDOT; 

    STICKLINE(ZX-REF(ZX,1) 0,ZX,0,10,0),COLORFF9999,POINTDOT; 

    红灯:STICKLINE(ZX 100,120,110,10,0),COLORRED; 

    bias1W:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; 

    BIAS2W:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; 

    BIAS3W:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; 

    MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6; 

    MN:=MA(MM,3),COLORCC0033,LINETHICK1;{ 

    IF(MN GLL,0,-35,),COLORGREEN,LINETHICK2;} 

    {A962:STICKLINE(MN -9,0,-35,2,0),COLORYELLOW,; 

    A1272:STICKLINE(MN -12,0,-35,2,0),COLORRED;} 

    J:=CROSS(DX1,0)ANDCOUNT(MN -12,2) =1ORCROSS(DX1,ZX)ANDCOUNT(MN -12,2)  

    箭1272:=STICKLINE(J,100,0,3,0),COLORWHITE; 

    DRAWICON(J,100,1); 

    {DRAWICON(CROSS(DX1,DX2)ANDDX2 80OR(CROSS(60,mms)ANDZX 50)OR(CROSS(MMM,MMS)ANDMMM 50),110,3)};{卖} 

    DRAWICON(CROSS(DX1,ZX)ANDCOUNT(MN GLL,2) =1OR(CROSS(DX1,0)ANDCOUNT(MN GLL,1) =1) 

    {OR(CROSS(DX1,DX2)ANDCOUNT(MN GLL,1) =1)},-5,3);{弱};{强} 

    DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*10; 

    DEA:=EMA(DIFF,12); 

    STICKLINE(((CROSS(100,DX1)ORCROSS(ZX,DX1)ANDZX 80)) 0,0,ZX,3,0)COLORRED; 

    {STICKLINE(HHV(ZX,1) 100,100,105,10,1),POINTDOT,LINETHICK3,,COLORBLUE;} 

    {QQ6:=COUNT((CROSS(DX1,0)ANDZX 10) 0,2)  

    DRAWICON(QQ6ANDCOUNT(MN GLL,3) =1,-20,2);}{XRZL3中的低买点} 

    {买} 

    {QQ1:=ZX ZX买入; 

    QQ2:=DIFF-DEA  

    QQ3:=CROSS(DIFF,DEA); 

    QQ4:=COUNT(CROSS(DX1,ZX),20)  

    QQ5:=QQ1ANDQQ3ANDQQ4; 

    DRAWTEXT(QQ5 0,-10, ★ ),COLORYELLOW,LINETHICK1;}; 

    阳涨幅:=4; 

    阳倍量:=2; 

    单阳:=C O*(1+阳涨幅/100)ANDVOL REF(VOL,1)*阳倍量; 

    DRAWTEXT(CURRBARSCOUNT 100AND单阳,L*0.98, 阳 ),COLOR00FFFF; 

    高不破价:=REF(C,BARSLAST(单阳)); 

    中不破价:=REF((C+L)/2,BARSLAST(单阳)); 

    低不破价:=REF(L,BARSLAST(单阳)); 

    单阳不破:=CURRBARSCOUNT 100ANDBARSLAST(单阳) 11AND(LLV(L,BARSLAST(单阳)) 低不破价ORLLV(L,BARSLAST(单阳))=低不破价); 

    STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED; 

    DRAWTEXT(BARSLAST(单阳)=1AND单阳不破,低不破价*0.98, 1 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=2AND单阳不破,低不破价*0.98, 2 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=3AND单阳不破,低不破价*0.98, 3 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=4AND单阳不破,低不破价*0.98, 4 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=5AND单阳不破,低不破价*0.98, 5 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=6AND单阳不破,低不破价*0.98, 6 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=7AND单阳不破,低不破价*0.98, 7 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=8AND单阳不破,低不破价*0.98, 8 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=9AND单阳不破,低不破价*0.98, 9 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=10AND单阳不破,低不破价*0.98, 10 ),COLORGREEN; 

    两天:=LLV(L,BARSLAST(单阳)) 低不破价ORLLV(L,BARSLAST(单阳))=低不破价; 

    一般:=LLV(L,BARSLAST(单阳)-2) 低不破价ORLLV(L,BARSLAST(单阳)-2)=低不破价; 

    一般选股:STICKLINE(CURRBARSCOUNT 100ANDBARSLAST(单阳) 9AND两天AND一般,低不破价,低不破价,2,0),COLOR88FF00; 

    较强:=LLV(L,BARSLAST(单阳)-2) 中不破价ORLLV(L,BARSLAST(单阳)-2)=中不破价; 

    较强选股:STICKLINE(CURRBARSCOUNT 100ANDBARSLAST(单阳) 9AND两天AND较强,中不破价,中不破价,2,0),COLOR0088FF; 

    最强:=LLV(L,BARSLAST(单阳)-3) 高不破价ORLLV(L,BARSLAST(单阳)-2)=高不破价; 

    最强选股:STICKLINE(CURRBARSCOUNT 100ANDBARSLAST(单阳) 9AND两天AND最强,高不破价,高不破价,2,0),COLOR00FFFF;

    公式解读:


    [源码注释]通达信公式动态公式解读


    输出突破:1日前的收盘价的13日[3日权重]移动平均

    A1X赋值:(收盘价的8日线性回归预测值-突破)/突破*100

    多方赋值:如果A1X =0,返回上次A1X上穿0距今天数+1日前的收盘价的8日指数移动平均,否则返回无效数

    空方赋值:如果A1X 0,返回上次0上穿A1X距今天数+1日前的收盘价的8日指数移动平均,否则返回无效数

    当满足条件A1X =0时,在多方和突破位置之间画柱状线,宽度为1,1不为0则画空心柱.,画洋红色

    当满足条件A1X 0时,在空方和突破位置之间画柱状线,宽度为1,1不为0则画空心柱.,画绿色

    公式解读:



    每日通达信公式解答:


     

    公式编写要求: 

    连续出现2根阳线,第二根阳线比第一根要大,然后第三根是阴线,阴线的成交量大小没关系的选股公式。 

    公式编写方法: 

    REF(COUNT(C O,2)=2,1)ANDREF(VOL,2) REF(VOL,1)ANDO


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信仙人指路主图选股公式(通达信公式) 加入收藏