fxDreema

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

    The Time Filter Block does not work correctly

    Bug Reports
    3
    6
    1374
    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.
    • tcanuto
      tcanuto last edited by

      Hello @fxDreema! You all right?
      It is not respecting the block in the day parameter. See below:

      https://fxdreema.com/shared/pxNolBuhc

      In this project example, I need it to open only on days 1, 2 and 3, as described in the parameter, but it has been open several days beyond projected.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        I recommend to create a separate tree of blocks for those defining the active time period. I mean all three time filters and the conditions below them. Then you create a boolean variable that is active only when any of the time filters is true and then changed to false afterwards. That way you can condition your launching tree with that same variable on top.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        T tcanuto 2 Replies Last reply Reply Quote 0
        • T
          trader.philipps @l'andorrà last edited by

          @l-andorrà said in The Time Filter Block does not work correctly:

          I recommend to create a separate tree of blocks for those defining the active time period. I mean all three time filters and the conditions below them. Then you create a boolean variable that is active only when any of the time filters is true and then changed to false afterwards. That way you can condition your launching tree with that same variable on top.

          You might also work with flags.

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

          tcanuto 1 Reply Last reply Reply Quote 0
          • tcanuto
            tcanuto @l'andorrà last edited by

            @l-andorrà Yes. I already do it this way, but if the Time Filter block is not working correctly, it is better to fix it.

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

              @trader-philipps I still don't know how to use a flag. Any post for instructions?

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

                @tcanuto Check my Tutorial EA. I use some boolean flags as well as switch ON/OFF blocks in there.

                One example is the CoF feature. On the init tab I read the values from the constants and set bool flags accordingly

                0_1581351702842_08a8573c-b927-4bb4-b525-9a9f48745fe2-image.png

                The on the on Tick tab I check the flag.

                0_1581351769606_fc4be8ae-f72a-4619-b786-da30e17c5055-image.png

                Of course this example is for generally switch on/off parts of the code by EA parameters. But it may give you an idea.

                I like the bool flags. However, you might use the numeric (if more than 1 option) or string (never used) type as well.

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

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

                Online Users

                A
                X
                K
                F
                A

                12
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors