最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 含未来函数介意者绕行 黄金眼主图 通达信主图指标 源码

    正文概述    2024-04-07 10:52:09  

    黄金眼主图

    黄金眼主图 通达信主图指标 源码

    行业:=STRCAT('行业板块: ',HYBLOCK);
    概念:=STRCAT(', 概念板块: ',GNBLOCK);
    指数:=STRCAT(', 指数板块: ',HYZSCODE);
    地域:=STRCAT(', 地域板块: ',DYBLOCK);
    字幕1:=STRCAT(行业,概念);
    字幕2:=STRCAT(地域,指数);
    字幕:=STRCAT(字幕1,字幕2);
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,字幕);{概念};
    DRAWTEXT_FIX(ISLASTBAR,0.0,0.05,0,ZDBLOCK);
    比系数:=1.3;
    金线:=1;
    临界点:=0;
    MA5:=MA(C,5);
    MA10:=MA(C,10);
    MA30:=MA(C,20);
    均线:=MA5 REF(MA5,1) AND MA10 REF(MA10,1) AND MA30 REF(MA30,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)

    均价:=AMOUNT/VOL/100;
    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;
    {DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'黄金柱'),COLOR0099FF;}

    ZT:= FIL ;
    ZT1:=BARSLAST(FIL );
    最后涨停距今数:=ZT1,NODRAW,COLORWHITE;
    ZT2:=BARSLAST(ZT);
    ZT3:=REF(H,ZT2)-REF(L,ZT2);

    {DRAWTEXT(ZT1=3,H*1.06,'3'),COLORYELLOW;DRAWTEXT(ZT1=5,H*1.06,'5'),COLORYELLOW;DRAWTEXT(ZT1=8,H*1.06,'8'),COLORYELLOW;
    DRAWTEXT(ZT1=13,H*1.06,'13'),COLORYELLOW;

    }


    A1:= BARSLAST(FIL );

    A3:= BETWEEN(A1,2,13);

    买入:=REF(A3,1)


    K1:=SUMBARS(FIL,1);
    STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,-1),COLOR8822FF;

    STICKLINE(K1 AND 金线=1,REF(L,K1-1),REF(L,K1-1),10,-1),COLORYELLOW;

    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;
    {DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'元帅柱'),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;
    DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'临界点'),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;
    DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'临界点'),COLOR0099FF;


    C2:=REF(C,1);
    涨停:=IF((C-C2)*100/C2 =(10-0.01*100/C2),1,0);
    STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;
    STICKLINE(涨停,H,L,0,0),COLORFF00FF;
    跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2),1,0);
    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
    STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;
    黄金眼:=C REF(C,1) AND V REF(V,1)*0.66 AND O

    DRAWTEXT(黄金眼,L-0.02*C,'↖黄金眼'),COLOR3366CC;


    JY:=C O AND C REF(C,1);
    黄金阳:=V =REF(V,1) AND V REF(V,1)*0.66 AND JY,COLOR00FFFF;
    DRAWTEXT(黄金阳,L-0.02*C,'↖黄金阳'),COLOR00FFFF;

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


    {假阴真阳}
    假阴:=O C AND C 均价 AND 均价 REF(C,1) ;
    STICKLINE(假阴,O,C,1,0),COLORRED;

    平量:=V REF(V,1)*0.95 AND V REF(V,1)*1.05 ;
    无量平量穿越:=WINNER(C)-WINNER(O) =0.2 AND 平量;
    STICKLINE(无量平量穿越,O,C,1,0)COLORBLUE;

    流通市值:FINANCE(40)/100000000,NODRAW;
    MA5角度:ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.142,NODRAW,COLORRED;
    循环年位置:(C-LLV(C,225))/(HHV(C,225)-LLV(C,225))*100,NODRAW,COLORGREEN;


    STICKLINE(精准左,L,L,31,-1),COLORMAGENTA;
    STICKLINE(K1 AND 金线=1 AND 精准左 AND (ABS(REF(C,K1-1)-L)=0 OR ABS(REF(C,K1-1)-L)=0.01) ,REF(C,K1-1),L,31,0),COLORYELLOW;
    STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF;
    STICKLINE(K2 AND 金线=1 AND 精准左 AND (ABS(REF(C,K2-1)-L)=0 OR ABS(REF(C,K2-1)-L)=0.01) ,REF(C,K2-1),L,31,0),COLORYELLOW;

    {顶精准线}
    G1:=ABS(H-REF(H,1))
    G2:=ABS(H-REF(H,2))
    G3:=ABS(H-REF(H,3))
    G4:=ABS(H-REF(H,4))
    G5:=ABS(H-REF(H,5))
    精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;
    精准左1:=FILTER(精准线首次1,N) ;
    天数1:=BARSLAST(精准左1);
    HTS:=REF(H,天数1);
    精准右1:=ABS(H-HTS)
    STICKLINE(精准左1,H,H,31,-1),COLORGREEN;
    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;{下三一线};

    AA:= MAX (REF (H,2) ,REF (H,1));
    BB:=MIN(REF (L,2) ,REF (L,1));
    DD:= BB+(AA-BB)*2/3;
    CPX:=DD;
    操盘线:IF(显示操盘线=1,CPX,0),COLORGREEN;
    精准回踩金线:=IF(买入 AND K1 AND 金线=1 AND L AND ( ABS(REF(C,K1-1)-L)=0 OR ABS(REF(C,K1-1)-L)=0.01),1,0);

    DRAWICON(精准回踩金线=1 AND C REF(MAX(C,O),1) AND C O,L*0.99,1);

    {磨沙蓝色}
    XG1:=C/REF(C,1) 1.05;
    STICKLINE(XG1,L,H,0,0),COLORFF0088;
    STICKLINE(XG1,CLOSE,OPEN,3,0),COLORFF0011;
    STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLORFF0022;
    STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLORFF0033;
    STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLORFF0044;
    STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLORFF0055;
    STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLORFF0066;
    STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLORFF0077;
    STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLORFF0088;

    STICKLINE((C-REF(C,1))/REF(C,1) 0.095,C,O,2.1,0),COLORMAGENTA;
    STICKLINE((C-REF(C,1))/REF(C,1) -0.095,C,O,2.1,0),{81.海绿色} COLOR238E68 ;


    倍量柱1:=(REF(VOL,3) =REF(VOL,4)*1.8),NODRAW;{实际给1.8倍}
    倍量柱:VOL REF(VOL,1)*1.8,NODRAW,COLORWHITE;
    {老舍单阳不破}
    阳涨幅:=4;
    阳倍量:=2;
    单阳:=C O*(1+阳涨幅/100) AND VOL REF(VOL,1)*阳倍量;
    DRAWTEXT(CURRBARSCOUNT 90 AND 单阳,L*0.98,'阳'),COLOR00FFFF;
    高不破价:=REF(C,BARSLAST(单阳));
    中不破价:=REF((C+L)/2,BARSLAST(单阳));
    低不破价:=REF(L,BARSLAST(单阳));
    单阳不破:=CURRBARSCOUNT 90 AND BARSLAST(单阳) 11 AND (LLV(L,BARSLAST(单阳)) 低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
    STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED;
    DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN;
    DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;

    DRAWTEXT_FIX(C 0,0.004,1,0,DYBLOCK),COLORYELLOW,LINETHICK2;
    DRAWTEXT_FIX(C 0,0.06,1,0,HYBLOCK),COLORRED,LINETHICK2;
    DRAWTEXT_FIX(C 0,0.12,1,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK2;
    DRAWLINE(ZT,H,REF(ZT,1),REF(H,1),1);


    局部低点预选A:=BACKSET(LLV(L,5) REF(LLV(L,4),1),4);
    局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);
    局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);
    局部高点预选A:=BACKSET(HHV(H,5) REF(HHV(H,4),1),4);
    局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);
    局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);
    缺口判断:=IF(L REF(H,1),1,IF(H REF(L,1),-1,0));
    距前高天:=BARSLAST(局部高点预选C=1);
    距前低天:=BARSLAST(局部低点预选C=-1);
    小值周期:=LOWRANGE(L);
    大值周期:=TOPRANGE(H);
    低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1) REF(距前低天,1) AND LLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0);
    低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1) =REF(距前低天,1) AND (距前高天 =4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2) REF(LLV(L,距前低天+1),1)),-1,0);
    低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L REF(H,距前高天+1),-1,0);
    预判:=IF((距前低天 4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);
    判断:=IF(局部高点预选C=1 AND REF(距前低天,1) =REF(距前高天,1) AND 预判=1 AND 大值周期 REF(小值周期,距前低天+1) AND 大值周期 REF(小值周期,距前低天) AND 大值周期 REF(大值周期,距前高天),1,0);
    高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1) REF(距前高天,1) AND HHV(H,距前低天+1) REF(HHV(H,距前低天+1),1),1,0);
    高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1) =REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天 =4 OR HHV(缺口判断,距前低天)=1),1,0);
    高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H REF(L,距前低天+1),1,0);
    预判A:=IF((距前高天 4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);
    判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1) =REF(距前低天,1) AND 预判A=1 AND 小值周期 REF(大值周期,距前高天+1) AND 小值周期 REF(大值周期,距前高天) AND 小值周期 REF(小值周期,距前低天),-1,0);
    低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1) REF(距前低天,1) AND LLV(L,距前高天+1) REF(LLV(L,距前高天+1),1),-1,0);
    低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1) =REF(距前低天,1) AND (距前高天 =4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);
    低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L REF(H,距前高天+1),-1,0);
    距前高天A:=BARSLAST(高保留=1);
    距前低天A:=BARSLAST(低保留=-1);
    预判X:=IF((距前低天A 4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);
    判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1) =REF(距前高天A,1) AND 预判X=1 AND 大值周期 REF(小值周期,距前低天A+1) AND 大值周期 REF(小值周期,距前低天A) AND 大值周期 REF(大值周期,距前高天A),1,0);
    高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1) REF(距前高天A,1) AND HHV(H,距前低天A+1) REF(HHV(H,距前低天A+1),1),1,0);
    高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1) =REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A =4 OR HHV(缺口判断,距前低天A)=1),1,0);
    高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H REF(L,距前低天A+1),1,0);
    预判XA:=IF((距前高天A 4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);
    判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1) =REF(距前低天A,1) AND 预判XA=1 AND 小值周期 REF(大值周期,距前高天A+1) AND 小值周期 REF(大值周期,距前高天A) AND 小值周期 REF(小值周期,距前低天A),-1,0);
    低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1) REF(距前低天A,1) AND LLV(L,距前高天A+1) REF(LLV(L,距前高天A+1),1),-1,0);
    低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1) =REF(距前低天A,1) AND (距前高天A =4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);
    低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L REF(H,距前高天A+1),-1,0);
    距前高天YA:=BARSLAST(高保留X=1);
    距前低天YA:=BARSLAST(低保留X=-1);
    预判YX:=IF((距前低天YA 4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);
    判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1) =REF(距前高天YA,1) AND 预判YX=1 AND 大值周期 REF(小值周期,距前低天YA+1) AND 大值周期 REF(小值周期,距前低天YA) AND 大值周期 REF(大值周期,距前高天YA),1,0);
    高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1) REF(距前高天YA,1) AND HHV(H,距前低天YA+1) REF(HHV(H,距前低天YA+1),1),1,0);
    高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1) =REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA =4 OR HHV(缺口判断,距前低天YA)=1),1,0);
    高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H REF(L,距前低天YA+1),1,0);
    预判YXA:=IF((距前高天YA 4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);
    判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1) =REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期 REF(大值周期,距前高天YA+1) AND 小值周期 REF(大值周期,距前高天YA) AND 小值周期 REF(小值周期,距前低天YA),-1,0);
    低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1) REF(距前低天YA,1) AND LLV(L,距前高天YA+1) REF(LLV(L,距前高天YA+1),1),-1,0);
    低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1) =REF(距前低天YA,1) AND (距前高天YA =4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);
    低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L REF(H,距前高天YA+1),-1,0);
    AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L REF(L,REF(距前低天YA,1)+2),-1,0));
    极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);
    局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,{2.红色 }COLORRED,LINETHICK3;

    {精准眼 精 +(蓝色柱体)}
    精准眼:=BETWEEN(C-AMOUNT/V/100,0.01,-0.01) AND NOT(H=L)
    AND TOTALBARSCOUNT
    STICKLINE(精准眼 ,O,C,1,0),COLORBLUE;
    STICKLINE(精准眼,H,L,0,0),COLORBLUE;
    DRAWTEXT(精准眼, H*1.01, '精'),COLORYELLOW;

    {腾空眼 腾 }
    腾空眼:=O REF(C,1) AND C O AND REF(C,1) REF(C,2) AND (V REF(V,1)*0.7 OR V=LLV(V,50)) AND C MA(C,20);
    STICKLINE(腾空眼,O,C,1,0),COLORRED;
    DRAWTEXT(腾空眼 , L*0.98, '腾'),COLORRED;

    {腾空阳 腾阳 }
    腾空阳:=O REF(C,1) AND C O AND REF(C,1) REF(C,2) AND V =REF(V,1)*0.7 AND V REF(V,1) AND C MA(C,20);
    STICKLINE(腾空阳,O,C,1,0),COLORMAGENTA;
    DRAWTEXT(腾空阳 , L*0.99, '腾阳'),COLORWHITE;

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


    {假阴真阳}
    STICKLINE(假阴,O,C,1,0),COLORRED;
    VAR90:=ZIG(3,90) REF(ZIG(3,90),1) AND REF(ZIG(3,90),1) REF(ZIG(3,90),2);
    VAR80:=ZIG(3,80) REF(ZIG(3,80),1) AND REF(ZIG(3,80),1) REF(ZIG(3,80),2);
    VAR70:=ZIG(3,70) REF(ZIG(3,70),1) AND REF(ZIG(3,70),1) REF(ZIG(3,70),2);
    VAR60:=ZIG(3,60) REF(ZIG(3,60),1) AND REF(ZIG(3,60),1) REF(ZIG(3,60),2);
    VAR50:=ZIG(3,50) REF(ZIG(3,50),1) AND REF(ZIG(3,50),1) REF(ZIG(3,50),2);
    VAR40:=ZIG(3,40) REF(ZIG(3,40),1) AND REF(ZIG(3,40),1) REF(ZIG(3,40),2);
    VAR30:=ZIG(3,30) REF(ZIG(3,30),1) AND REF(ZIG(3,30),1) REF(ZIG(3,30),2);
    VAR20:=ZIG(3,20) REF(ZIG(3,20),1) AND REF(ZIG(3,20),1) REF(ZIG(3,20),2);
    VAR10:=REF(ZIG(3,10),1) ZIG(3,10) AND REF(ZIG(3,10),1) REF(ZIG(3,10),2);
    VAR5:=REF(ZIG(3,5),1) ZIG(3,5) AND REF(ZIG(3,5),1) REF(ZIG(3,5),2);
    QFZ:=IF(VAR90=1,VAR90,IF(VAR80=1,VAR80,IF(VAR70=1,VAR70,IF(VAR60=1,VAR60,IF(VAR50=1,VAR50,IF(VAR40=1,VAR40,IF(VAR30=1,VAR30,IF(VAR20=1,VAR20,IF(VAR10=1,VAR10,VAR5)))))))));
    QFS:=IF(VAR90=1,'折',IF(VAR80=1,'折',IF(VAR70=1,'折',IF(VAR60=1,'折',IF(VAR50=1,'折',IF(VAR40=1,'折',IF(VAR30=1,'折',IF(VAR20=1,'折',IF(VAR10=1,'折10','折')))))))));
    DRAWTEXT(QFZ,L*0.98,QFS),COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 含未来函数介意者绕行 黄金眼主图 通达信主图指标 源码 加入收藏