Got a 136 error on a live VPS account but not on a Demo account running at the same time.

 

I'm not sure how to debug this, or what to do about it. I am also not 100% certain what a 136 error is. I think it means my EA requested quote but non was given. I would have thought the real lVPS setup would have been the one that worked and not the demo account running from my PC.

Here is the Setup I was using. Same EA, same chart EURUSD 5 min. The failed trade was on the VPS acct. The trade that worked was on a demo account with same dealer.

I was running like this because this was my first time using the VPS, and it was a real account. I had been running this EA on demo account for several weeks. I wanted to make sure my EA was working the same on the VPS as the EA did on my demo acct. I figured I would run them together and get 2x the e-mails, notifications and log files. That would be a good bit of info to compare with each other. Everything was working fine until the first trade this morning. I have cut the relevant section out of both of the logfiles. Before I chat with a tech support person at my dealer I would like some advice if anyone has any.

This EA is running on multiple pairs. The pair that has the error is EURUSD.

Here is the a piece of the logfile from the failed VPS trade:

00:57:40 FXCM MT4 4.00 build 406 started (FXCM Liquidity Connection)
00:57:45 Expert Invictus_v2.7 EURUSD,M5: loaded successfully
00:57:45 Expert Invictus_v2.7 EURCHF,M5: loaded successfully
00:57:45 Expert Invictus_v2.7 EURAUD,M5: loaded successfully
00:57:47 'xxxxxxxxxx': login
00:57:48 'xxxxxxxxxx': login
00:57:51 'xxxxxxxxxx': login
00:57:51 'xxxxxxxxxx': login
00:57:53 Mail: 'EURAUD INFO from Invictus_v2.7' has been sent
00:57:53 Mail: 'EURCHF INFO from Invictus_v2.7' has been sent
00:57:54 Mail: 'EURUSD INFO from Invictus_v2.7' has been sent
03:00:05 Mail: 'EURCHF INFO from Invictus_v2.7' has been sent
09:19:44 Old tick EURAUD5 1.38293/1.38333
11:00:05 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
11:00:05 'xxxxxxxxxx': request was accepted by server
11:00:05 'xxxxxxxxxx': request in process
11:00:07 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:00:07 Mail: 'EURAUD INFO from Invictus_v2.7' has been sent
11:00:08 Expert stdlib EURUSD,M5: loaded successfully
11:00:12 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
........
11:01:12 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:01:12 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
........  trying to shorten post just repeats of failing trades
11:01:50 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:01:52 Mail: 'EURUSD ERROR from Invictus_v2.7' has been sent
11:01:52 Mail: 'EURUSD ERROR from Invictus_v2.7' has been sent
11:05:01 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
11:05:01 'xxxxxxxxxx': request was accepted by server
................
11:05:12 'xxxxxxxxxx': request in process
11:05:12 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:05:24 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
11:05:24 'xxxxxxxxxx': request was accepted by server
11:05:24 'xxxxxxxxxx': request in process
11:05:25 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:05:26 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
11:05:26 'xxxxxxxxxx': request was accepted by server
11:05:26 'xxxxxxxxxx': request in process
11:05:26 'xxxxxxxxxx': order sell 0.13 EURUSD opening at 0.00000 sl: 0.00000 tp: 0.00000 failed [Off quotes]
11:05:29 'xxxxxxxxxx': order sell market 0.13 EURUSD sl: 0.00000 tp: 0.00000
11:05:29 'xxxxxxxxxx': request was accepted by server
11:05:45 'xxxxxxxxxx': request in process
   .........

This is a snippet from the expert tab aqt the same time, on the VPS.

2011.10.03 21:00:00     Invictus_v2.7 EURAUD,M5: SendMsg() Invictus_v2.7:OpenHour has passed, trading open.
2011.10.03 17:00:33     Invictus_v2.7 EURUSD,M5: SendMsg() Invictus_v2.7:OpenHour has passed, trading open.
2011.10.03 14:00:02     Invictus_v2.7 EURUSD,M5: SendMsg() Invictus_v2.7:CloseHour has passed,trading has ended for the day.
2011.10.03 14:00:00     Invictus_v2.7 EURCHF,M5: SendMsg() Invictus_v2.7:CloseHour has passed,trading has ended for the day.
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: SendMsg() Invictus_v2.7:Open_Orders() failed in trade direction check logs
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: InternalOrderSend Invictus_v2.7:last error: 136:off quotes
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: InternalOrderSend Invictus_v2.7:failed trade: OP_SELL EURUSD@1.32505000 tp@0.00000000 sl@0.00000000
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: InternalOrderSend Invictus_v2.7:failed to execute OP_BUY/OP_SELL, after 11 retries
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: InternalOrderSend Invictus_v2.7:retry attempts maxed at 10
2011.10.03 11:06:06     Invictus_v2.7 EURUSD,M5: InternalOrderSend Invictus_v2.7:non-retryable error: 136:off quotes

