fxDreema

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

    TURN Off MT4 Autotrading

    Questions & Answers
    5
    12
    6311
    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.
    • A
      ambrogio last edited by

      Hi there, Someone knows how can I close a trade and turn off the live trading of MT4? Thanks

      0_1567293419588_QQQQ.JPG

      C 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps last edited by

        @ambrogio I don't think there is an API function available to do so. At least I'm not aware of.
        If it's sufficient to stop the EA, you may set a flag that you check before opening new trades.

        You may also do so by mql4 code .. see example here https://www.mql5.com/en/forum/113277
        However, they suggest a software that auto-controles the mt4 window. But I have no clue how your EA might trigger that.

        I like to share my knowledge, but expect the others to contribute as well.

        A 1 Reply Last reply Reply Quote 1
        • A
          ambrogio @trader.philipps last edited by ambrogio

          @trader-philipps Perhaps this is simpler: close all the trades of another expert on another chart and prevent it from opening new orders (end the other expert)
          @miro1360 some advice?

          T 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            Simply change the number ID of blocks 5 and 13. That way you will turn off autotrading first and then the EA will be terminated, exactly in that order.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            A 1 Reply Last reply Reply Quote 0
            • A
              ambrogio @l'andorrà last edited by

              @l-andorrà thanks for your answer but the block 13 is empty, i need to know how stop autotrading with my expert.
              I'll explain: i need to close all the trades of another expert (not created with fxdreema) on another chart and prevent it from opening new orders (turn off the other expert)

              1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @ambrogio last edited by

                @ambrogio said in TURN Off MT4 Autotrading:

                @trader-philipps Perhaps this is simpler: close all the trades of another expert on another chart and prevent it from opening new orders (end the other expert)
                @miro1360 some advice?

                You may close other expert's orders, but I have no clue how to avoid them to open new ones.

                I like to share my knowledge, but expect the others to contribute as well.

                A l'andorrà 2 Replies Last reply Reply Quote 0
                • A
                  ambrogio @trader.philipps last edited by

                  @trader-philipps thank you anyway 🙂

                  1 Reply Last reply Reply Quote 0
                  • l'andorrà
                    l'andorrà @trader.philipps last edited by

                    @trader-philipps said in TURN Off MT4 Autotrading:

                    You may close other expert's orders, but I have no clue how to avoid them to open new ones.

                    Me neither.

                    (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                    (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                    (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                    A 1 Reply Last reply Reply Quote 0
                    • C
                      CPxiom @ambrogio last edited by

                      @ambrogio I did some documentation and I found all these...

                      There is some code down here, and I'm thinking setting up a boolean if that's possible.
                      https://docs.mql4.com/runtime/tradepermission
                      But closing Auto trading feature would terminate the handler EA itself.
                      So maybe trying to get the magic number of the running EAs and terminate those only would be great. Then in this Handler EA, you could even set up some conditions to check for a certain market context, and make some kind of a Manager EA.
                      Also, another way to go, would be to close certain charts. Closing the chart with some EA, closes the respective EA as far as I know.
                      ... Or I found this
                      // Deletes the Expert Advisor form the appropriate chart
                      bool EXPERT::Remove( const long Chart_ID = 0 );
                      don't know if this is for mt4 or mt5.
                      Also...
                      It says here
                      https://www.metatrader4.com/en/trading-platform/help/autotrading/experts/experts_remove
                      that "the expert can be removed from the chart at profile or template change" so there could be a function to change template on some chart, also.
                      Examples here
                      https://www.mql5.com/en/docs/chart_operations/chartapplytemplate

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        ambrogio @l'andorrà last edited by

                        @l-andorrà thank you anyway

                        1 Reply Last reply Reply Quote 0
                        • A
                          ambrogio @CPxiom last edited by

                          @cpxiom thank you, i'm working on it 😉

                          1 Reply Last reply Reply Quote 0
                          • M
                            miqueldeandorra last edited by

                            TURN off MT4 Autotrading

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

                            Online Users

                            E
                            H

                            13
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors