您现在的位置:程序化交易>> 期货公式>> 金字塔等>> 金字塔知识>>正文内容

请版主把公式改成交易策略.... [金字塔]

  • 咨询内容:

    原一目均衡图,经过本人小修改,请版主大人改成图表交易策略,谢谢!!


    RUNMODE:1;
    AA:=(HHV(HIGH,120)-LLV(LOW,120))/30,LINETHICK;
    Var1:=(2*CLOSE+HIGH+LOW)/4;
    转换线:(HHV(HIGH,n1)+LLV(LOW,n2))/2,coloraaff99,LINETHICK;
    基准线:(LLV(LOW,n6)+HHV(HIGH,n7))/2,colorff6dd8,LINETHICK;
    先行带A:REF((转换线+基准线)/2,n4),COLORYELLOW,LINETHICK;
    先行带B:REF((HHV(HIGH,n3)+LLV(LOW,n8))/2,n5),color909090;
    STICKLINE(先行带A<先行带B,先行带A,先行带B,2,1.5),COLOR339933;
    STICKLINE(先行带A>=先行带B,先行带A,先行带B,2,0.1),COLOR0033CC;

     

    DRAWTEXT(CROSS(转换线,基准线) AND Var1>MAX(先行带A,先行带B),LOW-AA*0.5,'▲\n▲\n▲\n▲\n▲'),COLORred,ALIGN0;
    DRAWTEXT(CROSS(基准线,转换线) AND Var1<MIN(先行带A,先行带B),MAX(基准线,HIGH)+AA*2,'▼\n▼\n▼\n▼\n▼'),COLORFF9966,ALIGN0;
    {阴柱}
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
    {红柱}
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;

     

     

     

    系统只做多,要求是当图表显示向上箭头出现时买人,向下时平仓。用在多笔线图上

     

  • 金字塔客服:

    把参数的数值定义下

     

  • 用户回复:

    RUNMODE:1;
    AA:=(HHV(HIGH,120)-LLV(LOW,120))/30,LINETHICK;
    Var1:=(2*CLOSE+HIGH+LOW)/4;
    转换线:(HHV(HIGH,1)+LLV(LOW,4))/2,coloraaff99,LINETHICK;
    基准线:(LLV(LOW,100)+HHV(HIGH,2))/2,colorff6dd8,LINETHICK;
    先行带A:REF((转换线+基准线)/2,10),COLORYELLOW,LINETHICK;
    先行带B:REF((HHV(HIGH,10)+LLV(LOW,10))/2,n5),color909090;
    STICKLINE(先行带A<先行带B,先行带A,先行带B,2,1.5),COLOR339933;
    STICKLINE(先行带A>=先行带B,先行带A,先行带B,2,0.1),COLOR0033CC;

     

    DRAWTEXT(CROSS(转换线,基准线) AND Var1>MAX(先行带A,先行带B),LOW-AA*0.5,'▲\n▲\n▲\n▲\n▲'),COLORred,ALIGN0;
    DRAWTEXT(CROSS(基准线,转换线) AND Var1<MIN(先行带A,先行带B),MAX(基准线,HIGH)+AA*2,'▼\n▼\n▼\n▼\n▼'),COLORFF9966,ALIGN0;
    {阴柱}
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
    {红柱}
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;

     

  • 网友回复: N5是多少?

     

  • 网友回复: 用10,谢谢

 

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

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


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

相关文章

    没有相关内容