EA not closing trades on live account

 

I've created an expert advisor that works great on demo but bot closing the trades on a live.


When i back test it on using the MT strategy tester, it shows that it works great, exactly as how it was programed to do.

When forward testing on a demo, it works great, exactly as how it is suppose to do aswell.

However when i place the ea on a live account, it open the trade, but do not close it when it is suppose to.


The condition for closing the trade is the opposite for opening one. vise versa. 


But logically thinking, since it works on a demo and backtest, the EA would not be the problem. But i could be wrong.

After checking the journal, it states:

2021.10.03 08:20:00.207 Synthetic Expert (Boom 1000 Index,M5) Order(Synthetic Expert) not sent, maximum reached


2021.10.03 08:22:13.196 Synthetic Expert (Boom 1000 Index,M5) Order(Synthetic Expert) not sent, hedging not allowed


As stated above the condition for closing a trade is the opposite for opening one. So as one trade close, another opens. Maxiumum number of allowed trade is 2. 1 buy and 1 sell.

But these journal logs are about opening trades (which is not the error,) rather than closing them (which is the issue)


Could someone please help me with this issue. Is there something that i am missing or something that i havent done that i was suppose to do?

 
Rhasann Rhomonn Gavin Hamilton:

2021.10.03 08:22:13.196 Synthetic Expert (Boom 1000 Index,M5) Order(Synthetic Expert) not sent, hedging not allowed

Do you know the difference between netting accounts (yours?) and hedging accounts (your EA semms to be made for?)?

Show your code sending the orders.

 

Change your broker, worked for me.

I personally run 2 strategies each with its own broker. its one of those things in trading whereby you "diversify"' in order to accommodate the plan.

Good luck and go get em.