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

    正文概述    2024-04-13 04:03:05  

    短线K线主图源码:


    DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),colorwhite;
    DEA:=EMA(DIFF,9),COLORf00ff0 ;
    MACD:=0.90*(DIFF-DEA), COLORSTICK;
    tj:=(diff =dea);
    tj1:=(diff

    STICKLINE(tj,H,L,0.5,0),coloryellow;
    STICKLINE(tj,O,C,4,0),coloryellow;
    STICKLINE(tj1 AND tj,H,L,0.5,0),colorf00ff0;
    STICKLINE(tj1 AND tj,O,C,4,1),colorf00ff0;
    STICKLINE(diff dea,H,L,0.5,0),colorf0f000;
    STICKLINE(diff dea,O,C,4,0),colorf0f000;

    Var1:=(CLOSE*2+HIGH+LOW)/4;
    SK:= EMA(Var1,13)-EMA(Var1,73);
    SD:= EMA(SK,2);
    DRAWTEXT((CROSS(sk,sd) AND sk -0.04 AND (C-REF(C,1))/REF(C,1) =0.03) OR (CROSS(sk,sd) AND sk =-0.14 ) OR (CROSS(sk,sd) AND sk =0.05 AND (V/MA(V,5) 2 OR C/REF(C,1) 0.035)) ,L*0.99,'短线'),colorred;
    STICKLINE((CROSS(sk,sd) AND sk -0.04 AND (C-REF(C,1))/REF(C,1) =0.03) OR (CROSS(sk,sd) AND sk =-0.14 ) OR (CROSS(sk,sd) AND sk =0.05 AND (V/MA(V,5) 2 OR C/REF(C,1) 0.035)),H,L,0.5,0),colorred;
    STICKLINE((CROSS(sk,sd) AND sk -0.04 AND (C-REF(C,1))/REF(C,1) =0.03) OR (CROSS(sk,sd) AND sk =-0.14 ) OR (CROSS(sk,sd) AND sk =0.05 AND (V/MA(V,5) 2 OR C/REF(C,1) 0.035)),O,C,10,1),linethick3,colorred;

    MA1:=MA(CLOSE,15);
    MA6:MA(C,5),colorwhite;
    MA18:MA(C,13),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); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
    A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
    T1:=BARSLAST(HD) BARSLAST(LD) AND NOT(HD) ;
    T2:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);
    顶:IF(T1,A,A),coloryellow,POINTDOT;
    底:IF(T2,B,B),colorgreen,POINTDOT;

    加码价:=((C-REF(ma18,1))/18+ma18)*1.004;
    加码条件:=CROSS(C,加码价) AND 加码价 REF(加码价,1);
    黄K加码:IF(加码条件,L,H),coloryellow,POINTDOT;
    STICKLINE(加码条件,H,L,0,1),coloryellow,linethick2;
    STICKLINE(加码条件,O,C,4,1),coloryellow,linethick2;

    买进价:=((C-REF(ma6,1))/6+ma6)*1.004;
    买进条件:=CROSS(C,买进价) AND 买进价 REF(买进价,1);
    白K买进:IF(买进条件,L,H),colorwhite,POINTDOT;
    STICKLINE(买进条件,H,L,0,1),colorwhite,linethick2;
    STICKLINE(买进条件,O,C,4,1),colorwhite,linethick2;

    同花顺短线K线主图源码

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺短线K线主图源码 加入收藏