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

    正文概述    2024-04-13 14:55:05  

    龙轩主图 V6版

    {公式名称: 龙轩主图
    公式描述: V6版
    参数数量: 16
    参数1: 黄金线开关, 最小: 0, 最大: 1, 缺省: 0
    参数2: 峰谷线开关, 最小: 0, 最大: 1, 缺省: 0
    参数3: 高量梯开关, 最小: 0, 最大: 1, 缺省: 0
    参数4: 左峰梯开关, 最小: 0, 最大: 1, 缺省: 0
    参数5: 大阴梯开关, 最小: 0, 最大: 1, 缺省: 0
    参数6: 乾坤三线, 最小: 0, 最大: 1, 缺省: 0
    参数7: 同类合并, 最小: 0, 最大: 1, 缺省: 0
    参数8: 文字开关, 最小: 0, 最大: 1, 缺省: 0
    参数9: 三日低点画线, 最小: 0, 最大: 1, 缺省: 0
    参数10: 峰谷精准开关, 最小: 0, 最大: 1, 缺省: 0
    参数11: 精准线, 最小: 1, 最大: 4, 缺省: 1
    参数12: X1, 最小: 0, 最大: 9999, 缺省: 0
    参数13: X2, 最小: 0, 最大: 9999, 缺省: 0
    参数14: X3, 最小: 0, 最大: 9999, 缺省: 0
    参数15: X4, 最小: 0, 最大: 9999, 缺省: 0
    参数16: X5, 最小: 0, 最大: 9999, 缺省: 0
    公式类型: 技术指标公式-其他类型
    画线方法: 主图叠加
    公式版本: 0
    显示小数: 缺省位数
    坐标线位置: 自动
    额外Y轴分界: 无
    用法注释:
    标注假阴真阳
    公式源码:}

    {公式名称: 龙轩主图V6版 WACG.TAOBAO.COM}
    上涨家数: SZ399002$ADVANCE + SH999999$ADVANCE - SZ399108$ADVANCE ,COLORRED,NODRAW;{仅限於日线周期}
    下跌家数: SZ399002$DECLINE + SH999999$DECLINE - SZ399108$DECLINE ,COLORGREEN,NODRAW;
    涨跌比:上涨家数/(上涨家数+下跌家数)*100,NODRAW,COLORWHITE;
    Z1:=STRCAT(HYBLOCK,' ');
    Z2:=STRCAT(Z1,DYBLOCK);
    Z3:=STRCAT(Z2,' ');
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;
    HJ_1:=CLOSE/REF(CLOSE,1) 1.097;
    年涨停:COUNT(HJ_1,250),NODRAW,COLORLIMAGENTA;
    HJ_2:=0.01;
    HJ_3:=IF(精准线=1,LOW,IF(精准线=2,OPEN,IF(精准线=3,CLOSE,HIGH)));
    精准值:CONST(HJ_3),DOTLINE,COLORWHITE;
    HJ_4:=COUNT(ABS(LOW-精准值) =HJ_2,120)-1;
    HJ_5:=COUNT(ABS(HIGH-精准值) =HJ_2,120)-1;
    HJ_6:=COUNT(ABS(CLOSE-精准值) =HJ_2,120)-1;
    HJ_7:=COUNT(ABS(OPEN-精准值) =HJ_2,120)-1;
    精准数:HJ_4+HJ_5+HJ_6+HJ_7+3,NODRAW,COLORGREEN;
    DRAWICON(ABS(LOW-精准值) =HJ_2,精准值*0.98,11);
    DRAWICON(ABS(HIGH-精准值) =HJ_2,精准值*1.02,12);
    DRAWICON(ABS(OPEN-精准值) =HJ_2,精准值*1.02,12);
    DRAWICON(ABS(CLOSE-精准值) =HJ_2,精准值*1.02,12);
    上三一:(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/3+MIN(OPEN,CLOSE),NODRAW,COLORMAGENTA;
    二一位:(OPEN+CLOSE)/2,NODRAW,COLORRED;
    下三一:(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))/3+MIN(OPEN,CLOSE),NODRAW,COLORYELLOW;
    虚三一:=HIGH-(HIGH-LOW)*0.333,NODRAW;
    虚二一:HIGH-(HIGH-LOW)*0.5,NODRAW;
    虚三二:=HIGH-(HIGH-LOW)*0.666,NODRAW,COLOR8000FF;
    HJ_8:=MA(CLOSE,3);
    HJ_9:=REFX(HJ_8,3);
    小东西:=VOL/REF(VOL,1) =1.9 AND CLOSE REF(CLOSE,1),NODRAW,COLORYELLOW;
    STICKLINE(小东西,HIGH,LOW,0,0),COLORYELLOW;
    STICKLINE(小东西,OPEN,CLOSE,3.1,3),COLORYELLOW;
    高于实顶:=CLOSE HJ_9,NODRAW;
    HJ_10:=OPEN REFX(CLOSE,1) AND OPEN REFX(CLOSE,2) AND OPEN REFX(CLOSE,2);
    HJ_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100
    HJ_12:=CLOSE=OPEN AND CLOSE=HIGH AND CLOSE=LOW;
    HJ_13:=高于实顶 AND HJ_10 AND HJ_11 AND HJ_12=0;
    STICKLINE(REF(LOW,1) HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;
    STICKLINE(REF(HIGH,1) LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;
    DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
    HJ_14:=REF(CLOSE,1);
    HJ_15:=IF(CLOSE =1,10000,100000);
    HJ_16:=1.1*HJ_14-49/HJ_15;
    HJ_17:=1.05*HJ_14-49/HJ_15;
    HJ_18:=0.9*HJ_14+51/HJ_15;
    HJ_19:=0.95*HJ_14+51/HJ_15;
    HJ_20:=NAMELIKE(3) OR NAMELIKE(4);
    HJ_21:=IF(HJ_20,CLOSE =HJ_17,CLOSE =HJ_16);
    HJ_22:=IF(HJ_20,CLOSE =HJ_19,CLOSE =HJ_18);
    HJ_23:=IF(HJ_20,HIGH =HJ_17,HIGH =HJ_16);
    HJ_24:=IF(HJ_20,LOW =HJ_19,LOW =HJ_18);
    STICKLINE(HJ_23,HIGH,MAX(CLOSE,OPEN),0,0),COLORMAGENTA;
    STICKLINE(HJ_24,LOW,MIN(CLOSE,OPEN),0,0),COLORLICYAN;
    HJ_25:=CLOSE OPEN AND (CLOSE =HJ_17 OR CLOSE 1.05*OPEN-51/HJ_15) OR (CLOSE 1000 AND CLOSE HJ_14*1.024);
    STICKLINE(HJ_25,OPEN,CLOSE,1,0),COLOR0000BB;
    HJ_26:=CLOSE OPEN AND (CLOSE =HJ_19 OR CLOSE 0.95*OPEN+49/HJ_15) OR (CLOSE 1000 AND CLOSE HJ_14*0.976);
    STICKLINE(HJ_26,OPEN,CLOSE,1,0),COLORLIGREEN;
    STICKLINE(HJ_21,OPEN,CLOSE,1,0),COLORMAGENTA;
    STICKLINE(HJ_22,OPEN,CLOSE,1,0),COLORLICYAN;
    STICKLINE(HJ_13,OPEN*1.01,CLOSE*0.99,0,0),COLORWHITE;
    HJ_27:=PERIOD=5 AND NAMELIKE(5) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1) =0.025 OR ABS(CLOSE-OPEN)

    =60);
    STICKLINE(HJ_27,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;
    STICKLINE(HJ_25 OR HJ_26 OR HJ_21 OR HJ_22 AND BETWEEN(CLOSE,1,500),LOW+(HIGH-LOW)/2,LOW+(HIGH-

    LOW)/2,1,0),COLORYELLOW;
    STICKLINE(HJ_25 OR HJ_26 OR HJ_21 OR HJ_22 AND BETWEEN(CLOSE,1,500),二一位,二一位,1,0),COLORBLUE;

    均价:=AMOUNT/VOL/100;
    假阳:=C O AND REF(C,1) 均价 AND C 均价 AND C 300 ;
    STICKLINE(假阳,O,C,1,0)COLORGREEN;
    假阴:=O C AND C 均价 AND 均价 REF(C,1) ;
    STICKLINE(假阴,O,C,1,0),COLORRED;
    TJ:=C
    显性假阴:=C REF(C,1) AND TJ;
    隐性假阴:=AMOUNT/V/100 REF(C,1) AND O REF(C,1) AND NOT(显性假阴) AND TJ;
    STICKLINE(显性假阴,O,C,1,0),COLORRED;
    比系数:=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)
    均价1:=AMOUNT/VOL/100;
    RJ1:=REF(均价1,1);
    RJ2:=REF(均价1,2);
    阳柱:=C =O OR (C O AND 均价1 RC1);
    三日二阳:=COUNT(阳柱,3)
    基价柱阳:=RC3
    价渐升:=(均价1 =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,1,0),COLOR0099FF;
    DRAWTEXT(文字开关 0 AND FIL AND NOT(REF(FIL,4)),LOW*0.988,'↖金'),COLORYELLOW;
    K1:=SUMBARS(FIL,1);
    STICKLINE(黄金线开关 0 AND K1 AND 金线=1,REF(CLOSE,K1-1),REF(CLOSE,K1-1),10,0),COLORAA00FF;
    STICKLINE(黄金线开关 0 AND K1 AND 金线=1,REF(LOW,K1-1),REF(LOW,K1-1),10,0),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,1,0),COLOR0000FF;
    DRAWTEXT(文字开关 0 AND FILT AND NOT(REF(FILT,5)),LOW*0.975,'↖帅'),COLORRED;
    K2:=SUMBARS(FILT,1);

    黄金柱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,1,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,1,0),COLOR0099FF;
    定义黄金柱:=黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5
    OR 黄金柱6 AND NOT(DYNAINFO(4)=0) AND C=HHV(C,3);
    阴元帅柱:=定义黄金柱 AND REF(C,4) REF(C,5) AND REF(C,4) REF(O,4) AND REF(O,3) =REF(O,4);
    YY:=FILTER(BACKSET(阴元帅柱 ,5),5);
    {STICKLINE(YY,L,H,0.5,0),COLORWHITE;}
    DRAWTEXT(文字开关 0 AND YY,LOW*0.988,'↖阴帅'),COLORFFFF00;
    JY_01:=VALUEWHEN(K1 AND 金线=1,REF(CLOSE,K1-1));
    JY_02:=VALUEWHEN(K1 AND 金线=1,REF(LOW,K1-1));
    JY_03:=CLOSE OPEN AND CLOSE JY_01 AND OPEN JY_01;
    JY_04:=CLOSE OPEN AND CLOSE JY_02 AND OPEN JY_02;
    JY_05:=CLOSE OPEN AND ABS(CLOSE-MIN(REF(CLOSE,1),REF(OPEN,1))) =0.05 AND OPEN/CLOSE 1.025;
    JY_06:=CLOSE OPEN AND CLOSE REF(OPEN,1);
    JY_07:=REF(CLOSE,2) REF(OPEN,2) AND REF(CLOSE,1) REF(OPEN,1) AND CLOSE OPEN AND CLOSE REF(OPEN,2);
    JY_08:=CLOSE OPEN AND REF(CLOSE,1) REF(OPEN,1) AND OPEN =REF(CLOSE,1);
    JY_09:=VOL/REF(VOL,1) =0.95 AND CLOSE OPEN AND CLOSE REF(CLOSE,1);
    JY_10:=OPEN/REF(CLOSE,1) =1.03 AND OPEN/CLOSE 1.04;
    JY_11:=JY_03 OR JY_04 OR JY_05 OR JY_06 OR JY_07 OR JY_08 OR JY_09 OR JY_10;
    STICKLINE(JY_11,OPEN,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*4/5+MIN(OPEN,CLOSE),2.76,0),COLORYELLOW;
    H_7:=INTPART(DATE);
    HJ_28:=15;
    HJ_29:=CONST(HHVBARS(VOL,10));
    GLPT:=IF(CURRBARSCOUNT =HJ_28+15,CONST(IF(HJ_29=0,CLOSE,REF(CLOSE,HJ_29))),DRAWNULL);
    量能平台:IF(高量梯开关 0,GLPT,DRAWNULL),COLORWHITE,LINETHICK2;
    新量能点:IF(CURRBARSCOUNT=HJ_29+1,量能平台,DRAWNULL),CIRCLEDOT,COLORLIMAGENTA,LINETHICK3;
    {高量顶线}
    HH:=HHV(VOL,10);
    T:=BARSLAST(HH=VOL);
    当前高量顶价:DRAWLINE(高量梯开关 0 AND T=0 AND T =10,MIN(C,O),REF(T=0,1),REF(MIN(C,O),1),1)COLORWHITE;
    均线1:MA(CLOSE,X1),COLORRED;
    均线2:MA(CLOSE,X2),COLORYELLOW;
    均线3:MA(CLOSE,X3), COLOR00FF00;
    均线4:MA(CLOSE,X4),COLOR8000FF;
    均线5:MA(CLOSE,X5), COLOR208FFF;
    A101:=REF(HIGH,3)=HHV(HIGH,2*3+1);
    B101:=FILTER(A101,3);
    C101:=BACKSET(B101,3+1);
    D1:=FILTER(C101,3);{高点}
    A201:=REF(LOW,3)=LLV(LOW,2*3+1);
    B201:=FILTER(A201,3);
    C22:=BACKSET(B201,3+1);
    D2:=FILTER(C22,3);{低点}
    E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
    E2:=(HIGH+LOW)/2;
    H1:=(D1 AND NOT(D2 AND E1 =E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
    H2:=D1 AND NOT(D2 AND E1 =E2);
    L1:=D2 AND NOT(D1 AND E1=E2);
    X1:=REF(BARSLAST(H1),1)+1;
    F1:=BACKSET(H1 AND COUNT(L1,X1) 0,LLVBARS(IF(L1,LOW,10000),X1));
    G1:=F1 REF(F1,1);
    I1:=BACKSET(G1,2);
    LD01:=I1 REF(I1,1);
    L2:=LD01 OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
    X2:=REF(BARSLAST(L2),1)+1;
    F2:=BACKSET(L2 AND COUNT(H2,X2) 0,HHVBARS(IF(H2,HIGH,0),X2));
    G2:=F2 REF(F2,1);
    I2:=BACKSET(G2,2);
    HD01:=I2 REF(I2,1);
    J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD01),BARSLAST(LD01))+1);
    J2:=J1 REF(J1,1);
    A3:=H;
    B3:=REF(H,REF(BARSLAST(HD01),1)+1) REF(H,REF(BARSLAST(HD01),1)+2+REF(BARSLAST(HD01),REF(BARSLAST

    (HD01),1)+2));
    D3:=A3 AND B3 AND HD01;
    E3:=BACKSET(D3,REF(BARSLAST(HD01),1)+2);
    HH01:=E3 REF(E3,1);
    A4:=L REF(L,REF(BARSLAST(LD01),1)+1);
    B4:=REF(L,REF(BARSLAST(LD01),1)+1);
    D4:=A4 AND B4 AND LD01;
    E4:=BACKSET(D4,REF(BARSLAST(LD01),1)+2);
    LL:=E4 REF(E4,1);
    H3:=HH01 OR ISLASTBAR OR BARSCOUNT(C)=1;
    X3:=REF(BARSLAST(H3),1)+1;
    F3:=BACKSET(H3 AND COUNT(LL,X3) 0,LLVBARS(IF(LL,L,POW(10,20)),X3));
    G3:=F3 REF(F3,1);
    I3:=BACKSET(G3,2);
    LZ:=I3 REF(I3,1);
    L4:=LZ OR ISLASTBAR OR BARSCOUNT(C)=1;
    X4:=REF(BARSLAST(L4),1)+1;
    F4:=BACKSET(L4 AND COUNT(HH01,X4) 0,HHVBARS(IF(HH01,H,-POW(10,20)),X4));
    G4:=F4 REF(F4,1);
    I4:=BACKSET(G4,2);
    HZ:=I4 REF(I4,1);
    K11:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);
    K22:=K11 REF(K11,1);
    UU:=BACKSET(ISLASTBAR,BARSLAST(LD01)+1);
    VV:=UU REF(UU,1);
    WW:=BACKSET(VV,REF(BARSLAST(LD01),1)+2);
    XX:=WW REF(WW,1);
    UU2:=BACKSET(ISLASTBAR,BARSLAST(HD01)+1);
    VV2:=UU2 REF(UU2,1);
    WW2:=BACKSET(VV2,REF(BARSLAST(HD01),1)+2);
    XX2:=WW2 REF(WW2,1);
    梯一:=REF(L,BARSLAST(VV));
    梯二:=REF(L,BARSLAST(XX));
    凹峰一:=REF(H,BARSLAST(VV2));
    凹峰二:=REF(H,BARSLAST(XX2));
    TT1:IF(峰谷线开关 0,梯一,DRAWNULL),COLOR99FF66,DOTLINE;
    TT2:IF(峰谷线开关 0,梯二,DRAWNULL),COLORMAGENTA,DOTLINE;
    AF1:IF(峰谷线开关 0,凹峰一,DRAWNULL),COLORYELLOW,DOTLINE;
    AF2:IF(峰谷线开关 0,凹峰二,DRAWNULL),COLORCYAN,DOTLINE;
    DRAWLINE(峰谷线开关 0 AND XX,L,VV,L,1),COLORRED,LINETHICK1;
    DRAWLINE(峰谷线开关 0 AND XX2,H,VV2,H,1),COLORGREEN,LINETHICK1;
    DRAWTEXT(峰谷线开关 0 AND CURRBARSCOUNT=5,梯一*0.995,'梯一'),COLOR99FF66;
    DRAWTEXT(峰谷线开关 0 AND CURRBARSCOUNT=5,梯二*0.995,'梯二'),COLORMAGENTA;
    DRAWTEXT(峰谷线开关 0 AND CURRBARSCOUNT=1,凹峰一*1.01,'凹峰一'),COLORYELLOW;
    DRAWTEXT(峰谷线开关 0 AND CURRBARSCOUNT=1,凹峰二*1.01,'凹峰二'),COLORCYAN;
    HHHH21:=MA(虚二一,3);
    HHHH31:=MA(虚三一,3);
    HHHH32:=MA(虚三二,3);
    上线:IF(乾坤三线 0,HHHH31,DRAWNULL),COLORRED;
    中线:IF(乾坤三线 0,HHHH21,DRAWNULL),COLORMAGENTA;
    下线:IF(乾坤三线 0,HHHH32,DRAWNULL),COLORGREEN;
    TY:=C;
    A1:=REF(TY,10)=HHV(TY,2*10+1);
    B1:=FILTER(A1,10);
    C1:=BACKSET(B1,10+1);
    HD:=FILTER(C1,10);
    A2:=REF(TY,10)=LLV(TY,2*10+1);
    B2:=FILTER(A2,10);
    C3:=BACKSET(B2,10+1);
    LD:=FILTER(C3,10);
    前期低位:=REF(C,BARSLAST(LD));
    前期高位:=REF(C,BARSLAST(HD));
    STICKLINE(左峰梯开关 0 AND C,前期高位,前期高位,8,0),COLORFFFF00;
    STICKLINE(左峰梯开关 0 AND C,前期低位,前期低位,8,0),COLOR0080FF;
    大阴线:=C 0.96*O OR C =REF(C,1)*0.96 OR C 1000 AND C =REF(C,1)*0.98;
    大阴T:=BARSLAST(FILTER(大阴线,2));
    大阴实顶:= REF(O,大阴T);
    DRAWLINE(大阴梯开关 0 AND 大阴T=0 ,MAX(C,O),REF(大阴T=0,1),REF(MAX(C,O),1),1),COLORYELLOW;
    涨幅:=(C-REF(C,1))/REF(C,1)*100,NODRAW;
    阴:=涨幅 0,NODRAW;
    连阴:=BARSLASTCOUNT(阴),NODRAW;
    STICKLINE(同类合并 0 AND 连阴 1 AND REFX(连阴,1)=0,C,REF(C,(连阴)),-1,0),COLORFF9966;
    阴上三:C+(REF(C,(连阴))-C)*0.66,NODRAW;
    阴二一:(C+REF(C,(连阴)))/2,NODRAW;
    阴下三:C+(REF(C,(连阴))-C)*0.33,NODRAW;
    STICKLINE(同类合并 0 AND 连阴 1 AND REFX(连阴,1)=0,阴上三,阴上三,-1,0),COLORWHITE;
    STICKLINE(同类合并 0 AND 连阴 1 AND REFX(连阴,1)=0,阴二一,阴二一,-1,0),COLORWHITE;
    STICKLINE(同类合并 0 AND 连阴 1 AND REFX(连阴,1)=0,阴下三,阴下三,-1,0),COLORWHITE;
    阳:=涨幅 0,NODRAW;
    连阳:=BARSLASTCOUNT(阳),NODRAW;
    STICKLINE(同类合并 0 AND 连阳 1 AND REFX(连阳,1)=0,C,REF(C,(连阳)),-1,0),COLORFF33FF;
    阳上三:REF(C,(连阳))+(C-REF(C,(连阳)))*0.66,NODRAW,COLORFFFFFF;
    阳二一:REF(C,(连阳))+(C-REF(C,(连阳)))*0.5,NODRAW,COLORFFFFFF;
    阳下三:REF(C,(连阳))+(C-REF(C,(连阳)))*0.33,NODRAW,COLORFFFFFF;
    STICKLINE(同类合并 0 AND 连阳 1 AND REFX(连阳,1)=0,阳上三,阳上三,-1,0),COLORBLUE;
    STICKLINE(同类合并 0 AND 连阳 1 AND REFX(连阳,1)=0,阳二一,阳二一,-1,0),COLORBLUE;
    STICKLINE(同类合并 0 AND 连阳 1 AND REFX(连阳,1)=0,阳下三,阳下三,-1,0),COLORBLUE;
    {CHECK TAOBAOID9345867,IF UNREGISTER 3,BURN HARDDISK};
    BB:=MAX(CLOSE,OPEN);
    CC:=MIN(CLOSE,OPEN);
    DD:=CC-0.01 =REF(BB,1);
    DD2:=(CC-REF(BB,1))/REF(BB,1)*100
    AA:=COUNT(DD AND DD2,3)=3;
    DRAWTEXT(文字开关 0 AND AA,L-0.1,' 三元'),COLORYELLOW;

    SB:=MAX(CLOSE,OPEN);
    QB:=MIN(CLOSE,OPEN);
    跳空:=QB-0.01 =REF(SB,1);
    ZDZD:=C REF((O+C)/2,1) AND REF(C O OR C REF(C,1),1);
    ZHZD:=BACKSET(ISLASTBAR,BARSLAST(ZDZD));
    DRAWTEXT(文字开关 0 AND 跳空 AND ZHZD,REF(C,1)-0.001,'O'),COLORYELLOW;
    阴顶开盘:=REF(C O,1) AND 跳空;
    DRAWTEXT(文字开关 0 AND 阴顶开盘,REF(H,1)-0.001,'YD'),COLORFFFF00;
    真阴线:=C REF(C,1) AND C
    假阳线:=C REF(C,1) AND C
    阴线:=真阴线 0 OR 假阳线
    阴线天数:=BARSLAST(阴线);
    阴线实体最高价:=MAX(REF(C,阴线天数),REF(O,阴线天数));
    阴线成交量:=REF(V,阴线天数);
    阳胜条件:=阴线天数 0 AND C =阴线实体最高价 AND V =阴线成交量;
    阳胜:=IF(阳胜条件 0 AND REF(阳胜条件,1)=0,1,0);
    黄金阳胜:=C REF(C,1) AND V =REF(V*1.9,1) AND V =REF(V*3,1);
    JJJ1:=O REFX(C,3) AND O REFX(C,2) AND O REFX(C,1) AND MAX(C,O) REFX(C,3) AND MAX(C,O) REFX(C,2) AND MAX(C,O) REFX(C,1);
    JJJ2:=O REFX(MA(C,3),3) AND MAX(C,O) REFX(MA(C,3),3);
    将军价:=JJJ1 OR JJJ2;
    JJL1:=V REFX(V,1) AND V REFX(V,2) AND V REFX(V,3);
    JJL2:=V REFX(MA(V,3),3);
    将军量:=JJL1 OR JJL2;
    将军柱:=将军量 AND 将军价 AND 阳胜;
    HJJ1:=C REFX(C,3) AND C REFX(C,2) AND C REFX(C,1);
    HJJ2:=C REFX(MA(C,3),3);
    黄金价:=HJJ1 OR HJJ2;
    HJL1:=V REFX(MA(V,3),3);
    HJL2:=REFX(V,1) REFX(V,2) AND REFX(V,2) REFX(V,3) AND V REFX(MA(V,3),1);
    黄金量:=HJL1 OR HJL2;
    黄金升幅:=(MA(C,3)-REF(C,3))/REF(C,3)*100 =(MA(V,3)-REF(V,3))/REF(V,3)*100*1.01;
    黄金柱:={黄金升幅 AND }黄金量 AND 黄金价 AND (阳胜 OR 黄金阳胜);
    ZJL1:=V REF(V,1) AND V REF(V,2);
    ZJL2:=C REF(C,1) AND C REF(C,2) AND C O AND C REF(C,1);
    ZJL3:=ZJL1 AND ZJL2;
    金三:=黄金柱 AND REFX(ZJL3,3);
    跳空黄金柱:=(跳空 OR 阴顶开盘) AND 黄金柱;
    STICKLINE(REFX(将军柱 AND 跳空,1),OPEN,CLOSE,1,0),COLOR0099FF;
    DRAWTEXT(文字开关 0 AND REFX(将军柱 AND 跳空,1),LOW*0.988,'↖金'),COLORYELLOW;
    STICKLINE(金三,C,(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*4/5+MIN(OPEN,CLOSE),2.76,0),COLORRED;
    XJJ1:=BARSLAST(REFX(将军柱 AND 跳空,1));
    QBJ1:=REFX(将军柱 AND 跳空,1) OR 黄金柱;
    ZJA1:=跳空 AND REF(跳空=0,1);
    ZJA2:=BARSLAST(ZJA1);
    ZJA3:=COUNT(跳空,ZJA2)=ZJA2 AND ZJA2 =1 AND QBJ1;
    ZJA4:=BACKSET(ZJA3,ZJA2+1);
    ZJA5:=ZJA4 AND REF(ZJA4=0,1);
    DRAWTEXT(文字开关 0 AND REFX(ZJA5,1),LOW*0.986,'↖元'),COLORFFFFFF;
    ZJA6:=BARSLAST(ZJA5);
    ZJA7:=ZJA6 =8 AND ZJA6
    ZJA8:=REF(MAX(C,O),ZJA6+1);
    YLYZ1:=REFX(跳空黄金柱,1) AND 跳空=0;
    YLYZ2:=BARSLAST(YLYZ1);
    YLYZ3:=REF(MAX(C,O),YLYZ2);
    YLYZ4:=YLYZ2 =0 AND YLYZ2
    BB1:=将军柱 OR 黄金柱;
    将军开盘:=REF(O,BARSLAST(将军柱));
    黄金开盘:=REF(O,BARSLAST(黄金柱));
    BB3:=L=LLV(L,BARSLAST(黄金柱)) AND BARSLAST(黄金柱)
    黄金后低:=REF(L,BARSLAST(BB3));
    STICKLINE(三日低点画线 0 AND 黄金后低 AND BARSLAST(黄金柱) =8 AND 黄金柱=0,黄金后低,黄金后低,1,0),COLORGREEN;
    合力黄金柱:=黄金柱 AND COUNT(黄金柱,4) =2 AND COUNT(黄金柱,20)
    DRAWTEXT(文字开关 0 AND 合力黄金柱,LOW*0.956,'↖合力'),COLORYELLOW;
    JLHJZ1:=黄金柱 AND COUNT(合力黄金柱,4)=1 AND COUNT(黄金柱,20)
    JLHJZ2:=黄金柱 AND O =REF(C,REF(BARSLAST(黄金柱),1)+1) AND O =REF(C*1.02,REF(BARSLAST(黄金柱),1)+1) AND REF(BARSLAST(黄金柱),1)+1 =4 AND REF(BARSLAST(黄金柱),1)+1
    接力黄金柱:=JLHJZ1 OR JLHJZ2;
    DRAWTEXT(文字开关 0 AND 接力黄金柱,LOW*0.97,'↖接力'),COLORWHITE;
    DRAWTEXT(文字开关 0 AND 将军柱 AND 跳空=0,LOW*0.986,'↖将'),COLORWHITE;
    百分比:=5;
    右数峰序:=2;
    {ZIG(3,5);}
    波谷值: CONST(TROUGH(2,百分比,1)),NODRAW;{前M个ZIG转向波谷值}
    波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离}
    {例如:TROUGH(2,5,2)表示%5最低价ZIG转向的前2个波谷到当前的周期数};
    波峰值:= CONST(PEAK(1,百分比,右数峰序));
    {例如:PEAK(1,5,1)表示%5最高价ZIG转向的上一个波峰的数值}
    XG:= ABS(波峰值-波谷值) =0.024 {AND BARSCOUNT(V)
    波峰距离:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW;
    距离:=CURRBARSCOUNT;
    DRAWLINE(距离=波峰距离 AND XG,波谷值,距离=1,波谷值,1),COLORMAGENTA;
    DRAWTEXT(距离=波谷距离 AND XG,L*0.98,' 峰谷线'),COLORYELLOW;
    精准点:=(ABS(H-波谷值) =0.024 OR ABS(L-波谷值) =0.024) {AND 距离 =120};
    STICKLINE(峰谷精准开关 0 AND 精准点,波谷值,波谷值,3,1),COLORYELLOW;
    阳胜阴:=C O AND REF(O C,1) AND C REF(O,1) AND V =REF(V,1);
    DRAWICON(阳胜阴,L*0.985,1);
    通达信龙轩主图 V6版公式图源码

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信龙轩主图 V6版公式图源码 加入收藏