fxDreema

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

    Multiple conditions

    Questions & Answers
    3
    6
    731
    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.
    • I
      iagnew last edited by

      Ive been trying to figure out how to have a trade go through if 2 of 4 conditions are met.
      I dont care what 2 conditions are met or if more than 2 are met

      https://fxdreema.com/shared/hyYAId1jb

      1 Reply Last reply Reply Quote 0
      • I
        iagnew last edited by

        I thought about it for a bit and this looks like it would work. I am open to other ideas also

        https://fxdreema.com/shared/yDaB0C7be

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

          heres another way to think about doing it, a weighted system using variables. Call it shortvar and longvar.

          If the value of shortvar = 4, enter short. If the value of longvar=4, enter long.

          How to achieve the system of math?
          If condition1 is true, modify variables, value longvar=value longvar adjust +1
          If condition2 is true, modify variables, value longvar=value longvar adjust +1
          If condition3 is true, modify variables, value longvar=value longvar adjust +1
          If condition4 is true, modify variables, value longvar=value longvar adjust +1
          If condition5 is true, modify variables, value longvar=value longvar adjust +1
          If condition6 is true, modify variables, value longvar=value longvar adjust +1

          Dont forget that after each buy trade entered, you should reset the values down to whatever you want them to be at with another, modify variables, value longvar= value, numeric, 0

          I 1 Reply Last reply Reply Quote 0
          • I
            iagnew @TipsyWisdom last edited by

            @tipsywisdom This is exactly what I was looking for, much more elegant than what I was trying. Thank you so much.

            TipsyWisdom 1 Reply Last reply Reply Quote 0
            • TipsyWisdom
              TipsyWisdom @iagnew last edited by

              @iagnew said in Multiple conditions:

              @tipsywisdom This is exactly what I was looking for, much more elegant than what I was trying. Thank you so much.

              also dont forget to subtract if the condition is false!

              1 Reply Last reply Reply Quote 0
              • E
                ekereifon last edited by

                Sorry for drawing you back, if you can show a sample of the multiple condition connected by modify variable, the explanation will be much clearer. please help a friend. Thank you in advance.

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

                Online Users

                E
                H
                E
                S
                A
                T
                A
                A
                M
                A
                M
                E
                E
                F

                34
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors