您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信知识>>正文内容

压力支撑主图通达信指标公式源码 [通达信]

  • 咨询内容:

    A0:=(L+H+C*2)/4;

    A1:EMA(A0,14)COLORBLUE,LINETHICK2;
    A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
    出击:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;
    逃遁:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORGREEN,LINETHICK2;
    盈10%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.1,DRAWNULL),COLORWHITE,POINTDOT;
    盈20%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.2,DRAWNULL),COLORWHITE,POINTDOT;
    盈30%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORWHITE,POINTDOT;
    盈40%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.4,DRAWNULL),COLORWHITE,POINTDOT;
    盈50%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.5,DRAWNULL),COLORWHITE,POINTDOT;
    铁:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK2;
    律:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK2;
    STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
    STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC; 
    STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF; 
    STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
    STICKLINE(CROSS(0,A1X),C,O,3,0),COLOR00CC00;
    STICKLINE(CROSS(0,A1X),C,O,1,0),COLOR66FF00;
    P:=3;DRAWTEXT_FIX(ISLASTBAR,0,0,0,CODE),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,STKNAME),COLORMAGENTA;
    DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,HYBLOCK),COLORCYAN;
    DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,DYBLOCK),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,GNBLOCK),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0,0.38,0,FGBLOCK),COLORWHITE;

     

     http://www.gushow.com/plus/view.php?aid=3538

     


    此主题相关图片如下1_131112114148_1.png:


     下载信息  [文件大小:   下载次数: ]点击浏览该文件:1-131112114118.rar

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 1145508240  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容