最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信趋势买卖,看长做短公式

    正文概述    2024-04-13 11:34:23  

    N:=10;
    N1:=5;N2:=10;N3:=600;
    VAR1:=C-REF(C,1);
    VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
    MA5:=EMA(C,5);
    MA13:=EMA(C,13);
    0,COLORGRAY,LINETHICK1;
    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
    (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
    (MA5,MA13))+1),0),COLOR0000FF;
    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
    (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
    (MA13,MA5))+1),0),COLOR00FF00;
    BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
    REF(DOWN,1)REF(DOWN,1);
    DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2;
    DEA:EMA(DIFF,8),COLOR1474FF,LINETHICK3;
    DRAWTEXT(CURRBARSCOUNT
    =5,-100,'赵红卫2011'),COLORRED;
    TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3;
    买:=CROSS(TJ1,DEA);
    卖:=CROSS(DEA,TJ1);
    DRAWICON(卖,DEA-2.6,1);
    DRAWICON(买,DEA+1.1,2);
    STICKLINE(DEA>TJ1 , DEA,TJ1 ,2.5,0),COLORRED,LINETHICK2;
    STICKLINE(TJ1>DEA,DEA,TJ1,2.5,0),COLORGREEN,LINETHICK2;
    买点:=CROSS(DEA,TJ1) AND DEA>TJ1;
    DRAWTEXT(买点,DEA*1.18,'加仓'),COLORYELLOW;
    卖点:=CROSS(TJ1,DEA) AND TJ1>DEA;
    DRAWTEXT(卖点,TJ1*1.23,'减仓'),COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信趋势买卖,看长做短公式 加入收藏