fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    EA works fine in Backtest but fails on live ECN brokers

    Questions & Answers
    2
    21
    3991
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      iigworld last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        What about settings in MetaTrader 4, Tools -> Options -> Expert Advisors?

        1 Reply Last reply Reply Quote 0
        • I
          iigworld last edited by

          __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

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Well, these errors are response from the server, so I guess the problem is there. Maybe your broker have some things disabled?

            1 Reply Last reply Reply Quote 0
            • I
              iigworld last edited by

              __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

              1 Reply Last reply Reply Quote 0
              • fxDreema
                fxDreema last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • I
                  iigworld last edited by

                  __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.

                  1 Reply Last reply Reply Quote 0
                  • I
                    iigworld last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • fxDreema
                      fxDreema last edited by

                      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?

                      1 Reply Last reply Reply Quote 0
                      • fxDreema
                        fxDreema last edited by

                        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?

                        1 Reply Last reply Reply Quote 0
                        • I
                          iigworld last edited by

                          __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

                          1 Reply Last reply Reply Quote 0
                          • I
                            iigworld last edited by

                            __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.

                            1 Reply Last reply Reply Quote 0
                            • fxDreema
                              fxDreema last edited by

                              I downloaded it and I can see those "+" now, but it's Saturday 😄 If i forget to check this in Monday, write here again.

                              1 Reply Last reply Reply Quote 0
                              • fxDreema
                                fxDreema last edited by

                                I tried this and I got error 4109. Then I unchecked two options and now it works for me: http://prntscr.com/407tlt

                                1 Reply Last reply Reply Quote 0
                                • I
                                  iigworld last edited by

                                  __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.

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    iigworld last edited by

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • fxDreema
                                      fxDreema last edited by

                                      I added 1 minute delay - it works. Why don't you give me some project so I can test it?

                                      1 Reply Last reply Reply Quote 0
                                      • I
                                        iigworld last edited by

                                        __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.

                                        1 Reply Last reply Reply Quote 0
                                        • I
                                          iigworld last edited by

                                          ____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]

                                          http://prntscr.com/408rt0

                                          http://prntscr.com/408s9y

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          Online Users

                                          L
                                          Z
                                          T
                                          T

                                          9
                                          Online

                                          146.9k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors