Error 133

 

with GetLastError() i got Error 133 while trying to open an Order with OrderSend.

Error 133 means "trade is disabled".

What is the solution?

 
options -> Experts -> Allow live trading
 
WHRoeder:
options -> Experts -> Allow live trading

Sorry, but that's not the problem. Live trading was allowed.

Please look at this piece of code:


ticket= OrderSend(Symbol(),OP_BUY,Lots,Ask,
slippage,NULL,NULL,"CS",MagicNumber,0,Blue); //SL, TP=0
Print("OrderSend Error: ", GetLastError(), " !!!!!!!!!!"); //Error message

My broker is a 5 digit broker.

Herm

 
NULL,NULL -> 0,0
 
forexCoder:
NULL,NULL -> 0,0

Sorry, but the problem is different.

Now i tried this

ticket= OrderSend(Symbol(),OP_BUY,Lots,Ask,
slippage,0,0,"CS",MagicNumber,0,Blue); //SL, TP=0


In the Journal i found

2011.05.30 10:13:59 <account>: order buy 0.10 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Trade is disabled]


has anybody an idea?


Herm

 
schiller:

Sorry, but the problem is different.

Now i tried this

ticket= OrderSend(Symbol(),OP_BUY,Lots,Ask,
slippage,0,0,"CS",MagicNumber,0,Blue); //SL, TP=0


In the Journal i found

2011.05.30 10:13:59 <account>: order buy 0.10 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Trade is disabled]


has anybody an idea?


Herm


maybe your broker does not allow trade with Experts? (Yes, they are existing!)
 
EADeveloper:

maybe your broker does not allow trade with Experts? (Yes, they are existing!)

thank you for the hint!

the problem was the broker! He allows EAs.

But i have to use special charts!


herm

 
schiller:

thank you for the hint!

the problem was the broker! He allows EAs.

But i have to use special charts!


herm

I got an Error 133: Trade is Disabled today. Very confusing.

A script was loading up a hedged position, got to 3 open positions then the last positions got this 133 message. AARGH! This is the last thing you want on a hedge. If the other positions don't open your exposure can get large very quickly! Fortunately I was there to kill the three that opened (at a small loss) to buy myself time to figure it out. A 133 error is the Broker's way of saying you can't trade any more. But why? Well on closer inspection it turns out that this was a micro-account with a 2.00 lot maximum of all positions. The first three positions took it right up to this limit. (There were 22 open positions before running the entry script.)

So I have a bit more coding to do to trap this problem. It's nasty because micro accounts are not that easy to detect. Last time I did such a detection I did it by account number, which is very nasty, although minimum tradeable lotsize may be a better test, on reflection.

 
schiller:

thank you for the hint!

the problem was the broker! He allows EAs.

But i have to use special charts!


herm


I have a similar problem. What are "special charts" ?

My broker allows EAs as well. 

 
maxaa:


I have a similar problem. What are "special charts" ?

My broker allows EAs as well. 

There are probably some Instruments you can trade and some you cannot,  are you trying to trade a Symbol that you cannot trade ?  what did your Broker say ?
 

Old thread - I know, but this may help someone;

You can also get error 133 if you accidentally used the investor password!