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

    正文概述    2024-04-07 12:00:59  
    通达信鸿铭乾坤线主图指标 源码 贴图
    通达信鸿铭乾坤线主图指标 源码 贴图

    {//鸿铭乾坤线}
    N:=(1,100,8);
    KK:=(0,2,0);
    TYP := (HIGH + LOW + CLOSE)/3;
    CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));
    CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
    CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
    CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
    CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
    CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
    AAAB:=(3*C+H+L+O)/6;
    VVAR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(AAAB,3)+4*REF(AAAB,4)+3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AAAB,8))/36;
    VVAR6:=(LLV(VVAR1,2)+LLV(VVAR1,4)+LLV(VVAR1,6))/3;
    乾线:IF(KK=0, VVAR1, DRAWNULL),COLORWHITE;
    坤线:IF(KK=0,VVAR6, DRAWNULL)COLORYELLOW;
    DRAWBAND(乾线,RGB(200,10,10),坤线,RGB(10,200,10));
    DRAWKLINE(H,O,L,C);
    {MA5:MA(CLOSE,5),COLORMAGENTA,LINETHICK1;
    判:IF(MA5 REF(MA5,1),MA5,DRAWNULL),COLORCYAN,LINETHICK1;};
    V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
    STICKLINE(V2 =1,O,C,1,0);
    TY:=C;{收盘价}
    A1:=REF(TY,10)=HHV(TY,2*10+1);{10日前收盘价等于21天内最高价}
    VB1:=FILTER(A1,10);{当出现A1条件时,过滤10天后连续出现的信号}
    C1:=BACKSET(VB1,10+1);{将当前位置到11天前的位置设为1}
    HD:=FILTER(C1,10);{将当前位置到10天后的位置设为1}
    A2:=REF(TY,10)=LLV(TY,2*10+1);{10天前的收盘价等于21天内最低价}
    VB2:=FILTER(A2,10); {过滤10天内连续出现的信号}
    C2:=BACKSET(VB2,10+1);{将当前位置到11天前的位置设为1}
    LD:=FILTER(C2,10);{当出现C2后,10天后的数据不予记录}
    A:=REF(C,BARSLAST(HD));{设值上次高点位置}
    B:=REF(C,BARSLAST(LD));{设值上次低点位置}
    T11:=BARSLAST(HD) BARSLAST(LD) AND NOT(HD);{上升波段回调不创新低没新高}
    T21:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);{下降波段反弹不创新高没新低}
    乾峰:IF(T11,A,A),COLORFF00FF,POINTDOT;{符合T1条件,高位线为紫色点状线}
    STICKLINE(T11,A,A,9,0),COLORFF00FF;{高位画横线}
    坤谷:IF(T21,B,B),COLOR80FF00,POINTDOT;{符合T2条件,高位线为绿色点状线}
    STICKLINE(T21,B,B,9,0),COLOR80FF00;{低位画横线};

    STICKLINE(C 1.095*REF(C,1),OPEN,C,2,0),COLORRED;
    STICKLINE(C 0.905*REF(C,1),O,C,2,0),COLORGREEN;


    MA1:=MA(CLOSE,5);
    MA2:=MA(CLOSE,10);
    MA3:=MA(CLOSE,30);
    ZJ:=AMOUNT/10000;{资金}
    TM:=V-MA(V,10);{量填满}
    一穿三:=MA1 O AND MA2 O AND MA3 O AND MA1 C AND MA2 C AND MA3 C AND CLOSE OPEN ;
    DRAWTEXT(一穿三,L-0.012,'■乾'),COLORFF00FF;
    C6:=REF(C,1);

    VAR1:=LLV(LOW,21);
    VAR2:=HHV(HIGH,21);
    AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
    AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
    DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);
    VAR3:=LLV(LOW,55);{www.9m8.cn 九毛八公式指标网}
    VAR14:=HHV(HIGH,34);
    VAR5:=EMA((((CLOSE - VAR3) / (VAR14 - VAR3)) * 100),3);
    VAR6:=((AK + VAR5) / 2);
    VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);
    VAR8:=EMA(VAR6,5);
    BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);
    AB:=CROSS(AK1,AK);
    BB1:=(CROSS(AK1,BB) AND (BB 30));
    CD:=(BB1 * 0.6);
    DRAWTEXT((CD = 0.6),(LOW * 0.99),'□'),LINETHICK2,COLORFFFFFF;
    DRAWTEXT((AB = 1),(LOW * 0.99),'■坤'),LINETHICK2,COLORRED;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信鸿铭乾坤线主图指标 九毛八公式指标网 加入收藏