Here is the same section of the logfile from the demo account:

01:02:26 Expert Invictus_v2.7 EURUSD,M5: loaded successfully
01:02:54 Expert Invictus_v2.7 EURCHF,M5: loaded successfully
01:04:47 Expert Invictus_v2.7 EURAUD,M5: loaded successfully
02:59:30 Mail: 'EURCHF INFO from Invictus_v2.7' has been sent
08:47:25 '2089375625': login
08:47:26 '2089375625': login
08:47:37 '2089375625': login
08:47:38 '2089375625': login
10:59:28 Mail: 'EURAUD INFO from Invictus_v2.7' has been sent
10:59:30 '2089375625': order sell market 0.16 EURUSD sl: 0.00000 tp: 0.00000
10:59:30 '2089375625': request was accepted by server
10:59:30 '2089375625': request in process
10:59:30 '2089375625': order was opened : #58002364 sell 0.16 EURUSD at 1.32728 sl: 0.00000 tp: 0.00000
10:59:30 '2089375625': modify order #58002364 sell 0.16 EURUSD at 1.32728 sl: 0.00000 tp: 0.00000 -> sl: 1.33112 tp: 1.32188
10:59:31 '2089375625': request was accepted by server
10:59:31 '2089375625': request in process
10:59:31 '2089375625': order #58002364 sell 0.16 EURUSD at 1.32728 was modified -> sl: 1.33112 tp: 1.32188
10:59:31 '2089375625': pending order sell stop 0.15 EURUSD at 1.32708 sl: 0.00000 tp: 0.00000
10:59:31 '2089375625': request was accepted by server
10:59:31 '2089375625': request in process
10:59:31 '2089375625': order was opened : #58002385 sell stop 0.15 EURUSD at 1.32708 sl: 0.00000 tp: 0.00000
10:59:31 '2089375625': modify pending order #58002385 sell stop 0.15 EURUSD at 1.32708 sl: 0.00000 tp: 0.00000 -> price: 1.32708 sl: 1.33112 tp: 1.32188
10:59:31 '2089375625': request was accepted by server
10:59:31 '2089375625': request in process
10:59:31 '2089375625': pending order #58002385 sell stop 0.15 EURUSD was modified -> price: 1.32708 sl: 1.33112 tp: 1.32188
10:59:31 '2089375625': pending order sell stop 0.15 EURUSD at 1.32678 sl: 0.00000 tp: 0.00000
10:59:31 '2089375625': request was accepted by server
10:59:31 '2089375625': request in process
10:59:31 '2089375625': order was opened : #58002397 sell stop 0.15 EURUSD at 1.32678 sl: 0.00000 tp: 0.00000
10:59:31 '2089375625': modify pending order #58002397 sell stop 0.15 EURUSD at 1.32678 sl: 0.00000 tp: 0.00000 -> price: 1.32678 sl: 1.33112 tp: 1.32188
........
20:35:55 FXCM MT4 4.00 build 224 started (FXCM Liquidity Connection)
20:35:56 FXCM MT4 4.00 build 224 stopped

My first thought is this trade happened to go off at 11:00 am. Maybe the ISM numbers dried up liquidity for a few seconds/30 seconds. I have a retry for this error and it tried to execute the trade again many times over the course of a few minutes. I would have thought one of those would have worked.

Also there is a line in the logfile only on the VPS account (11:00:08 Expert stdlib EURUSD,M5: loaded successfully) right in the middle of the trade attemps. Did the chart reload or something I have not seen this before?

Any help would be appreciated.

 
Here's a discussion on error 136. Sounds to me like Liquidity dried up for more than a few minutes. Demo accounts don't need a trader on the other side of the trade.
 
ubzen:
Here's a discussion on error 136. Sounds to me like Liquidity dried up for more than a few minutes. Demo accounts don't need a trader on the other side of the trade.

Thanks ubzen, I just lost another 5 trades on a different pair, EURAUD. So far 15 trades all winners since last night. I don't even want to think about the % gain I would have had in my real account. Very frustrating.
 
ubzen:
Here's a discussion on error 136. Sounds to me like Liquidity dried up for more than a few minutes. Demo accounts don't need a trader on the other side of the trade.


Ugh!, its my code. I am doing a RefreshRates() but I am using a varialbe, price instead of Ask or Bid on my OrderSend(). So I am refreshing the rates but not moving the new value to my price variable. I hope that will fix it.

I think I know what to do with the Expert stdlib load issue as well https://www.mql5.com/en/forum/114701 I'll try and compile it on the VPS machine.

Reason: