[Orders limit reached] Validation Error

 

Hi everyone

I'm keeping getting this error and I don't know why.

Tried to search in the forum but didn't found a clear answer, hope someone can help.

Thank you!

test on EURUSD,H1 (netting)
there are no trading operations
test on XAUUSD,D1 (netting)
there are no trading operations
test on GBPUSD,M30 (netting)
 2019.02.01 01:00:00   failed buy stop 0.1 GBPUSD at 1.31270 sl: 1.29954 [Orders limit reached]
 2019.02.01 01:00:00   failed buy stop 0.1 GBPUSD at 1.31673 sl: 1.31541 tp: 1.33011 [Orders limit reached]
 2019.02.01 01:00:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31438 [Orders limit reached]
 2019.02.01 01:30:00   failed buy stop 0.1 GBPUSD at 1.31270 sl: 1.29970 [Orders limit reached]
 2019.02.01 01:30:00   failed buy stop 0.1 GBPUSD at 1.31673 sl: 1.31541 tp: 1.32992 [Orders limit reached]
 2019.02.01 01:30:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31461 [Orders limit reached]
 2019.02.01 02:00:00   failed buy stop 0.1 GBPUSD at 1.31259 sl: 1.29978 [Orders limit reached]
 2019.02.01 02:00:00   failed buy stop 0.1 GBPUSD at 1.31459 sl: 1.31328 tp: 1.32759 [Orders limit reached]
 2019.02.01 02:00:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31485 [Orders limit reached]
 2019.02.01 02:30:00   failed buy stop 0.1 GBPUSD at 1.31259 sl: 1.29997 [Orders limit reached]
 2019.02.01 02:30:00   failed buy stop 0.1 GBPUSD at 1.31459 sl: 1.31328 tp: 1.32736 [Orders limit reached]
 2019.02.01 02:30:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31511 [Orders limit reached]
 2019.02.01 03:00:00   failed buy stop 0.1 GBPUSD at 1.31334 sl: 1.31203 tp: 1.32594 [Orders limit reached]
 2019.02.01 03:00:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31528 [Orders limit reached]
 2019.02.01 03:30:00   failed buy stop 0.1 GBPUSD at 1.31337 sl: 1.29892 tp: 1.32622 [Orders limit reached]
 2019.02.01 03:30:00   failed buy stop 0.1 GBPUSD at 1.31249 sl: 1.30018 [Orders limit reached]
 2019.02.01 03:30:00   failed buy stop 0.1 GBPUSD at 1.31334 sl: 1.31203 tp: 1.32576 [Orders limit reached]
 2019.02.01 03:30:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31546 [Orders limit reached]
 2019.02.01 04:00:00   failed buy stop 0.1 GBPUSD at 1.31241 sl: 1.30017 [Orders limit reached]
 2019.02.01 04:00:00   failed buy stop 0.1 GBPUSD at 1.31518 sl: 1.31386 tp: 1.32753 [Orders limit reached]
 2019.02.01 04:00:00   failed buy stop 0.1 GBPUSD at 1.32083 sl: 1.31549 [Orders limit reached]
strategy tester report 534 total trades
 

I see that the validator has only EURUSD, GBPUSDU and XAU.

Is there anything else where I can test on?

Because I must specify the symbol in my EA otherwise it will not trade.


Thank you!

 
 
Thank you.

So it refers to maximum pending orders right?
What is the maximum actual number?
Regarding of the market available for testing are only those 3 mentioned above?
 
Davide Marrone #: So it refers to maximum pending orders right? What is the maximum actual number?
  1. Right. fxsaber gave you the link. Read it.

  2. There is no need to create pending orders in code.

    1. The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)

      Don't worry about it unless you're scalping M1 or trading news.

    2. Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.

 
Davide Marrone #: But still my questions have not been answer such as what is the maximum amount of pending orders possible a

Yes it has. If you clicked on ACCOUNT_LIMIT_ORDERS, you would see that that is an ENUM_ACCOUNT_INFO_INTEGER, to be used with AccountInfoInteger(). Code the call to get the value. What is your problem?

 
William Roeder #:

Yes it has. If you clicked on ACCOUNT_LIMIT_ORDERS, you would see that that is an ENUM_ACCOUNT_INFO_INTEGER, to be used with AccountInfoInteger(). Code the call to get the value. What is your problem?

When I test my portfolio of EAs into MT4 or 5 I don't have any error regarding this Order Limit Reached, nor any other error..

Only on the validator before publish it I'm receiving such warning..

 
Davide Marrone #:

Only on the validator before publish it I'm receiving such warning..

The validator specifically emulates different broker parameter values to make sure the EA handles all situations correctly.

 
Davide Marrone:

Hi everyone

I'm keeping getting this error and I don't know why.

Tried to search in the forum but didn't found a clear answer, hope someone can help.

Thank you!

Check if the orders limit is reached before opening new orders and return 0. It differs with different brokers. If a broker has 0, you also need to deal with that.