Help needed. Live trading not working on VPS or locally
-
Hey folks,
I hope you can help me out, because I'm at a loss here.
Here's my problem:
I make an EA on fxdreema (I can't code). Simple trading strategy, nothing fancy, involving some EMAs and price breaking though one of them by some minimum distance. Simple trade management with a trailing stop being triggered at X amount of profit. Simple, nothing fancy or overly complex.
Multiple backtests in MT4 on 2 instruments and 2 timeframes. EA performs beatifully.
Apply EA to chart. Tick AllowLivetrading. Untick AllowDllimport. Allow trading in both directions
Backtest again from charts. Beatiful performance
Migrate succesfully to VPS.
VPS started. Ping distance to broker appr. 1 millisecond.Watch the charts in realtime, see entry conditions clearly being met aaaaaand..
Nothing. No trades are being taken on VPS.
Stop VPS. Allow live trading locally.
Watch charts in realtime. See entryconditions clearly being met.Nothing. No trades placed locally either.
Try all of the above several times, also with alternative entry conditions and money management.
Backtest working fine each time.
Livetrading... nothing. No trades placed either on VPS or locally.
At no point, any sign of errors or other explanations (that I can identify) in journals and logs.
What am I missing?
Thank you
-
If backtest is working fine, then there probably isn't much I can help with, if I can see the set up then I might see the problem.
-
You could write a simple EA that takes a trade every bar with a 0.01 lot size. See if that executes, if so, you know that EA's are working correctly on MT5. If not, then you might have found the issue. Outside of that, we'd have to see your EA to know what the issue might be.
-
Thanks for your input. So, a development in the story. The EA just made a trade on one of the instruments I have it attached to and running on VPS. So that's cool. So it seems the code might be ok, although it also seems to me that it should making more trades. If not the code, then what could cause an EA to enter on some of the times entry conditions are met?
How should I share the EA? As MQL4? Here? That would be a pretty long post -
Ok. this could end up being quite embarrasing. Anohter trade just taken. Entry point still looks wrong to me on the charts, though. I can think of two explanations at this point. Either the issue could be a latency thing or it could be me simply reading the charts wrong. Will post updates when I know more.
-
This is a dumb question, but are you running the EA on the same broker that you tested on? There can be a significant difference between brokers, but the EA should NOT read the charts differently in any case.
-
So, it looks like the EA is actually working as it is supposed to and just me being impatient.