OrderSend() returns error: ERR_NO_RESULT - No error returned

 

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.");
 
Guess: zero LotSize.