Help with my EA

Is there someone that can help me with my EA, I can pay a bit if you need. It works in tester, but when I put it live it won’t place an order for some reason.

The first thing to check is the EA properties (F8) - did you enable live trading? Is there a smiley face in the upper right hand corner of the chart that the EA is attached to?

Assuming that the configuration is done properly - did you check the Journal and Experts tabs for errors? OrderSend() will fail if the parameters are wrong; although this should have happened in backtesting as well.

Failing that, you need to place Print() statements in your code before and after the OrderSend() function to check all parameter values.

Hope this helps.:slight_smile:

I would also suggest that you check that the trade logic is compliant with a market execution broker ie SL & TP is entered via OrderModify() rather than with the OrderSend.

The tester cannot differentiate between a market execution broker and an instant execution broker and will therefore test just fine but will not trade when put on an account.

The kind of situation with an ECN would produce a 130 - invalid stop error which is easy to diagnose and fix. If there are no errors, its something more subtle.

That is correct, assuming that there is error handling coded into the EA. It should be noted that error 130 will not be produced by the tester but will be produced on an account.