EA works fine in Backtest but fails on live ECN brokers
-
I have a simple EA that is set to open trades at a specified time with a TP & SL. It works fine when backtesting. It even works on live non ECN accounts but when it attempts to trade on ECN account it doesn't open the trade I get: New order error: Trade is disabled (133) on one broker and then on a different ECN broker: New order error: Shorts are not allowed in the expert properties (4111) & : New order error: Not enough money (134). Tried changing lot sizes & SL still no success on the ECN Platforms. Please Help!
-
What about settings in MetaTrader 4, Tools -> Options -> Expert Advisors?
-
__What about settings in MetaTrader 4, Tools -> Options -> Expert Advisors?[/quote:1ax4h4ua]
Thanks for the prompt reply, great program by the way. I have checked options and everything is in order. Allow live trading is checked and I even deselected the other options related to disabling for profile and account changes allow external exports import and tried, same error message whether these options are checked or unchecked. Just for the record the EA works fine on the standard spread account but when it comes to the ECN something is preventing the orders. I have tried reducing the EA to its simplest time component and their still seems to be some fundamental problem with the ECN excepting the orders. I'm running Build 646
-
Well, these errors are response from the server, so I guess the problem is there. Maybe your broker have some things disabled?
-
__Well, these errors are response from the server, so I guess the problem is there. Maybe your broker have some things disabled?[/quote:2ncru2g6]
Ok Thanks will see if I can speak with the brokers tech support and also see if anyone on th mql4 forum has a clue -
I receive reports and questions every day, no one reported something like this soon

The native function OrderSend() is used, and if something is wrong with the EA itself, the error will be something like "Invalid stops". "Trade is disabled" is somehow different. There are some rules and limits when sl or tp are too close to the current price, but I think errors should be different than these. Check if everything is ok with "No trade is running -> Buy now", both with default settings (big enough stops)
Also you can check some EA that comes from internet, not from fxDreema. I almost believe that the problem is not in the code, but I might be wrong.
-
__I receive reports and questions every day, no one reported something like this soon

The native function OrderSend() is used, and if something is wrong with the EA itself, the error will be something like "Invalid stops". "Trade is disabled" is somehow different. There are some rules and limits when sl or tp are too close to the current price, but I think errors should be different than these. Check if everything is ok with "No trade is running -> Buy now", both with default settings (big enough stops)
Also you can check some EA that comes from internet, not from fxDreema. I almost believe that the problem is not in the code, but I might be wrong.[/quote:3jrgr86z]
Downloaded some other EAs and they work fine. I also noticed that when I close the platform and reopen it that is the only time that the FX Dreema EA will execute the trade.
-
I think that I have found the problem, I got this message from the brokers tech support:
**Hi iigworld,
Thank you for your email.
You mentioned that your demo account is a RAW demo account.
Raw accounts use the + symbol i.e. AUD/USD+ instead of AUD/USD.
Your EA might be trying to trade the standard spread pairs which is disabled on RAW accounts.
You should contact your EA provider and ask them what you should do to correct the programing.
**Kind Regards,
Michael Firth | Trading
It seems that both of the brokers I am using have added symbols to the currency pairs one adds + ie EUR/USD+ and the other adds a period ie EUR/USD. and this I think is causing problems for the EA. Is there any way to work this out?
Thanks again.
-
What project are you using? I can see in your account directly, so it's enough to tell me it's name.
Some error logs in details? -
If those "+" are the problem, can you tell me that brokers or some input data, so I can check and fix it on my side?
-
__What project are you using? I can see in your account directly, so it's enough to tell me it's name.
Some error logs in details?[/quote:3gtsi8e3]
RSIOpentime14 -
__If those "+" are the problem, can you tell me that brokers or some input data, so I can check and fix it on my side?[/quote:2bws8etd]
Vantage FX is using the + sign on their ECN (EUR/USD+) and MB Trading is using the . (EUR/USD.) on Theirs. -
I downloaded it and I can see those "+" now, but it's Saturday
If i forget to check this in Monday, write here again. -
I tried this and I got error 4109. Then I unchecked two options and now it works for me: http://prntscr.com/407tlt
-
__I tried this and I got error 4109. Then I unchecked two options and now it works for me: http://prntscr.com/407tlt[/quote:1zatglnt]
Thanks for the reply. The real issue that Im having is with the live account, it works fine for me as well on the demo account but not for live trading. -
If you to run the EA in realtime setting the entry time for a few minutes after the current time and wait for it to execute at the the set time it returns an error message at that time in the Experts Log & Journal.
-
I added 1 minute delay - it works. Why don't you give me some project so I can test it?
-
__I added 1 minute delay - it works. Why don't you give me some project so I can test it?[/quote:2937dg4v]
I just PM you the project example. -
____I added 1 minute delay - it works. Why don't you give me some project so I can test it?[/quote:214beq27]
I just PM you the project example.[/quote:214beq27]