fxDreema

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

    Using the time filter to close - issues with data

    Questions & Answers
    2
    6
    380
    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.
    • N
      NScrilla last edited by

      Hello,

      I am using a time filter to close after a certain number of bars. It works most of the time. It never appears to work on the daily chart. I think i discovered why. The reason is gaps in the data. If the data is missing a bar it throws it all off. How can i get the EA to close the trade after a certain number of bars if there are data issues?

      Some of these trades go on for many many bars before they get closed when they are supposed to be closed at 5 for example. When i investigate why it appears a bar is missing. Do i need to use a different time filter? I am using the n bars one.

      Any help would be appreciated!

      Thanks!

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

        @nscrilla once per bar formula to add 1 to variable, reset when needed by modify variable block, condition block checking if variable = number.

        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
        • N
          NScrilla last edited by

          This was a good idea and i gave it a shot. It didn't appear to work for me.... If anything it works worse than it did.

          https://fxdreema.com/shared/8PgIFp4Dd

          jstap 1 Reply Last reply Reply Quote 1
          • jstap
            jstap @NScrilla last edited by

            @nscrilla This picture will show you what I mean, there are different ways and what you had done can work you just need to define when a count starts and resets.

            0_1651829707055_80607483-a915-4eaf-8773-43bb3f140ad0-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
            • N
              NScrilla last edited by

              You solved it for me! thanks!

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

                @nscrilla Your welcome

                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
                • 1 / 1
                • First post
                  Last post

                Online Users

                G
                L
                K
                H

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors