My EA works fine on historical testing, but it cannot execute trades on VPS.

 

Hello everyone,


I am new with VPS, so let me describe my situation:


- I created my EA by myself and did the test with data in the past, the result is fine.

- My EA has a function to hedge after putting a position in one pair with another pair. For example: Sell EURUSD and hedge with a Buy AUDUSD.

- This function, I expect it will execute 2 trades at the same time.

- I hired a mql5 vps and set up correctly as instructions form 17th Dec.

- Now is 21st Dec, I did the test with data in the past from 17th Dec until now (21st Dec), and realize EA on VPS missed some trades:

- EA runs real-time on VPS from 17th Dec until now: 2 trades 

- EA that is tested with past data (from 17th Dec until now): 7 trades

- The missing trades are mostly the hedging trade.


I don't know what is the problem cause the log on vps didn't announce any errors, and a few trades were still executed. 

I hope that if anyone could help me. Thank you so much.

 

You will need to analyse your EA's code logic and carry out debugging to find out what is causing the issue.

We are unable to do that for you here on the forum.