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

    正文概述    2024-04-14 15:07:06  

    网1:=EXPMA(C,5),COLORYELLOW;
    网2:=EXPMA(网1,2);
    网3:=EXPMA(网2,2);
    网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
    TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;
    TJ2A:IF(网1>网3,网1,网3),COLORGREEN;
    TJ3A:网1,COLORYELLOW,LINETHICK2;
    {QS}
    网A:=EXPMA(CLOSE,5),COLORWHITE;

    网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;

    IF(网B IF(网B IF(网1

    {HJ}
    HH:=CONST(HHV(H,160));
    LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}
    HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));
    HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));
    HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));
    HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));
    HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));
    HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24));
    DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
    DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
    DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;
    DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"}
    DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
    DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"}
    DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;
    DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"}

     

     

    日:=50;昨前:=3;
    高1:=REF(HHV(H,日),昨前);
    低1:=REF(LLV(L,日),昨前);
    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;
    L1:=低1+(高1-低1)*1.191;
    L2:=低1+(高1-低1)*1.382;
    L3:=低1+(高1-低1)*1.5;
    L4:=低1+(高1-低1)*1.618;
    L5:=低1+(高1-低1)*1.809;
    短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;
    支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;
    支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;
    支撑50%:REFDATE(H3,DATE),COLORLIGRAY;
    支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;
    支撑80.9%:REFDATE(H5,DATE),COLORWHITE;
    低:REFDATE(低1,DATE),COLORWHITE;
    阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;
    阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;
    阻力150%:REFDATE(L3,DATE),COLORLIGRAY;
    阻力161.8%:REFDATE(L4,DATE),COLORRED;
    阻力180.9%:REFDATE(L5,DATE),COLORWHITE;
     

     


    {三线金叉显示钱袋子的源码}
    DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA1:=EMA(DIFF1,9);
    MACDD:=CROSS(DIFF1,DEA1);
    均线1:=CROSS(MA(C,5),MA(C,10));
    量线1:=CROSS(MA(V,5),MA(V,10));
    DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时金叉显示25号图标};
    DRAWICON( 均线1 AND 量线1,L-0.20,1);
    DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;
    总额:=AMOUNT;
    买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
    买%:=买/AMOUNT*100;
    流入:=AMOUNT*买%/10000000000;
    流出:=AMOUNT/100000000-流入;
    净流:=(流入-流出);
    总额3:=SUM(AMOUNT,3);
    流入3:=SUM(流入,3);
    流出3:=SUM(流出,3);
    净流3:=SUM(流入-流出,3);
    总额5:=SUM(AMOUNT,5);
    流入5:=SUM(流入,5);
    流出5:=SUM(流出,5);
    净流5:=SUM(流入-流出,5);
    总额10:=SUM(AMOUNT,10);
    流入10:=SUM(流入,10);
    流出10:=SUM(流出,10);
    净流10:=SUM(流入-流出,10);
    画:=CONST(FINDHIGH(总额10,0,190,1));
    DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.78,0.05,0,'1日'),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.83,0.05,0,'3日'),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.88,0.05,0,'5日'),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.93,0.05,0,'10日'),COLORMAGENTA,LINETHICK1;
    DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信网操盘均线主图源码 加入收藏