fxDreema

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

    Help needed in modifying values in a sequence

    Questions & Answers
    4
    31
    7012
    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
      trader.philipps @rafaels919 last edited by

      @rafaels919 With @roar 's solution you can step back and forth to any position. You may also consider another variable for the sequence position and modify this only and keep the losses variable as is if that makes sense.

      In the concrete case if you want to step back 2 sequence steps, you would
      a) check if losses >2
      b) count losses-2

      In the case you want to step forward you need to ensure that the result is not bigger than the sequence index (roar uses the variable seqLen). And of course always keep in mind that the array is 0 based.

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

      1 Reply Last reply Reply Quote 2
      • roar
        roar @rafaels919 last edited by

        @rafaels919

        For example:

        1. We have the "loses" variable changed to "2" by "modify variables" block when RSI crosses 60 (just as in your example)

        2. If we are on 5th value - we don't revert back to the 2nd value - instead -> we shift back two values (so we would be on the 3rd value instead of 2nd value) -> so it doesn't REVERT to two when the condition triggers but SHIFTS BACK two values.

        To shift back in value, just modify loses = loses - 2.
        0_1579352990293_b49e12a8-f8fe-4940-8827-2831c950aa3a-image.png
        Here's your example:
        https://fxdreema.com/shared/CB4cAPh9c

        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
        • R
          rafaels919 last edited by rafaels919

          Awesome, it shifts back now. @roar

          I might have found another bug though:
          The "base volume" bet is being skipped from time to time (0.01):

          Skipped>:alt text

          Not skipped>:alt text

          I sent you a PM @roar
          Either way, you done a great job figuring this out. I appreciate the help!

          Thanks to @trader-philipps as well.

          roar 1 Reply Last reply Reply Quote 1
          • R
            rafaels919 last edited by

            Is it possible to not use the "yellow" block output?
            alt text
            The second "Modify Variables" block is connected to the yellow output, but some of the other blocks on fxdreema have only a red output. Would be great to have this work with red output only.

            1 Reply Last reply Reply Quote 1
            • roar
              roar @rafaels919 last edited by roar

              @rafaels919

              The "base volume" bet is being skipped from time to time (0.01):

              Skipped>:alt text

              It appears the base lot is skipped when old trade closes and new trade opens at the same time (09:12). Not sure what is causing this..
              If you provide details how to reproduce this bug, I'll look into it. (is it USDJPY, what tester settings, which version of the EA?)

              Is it possible to not use the "yellow" block output?

              The color doesn't really change anything. Orange is for TRUE, yellow is for FALSE. In my example, when loses variable is less than 5, it goes to the orange output. When it's more or equal to 5, yellow output is activated. Some blocks miss the yellow output, because their function can't have a "false" output. It doesn't harm your system in any way.
              0_1579368172302_c7698c01-d9c1-40cc-8004-368c9be0237c-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
              • R
                rafaels919 last edited by rafaels919

                @roar If I remove the first "Modify Variable" block and leave only the second one attached, I get a critical error in the tester almost immediately and it stops working:
                The configuration: alt text

                USDJPY: alt text

                EURUSD: alt text

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

                  I guess that 'loses -2' text is the reason for that failure. I'm not sure, though. I would say this is not the correct way to write that variable there.

                  (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 0
                  • roar
                    roar @rafaels919 last edited by

                    @rafaels919 said in Help needed in modifying values in a sequence:

                    @roar If I remove the first "Modify Variable" block and leave only the second one attached, I get a critical error in the tester almost immediately and it stops working:

                    I suspect the configuration now allows the loses variable to repeatedly lose - 2, so eventually it becomes a negative number. The array can't have negative indexes.

                    @l-andorrà

                    I guess that 'loses -2' text is the reason for that failure. I'm not sure, though. I would say this is not the correct way to write that variable there.

                    It is not the default way, but actually that works fine 😉

                    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

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

                      Alright, so I've replaced the indicator and adjusted the condition for the shiftback (so it triggers starting from 2nd loss) and this seems to work now :
                      alt text

                      roar 1 Reply Last reply Reply Quote 1
                      • roar
                        roar @rafaels919 last edited by roar

                        @rafaels919 said in Help needed in modifying values in a sequence:

                        Alright, so I've replaced the indicator and adjusted the condition for the shiftback (so it triggers starting from 2nd loss) and this seems to work now

                        Great, this makes sense - here the loses variable can drop to 0 but not below.

                        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
                        • l'andorrà
                          l'andorrà @roar last edited by

                          @roar said in Help needed in modifying values in a sequence:

                          @l-andorrà

                          I guess that 'loses -2' text is the reason for that failure. I'm not sure, though. I would say this is not the correct way to write that variable there.

                          It is not the default way, but actually that works fine 😉

                          Once more I learnt something new! 😉
                          Thank you.

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

                          Online Users

                          E
                          A

                          16
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors