fxDreema

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

    Inputs for Scripts

    Questions & Answers
    4
    10
    2948
    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.
    • B
      BlueMoon last edited by

      I wanted to write a script which would have "Inputs" I am able to do this while I am building it. But when I run the script in MT4 it does not allow me to input anything, it just takes all the defaults.

      How can I input those values each time I run the script?

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

        wait little bit for reply ... maybe here will be update for this and if not I show you how manually ... but update is prefered 🙂

        Between trading and gambling is a very small gap, be careful.

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

          You know, I don't have such setting in the options. I think that if you add #property script_show_inputs somewhere on the top of the code it will work. Here are all possible properties: https://www.mql5.com/en/docs/basis/preprosessor/compilation But why do you need this, I think that scripts are supposed to be run quickly...

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

            Ok, this option will be added with the next update, you will find it somewhere in the project's options. But these days, hopefully tomorrow, because I'm currently working on something and I'm not prepared to make that update right now.

            1 Reply Last reply Reply Quote 0
            • B
              BlueMoon last edited by

              Can you please update here when this is added?

              1 Reply Last reply Reply Quote 0
              • B
                BlueMoon last edited by

                When will this be available?

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

                  for now do it manually, open mql4 file in metaeditor, add this line #property script_show_inputs here:
                  0_1491314412106_upload-4dd55057-2fd9-4ed4-8b7a-252c654baabc

                  and click Compile button in metaeditor and test it ...

                  Between trading and gambling is a very small gap, be careful.

                  1 Reply Last reply Reply Quote 0
                  • B
                    BlueMoon last edited by

                    that works! thank you.

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

                      It should be available now: http://prntscr.com/esicto
                      Tell me if it doesn't work

                      F 1 Reply Last reply Reply Quote 2
                      • F
                        fmazzot @fxDreema last edited by

                        @fxdreema For me it is working. I see the prompt for configure input parameters. It's OK 😉

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

                        Online Users

                        V
                        O
                        J
                        B

                        10
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors