Download MetaTrader 5

Strategy Tester number of open positions

To add comments, please log in or register
veedoo
19
veedoo  

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
16274
whroeder1  
You don't. "the limit set by your broker."
veedoo
19
veedoo  
Broker can change the limit per account. Tester works even without login to account.
Fernando Carreiro
3377
Fernando Carreiro  
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
19
veedoo  

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