fxDreema

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

    and/or

    Questions & Answers
    3
    6
    1979
    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.
    • 4
      4xFatigue last edited by

      I designed a simple close trade procedure and it did not close when it should have so I just need my logic verified.

      In this diagram I want either:

      conditions 2 and 3 to CLOSE TRADES

      OR

      conditions 4 and 5 to CLOSE TRADES

      Is this workflow correct for that?

      ......
      fxdreema workflow.jpg

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

        There is no OR here, but if you want OR, then make some connections in parallel

        https://fxdreema.com/demo/mt4-or-logic-1

        1 Reply Last reply Reply Quote 0
        • O
          onafets last edited by

          __There is no OR here, but if you want OR, then make some connections in parallel

          https://fxdreema.com/demo/mt4-or-logic-1[/quote:27uvugx0]

          I wonder how the example above works when I have more than one "condition" for Buying.

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

            This example shows If-then-else logic.

            • If Condition 1 is true, run Buy now, otherwise...
            • If Condition 2 is true, run Buy now, otherwise...
            • If Condition 3 is true, run Buy now, otherwise...

            If Condition 1 is true, Condition 2 and 3 will not run, they are not needed anyway. This is why this method is good.

            1 Reply Last reply Reply Quote 0
            • O
              onafets last edited by

              __This example shows If-then-else logic.

              • If Condition 1 is true, run Buy now, otherwise...
              • If Condition 2 is true, run Buy now, otherwise...
              • If Condition 3 is true, run Buy now, otherwise...

              If Condition 1 is true, Condition 2 and 3 will not run, they are not needed anyway. This is why this method is good.[/quote:33td2w0x]

              And would this work?: https://fxdreema.com/shared/1H8X3wrde

              I prepared just a sample to understand if one condition after the other work its way to buy.

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

                I think that this is not hard to understand.

                • The orange output is active when the Condition is true and the yellow output is active otherwise.
                • If one of the operands in Condition is EMPTY_VALUE (for example when indicator is used, but the indicator does not show something at the moment), none of the outputs are active
                • If crossover is used (x> or x<), then the yellow output is active in case of the opposite case. If you have x>, then the yellow output works like x<. If you have x<, then the yellow output works like x>.
                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                J
                2
                C
                R
                Q
                N
                E
                S

                20
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors