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

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


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信预警公式

     

    AAA2:=SUM(IF(CLOSE REF(CLOSE,1),VOL*C,0),0); 

    AAA3:=SUM(IF(CLOSE REF(CLOSE,1),VOL*C,0),0); 

    AAA4:=SUM(IF(CLOSE=REF(CLOSE,1),VOL*C,0),0); 

    BB1:=0; 

    B16:=DVOL*DCLOSE/100; 

    B19:=B16-REF(B16,1); 

    B28:=DVOL*DCLOSE/100; 

    B29:=B28/REF(B28,1); 

    U:=(AAA2-AAA3-0.5*AAA4); 

    PM:=MA(U,1); 

    PMA:=PM/REF(PM,1)  

    PMB:=REF(PMA,1) 1ANDPMA; 

    A4:(EMA(MA(B16,2),2))/100000,COLORYELLOW,NODRAW; 

    A29:A4 3*REF(A4,1)AND(C-REF(C,1))/REF(C,1) 1.03; 

    A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)); 

    B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 

    分水岭:IF(MA(CLOSE,17) B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK2; 

    操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2; 

    PM:MA(C,5),COLORWHITE,LINETHICK2; 

    IF(PM REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2; 

    IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED; 

    IF(PM REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK2; 

    S:=(PM 操作线); 

    DD:=分水岭 REF(分水岭,1); 

    IF(DD,分水岭,DRAWNULL),COLOR00FF00,LINETHICK2; 

    IF(S,分水岭,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4; 

    DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{买入红箭头} 

    A1:=BARSLAST(REF(CROSS( MACD.DIF , MACD.DEA ),1)); 

    B1:=REF(C,A1+1) CANDREF( MACD.DIF ,A1+1) MACD.DIF AND 

    CROSS( MACD.DIF , MACD.DEA  

    DRAWTEXT(B1 0,L-0.02, ★M ),COLOR00FFFF;{MACD底} 

    A2:=BARSLAST(REF(CROSS( KDJ.K , KDJ.D ),1)); 

    B2:=REF(C,A2+1) CANDREF( KDJ.K ,A2+1) KDJ.K ANDCROSS( KDJ.K , KDJ.D  

    DRAWTEXT(B2,L-0.10, ◎K ),COLORFF00FF;{KDJ底背离} 

    A3:=BARSLAST(REF(CROSS( RSI.RSI1 , RSI.RSI2 ),1)); 

    B3:=REF(C,A3+1) CANDREF( RSI.RSI1 ,A3+1) RSI.RSI1 AND 

    CROSS( RSI.RSI1 , RSI.RSI2  

    DRAWTEXT(B3 0,L-0.18, ◆R ),COLOR0000FF;{RSI底背离} 

    C1:=BARSLAST(REF(CROSS( MACD.DEA , MACD.DIF ),1)); 

    D1:=REF(C,C1+1) CANDREF( MACD.DIF ,C1+1) MACD.DIF AND 

    CROSS( MACD.DEA , MACD.DIF  

    DRAWTEXT(D1 0,H+0.16, ★M ),COLOR00FF00;{MACD顶背离} 

    C2:=BARSLAST(REF(CROSS( KDJ.D , KDJ.K ),1)); 

    D2:=REF(C,C2+1) CANDREF( KDJ.K ,C2+1) KDJ.K ANDCROSS( KDJ.D , KDJ.K  

    DRAWTEXT(D2 0,H+0.08, ◎K ),COLORFFFFCC;{KDJ顶背离} 

    C3:=BARSLAST(REF(CROSS( RSI.RSI2 , RSI.RSI1 ),1)); 

    D3:=REF(C,C3+1) CANDREF( RSI.RSI1 ,C3+1) RSI.RSI1 AND 

    CROSS( RSI.RSI2 , RSI.RSI1  

    DRAWTEXT(D3 0,H+0.04, ◆R ),COLORFF9900;{RSI顶背离} 

    通达信公式2,自从有了它我成了高手 

    N11002M11003 

    Var2:=1; 

    Var3:=REF(HIGH,1)*1.1; 

    Var4:=HIGH*1.1; 

    Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL; 

    Var6:=REF(LOW,1)*0.9; 

    Var7:=LOW*0.9; 

    Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL; 

    Var9:=EMA(Var8,30); 

    VarA:=EMA(Var5,30); 

    VarB:=VarA-2; 

    VarC:=IF(CLOSE =Var9,VarB,VarA); 

    VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17; 

    出手:STICKLINE(VarC-VarB=0ANDVar2AND 

    CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA 

    (EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE, 

    N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),colorcc9966; 

    赢:DRAWTEXT(FILTER(VarC-VarB=0AND 

    CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA 

    (EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE, 

    N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55, 买入 ),COLORRED; 

    VarE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; 

    卖出线:SMA(SMA(VarE,3,1),3,1),colorff6633; 

    买入线:3*SMA(VarE,3,1)-2*卖出线,colorred; 

    DRAWICON(CROSS(90,买入线),90,2); 

    黄金点:STICKLINE(SMA(VarE,3,1) 卖出线,SMA(VarE,3,1),卖出线,4,0),COLOR1133ff; 

    通达信公式3,监测指标原码 

    腾飞线:cost(98); 

    控盘线:cost(50),linethick3; 

    生命线:cost(5); 

    ma5:ma(close,5); 

    ma10:ma(close,10); 

    ma60:ma(close,60),linethick3; 

    ma250:ma(close,250); 

    通达信公式4,春意融融 

    VAR1:=SUM(WINNER(CLOSE)*100,10)/10; 

    VAR2:=SUM(WINNER(CLOSE)*100,10)/20; 

    ZSYD:VAR1-(VAR2+10),COLORSTICK; 

    PP:=VAR1-(VAR2+10); 

    PD:=MA(ZSYD,8); 

    STICKLINE(PP 0,0,PP,0.1,0),COLORGREEN; 

    河水:STICKLINE(PP 0,0,PP,0.1,0),COLORBLUE; 

    水面冰封:STICKLINE(PP 0,0,2,4,0),COLORWHITE; 

    春意融融:STICKLINE(PP PD,PP+1,PP,1,0),COLOR00FFFF,LINETHICK2; 

    STICKLINE(PP PD,PP-2,PP,0.1,0),COLORWHITE; 

    冲破冰封:IF(CROSS(PP,0),20,0),COLORBLUE; 

    DRAWTEXT(冲破冰封 0,10, 破冰了 ),COLORWHITE; 

    通达信公式5,神针副图 

    F:=C OOR(C=OANDC REF(C,1)); 

    STICKLINE(F,H,L,0.1,0),COLORRED; 

    STICKLINE(F,C,O,6,0),COLORRED; 

    STICKLINE(NOT(F),H,L,0.1,0),COLORFFFF00; 

    STICKLINE(NOT(F),O,C,6,0),COLORFFFF00; 

    支撑价:LLV(LOW,19),LINETHICK2,COLOR00FF00; 

    阻力价:HHV(HIGH,19),COLORBLUE,LINETHICK2; 

    VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26); 

    VAR2:=EMA(VAR1,9); 

    VAR3:=(CLOSE*2.5/100+CLOSE); 

    VAR4:EMA(C,3); 

    VAR5:=LLV(HIGH,240); 

    VAR6:=100*(CLOSE-VAR5)/VAR5; 

    VAR7:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4; 

    VAR8:=SLOPE(CLOSE,10); 

    DRAWTEXT(FILTER(VAR7 23,8),H, 别贪 ),COLOR00FF00; 

    DRAWICON(COUNT(REF(VAR4,1) REF(VAR4,2),5)=5ANDVAR4 REF(VAR4,1),L*0.98,4); 

    DRAWICON(FILTER(COUNT(VAR6 0,5)ANDCROSS(VAR6,0)ANDVAR7 REF(VAR7,1)AND 

    VAR8 REF(VAR8,1)ANDC O,3),L,1); 

    DRAWICON(FILTER(REF(VAR4,1) REF(VAR4,2)ANDVAR4 REF(VAR4,1)ANDVAR7 17AND 

    VAR1 VAR2,5),H,2); 

    DRAWICON(阻力价 REF(阻力价,1)ANDCROSS(阻力价,VAR3)ANDC O,H*1.02,5); 

    通达信公式6,通达信SSLZT 

    TS:350N:95 

    DA1:=IF(TS TOTALBARSCOUNT,TOTALBARSCOUNT,TS); 

    DA:=IF(CURRBARSCOUNT DA1,0,DA1); 

    HI:=REFDATE(HHV(H,DA),DATE);{最高价} 

    LO:=REFDATE(LLV(L,DA),DATE); 

    C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL); 

    GZ:=EXP(LN(HI/LO)/15);{对数格值} 

    LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA); 

    LH2:=SUM(IF(C1 =(HI/POW(GZ,2))ANDC1 (HI/GZ),V,0),DA); 

    LH3:=SUM(IF(C1 =(HI/POW(GZ,3))ANDC1 (HI/POW(GZ,2)),V,0),DA); 

    LH4:=SUM(IF(C1 =(HI/POW(GZ,4))ANDC1 (HI/POW(GZ,3)),V,0),DA); 

    LH5:=SUM(IF(C1 =(HI/POW(GZ,5))ANDC1 (HI/POW(GZ,4)),V,0),DA); 

    LH6:=SUM(IF(C1 =(HI/POW(GZ,6))ANDC1 (HI/POW(GZ,5)),V,0),DA); 

    LH7:=SUM(IF(C1 =(HI/POW(GZ,7))ANDC1 (HI/POW(GZ,6)),V,0),DA); 

    LH8:=SUM(IF(C1 =(HI/POW(GZ,8))ANDC1 (HI/POW(GZ,7)),V,0),DA); 

    LH9:=SUM(IF(C1 =(HI/POW(GZ,9))ANDC1 LO*POW(GZ,7),V,0),DA); 

    LH10:=SUM(IF(C1 =(LO*POW(GZ,5))ANDC1 LO*POW(GZ,6),V,0),DA); 

    LH11:=SUM(IF(C1 =(LO*POW(GZ,4))ANDC1 LO*POW(GZ,5),V,0),DA); 

    LH12:=SUM(IF(C1 =(LO*POW(GZ,3))ANDC1 LO*POW(GZ,4),V,0),DA); 

    LH13:=SUM(IF(C1 =(LO*POW(GZ,2))ANDC1 LO*POW(GZ,3),V,0),DA); 

    LH14:=SUM(IF(C1 =(LO*GZ)ANDC1 LO*POW(GZ,2),V,0),DA); 

    LH15:=SUM(IF(C1 =LOANDC1 LO*GZ,V,0),DA); 

    L1:=REFDATE(HHV(LH1,DA),DATE); 

    L2:=REFDATE(HHV(LH2,DA),DATE); 

    L3:=REFDATE(HHV(LH3,DA),DATE); 

    L4:=REFDATE(HHV(LH4,DA),DATE); 

    L5:=REFDATE(HHV(LH5,DA),DATE); 

    L6:=REFDATE(HHV(LH6,DA),DATE); 

    L7:=REFDATE(HHV(LH7,DA),DATE); 

    L8:=REFDATE(HHV(LH8,DA),DATE); 

    L9:=REFDATE(HHV(LH9,DA),DATE); 

    L10:=REFDATE(HHV(LH10,DA),DATE); 

    L11:=REFDATE(HHV(LH11,DA),DATE); 

    L12:=REFDATE(HHV(LH12,DA),DATE); 

    L13:=REFDATE(HHV(LH13,DA),DATE); 

    L14:=REFDATE(HHV(LH14,DA),DATE); 

    L15:=REFDATE(HHV(LH15,DA),DATE); 

    SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15); 

    STICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT,HI*N/100,HI/GZ,0.1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),0.1 

    ,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),0.1 

    ,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,7),LO*POW(GZ,8)*N/100,0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,6),LO*POW(GZ,7)*N/100,0. 

    1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,5),LO*POW(GZ,6)*N/100,0 

    .1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L11/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,4),LO*POW(GZ,5)*N/100,0 

    .1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L12/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,3),LO*POW(GZ,4)*N/100,0 

    .1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L13/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,0 

    .1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L14/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,0 

    .1,1)COLORLIGRAY; 

    STICKLINE(CEILING(DA*L15/SS)*3 =CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,0.0001,1)CO 

    LORLIGRAY; 

    DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 

    通达信公式7,“拉升在即”源码 

    参数描述N(10,244,10) 

    Var1:=MA(CLOSE,5); 

    Var2:=MA(CLOSE,10); 

    Var3:=MA(CLOSE,60); 

    Var4:=MA(CLOSE,35); 

    Var5:=MA(REF(VOL,10),20); 

    Var6:=IF(CLOSE-SMA(CLOSE,75,1) 0,CAPITAL/VOL,0); 

    Var7:=IF(CLOSE Var3*0.95AND100*VOL/CAPITAL 1.2AND 

    Var6 150,50,0); 

    Var8:=IF(CLOSE Var1ANDVar3ANDCROSS(Var1,Var2)AND 

    (VOL-Var5)/Var5 0.5ANDCLOSE MA(REF(CLOSE,1),3)AND 

    SMA(Var7,5,1) 0,100,50); 

    Var9:=IF(100*VOL/CAPITAL 10AND100*VOL/CAPITAL 18AND 

    SMA(Var8,5,1) 50ANDVar1 Var2,150,100); 

    注意:Var7; 

    持有:Var8; 

    拉升:Var9; 

    通达信公式8,指标大顶小顶一览无余 

    1.当粉色柱线连续出现且柱线时,要特别关注该股的运行,结合的走势和该股的成交 

    量跟踪观察,一旦柱线逐渐缩短,即可判定顶部即将形成,如果当天股票下跌即将收阴且成交 

    量萎缩就应该果断卖出. 

    2.股票下跌连续出现青色柱线,在青色柱线没跌到底线消失之前不要急于(个别情况例 

    外),要经过几个交易日或者更长时间才能出现转机,这时再择机介入(用这个指标查看一下历 

    史走势就能发现规律). 

    3.做短线时,只要出现第一根粉色柱线,当天可介入,第二天看该股的走势是否维持强势,如果 

    是持股,否则冲高时获利了结. 

    4.用该指标可操作,如果手中的股票严重被套,用上述方法操作在顶部卖出80%,底部补 

    进,几个来回就有可能解套. 

    5.该指标有两条柱形趋势线,分别是短期和长期趋势线,加这两条趋势线的作用是,可随时比 

    照主图K线方便观察趋势,是对顶部指标的补充. 

    下面是这个指标的源码,没有这个指标的朋友可下载使用, 

    参数n:4010060 

    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); 

    VarA:=IF(Var9 100,Var9-100,0); 

    VarB:=HHV(HIGH,34); 

    AA:=VarA*2; 

    BB:=EMA((Var6-Var8)/(VarB-Var8)*100,13); 

    VarC:=EMA(0.667*REF(BB,1)+0.333*BB,2); 

    CC:=SMA(Var5,20,1); 

    VarD:=SMA(AA,2,1)-AA; 

    VarE:=EMA(0.667*REF(BB,1)+0.333*BB,2)-BB; 

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

    VAR2a:=SMA(VAR1a,9,1)+100; 

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

    VAR4a:=SMA(VAR3a,3,1); 

    VAR5a:=SMA(VAR4a,3,1)+100; 

    VAR6a:=VAR5a-VAR2a; 

    S:IF(VAR6a n,VAR6a-n,0); 

    STICKLINE(BB-VarC 0,BB,VarC,5,0),colorred; 

    STICKLINE(BB-VarC 0,BB,VarC,5,0),colorffcccc; 

    STICKLINE(CC-SMA(CC,5,1) 0,CC,SMA(CC,5,1),5,0),coloryellow; 

    STICKLINE(CC-SMA(CC,5,1) 0,CC,SMA(CC,5,1),5,0),colorblue; 

    STICKLINE(REF(S,1) S,S,REF(S,1),5,0),colorffcc66; 

    通达信公式9,箭中擒的副图指标神秘线 

    X1:=(EMA(C,5)-EMA(C,13))/EMA(C,13)*100; 

    X2:=(EMA(C,5)-EMA(C,34))/EMA(C,13)*100; 

    X3:=(EMA(C,5)-EMA(C,60))/EMA(C,13)*100; 

    X4:=(EMA(C,5)-EMA(C,120))/EMA(C,13)*100; 

    X5:=V/CAPITAL*(C+O+L+H)/4; 

    X6:=(H-MAX(C,O))-(MIN(C,O)-L)+(C-REF(C,1)); 

    X7:=IF(X6 0,X5,0-X5); 

    X8:=H-MAX(C,O)-(MIN(C,O)-L); 

    X9:=(X7+X8)/2+C-REF(C,1); 

    X10:=SUM(X9,0)+100; 

    X11:=EMA(X10,5)+100; 

    X12:=EMA(X10,13)+100; 

    X13:=EMA(X10,34)+100; 

    X14:=EMA(X10,60)+100; 

    X15:=EMA(X10,120)+100; 

    X16:=(X11-X12)/EMA(C,13)*100; 

    X17:=(X11-X13)/EMA(C,13)*100; 

    X18:=(X11-X14)/EMA(C,13)*100; 

    X19:=(X11-X15)/EMA(C,13)*100; 

    X20:=(X19-X16); 

    X21:=(X19-X17); 

    X22:=(X19-X18); 

    Y1:=3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))(100,20,1); 

    Y2:=2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1); 

    Y3:=Y1-Y2; 

    Y4:=100-Y3; 

    Y5:=(0-(EMA(Y4,1)-50))+50; 

    Y6:=(0-(EMA(Y4,12)-50))+50; 

    Z1:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1); 

    Z2:=2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1); 

    Z3:=(Z1-Z2-50)*1.032+50; 

    Z4:=(2*C+H+L+O)/5; 

    Z5:=EMA((Z4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13); 

    P0:X4-X1+X20+Y5-Y6,COLORYELLOW; 

    P4:(Z3-Z5)/2+P0,COLORRED; 

    {} 

    BB1:=SMA(ABS(L-REF(L,1)),3,1); 

    BB2:=SMA(MAX((L-REF(L,1)),0),3,1); 

    BB3:=BB1/BB2*100; 

    BB4:=EMA(IF(C*1.2,BB3*10,BB3/10),3); 

    BB5:=LLV(L,38); 

    BB6:=HHV(BB4,38); 

    BB7:=IF(LLV(L,90),1,0); 

    BB8:=IF(L =BB5,(BB4+BB6*2)/2,0); 

    BB9:=EMA(BB8,3)/618*BB7; 

    DRAWTEXT(CROSS(P4,P0)ANDP4 40,(P4-10), ↑ ),COLORRED;DRAWTEXT(CROSS(P4,P0)AND 

    P4 5,P0, 低吸 ),COLORWHITE;DRAWTEXT(CROSS(P0,P4),P4, 高减 ),COLORBLUE; 

    DRAWTEXT(CROSS(P0,P4)ANDP0 85,P0, 逃命 ),COLORYELLOW; 

    通达信公式10,理财专家 

    {参数D:34,90,72} 

    VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; 

    VAR2:=2*ABS(VAR1); 

    VAR3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA( 

    (CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1); 

    VAR4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA(( 

    OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1); 

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

    VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14)); 

    VAR7:=(VAR5-MA(VAR5,89))/(0.015*AVEDEV(VAR5,89)); 

    VAR8:=IF(VAR6 =150ANDVAR6 200ANDVAR7 =150ANDVAR7 200,10,0); 

    VAR9:=IF(VAR6 =-150ANDVAR6 -200ANDVAR7 =-150ANDVAR7 -200,-10,VAR8); 

    VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; 

    VARB:=100-ABS(VARA); 

    VARC:=3*SMA((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA 

    (SMA 

    ((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1); 

    VARD:=3*SMA((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA 

    (SMA 

    ((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1); 

    VARE:=REF(LOW,1)*0.9; 

    VARF:=LOW*0.9; 

    VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; 

    VAR11:=EMA(VAR10,30); 

    VAR12:=VAR11-CLOSE; 

    VAR13:=REF(CLOSE,1); 

    VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100; 

    VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100; 

    VAR16:=BARSCOUNT(CLOSE); 

    VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100; 

    VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2; 

    VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; 

    VAR1A:=(SMA(VAR19,4,1)-50)*2; 

    VAR1B:=SMA(VAR1A,3,1); 

    VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; 

    VAR1D:=SMA(VAR1C,4,1); 

    VAR1E:=SMA(VAR1D,3,1); 

    VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 

    VAR20:=IF(VAR17 =25ANDVAR18 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30AND 

    VAR12 =-0.25ANDVAR14 22ANDVAR15 28ANDVAR16 50,80,0); 

    活筹OAMV:VAR3,COLORFF00FF; 

    OX:IF(VARB 90,VARB,100),COLORFFCC66; 

    VAR21:=IF(VAR1 0,VAR1,0); 

    核能:IF(VAR1 0,VAR2,0),LINESTICK; 

    牛角:VAR20,COLORYELLOW; 

    预警:IF(VAR7 =200ANDVAR6 =150,15,IF(VAR7 =-200ANDVAR6 =-150,-15,VAR9)) 

    +60,COLOR00FF00; 

    VAR22:=100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)); 

    VAR23:=MA(VAR22,3); 

    VAR24:=EMA(AMOUNT/VOL/100,5); 

    VAR25:=EMA(AMOUNT/VOL/100,13); 

    VAR26:=VAR24-VAR25; 

    势能:IF(1000*VAR26/VAR24 0,1000*VAR26/VAR24,0),COLORRED,LINETHICK2; 

    STICKLINE(VAR3 =REF(VAR4,1),VAR3,VAR4,8,1),COLORRED; 

    STICKLINE(VAR3 REF(VAR4,1),VAR3,VAR4,8,1),COLOR00FF00; 

    VAR27:=CLOSE MA(CLOSE,20)ANDMA(CLOSE,20) =REF(MA(CLOSE,20),1); 

    VAR28:=CLOSE MA(CLOSE,20)ANDMA(CLOSE,20) REF(MA(CLOSE,20),1); 

    VAR29:=VAR21 50AND预警 60ANDōX=100; 

    VAR2A:=VAR21 48AND预警 60ANDOX  

    VAR2B:=核能 38AND预警  

    VAR2C:=牛角 50ANDOX  

    VAR2D:=VAR3 REF(VAR4,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1); 

    VAR2E:=VAR3 =REF(VAR4,1)ANDCLOSE REF(CLOSE,1)AND预警=60AND牛角=0AND核 

    能 =REF(核能,1)ANDVARC REF(VARD,1); 

    DRAWTEXT(VAR27ANDCOUNT(VAR27,30)=1,90, 持股待涨 ),COLORFF00FF; 

    DRAWTEXT(VAR28ANDCOUNT(VAR28,30)=1,10, 出局为佳 ),COLOR00FF00; 

    DRAWTEXT(VAR29ANDCOUNT(VAR29,30)=1,70, 上涨过急需要调整 ),COLORWHITE; 

    DRAWTEXT(VAR2AANDCOUNT(VAR2A,30)=1,80, 拉升在即狂牛 ),COLORYELLOW; 

    DRAWTEXT(VAR2BANDCOUNT(VAR2B,30)=1,20, 不必杀跌有反弹 ),COLORWHITE; 

    DRAWTEXT(VAR2CANDCOUNT(VAR2C,30)=1,30, 角斗士阶段底部 ),COLORYELLOW; 

    DRAWTEXT(VAR2DANDCOUNT(VAR2D,30)=1,60, 大进场 ),COLOR0099FF; 

    DRAWTEXT(VAR2EANDCOUNT(VAR2E,30)=1,40, 高点回落 ),COLORFFCC66;

    公式解读:

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

    公式解读:



    每日通达信公式解答:

     

    股票公式编写要求: 

    股价除以公积金的公式。 

    股票公式编写结果: 

    C/FINANCE(18);




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信预警公式(通达信条件预警指标) 加入收藏