您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

请帮忙修改! [文华财经]

  • 咨询内容:   您好!请帮忙修改,如图中所示修改,谢谢!



    文件名:赢顺截图20180912113438a.jpg

    DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,RGB(201,74,249),COLORGREEN),LINETHICK1;DEA  : EMA(DIFF,9),RGB(0,128,255);MACD:=2*(DIFF-DEA),COLORSTICK,NOTEXT;
    N1:=BARSLAST(CROSS(DIFF,DEA)&&DIFF>0&&DEA>0)+1;N2:=BARSLAST(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0)+1;N3:=BARSLAST(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0)+1;N4:=BARSLAST(CROSSDOWN(DIFF,DEA)&&DIFF<0&&DEA<0)+1;N5:=BARSLAST(CROSSDOWN(DIFF,0)&&DIFF<0)+1;N6:=BARSLAST(CROSS(DIFF,0)&&DIFF>0)+1;A:=MIN1(N1,N2,N3,N4,N5,N6);STICKLINE1(N1=A||N6=A,0,MACD,2,0),RGB(255,0,128);//0上金叉STICKLINE1(N2=A,0,MACD,2,0),COLORCYAN;//0上死叉STICKLINE1(N3=A,0,MACD,2,0),RGB(213,135,83);//0下金叉STICKLINE1(N4=A||N5=A,0,MACD,2,0),RGB(0,159,0);//0下死

     

     来源:程序化99

  • 文华技术人员:

     参考:

     

    DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
    DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,RGB(201,74,249),COLORGREEN),LINETHICK1;
    DEA  : EMA(DIFF,9),RGB(0,128,255);
    MACD:=2*(DIFF-DEA),COLORSTICK,NOTEXT;


    N1:=BARSLAST(CROSS(DIFF,DEA)&&DIFF>0&&DEA>0)+1;
    N2:=BARSLAST(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0)+1;
    N3:=BARSLAST(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0)+1;
    N4:=BARSLAST(CROSSDOWN(DIFF,DEA)&&DIFF<0&&DEA<0)+1;
    N5:=BARSLAST(CROSSDOWN(DIFF,0)&&DIFF<0)+1;
    N6:=BARSLAST(CROSS(DIFF,0)&&DIFF>0)+1;
    A:=MIN1(N1,N2,N3,N4,N5,N6);
    STICKLINE1(DIFF>DEA&&DIFF>0,0,MACD,2,0),RGB(255,0,128);//0上金叉
    STICKLINE1(DIFF<DEA&&DIFF>0,0,MACD,2,0),COLORCYAN;//0上死叉
    STICKLINE1(DIFF>DEA&&DIFF<0,0,MACD,2,0),RGB(213,135,83);//0下金叉
    STICKLINE1(DIFF<DEA&&DIFF<0,0,MACD,2,0),RGB(0,159,0);//0下死

 

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

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


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

相关文章

    没有相关内容