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

    正文概述    2024-04-13 06:58:55  

    DRAWGBK(CURRBARSCOUNT=1, RGB(310,108,108),RGB(88,30,0),0,'',0);
    五日换手:SUM(vol,5)*100/CAPITAL,COLORRED,NODRAW;
    二十换手:SUM(VOL,20)*100/CAPITAL,COLORRED,NODRAW;
    上顶线:95,COLORWHITE,LINETHICK4;
    强弱分界:50,POINTDOT,COLORGREEN,LINETHICK7;
    下底线:5,COLORWHITE,LINETHICK4;
    NOTEXT顶部标线:117,COLORBROWN;
    NOTEXT底部标线:-17,COLORBROWN;
    {看涨趋势0}
    趋势力度:(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*
    SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)),COLORCYAN;
    A1:=1;
    A2:=5;
    A3:=(((2 * CLOSE) + HIGH) + LOW) / 4;
    A4:=LLV(LOW,34);
    A5:=HHV(HIGH,34);
    A6:=EMA((((A3 - A4) / (A5 - A4)) * 100),13);
    A7:=(EMA(((0.667 * (REF(A6,1))) + (0.333 * A6)),2)) * A1;
    A8:=(HHV(HIGH,9)) - (LLV(LOW,9));
    A9:=(HHV(HIGH,9)) - CLOSE;
    A10:=CLOSE - (LLV(LOW,9));
    A11:=((A9 / A8) * 100) - 70;
    A12:=SMA(((A10 / A8) * 100),3,1);
    A13:=(SMA(A12,3,1)) - (SMA(A11,9,1));
    A14:=(EMA((((A3 - A4) / (A5 - A4)) * 100),8)) * A1;
    A15:=(EMA(A14,5)) * A1;
    A16:=(EMA(A7,A2)) * A1;
    A17:=(A14 - A15) 0 AND 趋势力度
    看涨趋势:IF(A17,趋势力度,DRAWNULL),COLORYELLOW,LINETHICK2;
    {人气趋势1}
    V1:=REF(CLOSE,1);
    V2:=Abs(HIGH-V1);
    V3:=ABS(LOW-V1);
    V4:=ABS(HIGH-REF(LOW,1));
    V5:=ABS(V1-REF(OPEN,1));
    V6:=IF(V2 V3 AND V2 V4,V2+V3/2+V5/4,IF(V3 V4 AND V3 V2,V3+V2/2+V5/4,V4+V5/4));
    V7:=(CLOSE-V1+(CLOSE-OPEN)/2+V1-REF(OPEN,1));
    V8:=8*V7/V6*MAX(V2,V3);
    V9:=SUM(V8,0);
    V10:=MA(V9,34);
    V11:=V9
    V12:=V9 =V10;
    STICKLINE(V11,70,67,2,0),COLORRED;
    STICKLINE(V12,70,67,2,0),COLORFF6633;
    {强弱趋势2}
    趋势强A:=IF(SAR(10,2,20) =L,sar(10,2,20),DRAWNULL),COLORRED,NODRAW;
    趋势弱A:=IF(SAR(10,2,20) =H,SAR(10,2,20),DRAWNULL),COLORCYAN,NODRAW;
    STICKLINE(趋势强A,60,57,2,0),COLORRED;
    STICKLINE(趋势弱A,60,57,2,0),COLORFF6633;
    {平衡趋势3}
    NOTEXTV13:IF(C =MA(C,80),强弱分界,DRAWNULL),COLORRED,POINTDOT,LINETHICK9;
    NOTEXTV14:IF(C MA(C,80),强弱分界,DRAWNULL),COLORBLUE,POINTDOT,LINETHICK9;
    {转折趋势4}
    趋势强B:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
    趋势弱B:=SMA(SMA(趋势强B,3,1),3,1);
    STICKLINE(SMA(趋势强B,3,1) 趋势弱B,43,40,2,0),COLOR1133FF;
    STICKLINE(SMA(趋势强B,3,1) =趋势弱B,43,40,2,0),COLORFF6633;
    {异动趋势5}
    V15:=(C*2+H+L)/4*10;
    V16:=EMA(V15,13)-EMA(V15,34);
    V17:=EMA(V16,5);
    V18:=2*(V16-V17)*5.5;
    异动趋势1:=V18 REF(V18,1) AND V18
    异动趋势2:=(V18 =REF(V18,1) AND V18 6) OR V18
    STICKLINE(异动趋势1,33,30,2,0),COLORRED;
    STICKLINE(异动趋势2,33,30,2,0),COLORFF6633;
    {趋势5红共振}
    V19:=V11 AND SAR(10,2,20) =L,SAR(10,2,20) AND C =MA(C,80) AND SMA(趋势强B,3,1) 趋势弱B AND 异动趋势1;
    V20:=IF(V19=1 AND REF(V19,1)=0,1,0);
    STICKLINE(V20=1,70,30,0,1),COLORYELLOW;
    {趋势拐点信号}

    请下载完整源码。。。。。。

    通达信趋势共振指标公式源码

    通达信趋势共振指标公式源码

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信趋势共振指标公式源码 加入收藏