Download MetaTrader 5

Error 133

To add comments, please log in or register
schiller
41
schiller  

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

Error 133 means "trade is disabled".

What is the solution?

whroeder1
16105
whroeder1  
options -> Experts -> Allow live trading
schiller
41
schiller  
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

forexCoder
507
forexCoder  
NULL,NULL -> 0,0
schiller
41
schiller  
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

rv
461
rv  
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!)
schiller
41
schiller  
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

dabbler
1102
dabbler  
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.

achilleas
3
achilleas  
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. 

Simon Gniadkowski
Moderator
18036
Simon Gniadkowski  
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 ?
Roel
490
Roel  

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

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

12
To add comments, please log in or register