fxDreema

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

    How I disable Algo-Trading Button or send CTRL-E by FxDreema

    Questions & Answers
    3
    20
    1333
    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.
    • X
      XDV last edited by XDV

      How I disable Algo-Trading Button or send CTRL-E by FxDreema ?
      Thank you in advance for the answer.

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

        This shows how to turn algo trading off

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

          I made a custom block for mt4 and one for mt5, which one do you need?

          1 Reply Last reply Reply Quote 0
          • X
            XDV last edited by

            @reyxv16 MT5 please

            1 Reply Last reply Reply Quote 0
            • X
              XDV last edited by

              @jstap That you mean answer for disable Algor trade button in the Amazon web right ?

              1 Reply Last reply Reply Quote 1
              • reyxv16
                reyxv16 last edited by

                Create a custom block, add the following to the code:

                bool Status = (bool) TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);

                if(Status != false)
                {
                HANDLE hChart = (HANDLE) ChartGetInteger(ChartID(), CHART_WINDOW_HANDLE);
                PostMessageW(GetAncestor(hChart, GA_ROOT), WM_COMMAND, MT_WMCMD_EXPERTS, 0);
                }
                ~next~


                And below in the "Global variables, includes" window add the following:

                #ifdef MQL5
                #include <WinAPI\winapi.mqh>
                #define MT_WMCMD_EXPERTS 32851
                #else
                #define HANDLE int
                #define PVOID int
                #import "user32.dll"
                HANDLE GetAncestor( HANDLE hwnd, uint flags);
                int PostMessageW( HANDLE hwnd, uint Msg, PVOID param, PVOID param );
                #import
                #define MT_WMCMD_EXPERTS 33020
                #endif

                #define WM_COMMAND 0x0111
                #define GA_ROOT 2

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

                  That would be the code for the block to turn off autotrading, you can vary the operation by modifying the line "if(Status != false)" to "if(Status == false)" to turn it on or create another block just to turn it on.

                  X 2 Replies Last reply Reply Quote 0
                  • X
                    XDV @reyxv16 last edited by

                    @reyxv16 Thank you very very much
                    But I don't know if this is the right way to do it.
                    Please help explain further.

                    https://fxdreema.com/shared/k4w7gSHB

                    Screenshot 2024-06-14 121324.png

                    1 Reply Last reply Reply Quote 0
                    • X
                      XDV @reyxv16 last edited by

                      @reyxv16 Thank you again for ur help. Now I do this but error how to resolve this ?

                      Screenshot 2024-06-14 135305.png

                      Screenshot 2024-06-14 135340.png

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

                        No, you didn't understand me, you need to create the custom block here: https://fxdreema.com/studio/MQL5

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

                          Then it would look like this:
                          Captura de pantalla 2024-06-14 030227.png

                          And it would be used like this:
                          Captura de pantalla 2024-06-14 030456.png

                          jstap 1 Reply Last reply Reply Quote 0
                          • jstap
                            jstap @reyxv16 last edited by

                            I must not have added this link, wasn't about my book @reyxv16 is correct, I was showing you this: https://fxdreema.com/forum/topic/19004/help-custom-mql-code?_=1718300737685

                            Learn fxDreema Without the Wait!

                            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                            Don’t miss out

                            Click here➡️ https://mybook.to/fxDreema to get your copy today!

                            Enjoy! 😊

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

                              Captura de pantalla 2024-06-14 033226.png

                              X 1 Reply Last reply Reply Quote 0
                              • X
                                XDV @reyxv16 last edited by

                                @reyxv16 @jstap Thank you very very very much.
                                But now I already correct this But not pass.

                                Screenshot 2024-06-14 144109.png

                                Screenshot 2024-06-14 144152.png

                                1 Reply Last reply Reply Quote 0
                                • X
                                  XDV last edited by

                                  How i get winapi.mqh ?

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

                                    I think it is already included in Metatrader 5

                                    X 1 Reply Last reply Reply Quote 0
                                    • X
                                      XDV @reyxv16 last edited by

                                      @reyxv16 Thank you so much 🙏

                                      1 Reply Last reply Reply Quote 0
                                      • X
                                        XDV last edited by

                                        @reyxv16 @jstap Apologise to disturb again. Because still can't fix it. How to fix it?

                                        Screenshot 2024-06-14 182434.png

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

                                          I had this when I first did this, it means you have something wrong, copy and past all you need and it will work

                                          Learn fxDreema Without the Wait!

                                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                          Don’t miss out

                                          Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                          Enjoy! 😊

                                          X 1 Reply Last reply Reply Quote 0
                                          • X
                                            XDV @jstap last edited by

                                            Thank you @jstap i will try that.

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

                                            Online Users

                                            P
                                            R
                                            A
                                            D
                                            A

                                            19
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors