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

    正文概述    2024-05-04 04:25:19  
     

    通达信指标公式源码概况:


    指标类别: 通达信指标公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图


    股票三关价指标公式


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

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

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

    VAR2:=EMA(VAR1,9); 

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

    VAR4:EMA(C,3),LINETHICK3; 

    VAR5:=LLV(HIGH,240); 

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

    VAR7:=REF(LLV(CLOSE,480),1); 

    VAR8:=REF(HHV(CLOSE,480),1); 

    VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7); 

    VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; 

    VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; 

    VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; 

    VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; 

    VARE:=VARC 98.5ORVARD 98.5; 

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

    VAR13:=VARA=0ANDVARC=0ANDVAR6  

    VAR14:=VARA=100ANDVARC=100; 

    VAR15:=VARB=0ORVARD=0ANDVAR9  

    VAR16:=VARB=100ANDVARD=100; 

    VAR17:=VAR6 0ANDVAR9  

    VAR18:=VAR13ANDVAR15; 

    VAR19:=VAR14ANDVAR16; 

    VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1) 

    ),6,1)*100; 

    VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1) 

    ),14,1)*100; 

    VAR1D:=BARSCOUNT(CLOSE); 

    VAR1E:=VAR1B 20ANDVAR1C 23andvar1d  

    VAR1F:=VAR1EANDCOUNT(VAR1E,1)=1; 

    VAR20:=REF(CLOSE,1); 

    VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; 

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

    VAR23:=BARSCOUNT(CLOSE); 

    VAR24:=VAR21 20ANDVAR22 23andvar23  

    VAR25:=VARA=0ANDVARF 1.2ANDVAR17; 

    VAR27:=VAR18ANDVARF 1.2ANDVAR17; 

    VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100; 

    VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),7 

    7)*100; 

    VAR2B:=CROSS(VAR29,69)ANDCROSS(VAR2A,80)  

    VAR2C:=VAR24ANDVAR1FANDCOUNT(VAR24,30)=1; 

    买点:=VAR25ANDVAR2B; 

    绝对卖点:=(VAR19ORVARA)ANDVARF 23ORVARE; 

    VAR2D:=VAR1FANDVAR2CANDVAR25; 

    股海万元户:=(CLOSE/REF(CLOSE,1) 1.04AND(CLOSE 10.8ANDCLOSE 10.83OR 

    CLOSE 6.86ANDCLOSE 6.88orclose 13.82ANDCLOSE 13.84orclose 7.28 

    ANDCLOSE 7.3orclose 12.4ANDCLOSE 12.42orclose 22.33AND 

    CLOSE 22.35orclose 4.68ANDCLOSE 4.7orclose 26.29ANDCLOSE 26.31 

    ORCLOSE 7.65ANDCLOSE 7.67orclose 13.4ANDCLOSE 13.42orclose 7.58 

    ANDCLOSE 7.6orclose 20.43ANDCLOSE 20.45orclose 19.57AND 

    CLOSE 19.59orclose 6.26ANDCLOSE 6.28orclose 7.14ANDCLOSE 7.16OR 

    CLOSE 6.61ANDCLOSE 6.63orclose 11.9ANDVOL 11.92orclose 6.7AND 

    CLOSE 6.72orclose 8.19ANDCLOSE 8.21)); 

    DRAWTEXT(FILTER(绝对卖点 0,3),H, 别贪 ),COLOR00FF00; 

    DRAWTEXT(股海万元户 0,L, ☆追涨 ),COLORYELLOW; 

    DRAWICON(买点 0,L,4); 

    DRAWTEXT(买点 0,L, 扫描神针 ),COLORF00FF0; 

    DRAWTEXT(VARF 0.7andvar27andvar25 0,L, 万元 ),COLORYELLOW; 

    STICKLINE(VAR2D 0,O,C,10,0),COLORYELLOW; 

    DRAWTEXT(VAR2D 0,L, 大方神针 ),COLORRED; 

    DRAWICON(COUNT(REF(VAR4,1) REF(VAR4,2),5)=5AND 

    VAR4 REF(VAR4,1),L*0.98,4); 

    DRAWICON(FILTER(COUNT(VAR6 0,5)ANDCROSS(VAR6,0)AND 

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

    DRAWICON(FILTER(REF(VAR4,1) REF(VAR4,2)ANDVAR417 

    ANDVAR1 VAR2,5),H,2); 

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



    image.png


    黄金三角指标公式



    SHORT:=12;LONG:=26;M:=9;

    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);

    DEA : EMA(DIFF,M);

    MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;

    DD:=C=HHV(C,180);

    EE:=DEA REF(DEA,1) AND REF(DEA REF(DEA,1),1)=1;

    CC:=C REF(C,1) AND REF(C REF(C,1),1)=1;

    上升:(CC AND EE)*DEA,COLOR00FFFF;

    顶背离:(DD AND EE AND DEA HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;

    FF:=C=LLV(C,180);

    GG:= DEA REF(DEA,1) AND REF(DEA REF(DEA,1),1)=1;

    LL:=C REF(C,1) AND REF(C REF(C,1),1)=1;

    下降背离:(LL AND GG)*DEA,COLORMAGENTA;

    底背离:(FF AND GG AND DEA LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;

    MM:=IF(MACD 0,MACD,0);

    JJ:=MM REF(MM,1);

    ZZ:=REF(JJ,1)=1;

    介入区:(JJ AND ZZ)*DEA,POINTDOT,COLORYELLOW;{MACD蓝柱缩短---指今日比昨天短}

    STICKLINE(介入区=DEA,DEA,DIFF,0.5,1),COLORYELLOW;

    DRAWTEXT(CROSS(DIFF,DEA ),0, 金 ),COLORYELLOW;

    DRAWTEXT(CROSS(DEA,DIFF ),0, 死 ),COLORFFFF00;、

    T:=150;TT:=3;N1:=0;

    AMOV:=VOL*(OPEN+CLOSE)/2;

    价:SUM(AMOV,5)/SUM(VOL,5),LINETHICK1,COLOR209FFF;

    MAA:MA(C,N1),COLOR00FF00;

    DRAWTEXT(ISLASTBAR AND N10 AND MAAREF(MAA,1),MAA, ),COLOR00FF00;

    DRAWTEXT(ISLASTBAR AND N10 AND MAAREF(MAA,1),MAA, ),COLOR00FF00;

    高1:=REF(HHV(H,T),TT);

    低1:=REF(LLV(L,T),TT);

    H1:=高1-(高1-低1)*0.191;

    H2:=高1-(高1-低1)*0.382;

    H3:=高1-(高1-低1)*0.5;

    H4:=高1-(高1-低1)*0.618;

    H5:=高1-(高1-低1)*0.809;

    顶:REFDATE(高1,DATE),COLORFFFF00;

    一:REFDATE(H1,DATE),DOTLINE,COLORYELLOW;

    二:REFDATE(H2,DATE),DOTLINE,COLORMAGENTA;

    三:REFDATE(H3,DATE),COLOR00FFFF;

    四:REFDATE(H4,DATE),DOTLINE,COLORMAGENTA;

    五:REFDATE(H5,DATE),DOTLINE,COLORYELLOW;

    低:REFDATE(低1,DATE),COLOR00FF00;

    TT3:=(CURRBARSCOUNT=5);

    TT4:=(CURRBARSCOUNT=5+3);

    DRAWNUMBER(TT3 AND 顶,顶,顶),COLOR999900;

    DRAWTEXT(TT4 AND 顶,顶, 高: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 一,一,一),COLOR999999;

    DRAWTEXT(TT4 AND 一,一, 191: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 二,二,二),COLOR999999;

    DRAWTEXT(TT4 AND 二,二, 382: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 三,三,三),COLOR999999;

    DRAWTEXT(TT4 AND 三,三, 1/2: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 四,四,四),COLOR999999;

    DRAWTEXT(TT4 AND 四,四, 618: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 五,五,五),COLOR999999;

    DRAWTEXT(TT4 AND 五,五, 809: ),COLOR208FFF;

    DRAWNUMBER(TT3 AND 低,低*1.01,低),COLOR999900;

    DRAWTEXT(TT4 AND 低,低*1.009, 低: ),COLOR208FFF;

    AS:=(O+H+L+C)/4;

    BL:EMA(AS,17),LINETHICK2,COLOR0000FF;

    DRAWNUMBER(ISLASTBAR AND BL,BL*1.005,BL);

    XGM:=CROSS(C,BL);

    DRAWICON(XGM,BL,9);

    IF(BLREF(BL,1),BL,DRAWNULL),LINETHICK2,COLORYELLOW;

    IF(BLREF(BL,1),BL,DRAWNULL),LINETHICK2,COLOR00FF00;

    DRAWTEXT(ISLASTBAR AND BLREF(BL,1),BL, ),COLOR00FFFF;

    DRAWTEXT(ISLASTBAR AND BLREF(BL,1),BL, ),COLOR00FF00;

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

    DEA:=EMA(DIFF,9);

    MACD:=2*(DIFF-DEA),;

    GMB:IF(CROSS(DIFF,DEA) AND DIFF0,L*0.999,DRAWNULL),CROSSDOT,LINETHICK3,COLOR00FFFF;

    GMC:IF(CROSS(DIFF,DEA) AND DIFF0,L*0.999,DRAWNULL),CROSSDOT,LINETHICK3,COLOR208FFF;

    DRAWTEXT(CROSS(DIFF,DEA) AND DIFF0,L*0.998, 0 ),COLORYELLOW;

    DRAWTEXT(CROSS(DIFF,DEA) AND DIFF0,L*0.998, 金叉0 ),COLORYELLOW;

    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

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

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

    GJD:IF(CROSS(K,D) AND K20 AND D50,L*0.999,DRAWNULL),CROSSDOT,LINETHICK3,COLORFF00FF;

    DRAWTEXT(CROSS(K,D) AND K20 AND D50,L*0.998, K20 D50 KD金叉 ),COLOREEAAEE;


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 股票三关价指标公式 黄金三角指标公式 加入收藏