fxDreema

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

    chart refresh

    Questions & Answers
    3
    14
    2944
    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.
    • Zackry
      Zackry last edited by

      is there any way to make the ea refresh chart first on every new candle and then proceed to the rest of the connected blocks ?

      T C 3 Replies Last reply Reply Quote 0
      • T
        trader.philipps @Zackry last edited by

        @zackry I'd try with the "Delete Objects" block. If you have a specific template you may use the "Change Template" block. But I think that would re-initialize your EA which should be re-loaded by the template.

        I like to share my knowledge, but expect the others to contribute as well.

        Zackry 1 Reply Last reply Reply Quote 0
        • C
          CPxiom @Zackry last edited by

          @zackry In mt4 docs there is something Refresh rates. Maybe some custom mql block with a function would do the job.

          Zackry 1 Reply Last reply Reply Quote 0
          • Zackry
            Zackry @trader.philipps last edited by

            @trader-philipps thanks for the response but the question is if i use this apply template option then will this cause any problem in the remaining blocks execution ?
            i am using multiple indicators to trigger the buy and sell , if the template is reloaded then i will need to have the same ea attached in the template that i am trying to apply on every new bar , in other words the ea will be detached and then attached again on the chart , do you think this will cause any problem ?

            T 1 Reply Last reply Reply Quote 0
            • Zackry
              Zackry @CPxiom last edited by

              @cpxiom thanks for the response, but when i look at the code it confuses the hell out of me

              1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @Zackry last edited by

                @zackry It will reset your EA comleately (remove from chart and re-load it if set in template).

                I like to share my knowledge, but expect the others to contribute as well.

                1 Reply Last reply Reply Quote 0
                • T
                  trader.philipps @Zackry last edited by

                  @zackry Try this maybe?

                  0_1575211539563_fac1da9a-d72c-46b3-a9b5-e2e4d7452d49-image.png

                  I like to share my knowledge, but expect the others to contribute as well.

                  Zackry 1 Reply Last reply Reply Quote 0
                  • Zackry
                    Zackry @trader.philipps last edited by

                    @trader-philipps the reason i am trying to refresh the chart is this :
                    the indicators i am using lag sometimes , ( by lag i mean the lag in drawing , and when i refresh the chart or when i reload the template then it updates and draw )
                    so when i use these indicators in the ea the ea misses some of the entries because of the lag and i am positive that when the ea refreshes the chart before looking at the indicators then the issue can be resolved

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      trader.philipps @Zackry last edited by

                      @zackry And the WindowRedraw doesn't help with that? If the indicator uses buffers, the calculation should still be alright. Are you refering chart objects in your EA?

                      I like to share my knowledge, but expect the others to contribute as well.

                      Zackry 1 Reply Last reply Reply Quote 0
                      • Zackry
                        Zackry @trader.philipps last edited by Zackry

                        @trader-philipps nope not the chart objects, the indicator that's causing the problem is using the buffers, so I referring the buffer values in the ea.
                        Most of the time the problem happens in live market and not in the backtest So I don't know yet if the window redraw function will help or not,
                        I am just waiting for the market to open so I can test the window redraw function

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          trader.philipps @Zackry last edited by

                          @zackry ok .. good luck!

                          I like to share my knowledge, but expect the others to contribute as well.

                          Zackry 1 Reply Last reply Reply Quote 0
                          • Zackry
                            Zackry @trader.philipps last edited by

                            @trader-philipps thanks, will update here if it works or not,

                            C 1 Reply Last reply Reply Quote 0
                            • C
                              CPxiom @Zackry last edited by

                              @zackry The "window redraw" is the correct one. I see refresh rates is for something else.

                              Zackry 1 Reply Last reply Reply Quote 0
                              • Zackry
                                Zackry @CPxiom last edited by

                                @cpxiom yep window redraw is working

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

                                Online Users

                                R
                                F
                                S

                                19
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors