Download MetaTrader 5

OrderSend() returns error: ERR_NO_RESULT - No error returned

To add comments, please log in or register
brettosm8
241
brettosm8  

Hi there,

When I run the below code I get error code 1 i.e. ERR_NO_RESULT - No error returned, but the result is unknown.  Would appreciate any advice as to how to resolve that.

Cheers, B.


Ticket1=OrderSend(Symbol(),OP_BUYSTOP,LotSize,EntryLevel,3,SL,TP1,NULL,0,0);

            if(Ticket1==-1)
            {
                Print("Error: "+GetLastError());
            }
            else Print("Ticket1: "+Ticket1+" sent.");
whroeder1
14779
whroeder1  
Guess: zero LotSize.
To add comments, please log in or register