fxDreema

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

    Entering a number to a variable during active trading

    Questions & Answers
    3
    23
    2070
    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.
    • R
      Rodrigo Ortuzar last edited by

      Colleagues, is there any way to enter a number of a variable through Chart and change it during the EA is working, according to the trade. By means of a button or another way, I can't think of anything, someone can confirm. Thank you very much.

      Affectionate Rodrigo

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

        @rodrigo-ortuzar Use a edit field, you can then get this number using object on chart.

        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
        • R
          Rodrigo Ortuzar last edited by

          Thanks, I did not know this block, I have a variable "SL_Size" I have not been able to capture the value entered in with "Draw Edit Field" can you tell me how to correct this mistake of mine.
          https://fxdreema.com/shared/XOOlvfUwe

          Affectionate Rodrigo

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

            @rodrigo-ortuzar Like picture, put into a comment to see whats happwning.

            0_1650653456965_fb928e45-876d-4b6f-8a3b-ce34d9e9ff28-image.png

            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
            • R
              Rodrigo Ortuzar last edited by

              So I suppose and what do you mean by placing it in a comment ?

              0_1650654673653_5306f194-ab54-45ce-948e-9766bdd6872b-image.png

              Affectionate Rodrigo

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

                @rodrigo-ortuzar Have the edit field with a random number rather than a variable, buy comment I mean pass block>comment block with the variable inside.

                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
                • R
                  Rodrigo Ortuzar last edited by

                  ok jstap, would it be something like this ?
                  https://fxdreema.com/shared/5Cn0ZqG5e
                  0_1650757494296_e5657dce-1173-4912-b583-a9d9d7f152bf-image.png

                  Affectionate Rodrigo

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

                    @rodrigo-ortuzar I would think this is giving you what you write in the edit field in your comment? let me know if not.

                    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
                    • S
                      SimonFX last edited by

                      I can confirm that variable/input data can be overwritten using modify variables and an edit field on the chart.

                      I capture the input into the edit field in onchart, with 'edit field modified' event > modify variables ( based on object on the chart..)

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

                        @simonfx Yes but on chart doesn't work in back test, so worth adding a if testing block to on tick then copying blocks onto on chart so works for both: )

                        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! 😊

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

                          @jstap um right, yeah, my view not include back testing..

                          indeed ontick could be used, too. I like on chart cause it's cheaper performance wise and only doing what it has to on event.. but yes, ontick is fine too. I think we sure covered, the answer is yes!

                          So that leads to.. couldn't imagine needing to change the variable contents on fly from a human interface input during back testing.

                          Probably I'm not understanding how it could be used in back test, everytime I try it processes ten years in minutes.. no chance to work with input fields there.

                          Gosh, If I wanted my bot to work in backtesting I'd have so much to re-write come to think of it now that you point that out.. oh well, I'm happy to tell punters it don't work in back testing lol thanks for that clarification.

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

                            @simonfx Visual back test allows you to see if all is doing as planned before blindly do so no visual.

                            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! 😊

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

                              @jstap I use demo accounts and call ontick with ontimer on weekends 😉 I'm not sure that will work for me.. but I'd love to get it going if I can pretend to real time trade with what you call .. Visual backtest? If on chart doesn't work.. not much good to me.

                              I'm not automating much, just making metatrader actually user friendly is my aim here. not a full automated solution, semi.

                              S jstap 2 Replies Last reply Reply Quote 0
                              • S
                                SimonFX @SimonFX last edited by

                                @simonfx and by now ten or so real accounts 245, too... so am sure happy with outcome of testing thus far. I apply ITIL/Agile methodologies to my approach but yes more testing regime is very welcome!! I'll look into that Visual Backtest and again, thank you. I did find backtesting useful for bots that are fully automated back when I was blowing myself up alot lol

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

                                  @simonfx Back test will never be better than live charts, even MT5 forward test but it's a good way to ensure all is doing as wanted before testing further.

                                  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
                                  • R
                                    Rodrigo Ortuzar last edited by

                                    So it would be ? https://fxdreema.com/shared/cuL8bI8ge
                                    0_1650892942939_005d0247-5cf8-4ea5-9125-6673c84a1fee-image.png

                                    Affectionate Rodrigo

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

                                      @rodrigo-ortuzar Probably but you want to draw on init, then read on another, be careful that you don't get multiple alerts, normally you need something to limit alerts.

                                      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
                                      • R
                                        Rodrigo Ortuzar last edited by

                                        What do you think so in "on Unit" and "on Chart", when installing the EA it will show the value of the variable and then only when it finds a modification of block 1 "Draw Edit Field".
                                        https://fxdreema.com/shared/OTBm0KzN

                                        Affectionate Rodrigo

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

                                          @rodrigo-ortuzar On init draw the edit field, read it with object on chart.

                                          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
                                          • R
                                            Rodrigo Ortuzar last edited by

                                            You are right always in on chart it should start with a purple block. https://fxdreema.com/shared/u4absnBlb
                                            To make it more complex it would be to be able to choose between several alternative variables, I try and send it.

                                            Affectionate Rodrigo

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

                                            Online Users

                                            N
                                            S
                                            T
                                            A
                                            Y

                                            38
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors