fxDreema

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

    GTC

    Questions & Answers
    2
    18
    2657
    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.
    • F
      flaavio last edited by

      I am getting the following error:

      OrderCheck() failed: Invalid Expiration (10022)

      I found out that this happens because the market I am trying to trade (WINJ15) accepts only 'Today' for expiration, not 'GTC'.

      How to fix this? Should I use MetaEditor to replace all GTC's by DAY's and then compile?

      Or there is a way in fxDreema?

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

        For pending orders you can change this.
        For positions the expiration is always set to 0, because there is no expiration for positions anyway. There is another property for the request type_time, but according to the documentation this is only used for pending orders https://www.mql5.com/en/docs/constants/ ... aderequest
        I'm not really convinced to change something in the code only because some weird market name with weird rules 🙂

        1 Reply Last reply Reply Quote 0
        • F
          flaavio last edited by

          I am using pending orders and "close positions".

          Even setting expiration as "Today" in fxdreema I have GTC in the code.

          I am not very skilled with the code, then I would ask the following:

          Can I simply open the .mq5 file with MetaEditor and replace all "GTC" with "DAY" and then compile? I don't mind in doing that, if it works.

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

            To be honest, I have no idea what will help. MT5 is full of problems by itself, so what happens when we add fancy market name. At least tell me what is this broker that you are using.

            1 Reply Last reply Reply Quote 0
            • F
              flaavio last edited by

              This is future IBOVESPA, Brazilian stock exchange index. You probably will find something if you google it.

              I understand that fxDreema was designed for forex and I am trading something else.

              I will do some research, learn more about MQL5, and find a way.

              1 Reply Last reply Reply Quote 0
              • F
                flaavio last edited by

                No easy way.

                I found that I would need to go really deep on MQL5 or hire someone to help me, and if this is the case I don't need fxdreema.

                Maybe for backtesting, not for real world.

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

                  What is your broker name?

                  1 Reply Last reply Reply Quote 0
                  • F
                    flaavio last edited by

                    XP

                    www.xpi.com.br

                    1 Reply Last reply Reply Quote 0
                    • F
                      flaavio last edited by

                      I am preparing something else to try when the market opens.

                      Will try DEAL instead of PENDING orders, and replace all instances of _GTC for _DAY

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

                        XP, what a name 🙂 Some hint how to find this broker in "Open an Account" when I already have MT5 installed?

                        1 Reply Last reply Reply Quote 0
                        • F
                          flaavio last edited by

                          XPMT5-PRD

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

                            I found it, but I stuck here: http://prntscr.com/6iltuk
                            Can you give me some demo login data 😕

                            1 Reply Last reply Reply Quote 0
                            • F
                              flaavio last edited by

                              Look, in demo account all works well.

                              Doing backtest, at least.

                              Problem happens only when sending real orders.

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

                                When you backtest, there is no communication with the server, so the broker does not matter. Just give me some demo account 🙂

                                1 Reply Last reply Reply Quote 0
                                • F
                                  flaavio last edited by

                                  Sending by e-mail

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    flaavio last edited by

                                    Sent.

                                    Market is open 09:00 to 18:00, Brasilia time

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

                                      And you must always have some demo account to test on it. The first is to backtest, because it's fast, but backtesting is just a hint of what it could be. Then you must put the EA on demo to see how the communication between MT and the broker really happens.

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        flaavio last edited by

                                        It worked today, after that change in the web version.

                                        Thank you very much! Really appreciate!

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

                                        Online Users

                                        Y
                                        H
                                        R
                                        A
                                        U

                                        14
                                        Online

                                        146.9k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors