EA on VPS missed trade entry

 

Hello,

I run my EA on VPS and in paralell on the client (with autotrading disabled).

This works fine, but now the EA on the VPS missed a trade entry situation. On the client the EA tried to enter the trade.


The client log shows this entry which indicates that the EA tried to enter the trade:

2020.05.28 17:13:18.584 EA (.DE30CashXE,M1)    -------- Bingo --------  Buy at 11771.1
2020.05.28 17:13:18.584 EA (.DE30CashXE,M1)        Error: ERR_TRADE_DISABLED (4752): Trading by Expert Advisors prohibited
2020.05.28 17:13:18.584 EA (.DE30CashXE,M1)        Error: 10027: Autotrading disabled by client terminal
(-> Timestamps are UTC+1)


VPS Expert Log:
At the same time, no log at all:

2020.05.28 12:31:05.427 EA (.DE30CashXE,M1) New Order - Result: 0
2020.05.29


VPS Jornal Log:

Just technical entries, no Output of the EA:

2020.05.28 16:00:20.892 Terminal        '552562': 1 chart, 1 EA, 0 custom indicators, signal disabled, last known ping to <Name of Bank> is 2.12 ms
2020.05.28 16:00:20.900 Terminal        RAM: 101 Mb reserved, 206 Mb committed
2020.05.28 16:00:32.908 Network         '552562': ping to current access point <Name of Bank> is 2.20 ms [next point <Name of Bank> is 13.33 ms]
2020.05.28 17:00:21.066 Terminal        '552562': 1 chart, 1 EA, 0 custom indicators, signal disabled, last known ping to <Name of Bank> is 2.20 ms
2020.05.28 17:00:21.074 Terminal        RAM: 100 Mb reserved, 207 Mb committed
2020.05.28 17:00:33.084 Network         '552562': ping to current access point <Name of Bank> is 2.22 ms [next point <Name of Bank> is 12.89 ms]
2020.05.28 18:00:07.459 Network         '552562': scanning network for access points
2020.05.28 18:00:19.459 Network         '552562': ping to current access point <Name of Bank> is 2.24 ms [next point <Name of Bank> is 12.94 ms]
2020.05.28 18:00:19.460 Network         '552562': scanning network finished
2020.05.28 18:00:22.037 Terminal        '552562': 1 chart, 1 EA, 0 custom indicators, signal disabled, last known ping to <Name of Bank> is 2.24 ms
2020.05.28 18:00:22.044 Terminal        RAM: 100 Mb reserved, 207 Mb committed
2020.05.28 18:00:34.039 Network         '552562': ping to current access point <Name of Bank> is 2.12 ms [next point <Name of Bank> is 12.96 ms]
2020.05.28 19:00:24.002 Terminal        '552562': 1 chart, 1 EA, 0 custom indicators, signal disabled, last known ping to <Name of Bank> is 2.12 ms
2020.05.28 19:00:24.009 Terminal        RAM: 100 Mb reserved, 207 Mb committed


What could be the reason for this glitch?


Thanks, Thomas

 
If you run EA on Metatrader with autotrading disabled so the EA will not trade (EA will not try to enter the trade).

In case of VPS ... is it MQL5 VPS, right?
If yes so the trades will not be missed (because this MQL5 VPS is the "copy of your Metatrader in cloud").
for more information - read this post:
Virtual hosting for MetaTrader 5
Virtual hosting for MetaTrader 5
  • www.mql5.com
Virtual hosting for MetaTrader 4/5 is the best VPS solution for Forex. It is cheap, it requires no configuration and it features minimum delays to the server. For only 15 USD per month, you obtain a virtual platform that works around the clock, saves your profit and pays off. Create a remote copy of the application directly from the...
 
Sergey Golubev:
If you run EA on Metatrader with autotrading disabled so the EA will not trade (EA will not try to enter the trade).

In case of VPS ... is it MQL5 VPS, right?
If yes so the trades will not be missed (because this MQL5 VPS is the "copy of your Metatrader in cloud").
for more information - read this post:

But it did?

 
Sergey Golubev:
If you run EA on Metatrader with autotrading disabled so the EA will not trade (EA will not try to enter the trade).

In case of VPS ... is it MQL5 VPS, right?
If yes so the trades will not be missed (because this MQL5 VPS is the "copy of your Metatrader in cloud").
for more information - read this post:

Thank you for the fast answer. 

Yes, I use MQL5 VPS:

I run my EA locally just to "see" what my EA is (should) doing on VPS.

In the image you can see that the tail of one candle is below the red line, this is the entry signal. 



My local EA recognized this signal and tried an entry (of course it wasn't allowed to do, because of autotrading is disabled while I'm on VPS with the synchronized copy of this EA).

So far, this happened just once. All other trades have been placed correctly by the EA on VPS.


"...the trades will not be missed (because this MQL5 VPS is the "copy of your Metatrader in cloud")."

Theoretically I agree but practically this trade was missed!

 
Thomas G Glasmensch:

Hello,

I run my EA on VPS and in paralell on the client (with autotrading disabled).

This works fine, but now the EA on the VPS missed a trade entry situation. On the client the EA tried to enter the trade.


The client log shows this entry which indicates that the EA tried to enter the trade:

(-> Timestamps are UTC+1)


VPS Expert Log:
At the same time, no log at all:


VPS Jornal Log:

Just technical entries, no Output of the EA:


What could be the reason for this glitch?


Thanks, Thomas

Have you factored in the difference in latency?

It could be the reason.

 
Nelson Wanyama:

Have you factored in the difference in latency?

It could be the reason.


My ping latencies are:

  • local: ~90 ms
  • VPS: ~2-3 ms

The VPS is much faster. Therefore EA on VPS should enter the trade "much" faster, I think.


 
Thomas G Glasmensch:
...

Theoretically I agree but practically this trade was missed!

In case of we compare the following (same broker etc):

your home Metatrader,
and
"the copy of your Metatrader in cloud" (MQL5 VPS)

so the trades should be missed on your home Metatrader.
Because if you think that some trades were missed on VPS so it may be related to the coding of your EA only.

 
Sergey Golubev:

...

Because if you think that some trades were missed on VPS so it may be related to the coding of your EA only.

An Issue with my infallible code?

"When you have excluded the impossible, whatever remains, however improbable, must be the truth."

;-)

Hm, I think I have to check this again. 


Thank you for the hints and help!

Thomas

 
Thomas G Glasmensch:

An Issue with my infallible code?

"When you have excluded the impossible, whatever remains, however improbable, must be the truth."

;-)

Hm, I think I have to check this again. 


Thank you for the hints and help!

Thomas

What I am trying to say is the following:
this MQL5 VPS is "the copy of your Metatrader in cloud". It is Metatrader (some build) which is more closer to the broker's server (by location).
So, this MQL5 VPS (cloud's Metatrader) should be same with your home Metatrader or much better than your home Metatrader.

The differences may be the following:
- if your EA is some kind of martingale or pyramiding etc so it is important when you provided the migration (when EA started the cycle of trades);
- and the build ... MQL5 VPS (the cloud's Metatrader) may be one build of Metatrader, and your home Metatrader - the other build ..

It may be some other factors ..

Because you are trying to compare two Metatrader instances: one is your home Metatrader, and the other one - your Metatrader in cloud (VPS).

 
Sergey Golubev:

What I am trying to say is the following:
this MQL5 VPS is "the copy of your Metatrader in cloud". It is Metatrader (some build) which is more closer to the broker's server (by location).
So, this MQL5 VPS (cloud's Metatrader) should be same with your home Metatrader or much better than your home Metatrader.

The differences may be the following:
- if your EA is some kind of martingale or pyramiding etc so it is important when you provided the migration (when EA started the cycle of trades);
- and the build ... MQL5 VPS (the cloud's Metatrader) may be one build of Metatrader, and your home Metatrader - the other build ..

It may be some other factors ..

Because you are trying to compare two Metatrader instances: one is your home Metatrader, and the other one - your Metatrader in cloud (VPS).

Good points. 

I don't use martingale or pyramids.

But you are right, the start parameters and the internal conditions must be taken into account. In my case, all internal parameters are independent of the EA start time for entering a trade.

Is there a possibility to check the build of the MQL5 VPS Metatrader?

 
Thomas G Glasmensch:
...

Is there a possibility to check the build of the MQL5 VPS Metatrader?

I do not have MQL5 VPS now but as I know - it should be written on VPS logs or in VPS tab.