Error 129 with a basic orderSend function New comment Forex Trader 2008.10.07 07:57 Why do I get error 129 in this code? RefreshRates(); if(0 < OrderSend(Symbol(),OP_BUY,LotSize,Bid,SlippageAllowed,0,0,NULL,0,0,Green)) { // do stuff } else { // do other stuff } OrderSend error 129 Help My code is very easy and not works Help.. Error = 129 My script does not work properly Forex Trader 2008.10.07 11:19 #1 You want to Buy on Bid. Try that: RefreshRates(); if(0 < OrderSend(Symbol(),OP_BUY,LotSize,Ask,SlippageAllowed,0,0,NULL,0,0,Green)) { // do stuff } else { // do other stuff } Forex Trader 2008.10.08 01:59 #2 Fantastic. Thank you very much. New comment
Why do I get error 129 in this code?
RefreshRates();
if(0 < OrderSend(Symbol(),OP_BUY,LotSize,Bid,SlippageAllowed,0,0,NULL,0,0,Green))
{
// do stuff
}
else
{
// do other stuff
}