EA not taking trades unless recently synced
-
Hey guys,
So, I have made a very simple EA, which does exceptionally well in backtesting (on some forex pairs. Not all, ofcourse - makes sense).
In backtest, it makes approximately 1 trade per day - give or take.
Although more forwardtesting needs to be done, it seems to do equally well when trading live. Yay! So far so good.
BUT.... it seems like I need to sync to VPS multiple times a day, for the EA to actually take the live trades even though entry conditions are met.
I've seen it many times now. Happened again just now (1 minute prior to writing this).
It goes like this:
Sync the EA to VPS
Sometime later it looks like entry conditions are met.
Nothing happens......
Sync the EA to VPS again (for the nth time).
Trades immediately placed on 5 pairs.
As mentioned, this is not the first time this happens. Not always the same number of trades being placed, ofcourse, but you get the picture.
This, clearly, is not the point of running an EA on VPS.
Anyone experienced something similar (or identical) and if so, anyone know of an explanation for this behaviour and possibly a solution?
Thanks
-
To me how things work on backtest (not results) it does on live. Maybe a configuration problem, the only way to know is to share a link, but even then may not see a problem.
-
@jstap it looks like this:
https://fxdreema.com/shared/JgmiCz3ISomeone on the mql5 forums suggested that it might be caused by one or more conditions being set as global variables. To me, it doesn't look like that's the case. Would you mind giving it a look?
Thanks
-
I do not see how HA can work without a chosen candle type

I don't think spread is a price fraction

-
@jstap
HA seems to work in that once a trade is entered, it exits just like it's supposed to without any candle type chosen.
That leaves the options of spread not being a price fraction (although it works in back test and, as I mentioned, sometimes just after I sync to VPS). I'll set spread to "as is" and see what happens -
What I will sometimes do is, value 0 adjusted to +MaxSpread pips
-
@jstap
I seem to have it working now. Had change a condition and move the timefilter.
Thank you for helping me rule out some things so I could get my attention pointed in the right direction. -
