最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信expma金叉死叉连线指标使用技巧

    正文概述    2024-05-04 04:14:39  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信expma死叉连线指标使用技巧


     

    M1:=8;M2:=25;M3:=12;M4:=50; 

    AEXP1:EXPMA(CLOSE,M1)COLORBLUE,LINETHICK1; 

    AEXP2:EXPMA(CLOSE,M2)COLORGREEN,LINETHICK2; 

    AEXP3:=EXPMA(C,M3)COLORLIGREEN,DOTLINE; 

    AEXP4:=EXPMA(C,M4)COLORWHITE,DOTLINE; 

    IF(AEXP1 (REFV(AEXP1,1)),AEXP1,DRAWNULL),COLORRED,LINETHICK1; 

    IF(AEXP2 (REFV(AEXP2,1)),AEXP2,DRAWNULL),COLORMAGENTA,LINETHICK2; 

    IF(AEXP3 (REFV(AEXP3,1)),AEXP3,DRAWNULL),COLORYELLOW,DOTLINE; 

    IF(AEXP4 (REFV(AEXP4,1)),AEXP4,DRAWNULL),COLORLIRED,DOTLINE; 

    卖:=CROSS(AEXP1,AEXP2); 

    买:=CROSS(AEXP2,AEXP1); 

    DRAWTEXT(卖,AEXP1*0.995, 持股 ),COLORRED; 

    DRAWTEXT(买,AEXP2*1.03, 持币 ),COLORWHITE; 

    N:=20;B1:=12;B2:=50; 

    MID:=MA(C,N); 

    VART1:=POW((C-MID),2); 

    VART2:=MA(VART1,N); 

    VART3:=SQRT(VART2); 

    UPPER:=MID+2*VART3; 

    LOWER:=MID-2*VART3; 

    BOLL:=REF(MID,1),COLORFFFFFF; 

    上轨:REF(UPPER,1),COLOR00FFFF; 

    下轨:REF(LOWER,1),COLORFF00FF; 

    快线:EXPMA(CLOSE,B1),COLORWHITE; 

    慢线:EXPMA(CLOSE,B2); 

    阳涨幅:=3.5; 

    阳倍量:=1.9; 

    单阳收:=C; 

    单阳开:=O; 

    单阳:=单阳收 =REF(C,1)*(1+阳涨幅/100)ANDVOL REF(VOL,1)*阳倍量; 

    DRAWTEXT(CURRBARSCOUNT 100AND单阳,L*0.98, 阳 ),COLOR00FFFF; 

    高不破价:=REF(C,BARSLAST(单阳)); 

    低不破价:=REF(L,BARSLAST(单阳)); 

    单阳不破:=CURRBARSCOUNT 100ANDBARSLAST(单阳) 11AND(LLV(L,BARSLAST(单阳)) 低不破价ORLLV(L,BARSLAST(单阳))=低不破价); 

    STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN; 

    STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED; 

    STICKLINE(单阳,单阳开,单阳收,2,0),COLORYELLOW; 

    DRAWTEXT(BARSLAST(单阳)=1AND单阳不破,低不破价*0.98, 1 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=2AND单阳不破,低不破价*0.98, 2 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=3AND单阳不破,低不破价*0.98, 3 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=4AND单阳不破,低不破价*0.98, 4 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=5AND单阳不破,低不破价*0.98, 5 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=6AND单阳不破,低不破价*0.98, 6 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=7AND单阳不破,低不破价*0.98, 7 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=8AND单阳不破,低不破价*0.98, 8 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=9AND单阳不破,低不破价*0.98, 9 ),COLORGREEN; 

    DRAWTEXT(BARSLAST(单阳)=10AND单阳不破,低不破价*0.98, 10 ),COLORGREEN; 

    DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100; 

    DEA:EMA(DIF,9); 

    MACD:(DIF-DEA)*2,COLORSTICK; 

    DRAWICON(CROSS(DIF,DEA),DEA,1); 

    DRAWICON(CROSS(DEA,DIF),DEA,2); 

    SHORT:=10;LONG:=50;M:=10; 

    DDD:(MA(CLOSE,SHORT)-MA(CLOSE,LONG)); 

    AMA:MA(DDD,M); 

    DRAWTEXT(CROSS(DDD,AMA),AMA, ★金 ),COLORYELLOW; 

    DRAWTEXT(CROSS(AMA,DDD),DDD, ★死 ),COLORBLUE;




    image.png



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信expma金叉死叉连线指标使用技巧 加入收藏