对代码有点帮助 - Page 2
2 頁面的第 562 頁 FirstFirst 12
Results 11 to 13 of 13

Thread: 对代码有点帮助

  1. #11
    1附件
    Quote Originally Posted by ;
    {quote}试试这个// ------------------------------------ ------ ------------------------ /最后N个交易结果// ---------------- -------------------- ------------------------------ int Last_N_trades_result(int depth_trades){int wins = 0; int counts_trades = 0; int total_trades = OrdersHistoryTotal(); for(int i = total_trades; igt; = 0; i--){if(!OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)|| counting_trades = depth_trades)break; if(OrderType()lt; 2){counting_trades ; if(OrderProfit() OrderCommission() OrderSwap()gt; 0)获胜 ; } return(wins); }
    谢谢你,但它对我不起作用

    https://www.forex-pedia.com/attachme...1174942499.mq4

  2. #12
    1附件
    Quote Originally Posted by ;
    {quote}谢谢,但它对我不起作用
    {文件}
    对。我的错。没试过。
    int total_trades = OrdersHistoryTotal();应该是int total_trades = OrdersHistoryTotal() - 1;在这里纠正的一个......
    https://www.forex-pedia.com/attachme...1076221198.mq4

  3. #13
    Quote Originally Posted by ;
    {quote}对。我的错。没试过。
    int total_trades = OrdersHistoryTotal();应该是int total_trades = OrdersHistoryTotal() - 1;这里纠正了一个... {file}
    非常非常专业,非常感谢你

發布權限

  • 您不可發布新主題
  • 您不可回复
  • 您不可發布附件
  • 您不可編輯您的帖子
  •  
  • BB代碼是打開的
  • 表情符號是打開的
  • [IMG]代碼是打開的
  • [視頻]代碼是打開的
  • HTML代碼是關閉的
forex-pedia網站使用cookie 文字跟蹤
forex-pedia.com網站使用cookie 文字跟蹤,某些設定已經固定。您可以點擊此處閱讀我們的Cookie使用說明。 請點擊右鍵接受我們的cookies。如果您選擇繼續使用forex-pedia.com網站,我們將認為您接受我們的cookies。