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

    获取历史记录中最近平仓订单的手数和盈利

    老周 LV16
    2017-03-16 · 1972 阅读
    该函数模块能够简洁的获取当前窗口最近平仓的一个订单的手数、盈利及其它相关订单信息。

    1.      int totalorders=HistoryTotal();      
    2.      double histype,hisLots, hisProfit;
    3.      for(poshis=0; poshis<totalorders; poshis++)
    4.      {
    5.          chenggong = OrderSelect(poshis,SELECT_BY_POS,MODE_HISTORY);
    6.          if(OrderSymbol()==Symbol())
    7.          histype=OrderType();
    8.          hisProfit=OrderProfit();
    9.          hisLots=OrderLots();
    10.      }
    复制代码


    ""
    还没有人打赏,支持一下
    回复

    举报

     
    您需要登录后才可以回帖 登录 | 注册

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

    微信二维码

    有问题联系客服