最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 指标资讯

    正文概述    2024-05-04 03:37:24  

    通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、筹码转移指标公式源码    获利:=WINNER(C);    筹码DDX:((获利)-REF((获利),1)),STICK;    筹码DDX1:SUM(筹码DDX,60);    筹码DDX2:MA(筹码DDX1,5);    筹码DDX3:MA(筹码DDX1,10);    集中度:SUM(筹码DDX,0),NODRAW;    净额:(CAPITAL*筹码DDX)*C/10000,NODRAW,COLORFFCC66;    多头:LAST(筹码DDX1 筹码DDX2AND筹码DDX2 筹码DDX3,1,0),NODRAW,COLORCCCCFF;    连红:LAST(筹码DDX 0,1,0),COLOR0000FF,NODRAW;    拾红:COUNT(筹码DDX 0,10),COLOR3300CC,NODRAW;    廿红:COUNT(筹码DDX 0,20),COLOR8000FF,NODRAW;    陆拾红:COUNT(筹码DDX 0,60),COLOR3333CC,NODRAW;    1,DOTLINE,COLORFF7676;    DRAWBAND(筹码DDX2,RGB(180,50,0),筹码DDX1,RGB(0,50,180));    DRAWBAND(筹码DDX3,RGB(200,0,100),筹码DDX2,RGB(0,100,100));    DRAWTEXT(ISLASTBAR,获利, 筹码大单动向 ),COLORYELLOW;    获利2:=WINNER(C);    套牢2:=1-获利2;    DD:=(获利2-套牢2)-REF((获利2-套牢2),1);    DDZ:DD*7;    DDZ1:=DD*14;    DRAWBAND(DDZ,RGB(255,0,0),DDZ1,RGB(0,255,0));    DRAWTEXT(ISLASTBAR,获利2*0.90, 筹码大单分差 ),COLORRED;    获利1:=WINNER(C);    套牢1:=1-获利1;    {计算}    筹码DDY:(获利1-套牢1),STICK;    筹码DDY1:SUM(筹码DDY,3);    筹码DDY2:MA(筹码DDY1,5);    筹码DDY3:MA(筹码DDY1,10);    多头1:LAST(筹码DDY1 筹码DDY2AND筹码DDY2 筹码DDY3,0,0),NODRAW,COLORCCCCFF;    连红1:LAST(筹码DDY 0,0,0),COLOR0000FF,NODRAW;    拾红1:COUNT(筹码DDY 0,10),COLOR3300CC,NODRAW;    廿红1:COUNT(筹码DDY 0,20),COLOR8000FF,NODRAW;    陆拾红1:COUNT(筹码DDY 0,60),COLOR3333CC,NODRAW;    DRAWBAND(筹码DDY2,RGB(180,50,0),筹码DDY1,RGB(0,50,180));    DRAWBAND(筹码DDY3,RGB(200,0,100),筹码DDY2,RGB(0,100,100));    1,DOTLINE,COLORFF7676;    DRAWTEXT(ISLASTBAR,获利1*0.95, 筹码涨跌动因 ),COLORFFFFFF;    Var1:=REF(CLOSE,5);    Var2:=REF(WINNER(CLOSE)*100,5);    Var3:=WINNER(Var1)*100;    筹转5:Var2-Var3;    Var4:=REF(CLOSE,10);    Var5:=REF(WINNER(CLOSE)*100,10);    Var6:=WINNER(Var4)*100;    筹转10:Var5-Var6;    Var7:=REF(CLOSE,20);    Var8:=REF(WINNER(CLOSE)*100,20);    Var9:=WINNER(Var7)*100;    筹转20:Var8-Var9;    VarA:=REF(CLOSE,30);    VarB:=REF(WINNER(CLOSE)*100,30);    VarC:=WINNER(VarA)*100;    筹转30:VarB-VarC;二、筹码进出指标公式源码    AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));    买量:=IF(CLOSE OPEN,AA*(HIGH-LOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;    卖量:=IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;    进出量:买量+卖量,COLOR00FFFF;    STICKLINE(进出量 0,0,进出量,4,0),COLORFF6600;    STICKLINE(进出量 0,0,进出量,3,0),COLORFF9900;    STICKLINE(进出量 0,0,进出量,1.5,0),COLORFFCC00;    STICKLINE(进出量 0,0,进出量,0.5,0),COLORCYAN;    STICKLINE(进出量 0,0,进出量,4,0),COLOR000099;    STICKLINE(进出量 0,0,进出量,3,0),COLOR0000CC;    STICKLINE(进出量 0,0,进出量,1.5,0),COLOR0000FF;    STICKLINE(进出量 0,0,进出量,0.5,0),COLORCC66FF;    N:=5;    M:=13;    N日内净流入:SUM(进出量,N),LINETHICK2,COLORGREEN;    流入:IF(N日内净流入 REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;    连红天:BARSLASTCOUNT(进出量 0);    M日内翻红天:COUNT(进出量 0,M),COLORRED;    走熊天:BARSLASTCOUNT(N日内净流入 0),COLORCYAN;    走牛天:BARSLASTCOUNT(N日内净流入 0),COLORRED;    强势天:BARSLASTCOUNT((N日内净流入 REF(N日内净流入,1)) 0ANDN日内净流入 0);    弱势天:BARSLASTCOUNT((N日内净流入 REF(N日内净流入,1)) 0ANDN日内净流入 0);    n:=21;    DA1:=IF(130 TOTALBARSCOUNT,TOTALBARSCOUNT,130);    DA:=IF(CURRBARSCOUNT DA1,0,DA1);    HI:=REFDATE(HHV(H,DA),DATE);    LO:=REFDATE(LLV(L,DA),DATE);    C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL);    GZ:=EXP(LN(HI/LO)/10);    LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA);    LH2:=SUM(IF(C1 =(HI/POW(GZ,2))ANDC1 (HI/GZ),V,0),DA);    LH3:=SUM(IF(C1 =(HI/POW(GZ,3))ANDC1 (HI/POW(GZ,2)),V,0),DA);    LH4:=SUM(IF(C1 =(HI/POW(GZ,4))ANDC1 (HI/POW(GZ,3)),V,0),DA);    LH5:=SUM(IF(C1 =(HI/POW(GZ,5))ANDC1 (HI/POW(GZ,4)),V,0),DA);    LH6:=SUM(IF(C1 =(HI/POW(GZ,6))ANDC1 (HI/POW(GZ,5)),V,0),DA);    LH7:=SUM(IF(C1 =(HI/POW(GZ,7))ANDC1 (HI/POW(GZ,6)),V,0),DA);    LH8:=SUM(IF(C1 =(HI/POW(GZ,8))ANDC1 (HI/POW(GZ,7)),V,0),DA);    LH9:=SUM(IF(C1 =(LO*GZ)ANDC1 LO*POW(GZ,2),V,0),DA);    LH10:=SUM(IF(C1 =LOANDC1 LO*GZ,V,0),DA);    L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;    L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;    L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;    L4:=REFDATE(HHV(LH4,DA),DATE);    L5:=REFDATE(HHV(LH5,DA),DATE);    L6:=REFDATE(HHV(LH6,DA),DATE);    L7:=REFDATE(HHV(LH7,DA),DATE);    L8:=REFDATE(HHV(LH8,DA),DATE);    L9:=REFDATE(HHV(LH9,DA),DATE);    L10:=REFDATE(HHV(LH10,DA),DATE);    SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);    STICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;    STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;    DRAWKLINE(H,O,L,C);MA1:MA(CLOSE,7);    MA2:MA(CLOSE,13);    MA3:MA(CLOSE,34);    MA4:MA(CLOSE,50);    VAR3:=LLV(HIGH,240);    VAR4:=100*(CLOSE-VAR3)/VAR3;    VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;    VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;    VAR7:=0;    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;    VAR10:=IF(TROUGHBARS(3,16,1)=0ANDHIGH LOW+0.04,4,0);    VAR11:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2) =REF(ZIG(3,6),3);    VAR12:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2) =REF(ZIG(3,6),3);    VAR13:=ZIG(3,22) REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1) =REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2) =REF(ZIG(3,22),3);    VAR14:=ZIG(3,22) REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1) =REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2) =REF(ZIG(3,22),3);    VAR15:=ZIG(3,51) REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1) =REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2) =REF(ZIG(3,51),3);    VAR16:=ZIG(3,51) REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1) =REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2) =REF(ZIG(3,51),3);    VAR17:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2) =REF(ZIG(3,72),3);    VAR18:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2) =REF(ZIG(3,72),3);    VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);    买1:=VAR10;    买2:=(VAR11+VAR13+VAR15+VAR17);    卖1:=(VAR12+VAR14+VAR16+VAR18);    B:IF(买1 0OR买2 0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;    DRAWTEXT(买1 0OR买2 0,LOW*0.99, 买入 ),COLORRED;    S:IF(卖1 0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;    DRAWTEXT(卖1 0,HIGH*1.02, 卖出 ),COLORGREEN;    VAR100:=(100-((90*(HHV(HIGH,20)-CLOSE))/(HHV(HIGH,20)-LLV(LOW,20))));    VAR200:=(100-((90*(HHV(HIGH,20)-CLOSE))/(HHV(HIGH,20)-LLV(LOW,20))));    VAR300:=(100-MA(((100*(HHV(HIGH,5)-CLOSE))/(HHV(HIGH,5)-LLV(LOW,5))),34));    F:IF(CROSS(VAR200,MA(VAR300,5)),LOW*0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;    年:MA(CLOSE,22),LINETHICK2,COLORWHITE;    BOLL:MA(CLOSE,N);    UB:BOLL+2*STD(CLOSE,N);    LB:BOLL-2*STD(CLOSE,N);    MB1:=EMA(WINNER(C)*100,5),COLORYELLOW;    MB2:=EMA(MB1,2),COLORBLUE;    MB3:=EMA(MB2,2),COLORBLUE;    MB4:=EMA(MB3,2),COLORBLUE;    MB5:=EMA(MB4,2),COLORBLUE;    MB6:=EMA(MB5,2),COLORBLUE;    MB7:=EMA(MB6,2),COLORBLUE;    MB8:=EMA(MB7,2),COLORBLUE;    MB9:=EMA(MB8,2),COLORBLUE;    MB10:=EMA(MB9,2),COLORBLUE;    MB11:=EMA(MB10,2),COLORBLUE;    MB12:=EMA(MB11,2),COLORBLUE;    MB13:=EMA(MB12,2),COLORBLUE;    MB14:=EMA(MB13,2),COLORBLUE;    N:=5;    VAR2:MB1;    VAR3:DRAWLINE(VAR2 =HHV(VAR2,N)=1,VAR2,VAR2 =LLV(VAR2,N)=1,VAR2,1);    XG:=REF(VAR2,1)=REF(VAR3,1)ANDVAR2 REF(VAR2,1);    STICKLINE(VAR2=VAR3ANDVAR2 MB4,VAR2,VAR2+10,1,0)COLORYELLOW;    STICKLINE(XG,VAR2,VAR2+10,1,0),COLORRED;[源码注释]通达信公式动态公式解读当满足条件1时,在横轴0.002纵轴0位置书写文字,画黄色DIFFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均DEAAA赋值:DIFFF的9日指数移动平均MACD2赋值:2*(DIFFF-DEAAA)(收盘价 0 AND DIFFF上穿0,最高价*1.3),COLOR000080,NODRAW(收盘价 0 AND MACD2上穿0,最高价*1.3),COLOR000080,NODRAW(收盘价 0 AND 0上穿DIFFF,最高价*1.3),COLOR808080,NODRAW(收盘价 0 AND 0上穿MACD2,最高价*1.3),COLOR808080,NODRAWDU0赋值:DIFFF上穿0UD0赋值:0上穿DIFFFTDU0赋值:上次DU0距今天数TUD0赋值:上次UD0距今天数DU3赋值:1日前的DU0UD3赋值:1日前的UD0TDU3赋值:上次DU3距今天数TUD3赋值:上次UD3距今天数UDGLINE赋值:如果TDU3 TUD3,返回TDU3日前的2日内最高价的最高值,否则返回TUD3日前的2日内最低价的最低值JDU0赋值:1日前的收盘价 =1日前的UDGLINE AND 收盘价 UDGLINE AND TDU0 TUD0JUD0赋值:1日前的收盘价 =1日前的UDGLINE AND 收盘价 UDGLINE AND TUD0 TDU0JDU1赋值:JDU0 AND 统计TDU0日中满足JDU0的天数=1JUD1赋值:JUD0 AND 统计TUD0日中满足JUD0的天数=1JDU2赋值:JDU1 AND 1日前的上次JUD1距今天数 1日前的上次JDU1距今天数JUD2赋值:JUD1 AND 1日前的上次JUD1距今天数 1日前的上次JDU1距今天数JDU3赋值:JDU1 AND 1日前的上次JUD1距今天数 1日前的上次JDU1距今天数JUD3赋值:JUD1 AND 1日前的上次JUD1距今天数 1日前的上次JDU1距今天数BSLINE赋值:如果上次JDU2距今天数 上次JUD2距今天数,返回如果1日前的0上穿MACD2,返回2日内最低价的最低值,否则返回上次1日前的0上穿MACD2距今天数日前的2日内最低价的最低值,否则返回如果1日前的MACD2上穿0,返回2日内最高价的最高值,否则返回上次1日前的MACD2上穿0距今天数日前的2日内最高价的最高值当满足条件MACD2 =0时,在0和MACD2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色当满足条件MACD2 =0ANDMACD2 1日前的MACD2时,在0和MACD2位置之间画柱状线,宽度为2,1不为0则画空心柱.,画青色当满足条件MACD2 0时,在0和MACD2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画青色当满足条件MACD2 0ANDMACD2 1日前的MACD2时,在0和MACD2位置之间画柱状线,宽度为2,1不为0则画空心柱.,画黄色0,DOTLINE,画深灰色MID赋值:(7*收盘价+最低价+开盘价+最高价)/10MA0赋值:MID的40日简单移动平均MA1赋值:MID的1日简单移动平均A1赋值:MA1-MA0MA2赋值:MID的2日简单移动平均A2赋值:MA2-MA0MA3赋值:MID的3日简单移动平均A3赋值:MA3-MA0MA4赋值:MID的4日简单移动平均A4赋值:MA4-MA0MA5赋值:MID的5日简单移动平均A5赋值:MA5-MA0MA6赋值:MID的6日简单移动平均A6赋值:MA6-MA0MA7赋值:MID的7日简单移动平均A7赋值:MA7-MA0MA8赋值:MID的8日简单移动平均A8赋值:MA8-MA0MA9赋值:MID的9日简单移动平均A9赋值:MA9-MA0MA10赋值:MID的10日简单移动平均A10赋值:MA10-MA0MA11赋值:MID的11日简单移动平均A11赋值:MA11-MA0MA12赋值:MID的12日简单移动平均A12赋值:MA12-MA0MA13赋值:MID的13日简单移动平均A13赋值:MA13-MA0MA14赋值:MID的14日简单移动平均A14赋值:MA14-MA0MA15赋值:MID的15日简单移动平均A15赋值:MA15-MA0MA16赋值:MID的16日简单移动平均A16赋值:MA16-MA0MA17赋值:MID的17日简单移动平均A17赋值:MA17-MA0MA18赋值:MID的18日简单移动平均A18赋值:MA18-MA0MA19赋值:MID的19日简单移动平均A19赋值:MA19-MA0MA20赋值:MID的20日简单移动平均A20赋值:MA20-MA0MA21赋值:MID的21日简单移动平均A21赋值:MA21-MA0MA22赋值:MID的22日简单移动平均A22赋值:MA22-MA0MA23赋值:MID的23日简单移动平均A23赋值:MA23-MA0MA24赋值:MID的24日简单移动平均A24赋值:MA24-MA0MA25赋值:MID的25日简单移动平均A25赋值:MA25-MA0MA26赋值:MID的26日简单移动平均A26赋值:MA26-MA0MA27赋值:MID的27日简单移动平均A27赋值:MA27-MA0MA28赋值:MID的28日简单移动平均A28赋值:MA28-MA0MA29赋值:MID的29日简单移动平均A29赋值:MA29-MA0MA30赋值:MID的30日简单移动平均A30赋值:MA30-MA0MA31赋值:MID的31日简单移动平均A31赋值:MA31-MA0MA32赋值:MID的32日简单移动平均A32赋值:MA32-MA0MA33赋值:MID的33日简单移动平均A33赋值:MA33-MA0MA34赋值:MID的34日简单移动平均A34赋值:MA34-MA0MA35赋值:MID的35日简单移动平均A35赋值:MA35-MA0MA36赋值:MID的36日简单移动平均A36赋值:MA36-MA0MA37赋值:MID的37日简单移动平均A37赋值:MA37-MA0MA38赋值:MID的38日简单移动平均A38赋值:MA38-MA0MA39赋值:MID的39日简单移动平均A39赋值:MA39-MA0MA40赋值:MID的40日简单移动平均A40赋值:MA40-MA0LC赋值:(A6+A7+A8+A9+A10+A11+A12+A13+A14+A15+A16+A17+A18+A19+A20)/15,线宽为0VAR1赋值:LCVAR2赋值:1日前的LCVAR3赋值:VAR1 VAR2 AND 1日前的LC 2日前的LCVAR4赋值:VAR1 VAR2 AND 1日前的LC 2日前的LC输出均线发散:当满足条件VAR1 VAR2时,在LC和1日前的LC位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色输出均线粘合:当满足条件VAR1 VAR2时,在LC和1日前的LC位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色输出EMA5:VAR1的5日简单移动平均,画白色输出EMA10:VAR1的10日简单移动平均,画黄色DIFF赋值:收盘价的21日指数移动平均-收盘价的34日指数移动平均DEAA赋值:DIFF的8日指数移动平均MACDD赋值:8*(DIFF-DEAA)MARDD赋值:MACDD的2日[1日权重]移动平均当满足条件MACDD MARDD时,在MACDD和MARDD位置之间画柱状线,宽度为1.8,0不为0则画空心柱.,画洋红色当满足条件MACDD MARDD时,在MACDD和MARDD位置之间画柱状线,宽度为1.8,0不为0则画空心柱.,COLORFF8000推荐阅读:筹码结构指标公式源码    五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;    成本价1:=COST(五十成本集中),COLORGREEN;    五十成本集中1:=100-五十成本集中;    成本价2:=COST(五十成本集中1),COLORBLUE;    单峰密集价:成本价2/成本价1-1,STICK;    红:=REF(单峰密集价,1) 单峰密集价AND成本价2 REF(成本价2,1);    绿:=REF(单峰密集价,1) 单峰密集价;    主力筹码:=单峰密集价 =0.25;    底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;    底部成本价:=COST(底部),COLORYELLOW;    顶部:=100-底部;    顶部成本价:=COST(顶部),COLORGREEN;    均值:=(底部+顶部)/2;    均值成本:=COST(均值),COLORLICYAN,DOTLINE;    STICKLINE(红,单峰密集价,0,2.8,0),COLOR000055;    STICKLINE(红,单峰密集价,0,2,0),COLOR000088;    STICKLINE(红,单峰密集价,0,1.5,0),COLOR0000AA;    STICKLINE(红,单峰密集价,0,1,0),COLOR0000CC;    STICKLINE(红,单峰密集价,0,0.5,0),COLOR0000EE;    STICKLINE(红,单峰密集价,0,0,0),COLORFFFFFF;    底:=REF(单峰密集价,2) REF(单峰密集价,1)AND单峰密集价 REF(单峰密集价,1)AND均值成本 REF(均值成本,1);    STICKLINE(底,单峰密集价,0,0,0),COLORGREEN;    STICKLINE(底,单峰密集价,0,2.8,0),COLOR009900;    STICKLINE(底,单峰密集价,0,2,0),COLOR00BB00;    STICKLINE(底,单峰密集价,0,1.5,0),COLOR00DD00;    STICKLINE(底,单峰密集价,0,0.5,0),COLOR00FF00;    顶:=REF(单峰密集价,2) REF(单峰密集价,1)AND单峰密集价 REF(单峰密集价,1)AND均值成本 REF(均值成本,1);    STICKLINE(顶,单峰密集价,0,2,0),COLORYELLOW;    stickline(c 0,300,400,100,0),color002300;    stickline(c 0,200,300,100,0),color320000;    stickline(c 0,100,200,100,0),color320000;    stickline(c 0,-5,100,100,0),color002300;    hl10:winner(c/1.1)*100,stick,color0000ff;    hl20:winner(c/1.2)*100,stick,color00ffff;    hl30:winner(c/1.3)*100,stick,colorff00ff;    tl10:=(1-WINNER(C/0.9))*100;    tl20:=(1-WINNER(C/0.8))*100;    tl30:=(1-WINNER(C/0.7))*100;    stickline(tl10 -10,400,400-tl10,1,0),colorffff33;    stickline(tl20 -10,400,400-tl20,1,0),colorff6600;    stickline(tl30 -10,400,400-tl30,1,0),colorcc0000;    cxh10:=(winner(c)-winner(c/1.1))*100;    cxh20:=(winner(c)-winner(c/1.2))*100;    cxh30:=(winner(c)-winner(c/1.3))*100;    stickline(cxh30 -10,200,200-cxh30,1,0),color99ffff;    stickline(cxh20 -10,200,200-cxh20,1,0),color33ccff;    stickline(cxh10 -10,200,200-cxh10,1,0),color0066ff;    cst10:=(WINNER(C/0.9)-WINNER(C))*100;    cst20:=(WINNER(C/0.8)-WINNER(C))*100;    cst30:=(WINNER(C/0.7)-WINNER(C))*100;    stickline(cst30 -10,200,200+cst30,1,0),color99ff66;    stickline(cst20 -10,200,200+cst20,1,0),color00ff33;    stickline(cst10 -10,200,200+cst10,1,0),color009900;    bb:100,pointdot,linethick2,colorred;    aa:200,coloryellow;    cc:300,pointdot,linethick2,colorgreen;    BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorblue,LINETHICK2;    Q99:COST(99),COLOR147E2D;    Q90:COST(90),COLOR147E2D;    Q80:COST(80),COLOR147E2D;    Q50:COST(50),COLOR00FF00,LINETHICK2,colormagenta,LINETHICK3;    Q70:COST(70),COLOR0E7E26;    Q60:COST(60),COLOR0E7E26;    Q40:COST(40),COLOR077E21;    Q30:COST(30),COLOR077E21;    Q20:COST(20),COLOR077E21;    Q10:COST(10),COLOR017E1C;    Q1:COST(1),COLOR017E1C;    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);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);    前期高位:REF(C,BARSLAST(HD)),coloryellow,POINTDOT;    STICKLINE(C,前期高位,前期高位,8,0),coloryellow;    高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;    STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667,H,C,0.8,0),coloryellow;    DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);    DEA:EMA(DIFF,9);    MACD=2*(DIFF-DEA);    Zero:0;    gj:=MAX(C,O);    STICKLINE(MACD 0ANDMACD =REF(MACD,1),0,MACD,2,0),colorred;    STICKLINE(MACD 0ANDMACD REF(MACD,1),0,MACD,2,0),colorliblue;    STICKLINE(MACD 0ANDMACD =REF(MACD,1),0,MACD,2,0),colorlired;    STICKLINE(MACD 0ANDMACD REF(MACD,1),0,MACD,2,0),colorgreen;    L4:=LLV(gj,4);    jl:=(HHV(diff,55)-LLV(diff,55))/5;    gt:=dea REF(dea,1)ANDREF(dea,1) REF(dea,2);    A1:=BARSLAST(REF(gt,1));    底部结构:=REF(L4,A1+1) CLOSEANDdiff REF(diff,A1+1)ANDgt;    DRAWLINE(A1=0,DEA,底部结构,REF(DEA,A1),0),colorred,LINETHICK2;    DRAWLINE(底部结构,DEA,底部结构,REF(DEA,A1),0),colorred,LINETHICK2;    DRAWTEXT(底部结构,REF(DEA,A1)*1.18, 底部结构 ),colorred;    H4:=HHV(gj,4);    gt2:=dea REF(dea,1)ANDREF(dea,1) REF(dea,2);    A2:=BARSLAST(REF(gt2,1));    顶部结构:=REF(H4,A2+1) H4ANDdiff REF(diff,A2+1)ANDgt2;    DRAWLINE(A2=0,DEA,顶部结构,REF(DEA,A2),0),colorgreen,LINETHICK2;    DRAWLINE(顶部结构,DEA,顶部结构,REF(DEA,A2),0),colorgreen,LINETHICK2;    DRAWTEXT(顶部结构,REF(DEA,A2)*1.18, 顶部结构 ),colorgreen;    A0:=DIFF 0ANDDEA 0;    A11:=A0 REF(A0,1);    A3:=BARSLAST(A11);    A4:=COUNT(DEA 0ANDDIFF 0,A3)=0;    A5:=CROSS(DIFF,DEA);    A6:=BARSLAST(A5);    A7:=REF(A6,A6+1)+A6;    A8:=(DIFF+DEA)/2;    A9:=(HIGH+LOW)/2;    A10:=A5ANDA7 A3ANDA4ANDA8 REF(A8,A7)ANDA9 REF(A9,A7)ANDMACD 0;每日公式解答:    股票公式编写要求:    今日筹码获利比前一天的多出2倍以上的选股公式。    股票公式编写结果:    XG:WINNER(CLOSE)*100 REF(WINNER(CLOSE)*100,1)*2;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 指标资讯 加入收藏