📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

    有个括号的地方一直发出错误请帮忙改正

    淘客 LV16
    2013-08-10 · 3722 阅读
      buy(0.01,20,500,"buy",0);
       sell(0.01,20,500,"sell",0);
       return(0);
      }
    int BUY(int sun,int ying,string comment,int magic)
      {
       int com=0;
       int ticket=0;
       for(int i=0;i<OrdersTotal();i++)
         {  
            if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)=true}
              {  
                 if(ordercomment() ==comment)
                   {
                      com=1;
                   }                              
               }
         }
       //if(com=0)
    QQ截图20130810191123.png

      {
            ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,30,Ask-sun*Point,Ask+ying*Point,comment,magic,0,Green)<0,Red);
         }
         return(0);
      }   这里出错误了
    int SELL(double,int sun,int ying,string comment,int magic)
      {
       int com=0;
       int ticket=0;
       for(int i=0;i<OrdersTotal();i++)
         {  
            if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)=true}
              {  
                 if(ordercomment() ==comment)
                   {
                      com=1;
                   }                              
               }
         }
       if(com=0)
         {
            ticket=OrderSend(Symbol(),OP_SELL,Lots,Ask,30,Bid+sun*Point,Bid-ying*Point,comment,magic,0,Green)<0,Red);
         }
        return(ticket);
      }   
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 3 个

    Ryanwang LV4

    发表于 2014-12-18 12:02:27 | 显示全部楼层

    看看怎么样

    在劫难逃 LV3

    发表于 2014-12-18 12:08:47 | 显示全部楼层


    呵呵

    爱的解脱书 LV0

    发表于 2014-12-27 22:36:50 | 显示全部楼层

    支持楼主
    您需要登录后才可以回帖 登录 | 注册

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服