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

    正文概述    2024-04-14 15:17:35  

    {1__构造牛熊带+均线变色系统};
    X:=(3*C+L+O+H)/6;

    DRAWBAND((MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4,RGB(155,50,50),(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,RGB(83,123,68));
    DRAWKLINE(H,O,L,C);
    攻击线:(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4;
    操盘线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,NODRAW;
    持仓线:MA(X,43),COLORRED,LINETHICK3;
    中期多空线:MA(X,144),CROSSDOT,COLORBLUE,LINETHICK2;

    中轨:  MA(CLOSE,26),POINTDOT,LINETHICK4;
    上轨: 中轨+ 2*STD(CLOSE,26),COLORWHITE,POINTDOT,LINETHICK4;
    下轨: 中轨-2*STD(CLOSE,26),COLORWHITE,POINTDOT,LINETHICK4;
    IF(C>=中轨,中轨,DRAWNULL),COLORRED,LINETHICK4,POINTDOT;
    IF(C<中轨,中轨,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT;
    IF(持仓线>=REF(持仓线,2),持仓线,DRAWNULL),COLORRED,LINETHICK3;
    IF(持仓线 IF(C>=操盘线,操盘线,DRAWNULL),COLORYELLOW,LINETHICK1;
    IF(C<操盘线,操盘线,DRAWNULL),COLORGREEN,LINETHICK1;
    IF(攻击线>REF(攻击线,1),攻击线,DRAWNULL),COLORRED,LINETHICK1;
    IF(攻击线 AA:=攻击线;
    BB:=操盘线;
    AF:=CROSS(AA,BB);
    STICKLINE(AF,LLV(L,8),LLV(L,8),50,1),COLORRED,LINETHICK1;
    AF1:=CROSS(BB,AA);
    STICKLINE(AF1,HHV(H,8),HHV(H,8),50,1),COLOR00FF00,LINETHICK1;

    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,3,0 ),COLOR003300;{收盘价<=开盘价,从收盘价到开盘价用绿色}
    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,2.5,0 ),COLOR005500;
    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,2,0 ),COLOR007700;
    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,1.5,0 ),COLOR009900;
    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,1,0 ),COLOR00BB00;
    STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,0,0 ),COLOR00E100;
    {26}
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000033;{收盘价>开盘价,从开盘价到收盘价用红色}
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR000066;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000088;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLOR0000BB;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000EE;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;

    {41}
    VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
    STICKLINE(VARAQ,C,(O+C)/2,3,0),COLOR4D0099;{符合上述条件,从收盘价到中间用玫红色}
    STICKLINE(VARAQ,C,(O+C)/2,2.5,0),COLOR5F00BD;
    STICKLINE(VARAQ,C,(O+C)/2,2,0),COLOR6500CA;
    STICKLINE(VARAQ,C,(O+C)/2,1.5,0),COLOR7600EC;
    STICKLINE(VARAQ,C,(O+C)/2,1,0),COLOR9933FF;
    STICKLINE(VARAQ,C,(O+C)/2,0,0),COLORAD5BFF;
    {49}
    VARBQ:=C=LLV(C,4) AND (REF(C,1)HHV(C,4)) AND C STICKLINE(VARBQ,C,(O+C)/2,3,0),COLOR333333;{符合上述条件,从收盘价到中间用银色}
    STICKLINE(VARBQ,C,(O+C)/2,2.5,0),COLOR666666;
    STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR888888;
    STICKLINE(VARBQ,C,(O+C)/2,1.5,0),COLORBBBBBB;
    STICKLINE(VARBQ,C,(O+C)/2,1,0),COLOREEEEEE;
    STICKLINE(VARBQ,C,(O+C)/2,0,0),COLORFFFFFF;
    {57}
    VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);
    STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR8D0B00;{符合上述条件,从开盘价到中间用蓝色}
    STICKLINE(VARCQ,O,(O+C)/2,2.5,0),COLORC70E00;
    STICKLINE(VARCQ,O,(O+C)/2,2,0),COLORFA1C10;
    STICKLINE(VARCQ,O,(O+C)/2,1.5,0),COLORFF6044;
    STICKLINE(VARCQ,O,(O+C)/2,1,0),COLORF97C0D;
    STICKLINE(VARCQ,O,(O+C)/2,0,0),COLORFBA960;


     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 白杨主图源码 加入收藏