fxDreema

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

    on Chart on mq4 [ not Refresh ]

    Questions & Answers
    0
    20
    881
    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.
    • D
      duepips last edited by

      Hi, I noticed that in mq4 if I change the values of a constant from the EA settings (for example the price of a horizontal line) the graphical objects are not updated until you pass the mouse over the graph, is there a way to activate the automatic updating of graphic objects when the confirmation ok is given after changing the values of a constant? In mq5 it is automatic, Thanks

      jstap roar 2 Replies Last reply Reply Quote 0
      • jstap
        jstap @duepips last edited by

        @duepips To me they always update, add a shared project and I'll have a look.

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

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

          @jstap said in on Chart on mq4 [ not Refresh ]:

          To me they always update, add a shared project and I'll have a look.

          https://fxdreema.com/shared/Mah2Vaf3

          if I go into the settings and change the value of the constant and then click on ok the line on the graph with the new price does not update, to have it updated I have to click on the graph, if the ok button to confirm the settings and outside the graph it does not update

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

            @duepips So if line = true draw line at constant price, this can only do this, as is a constant price is set before start.

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

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

              @jstap said in on Chart on mq4 [ not Refresh ]:

              @duepips So if line = true draw line at constant price, this can only do this, as is a constant price is set before start.

              on mt5 if I modify a constant within the EA settings when I confirm with ok the chart updates with the new values ache if I change only the price leaving the true unchanged, which is a way to update the on Chart section after having changed the settings of the EA? example: change value input constant re draw on Chart, Because I need it to be updated even when the market is closed

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

                @duepips If you change the constant in inputs, this is the value that will show on chart, if waiting for a tick the update will wait, run on back test and you'll see what it does.

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

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

                  @jstap said in on Chart on mq4 [ not Refresh ]:

                  @duepips If you change the constant in inputs, this is the value that will show on chart, if waiting for a tick the update will wait, run on back test and you'll see what it does.

                  forgive me I changed the text after you read, I need it to be updated even when the market is closed

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

                    @duepips All blocks on tick wait for a tick, possibly (although I don't do it) putting on timer will change it according to your on timer settings.

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

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

                      @jstap said in on Chart on mq4 [ not Refresh ]:

                      @duepips All blocks on tick wait for a tick, possibly (although I don't do it) putting on timer will change it according to your on timer settings.

                      can you launch the RedrawChart from on Timer?

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

                        @duepips Most probably, I have just never done it.

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

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

                          @jstap said in on Chart on mq4 [ not Refresh ]:

                          @duepips Most probably, I have just never done it.

                          damn mt4 LOL

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

                            @duepips Is mt5 I always have trouble with MT5, both almost do the same, is just working out what works, back test on mt5 is better.

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

                            D 1 Reply Last reply Reply Quote 0
                            • roar
                              roar @duepips last edited by roar

                              @duepips if you change a constant "on the fly", the EA reinitializes. So put your graphical block to on Init (or just link it with "Run blocks" block)

                              Need small help? Tag me in your post
                              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                                @jstap said in on Chart on mq4 [ not Refresh ]:

                                @duepips Is mt5 I always have trouble with MT5, both almost do the same, is just working out what works, back test on mt5 is better.

                                much much much better mt5

                                1 Reply Last reply Reply Quote 0
                                • D
                                  duepips last edited by

                                  @roar said in on Chart on mq4 [ not Refresh ]:

                                  @duepips if you change a constant "on the fly", the EA reinitializes. So put your graphical block to on Init (or just link it with "Run blocks" block)

                                  on mt4? Do you have an example to share?

                                  @roar said in on Chart on mq4 [ not Refresh ]:

                                  @duepips if you change a constant "on the fly", the EA reinitializes. So put your graphical block to on Init (or just link it with "Run blocks" block)

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    duepips last edited by

                                    I don't understand how to work on mt4, when you enter the settings and change the values of an EA confirming them with OK each section from on Init to on Chart should be updated, in my opinion mt4 and to abandon

                                    roar 1 Reply Last reply Reply Quote 0
                                    • roar
                                      roar @duepips last edited by

                                      @duepips here's an example how to link the init event to your other events:
                                      https://fxdreema.com/shared/JntnkXgec

                                      However, there is one more thing you need to do. The mq4 has a standard little code snippet that prevents reloading the EA when inputs change. So you need to remove this part:

                                      0_1673780800044_8ff8c0e1-55b2-4dd3-89d5-ae83cce28b80-image.png

                                      Need small help? Tag me in your post
                                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                      D 2 Replies Last reply Reply Quote 1
                                      • D
                                        duepips @roar last edited by

                                        @roar said in on Chart on mq4 [ not Refresh ]:

                                        @duepips here's an example how to link the init event to your other events:
                                        https://fxdreema.com/shared/JntnkXgec

                                        However, there is one more thing you need to do. The mq4 has a standard little code snippet that prevents reloading the EA when inputs change. So you need to remove this part:

                                        0_1673780800044_8ff8c0e1-55b2-4dd3-89d5-ae83cce28b80-image.png

                                        I try and let you know

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          duepips @roar last edited by

                                          @roar said in on Chart on mq4 [ not Refresh ]:

                                          @duepips here's an example how to link the init event to your other events:
                                          https://fxdreema.com/shared/JntnkXgec

                                          However, there is one more thing you need to do. The mq4 has a standard little code snippet that prevents reloading the EA when inputs change. So you need to remove this part:

                                          0_1673780800044_8ff8c0e1-55b2-4dd3-89d5-ae83cce28b80-image.png

                                          even removing the code you selected doesn't update the graph without event, anyway Thanks

                                          roar 1 Reply Last reply Reply Quote 0
                                          • roar
                                            roar @duepips last edited by

                                            @duepips I tested my example on weekend (no ticks), it worked for me

                                            Need small help? Tag me in your post
                                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                                            Online Users

                                            F
                                            M
                                            A
                                            M
                                            W
                                            E
                                            G
                                            K
                                            E
                                            A

                                            17
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors