Download MetaTrader 5
To add comments, please log in or register
Post web links to other trader's signals and make profit
veedoo
16
veedoo 2016.09.28 22:26 

Hi,

I'm using Strategy Tester and OrderSend is returning error (148 - The amount of opened and pending orders has reached the limit set by a broker.). My code is ok, I have variable controlling maximum number of open positions and getting errors when I set it grater than 500.
How to override limit for testing ??

Regards

whroeder1
13593
whroeder1 2016.09.28 23:04  
You don't. "the limit set by your broker."
veedoo
16
veedoo 2016.09.29 00:39  
Broker can change the limit per account. Tester works even without login to account.
Fernando Carreiro
1429
Fernando Carreiro 2016.09.29 05:07  
veedoo:
Broker can change the limit per account. Tester works even without login to account.
The Strategy Tester will use the latest parameters from the broker. Even if you then log out, it will use the latest cached values. The only way to change those limits is to login to a different broker with different parameters.

PS! You can however overide some broker parameters by producing your own FXT files with 3rd party tools, but I don't think that maximum number of orders is one of those FXT parameters.
veedoo
16
veedoo 2016.09.29 19:54  

Hey,

Thank you for information. I will check what is default value, make clean MT4 installation and run test without login into any account.

Regards

/
To add comments, please log in or register