fxDreema

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

    OR logic not working

    Questions & Answers
    2
    15
    1035
    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.
    • C
      capitalfreedom last edited by

      Can anyone help me identify why the OR logic is not working on this EA. Thanks in advance https://fxdreema.com/shared/UVG1xa1rc

      1 Reply Last reply Reply Quote 0
      • C
        capitalfreedom last edited by

        any ideas my friend @roar

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

          @drewliedadeuce the else-output from crossing conditions behaves a little weird. It doesnt mean "not cross", instead it means "cross below" if the condition is "cross above".

          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
          • C
            capitalfreedom last edited by

            Thanks for your response. So the cross condition in block 29 works as it should but when this condition is not true it does not check block 62 for some reason

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

              @drewliedadeuce block 61 is checked when RSI crosses above 70. Is that how you want it?

              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
              • C
                capitalfreedom last edited by

                yes I have it set to crossing below 70 RSI, that way it can continue past 70 RSI and I would be able to manually close it at its peak

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

                  @drewliedadeuce you dont listen to me, lol 😄

                  In block 29:

                  • ORANGE (true) activates when RSI crosses below70
                  • YELLOW (false) activates when RSI crosses above 70

                  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
                  • C
                    capitalfreedom last edited by

                    Lol apologies my friend. I misunderstood but I get what you are saying now. I should use "and" instead of "else" because of the tricky situation. I am about to give it a try. Thanks a ton!

                    1 Reply Last reply Reply Quote 0
                    • C
                      capitalfreedom last edited by capitalfreedom

                      Is this what you were suggesting? https://fxdreema.com/shared/UVG1xa1rc @roar

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

                        @drewliedadeuce just connect the blocks in parallel, so they dont depend on the rsi cross thing.
                        0_1612364303276_d03e4226-febf-4c43-996f-b37a95ec8ce6-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
                        • C
                          capitalfreedom last edited by capitalfreedom

                          GENIUS! It works but it no longer checks for the RSI parameter because it gets to the bollinger band first. @roar

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

                            @drewliedadeuce uh, please explain how you want the conditions to happen

                            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
                            • C
                              capitalfreedom last edited by

                              When a buy or sell initiates I would like to ride the trend until it crosses above/below the RSI. If this is unable to happen then I would take profit at the Upper/Lower bollinger band.

                              I tried using crosses below Upper band / crosses above lower band so that this might happen but it does not work

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

                                @drewliedadeuce ok, if RSI condition is unable to happen, of course bollinger band condition happens first. Why is that a problem?

                                it no longer checks for the RSI parameter because it gets to the bollinger band first.

                                The EA cannot predict ahead of time, whether the RSI will happen or not.

                                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
                                • C
                                  capitalfreedom last edited by

                                  I see what you mean, this is almost impossible to configure. It only poses a problem because there are times where the trend continues beyond the bollinger band but the EA will have already taken profit 😞

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

                                  Online Users

                                  B
                                  M
                                  J
                                  B
                                  A
                                  E
                                  R

                                  21
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors