最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 量学看盘 荆州量学金融终端主图十五 通达信指标 九毛八公式指标网 每天画线分析

    正文概述    2024-04-07 10:59:06  

    量学看盘 荆州量学金融终端主图十五 通达信指标 源码 贴图

    量学看盘 荆州量学金融终端主图十五 通达信指标 源码 贴图

    DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,'【每天画线分析,每一根线是你的生命线】')COLORWHITE;

    LDM4:=CONST(HHV(REF(HIGH,1),240));
    LDM5:=CONST(LLV(REF(LOW,1),240));
    LDM6:=LDM4-LDM5;
    LDM7:=LOW-LDM6*0.03;
    LDM8:=HIGH+LDM6*0.03;
    LDM9:=CLOSE
    LDM10:=MAX(CLOSE,OPEN);
    LDM11:=MIN(CLOSE,OPEN);
    LDM12:=0;
    LDM13:=1;
    LDM14:=IF(LDM9,HIGH,LDM10);
    LDM15:=IF(LDM9,LOW,LDM11);
    LDM16:=IF(CLOSE OPEN,IF(LDM13=0,LOW,LDM15),IF(LDM13=0,HIGH,LDM14));
    LDM17:=2/1000;
    LDM18:=CURRBARSCOUNT;
    LDM19:=400;
    LDM20:=LDM18 =LDM19;
    LDM21:=LOW;
    LDM22:=IF(LDM12=0,LDM21,REF(LDM12,LDM12));
    基准价:IF(LDM20,CONST(LDM22),DRAWNULL),DOTLINE,COLORRED;
    LDM23:=基准价;
    LDM24:=LDM23*LDM17;
    LDM25:=ABS(LOW-LDM23) =LDM24;
    LDM26:=ABS(OPEN-LDM23) =LDM24;
    LDM27:=ABS(CLOSE-LDM23) =LDM24;
    LDM28:=ABS(HIGH-LDM23) =LDM24;
    LDM29:=LDM25 OR LDM26 OR LDM27 OR LDM28 AND LDM20 AND LDM18!=1;
    LDM30:=COUNT(LDM29,LDM19);
    精准点个数:IF(LDM30 0,LDM30+1,0),NODRAW,COLORYELLOW;

    {假阳真阴}
    均价:=AMOUNT/VOL/100;
    假阳:=C O AND REF(C,1) 均价 AND C 均价 AND C 300 ;
    STICKLINE(假阳,O,C,1,0)COLORLICYAN;


    {假阴真阳}
    假阴:=O C AND 均价 REF(C,1) AND C MA(C,5);
    STICKLINE(假阴,O,C,1,0),COLORRED;
    标志阴:=REF(C,1)/C 1.04;
    STICKLINE(标志阴,O,C,1,0)COLORWHITE;

    {涨跌停价格显示};
    AA:=(C-REF(C,1))/REF(C,1)*100;
    ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA =4.945;
    DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA =-4.945;
    涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW,COLORRED;
    跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW,COLORGREEN;

    DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1) AND C!=H,L*0.965,15);
    {黄金顶线标识}
    比系数:=1.3;
    金线:=1;
    临界点:=0;
    MA5:=MA(C,5);
    MA10:=MA(C,10);
    MA20:=MA(C,20);
    均线:=MA5 REF(MA5,1) AND MA10 REF(MA10,1) AND MA20 REF(MA20,1);
    RV1:=REF(V,1);
    RV2:=REF(V,2);
    RV3:=REF(V,3);
    RC1:=REF(C,1);
    RC2:=REF(C,2);
    RC3:=REF(C,3);
    RC4:=REF(C,4);
    RO1:=REF(O,1);
    RO2:=REF(O,2);
    RO3:=REF(O,3);
    RO4:=REF(O,4);
    不破价顶:=C =RC3 AND RC1 =RC3 AND RC2 =RC3;
    不破价底:=L RO3 AND REF(L,1) RO3 AND REF(L,2)

    RJ1:=REF(均价,1);
    RJ2:=REF(均价,2);
    阳柱:=C =O OR (C O AND 均价 RC1);
    三日二阳:=COUNT(阳柱,3)
    基价柱阳:=RC3
    价渐升:=(均价 =RJ1 OR C RC1) AND (RJ1 =RJ2 OR RC1 =RC2);
    均价升:=(C+RC1+RC2)/3
    量渐升:=V RV1 AND RV1 RV2 ;
    量渐减:=V =RV1 AND RV1 =RV2 ;
    均量减:=(V+RV1+RV2)/3 =RV3 AND NOT(量渐升);
    日价量比:=C/V;
    日价量比升:=日价量比 =REF(日价量比,1) AND REF(日价量比,1) =REF(日价量比,2);
    均价升幅:=(C+RC1+RC2)/3/RC3;
    均量升幅:=(V+RV1+RV2)/3/RV3;
    价量比:=比系数*均价升幅/均量升幅
    基前跳空:=RO3 RC4 AND RC4
    黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空;
    BACKSET101T:=BACKSET(黄金柱1T,5);
    FILTER101T:=FILTER(BACKSET101T,4);
    黄金柱1:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 ;
    BACKSET101:=BACKSET(黄金柱1,4);
    FILTER101:=FILTER(BACKSET101,3);
    黄金柱11:=黄金柱1 AND REF(黄金柱1,1);
    BACKSET1011:=BACKSET(黄金柱11,4);
    FILTER1011:=FILTER(BACKSET1011,3);
    黄金柱12:=黄金柱1 AND REF(黄金柱1,2);
    BACKSET1012:=BACKSET(黄金柱12,4);
    FILTER1012:=FILTER(BACKSET1012,3);
    黄金柱13:=黄金柱1 AND REF(黄金柱1,3);
    BACKSET1013:=BACKSET(黄金柱13,4);
    FILTER1013:=FILTER(BACKSET1013,3);
    黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);
    BACKSET201T:=BACKSET(黄金柱2T,5);
    FILTER201T:=FILTER(BACKSET201T,4);
    黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);
    BACKSET201:=BACKSET(黄金柱2,4);
    FILTER201:=FILTER(BACKSET201,3);
    黄金柱21:=黄金柱2 AND REF(黄金柱2,1);
    BACKSET2011:=BACKSET(黄金柱21,4);
    FILTER2011:=FILTER(BACKSET2011,3);
    黄金柱22:=黄金柱2 AND REF(黄金柱2,2);
    BACKSET2012:=BACKSET(黄金柱22,4);
    FILTER2012:=FILTER(BACKSET2012,3);
    黄金柱23:=黄金柱2 AND REF(黄金柱2,3);
    BACKSET2013:=BACKSET(黄金柱23,4);
    FILTER2013:=FILTER(BACKSET2013,3);
    黄金柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);
    BACKSET301T:=BACKSET(黄金柱3T,5);
    FILTER301T:=FILTER(BACKSET301T,4);
    黄金柱3:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);
    BACKSET301:=BACKSET(黄金柱3,4);
    FILTER301:=FILTER(BACKSET301,3);
    黄金柱31:=黄金柱3 AND REF(黄金柱3,1);
    BACKSET3011:=BACKSET(黄金柱31,4);
    FILTER3011:=FILTER(BACKSET3011,3);
    黄金柱32:=黄金柱3 AND REF(黄金柱3,2);
    BACKSET3012:=BACKSET(黄金柱32,4);
    FILTER3012:=FILTER(BACKSET3012,3);
    黄金柱33:=黄金柱3 AND REF(黄金柱3,3);
    BACKSET3013:=BACKSET(黄金柱33,4);
    FILTER3013:=FILTER(BACKSET3013,3);
    黄金柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);
    BACKSET401T:=BACKSET(黄金柱4T,5);
    FILTER401T:=FILTER(BACKSET401T,4);
    黄金柱4:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);
    BACKSET401:=BACKSET(黄金柱4,4);
    FILTER401:=FILTER(BACKSET401,3);
    黄金柱41:=黄金柱4 AND REF(黄金柱4,1);
    BACKSET4011:=BACKSET(黄金柱41,4);
    FILTER4011:=FILTER(BACKSET4011,3);
    黄金柱42:=黄金柱4 AND REF(黄金柱4,2);
    BACKSET4012:=BACKSET(黄金柱42,4);
    FILTER4012:=FILTER(BACKSET4012,3);
    黄金柱43:=黄金柱4 AND REF(黄金柱4,3);
    BACKSET4013:=BACKSET(黄金柱43,4);
    FILTER4013:=FILTER(BACKSET4013,3);
    黄金柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);
    BACKSET501T:=BACKSET(黄金柱5T,5);
    FILTER501T:=FILTER(BACKSET501T,4);
    黄金柱5:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);
    BACKSET501:=BACKSET(黄金柱5,4);
    FILTER501:=FILTER(BACKSET501,3);
    黄金柱51:=黄金柱5 AND REF(黄金柱5,1);
    BACKSET5011:=BACKSET(黄金柱51,4);
    FILTER5011:=FILTER(BACKSET5011,3);
    黄金柱52:=黄金柱5 AND REF(黄金柱5,2);
    BACKSET5012:=BACKSET(黄金柱52,4);
    FILTER5012:=FILTER(BACKSET5012,3);
    黄金柱53:=黄金柱5 AND REF(黄金柱5,3);
    BACKSET5013:=BACKSET(黄金柱53,4);
    FILTER5013:=FILTER(BACKSET5013,3);
    黄金柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);
    BACKSET601T:=BACKSET(黄金柱6T,5);
    FILTER601T:=FILTER(BACKSET601T,4);
    黄金柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);
    BACKSET601:=BACKSET(黄金柱6,4);
    FILTER601:=FILTER(BACKSET601,3);
    黄金柱61:=黄金柱6 AND REF(黄金柱6,1);
    BACKSET6011:=BACKSET(黄金柱61,4);
    FILTER6011:=FILTER(BACKSET6011,3);
    黄金柱62:=黄金柱6 AND REF(黄金柱6,2);
    BACKSET6012:=BACKSET(黄金柱62,4);
    FILTER6012:=FILTER(BACKSET6012,3);
    黄金柱63:=黄金柱6 AND REF(黄金柱6,3);
    BACKSET6013:=BACKSET(黄金柱63,4);
    FILTER6013:=FILTER(BACKSET6013,3);
    FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));
    FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));
    FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));
    FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));
    FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));
    FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));
    FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;
    STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;

    K1:=SUMBARS(FIL,1);
    STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;
    FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));
    FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));
    FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));
    FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));
    FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));
    FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));
    FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;
    STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF;

    K2:=SUMBARS(FILT,1);
    STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;
    黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线 AND 临界点;
    BACKSET10LJ:=BACKSET(黄金柱LJ ,4);
    FILTER10LJ:=FILTER(BACKSET10LJ,3);
    STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF;

    黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点 ;
    BACKSET10LJT:=BACKSET(黄金柱LJT ,5);
    FILTER10LJT:=FILTER(BACKSET10LJT,5);
    STICKLINE(FILTER10LJT AND NOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;

    {涨跌停K线标识};
    ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1
    OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1;
    涨停:=C=ZTPRICE(REF(CLOSE,1),0.1) OR (C/REF(C,1) 1.0495 AND ST);
    跌停:=REF(C,1)/C 1.0995 OR (REF(C,1)/C 1.0495 AND ST);
    STICKLINE(涨停,C,O,3,0),COLORMAGENTA;
    STICKLINE(跌停,C,O,3,0),COLORGREEN;

    区间:=计算周期;
    误差值:=千分误差/1000;
    柱底价格:=IF(柱底位置=1,O,L);

    高量柱00:=IF(显示高量梯=1,V REF(V,1)*1.9 AND REF(V,2) REF(V,1) AND (CLOSE =REF(CLOSE,1) OR CLOSE =OPEN),0);

    HT_Z_CC1:=COUNT(高量柱00,CURRBARSCOUNT-区间);
    HT_Z_CC2:=IF(HT_Z_CC1 0 AND CURRBARSCOUNT 区间,HT_Z_CC1,DRAWNULL);
    HT_Z_CCH:=HHV(HT_Z_CC2,BARSCOUNT(C));
    HT_Z_CCL:=LLV(HT_Z_CC2,BARSCOUNT(C) AND (HT_Z_CC2 != DRAWNULL));

    HT_Z_区间:=BACKSET(ISLASTBAR,区间);
    计算柱数量:=IF(ISLASTBAR,HHV(HT_Z_CC2,BARSCOUNT(C))-LLV(HT_Z_CC2,BARSCOUNT(C)-区间),0),COLORWHITE,NODRAW;
    柱数量总数:=REFX(HHV(计算柱数量,区间),CURRBARSCOUNT-1);

    千分误差幅度:=千分误差;
    计算周期天数:=计算周期;

    柱标识:=IF(CURRBARSCOUNT =区间 AND 高量柱00,1,0) { 柱标识 };
    柱编号:=柱数量总数-SUM(柱标识,0)+1; {柱编号 递减 };

    ID01:=1;
    HT_Z_IO01:=IF(柱编号=ID01,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO01:=HHV(HT_Z_IO01,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价03:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO03),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数01:=HHV(HT_Z_IO01,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低01:=IF(REFX(LLV(MIN(O,C),周期数01-1),周期数01-1) 0,REFX(LLV(MIN(O,C),周期数01-1),周期数01-1),0),COLORWHITE,NODRAW;
    有效柱01:=IF( 柱编号=ID01 AND 柱底价格 右侧低01 AND 右侧低01 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y01:=REF(右侧低01*(1+误差值), 周期数01-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X01:=REF( 柱底价格 , 周期数01-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF01:=IF(有效柱01=1 AND 柱基价X01 柱右低Y01,1,0);
    STICKLINE( HT_Z_IF01 ,REF(柱底价格,周期数01-CURRBARSCOUNT) ,REF(柱底价格,周期数01-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID02:=2;
    HT_Z_IO02:=IF(柱编号=ID02,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO02:=HHV(HT_Z_IO02,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    周期数02:=HHV(HT_Z_IO02,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低02:=IF(REFX(LLV(MIN(O,C),周期数02-1),周期数02-1) 0,REFX(LLV(MIN(O,C),周期数02-1),周期数02-1),0),COLORWHITE,NODRAW;
    有效柱02:=IF( 柱编号=ID02 AND 柱底价格 右侧低02 AND 右侧低02 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y02:=REF(右侧低02*(1+误差值), 周期数02-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X02:=REF( 柱底价格 , 周期数02-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF02:=IF(有效柱02=1 AND 柱基价X02 柱右低Y02,1,0);
    STICKLINE( HT_Z_IF02 ,REF(柱底价格,周期数02-CURRBARSCOUNT) ,REF(柱底价格,周期数02-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID03:=3;
    HT_Z_IO03:=IF(柱编号=ID03,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO03:=HHV(HT_Z_IO03,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价03:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO03),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数03:=HHV(HT_Z_IO03,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低03:=IF(REFX(LLV(MIN(O,C),周期数03-1),周期数03-1) 0,REFX(LLV(MIN(O,C),周期数03-1),周期数03-1),0),COLORWHITE,NODRAW;
    有效柱03:=IF( 柱编号=ID03 AND 柱底价格 右侧低03 AND 右侧低03 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y03:=REF(右侧低03*(1+误差值), 周期数03-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X03:=REF( 柱底价格 , 周期数03-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF03:=IF(有效柱03=1 AND 柱基价X03 柱右低Y03,1,0);
    STICKLINE( HT_Z_IF03 ,REF(柱底价格,周期数03-CURRBARSCOUNT) ,REF(柱底价格,周期数03-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID04:=4;
    HT_Z_IO04:=IF(柱编号=ID04,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO04:=HHV(HT_Z_IO04,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价04:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO04),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数04:=HHV(HT_Z_IO04,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低04:=IF(REFX(LLV(MIN(O,C),周期数04-1),周期数04-1) 0,REFX(LLV(MIN(O,C),周期数04-1),周期数04-1),0),COLORWHITE,NODRAW;
    有效柱04:=IF( 柱编号=ID04 AND 柱底价格 右侧低04 AND 右侧低04 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y04:=REF(右侧低04*(1+误差值), 周期数04-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X04:=REF( 柱底价格 , 周期数04-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF04:=IF(有效柱04=1 AND 柱基价X04 柱右低Y04,1,0);
    STICKLINE( HT_Z_IF04 ,REF(柱底价格,周期数04-CURRBARSCOUNT) ,REF(柱底价格,周期数04-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID05:=5;
    HT_Z_IO05:=IF(柱编号=ID05,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO05:=HHV(HT_Z_IO05,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价05:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO05),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数05:=HHV(HT_Z_IO05,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低05:=IF(REFX(LLV(MIN(O,C),周期数05-1),周期数05-1) 0,REFX(LLV(MIN(O,C),周期数05-1),周期数05-1),0),COLORWHITE,NODRAW;
    有效柱05:=IF( 柱编号=ID05 AND 柱底价格 右侧低05 AND 右侧低05 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y05:=REF(右侧低05*(1+误差值), 周期数05-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X05:=REF( 柱底价格 , 周期数05-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF05:=IF(有效柱05=1 AND 柱基价X05 柱右低Y05,1,0);
    STICKLINE( HT_Z_IF05 ,REF(柱底价格,周期数05-CURRBARSCOUNT) ,REF(柱底价格,周期数05-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID06:=6;
    HT_Z_IO06:=IF(柱编号=ID06,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO06:=HHV(HT_Z_IO06,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价06:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO06),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数06:=HHV(HT_Z_IO06,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低06:=IF(REFX(LLV(MIN(O,C),周期数06-1),周期数06-1) 0,REFX(LLV(MIN(O,C),周期数06-1),周期数06-1),0),COLORWHITE,NODRAW;
    有效柱06:=IF( 柱编号=ID06 AND 柱底价格 右侧低06 AND 右侧低06 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y06:=REF(右侧低06*(1+误差值), 周期数06-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X06:=REF( 柱底价格 , 周期数06-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF06:=IF(有效柱06=1 AND 柱基价X06 柱右低Y06,1,0);
    STICKLINE( HT_Z_IF06 ,REF(柱底价格,周期数06-CURRBARSCOUNT) ,REF(柱底价格,周期数06-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID07:=7;
    HT_Z_IO07:=IF(柱编号=ID07,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO07:=HHV(HT_Z_IO07,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价07:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO07),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数07:=HHV(HT_Z_IO07,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低07:=IF(REFX(LLV(MIN(O,C),周期数07-1),周期数07-1) 0,REFX(LLV(MIN(O,C),周期数07-1),周期数07-1),0),COLORWHITE,NODRAW;
    有效柱07:=IF( 柱编号=ID07 AND 柱底价格 右侧低07 AND 右侧低07 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y07:=REF(右侧低07*(1+误差值), 周期数07-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X07:=REF( 柱底价格 , 周期数07-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF07:=IF(有效柱07=1 AND 柱基价X07 柱右低Y07,1,0);
    STICKLINE( HT_Z_IF07 ,REF(柱底价格,周期数07-CURRBARSCOUNT) ,REF(柱底价格,周期数07-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID08:=8;
    HT_Z_IO08:=IF(柱编号=ID08,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO08:=HHV(HT_Z_IO08,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价08:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO08),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数08:=HHV(HT_Z_IO08,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低08:=IF(REFX(LLV(MIN(O,C),周期数08-1),周期数08-1) 0,REFX(LLV(MIN(O,C),周期数08-1),周期数08-1),0),COLORWHITE,NODRAW;
    有效柱08:=IF( 柱编号=ID08 AND 柱底价格 右侧低08 AND 右侧低08 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y08:=REF(右侧低08*(1+误差值), 周期数08-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X08:=REF( 柱底价格 , 周期数08-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF08:=IF(有效柱08=1 AND 柱基价X08 柱右低Y08,1,0);
    STICKLINE( HT_Z_IF08 ,REF(柱底价格,周期数08-CURRBARSCOUNT) ,REF(柱底价格,周期数08-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID09:=9;
    HT_Z_IO09:=IF(柱编号=ID09,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO09:=HHV(HT_Z_IO09,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价09:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO09),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数09:=HHV(HT_Z_IO09,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低09:=IF(REFX(LLV(MIN(O,C),周期数09-1),周期数09-1) 0,REFX(LLV(MIN(O,C),周期数09-1),周期数09-1),0),COLORWHITE,NODRAW;
    有效柱09:=IF( 柱编号=ID09 AND 柱底价格 右侧低09 AND 右侧低09 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y09:=REF(右侧低09*(1+误差值), 周期数09-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X09:=REF( 柱底价格 , 周期数09-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF09:=IF(有效柱09=1 AND 柱基价X09 柱右低Y09,1,0);
    STICKLINE( HT_Z_IF09 ,REF(柱底价格,周期数09-CURRBARSCOUNT) ,REF(柱底价格,周期数09-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID10:=10;
    HT_Z_IO10:=IF(柱编号=ID10,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO10:=HHV(HT_Z_IO10,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价10:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO10),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数10:=HHV(HT_Z_IO10,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低10:=IF(REFX(LLV(MIN(O,C),周期数10-1),周期数10-1) 0,REFX(LLV(MIN(O,C),周期数10-1),周期数10-1),0),COLORWHITE,NODRAW;
    有效柱10:=IF( 柱编号=ID10 AND 柱底价格 右侧低10 AND 右侧低10 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y10:=REF(右侧低10*(1+误差值), 周期数10-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X10:=REF( 柱底价格 , 周期数10-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF10:=IF(有效柱10=1 AND 柱基价X10 柱右低Y10,1,0);
    STICKLINE( HT_Z_IF10 ,REF(柱底价格,周期数10-CURRBARSCOUNT) ,REF(柱底价格,周期数10-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID11:=11;
    HT_Z_IO11:=IF(柱编号=ID11,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO11:=HHV(HT_Z_IO11,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价11:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO11),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数11:=HHV(HT_Z_IO11,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低11:=IF(REFX(LLV(MIN(O,C),周期数11-1),周期数11-1) 0,REFX(LLV(MIN(O,C),周期数11-1),周期数11-1),0),COLORWHITE,NODRAW;
    有效柱11:=IF( 柱编号=ID11 AND 柱底价格 右侧低11 AND 右侧低11 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y11:=REF(右侧低11*(1+误差值), 周期数11-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X11:=REF( 柱底价格 , 周期数11-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF11:=IF(有效柱11=1 AND 柱基价X11 柱右低Y11,1,0);
    STICKLINE( HT_Z_IF11 ,REF(柱底价格,周期数11-CURRBARSCOUNT) ,REF(柱底价格,周期数11-CURRBARSCOUNT) ,5,0),COLORGREEN;

    ID12:=12;
    HT_Z_IO12:=IF(柱编号=ID12,CURRBARSCOUNT,0),COLORWHITE,NODRAW;
    HT_Z_NO12:=HHV(HT_Z_IO12,BARSCOUNT(C)),COLORYELLOW,NODRAW;{取该柱位置周期数};
    {柱基价12:IF(ISLASTBAR,LLV(MIN(O,C),HT_Z_NO12),0),COLORWHITE,NODRAW};{最后1天,取该柱核准基价};
    周期数12:=HHV(HT_Z_IO12,BARSCOUNT(C)),COLORYELLOW,NODRAW;{柱-右侧固定柱周期数}
    右侧低12:=IF(REFX(LLV(MIN(O,C),周期数12-1),周期数12-1) 0,REFX(LLV(MIN(O,C),周期数12-1),周期数12-1),0),COLORWHITE,NODRAW;
    有效柱12:=IF( 柱编号=ID12 AND 柱底价格 右侧低12 AND 右侧低12 0 ,1,0),COLORYELLOW,NODRAW;
    柱右低Y12:=REF(右侧低12*(1+误差值), 周期数12-CURRBARSCOUNT),COLORWHITE,NODRAW;
    柱基价X12:=REF( 柱底价格 , 周期数12-CURRBARSCOUNT),COLORYELLOW,NODRAW;
    HT_Z_IF12:=IF(有效柱12=1 AND 柱基价X12 柱右低Y12,1,0);
    STICKLINE( HT_Z_IF12 ,REF(柱底价格,周期数12-CURRBARSCOUNT) ,REF(柱底价格,周期数12-CURRBARSCOUNT) ,5,0),COLORGREEN;


    梯数:IF(DYNAINFO(4) 0,IF(有效柱01=DRAWNULL,0, IF(HT_Z_IF01=DRAWNULL,0,HT_Z_IF01))+
    IF(有效柱02=DRAWNULL,0, IF(HT_Z_IF02=DRAWNULL,0,HT_Z_IF02))+
    IF(有效柱03=DRAWNULL,0, IF(HT_Z_IF03=DRAWNULL,0,HT_Z_IF03))+
    IF(有效柱04=DRAWNULL,0, IF(HT_Z_IF04=DRAWNULL,0,HT_Z_IF04))+
    IF(有效柱05=DRAWNULL,0, IF(HT_Z_IF05=DRAWNULL,0,HT_Z_IF05))+
    IF(有效柱06=DRAWNULL,0, IF(HT_Z_IF06=DRAWNULL,0,HT_Z_IF06))+
    IF(有效柱07=DRAWNULL,0, IF(HT_Z_IF07=DRAWNULL,0,HT_Z_IF07))+
    IF(有效柱08=DRAWNULL,0, IF(HT_Z_IF08=DRAWNULL,0,HT_Z_IF08))+
    IF(有效柱09=DRAWNULL,0, IF(HT_Z_IF09=DRAWNULL,0,HT_Z_IF09))+
    IF(有效柱10=DRAWNULL,0, IF(HT_Z_IF10=DRAWNULL,0,HT_Z_IF10))+
    IF(有效柱11=DRAWNULL,0, IF(HT_Z_IF11=DRAWNULL,0,HT_Z_IF11))+
    IF(有效柱12=DRAWNULL,0, IF(HT_Z_IF12=DRAWNULL,0,HT_Z_IF12)),0),COLORYELLOW,NODRAW;

    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};

    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
    STICKLINE(C/REF(C,1) =1.04 OR C/REF(C,1) =0.96,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 量学看盘 荆州量学金融终端主图十五 通达信指标 九毛八公式指标网 每天画线分析 加入收藏