fxDreema

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

    Problem with Time Filter

    Bug Reports
    2
    5
    968
    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.
    • K
      kroghd last edited by

      Hi,

      I have made a cut down version of some blocks I'm having problems with getting them to work nice with each other.
      Can you please run this for a 24 hour period on a MT platform (not backtesting)
      You will see that it places a line at the start of each session.

      It works fine for me until the first session of the next calendar day after the app was started - it will no longer place any bar / do any more work.

      If I recompile or adjust EA properties it starts working again until the next calendar day after the app was started.

      https://fxdreema.com/shared/1J0Pu7MKc

      Thanks

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

        The problem is probably here: http://prntscr.com/7i2bn0

        The thing is, these blocks are still under "on Tick" so they depend on the ticks flow as you can imagine. You have 1 minute time window to react, but if there is not a single tick in this time period, there will be no chance for block 8 to run that day. You can also have connection problems at that time, who knows. So I will suggest to extend this time a little bit, just in case.

        1 Reply Last reply Reply Quote 0
        • K
          kroghd last edited by

          Hi,

          I have adjusted to 5 minutes & still after the 24 hours passes the code stops running. Until the broker does a MT4 refresh at 00:00 GMT.

          Any other ideas - I have put trace blocks on but it seems to get thrown off at some point in time.

          Thanks

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

            There is a block named "Comment" that does something very cool. It prints information on the chart and then the information stays there. The last state of it stays on the chart. Also, you can put multiple "Comment" blocks and make each of them to print it's own information at different place on the chart

            1 Reply Last reply Reply Quote 0
            • K
              kroghd last edited by

              Yes - I meant to say I have put Print() custom mql4 but after some time they stop getting run.

              I will try with the comment blocks and see what I can figure out

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

              Online Users

              S
              E
              H
              E
              J
              S

              16
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors