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

各位金字塔的客服们辛苦了,小弟麻烦大家看看下面程序哪里有问题!谢谢 [金字塔]

  • 咨询内容:

    他老提示:语句末尾缺少分号 ,大哥大姐们帮忙看看哪里有问题,谢谢。

    DIFF:=EMA(CLOSE,26) - EMA(CLOSE,12);

    DEA:=EMA(DIFF,9);

    MACD:=2*(DIFF-DEA);

    EXMA:=EMA(CLOSE,20);
    VARIABLE:yin6:=6; 
    VARIABLE:yin15:=10;
    VARIABLE:yin20=20;
    VARIABLE:yin30:=30;
    VARIABLE:ying50=50;
    VARIABLE:yin100=100;
    duotou:LAST(CROSS(MACD,0),5,1) AND RANGE(CLOSE,EXMA+2.4,EXMA+4);

    kongtou:LAST(CROSS(0,MACD),5,1)AND RANGE(EXMA,CLOSE+2.4,CLOSE+4);
    IF duotou THEN
    BEGIN
    BUY(duotou,30%,market ,market+0.2 );
    END
    SELL( kongtou,0,market ,marke+0.2 );
    win:=0;
    win6:=0;
    win15:=0;
    win20:=0;
    win30:=0;
    win50:=0;
    win100:=0;
    if holding > 0 and enterbars > 0 then
    BEGIN
    win:=close-enterprice
    if win >= yin6 then 
     yin6:=win;           
     win6:=(yin6-win)/yin6*100;
     if win >= yin15 then yin15:=win; win15:=(yin15-win)/yin15*100;
     if win >= yin20 then yin15:=win; win20:=(yin15-win)/yin20*100;
     if win >= yin30 then yin15:=win; win30:=(yin15-win)/yin30*100;
     if win >= yin50 then yin15:=win; win50:=(yin15-win)/yin50*100;
     if win >= yin100 then yin15:=win; win100:=(yin15-win)/yin100*100;
    end
    止损:SELL(win<=-6,0);
    止赢1:SELL(win6 >= 80 and openprofit > 0, 0);
    止赢2:SELL(win15 >= 40 and openprofit > 0, 0);
    止赢3:SELL(win20 >= 35 and openprofit > 0, 0);
    止赢4:SELL(win30 >= 30 and openprofit > 0, 0);
    止赢5:SELL(win50 >= 25 and openprofit > 0, 0);
    止赢6:SELL(win100 >= 20 and openprofit > 0, 0);

     

  • 金字塔客服:

    各位大哥帮帮忙!!!

     

  • 用户回复: 楼主你不大概说明一下碰到什么问题么?

     

  • 网友回复:

     提示:语句末尾缺少分号

     

  • 网友回复: 提示:语法末尾缺少分号

 

如果以上指标公式不适用于您常用的行情软件

或者您想改编成选股公式,以便快速选出某种形态个股的话,

可以联系我们相关技术人员 QQ: 262069696  点击在线交流进行 有偿 改编!

 


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

相关文章

    没有相关内容