Results 1 to 1 of 1
 0 Attachment(s)    

Thread: Return value of 'OrderSelect' should be checked

  1. #1
    Senior Member fxtester's Avatar
    Join Date
    Nov 2008
    Posts
    3,165

    Default Return value of 'OrderSelect' should be checked

    Replace :

    Code:
    OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
    With :

    Code:
    if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true){ 
    // some code for processing your order would go here. 
    }
    Last edited by fxtester; 08-11-2014 at 09:32.

Similar Threads

  1. Return value of 'OrderClose' should be checked
    By fxtester in forum MQL programming
    Replies: 2
    Last Post: 03-18-2017, 13:26
  2. Return value of 'OrderModify' should be checked
    By fxtester in forum MQL programming
    Replies: 0
    Last Post: 08-11-2014, 09:32
  3. Return Modified
    By funyoo in forum Expert advisors backtesting
    Replies: 0
    Last Post: 04-08-2011, 10:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •