fxDreema

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

    MA CrossOver Condition

    Questions & Answers
    3
    4
    1739
    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.
    • L
      lguarda last edited by

      Hi, I´ve been struggling with this condition. As per say I thought that the condition would be if the crossover happens then goes to next and if not goes to the other condition. What happens is that the false is not if the crossover doesn´t happen and it is if the Right Operand crosses the Left Operand. Is there a way to do like I want to? thanks in advance.

      1 Reply Last reply Reply Quote 0
      • R
        rafaelgrecco last edited by

        The crossover happens in a fraction of time, like in one tick.

        You should propably use the conditions "above" or "below" and build your strategy around that.

        1 Reply Last reply Reply Quote 0
        • L
          lguarda last edited by

          I know how the crossing works. That´s not what I meant. I meant that the YELLOW OUTPUT is not if the condition is wrong and it is if the OPPOSITE of the condition is TRUE. And that is not only for MA Crossover. It´s for all of the YELLOW OUTPUT conditions of all indicators....

          In my head it should be IF the condition is TRUE pass ORANGE OUTPUT, IF the condition is FALSE pass the YELLOW OUTPUT.

          The only way I figured out on how to correct it is mannually go to MQL Editor and change the OUTPUT string for "if (o2=true) {blockXX(yy);}" to "if (o1=false) {blockXX(yy);}".

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

            I think you have to use two condition blocks. First one checks simple "<" or ">" and the last one checks the crossover.
            Now you can use the first condition's yellow output

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

            Online Users

            O
            B
            M
            Z
            S
            S
            T
            G
            B
            A
            P
            I

            25
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors