Thread: Please help !!!
View Single Post
  #1 (permalink)  
Old 11-11-2005, 10:02 AM
yaniv_av yaniv_av is offline
Member
 
Join Date: Oct 2005
Posts: 34
yaniv_av is on a distinguished road
Please help !!!

Hi,

I'm writing the simplest code I can but I always get error "Invalid price" when tring opening a position !!!

ex:
Code:
   if (OrdersTotal() == 1) return;
   
   res=OrderSend(Symbol(),OP_SELL,Lots, Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"",100,0,Red);
      if(res<0)
       {
        Print("OrderSend SELL failed with error: ",GetLastError());
       }
What can be simple than that ???
And always, for all symbols, I get error 129 !!!

Why ???
Reply With Quote