fxDreema

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

    MQ5 & WinAPI

    Bug Reports
    3
    8
    539
    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

      I have run the MQL5 script in fxDreema, tested it in both "Custom block" and in the "Custom MQL code" block, the result appears to be the same error:
      can't open "S:\www-node\Server.....\WinAPI\winapi.mqh

      This is likely caused by preventing WinApi in the server. Therefore, I would like to ask the system administrator to help check this matter. Thank you in advance.

      1.jpg 2.jpg 3.jpg

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

        But script for MT4 can run no problem.

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

          And This script MQL5 can run direct on MT5 >>>

          #define MT_WMCMD_EXPERTS 32851
          #define WM_COMMAND 0x0111
          #define GA_ROOT 2
          #include <WinAPI\winapi.mqh>

          void AlgoTradingStatus(bool Enable)
          {
          bool Status = (bool) TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);
          if(Enable != Status)
          {
          HANDLE hChart = (HANDLE) ChartGetInteger(ChartID(), CHART_WINDOW_HANDLE);
          PostMessageW(GetAncestor(hChart, GA_ROOT), WM_COMMAND, MT_WMCMD_EXPERTS, 0);
          }
          }

          void OnStart()
          {
          AlgoTradingStatus(false);
          }

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

            To ask the system administrator, click back to main page at the top of this one, and send a message from there.

            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 1
            • X
              XDV last edited by

              Thank you again @jstap

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

                @XDV...👍

                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
                • A
                  alieghbali last edited by

                  Hello, Mr. Jestap. Is your book sold on any other site besides Amazon?
                  The reason for my question: because I live in Iran and we are banned from buying from Amazon, we cannot buy unless we buy from a site other than Amazon.

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

                    No unfortunately, because they do the printing and sharing

                    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
                    • 1 / 1
                    • First post
                      Last post

                    Online Users

                    P
                    R
                    A
                    D
                    A

                    22
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors