fxDreema

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

    How to validate and reset conditions?

    Questions & Answers
    5
    11
    2001
    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.
    • T
      traderline last edited by

      Good morning, I am new to fxdreema, I am trying to create a robot, where, first validate some conditions (frist conditions), if they are met, I will review the following conditions (second condition), if these conditions do not occur before 6 candles, return At the first condition (frist condition), if given, we enter the market.

      The problem is that it does not work, and I understand that the logic I am using is not correct. If someone can help me understand how to validate and reset conditions correctly, it would be a breakthrough for me.

      I have created an example of the logic that I have used.

      Thanks in advance

      https://fxdreema.com/shared/c1V9k2Pyc

      1 Reply Last reply Reply Quote 0
      • M
        Marcos 0 last edited by

        Hello,

        Think of it this way: the process will only be executed if it obeys the imposed condition, otherwise there is no need to reset.

        1 Reply Last reply Reply Quote 1
        • T
          traderline last edited by

          I understand that, but I need to understand how to reset a condition in case it is not fulfilled in x time, or candles. Thank you!

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

            @traderline
            You mean this:
            There are 2 conditions,

            1st condition is active on candles 1,2,3,4,5,6
            2nd condition only comes active on candle 5, and this is too late?

            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

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

              @roar No, the first condition: (1) bid> tenkan-sen (example only), does not need candle condition, the signal is at the moment it occurs. When the condition (1) is fulfilled, it passes to the following condition: (2) Candle 1 must cross up, the tenkan-sen, before 6 candles, if this occurs, we enter, if the condition (2) does not occur, before 6 candles, we return to (1). That's the idea.

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

                @traderline So the time between 2 condition passes must be less than 6 candles?

                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 1
                • roar
                  roar last edited by

                  Here's an example how to create such "time windows":
                  https://fxdreema.com/shared/Oyixkzrod

                  • Create a variable that increases a count on every new bar (1,2,3,4,5....)
                  • When 1st condition passes, reset that count back to 0
                  • Now 2nd condition must pass before that condition gets bigger than 6 again

                  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

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

                    I also recommend you to specify candle ID 1 on all operands of all condition blocks unless you strictly need so.

                    (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.

                    1 Reply Last reply Reply Quote 1
                    • T
                      traderline @roar last edited by

                      @roar Thank you for your help, is what I was looking for, and a simple way to apply what I want, a question that I don't understand, what does value mean, V1+1 "once per Bar"?

                      Thank you very much for your help!

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

                        @traderline The little extra window on the right is for quickly modifying variables, without needing the actual "modify variables" block.
                        I increase the variable value by 1 on every new block (new value equals old value +1)

                        The V1 is just a shortcut method to refer to some variable, I could write "counter+1" just as well.
                        0_1581862444660_3ee5b476-9c91-4411-95df-b5d991d3d942-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

                        1 Reply Last reply Reply Quote 0
                        • A
                          akulus last edited by

                          I think i had the same question, please check this: https://fxdreema.com/forum/topic/8693/double-crosses-condition/4

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

                          Online Users

                          D

                          11
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors