fxDreema

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

    Prompt block

    Questions & Answers
    2
    8
    448
    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.
    • M
      MT4Indicators last edited by

      Hi, is it possible to have an expiration period for prompt block? that it will cancel if not confirm after a few minutes or an hour. Thanks!

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

        Cancel is in the buy/sell block, do you need something else?

        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
        • M
          MT4Indicators last edited by MT4Indicators

          Thank you @jstap!, i put the prompt above of buy/sell. The buy/sell will activate only upon manually confirm the prompt.
          I just want to know if we can make an automatic cancel of prompt by setting an expiration period of Block prompt? is it possible?

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

            What do you mean by prompt?

            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
            • M
              MT4Indicators last edited by MT4Indicators

              Hi, like the pop up message of prompt to cancel automatically if not confirm manually, in an hour/s depending on how long you set.

              image.png

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

                I have never used this, it is a message box and this is what chat GPT says:

                The MessageBox function in MQL4 is a blocking call, meaning the execution of your script or Expert Advisor will halt at the MessageBox call until the user interacts with it. This behaviour is built into the function and cannot be altered from within MQL4 directly.

                That said, there are a few alternative approaches you could consider:

                Avoid using MessageBox: Instead of using MessageBox, consider using other means to display messages that don't require user interaction to dismiss, such as Print for logging messages in the Experts tab, or graphical objects (like TextLabel) on the chart to display messages.

                Create a custom dialog: Instead of MessageBox, you can create a custom dialog box using MQL4 graphical objects. You can then manage the dialog box programmatically, allowing it to be closed or hidden without user interaction.

                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
                • M
                  MT4Indicators last edited by MT4Indicators

                  Thank you so much @jstap! i really appreciate your response!

                  yeah, it is a block requiring manual confirmation. hopefully fxdreema will add an option to have an expiration on this block prompt.

                  In my EA, i have set of rules (indicators above the prompt), once all requirements met. The prompt will advice me of possible entry either i will confirm the buy/sell or cancel. But we cannot stay in front of our computer all the time, so sometimes the prompt (entry suggestion) will be no good, and the prompt message will stay on the screen until i cancel it. And the following prompt (other possible entry) will not pop up until i cancel the first one.

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

                    Even FX can't stop or automatically delete this, you will have to find another way.

                    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

                    M
                    A
                    E

                    13
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors