fxDreema

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

    Performing an action after a condition has been met

    Questions & Answers
    3
    16
    749
    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.
    • M
      Maysam last edited by

      Hello everybody
      I want to perform an action ( For example placing a buy order when kijun-sen cross above MA200) after a Primary condition has been met ( for example MA10 cross above MA200 and kijun-sen is under MA200).
      Thanks guys.

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

        Do you mean that those actions should happen at different moments in time?

        (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.

        M 1 Reply Last reply Reply Quote 0
        • M
          Maysam last edited by

          Yes, exactly.

          MrDaisyBates 1 Reply Last reply Reply Quote 0
          • M
            Maysam @l'andorrà last edited by

            @l-andorrà
            Yes, exactly.

            1 Reply Last reply Reply Quote 0
            • MrDaisyBates
              MrDaisyBates @Maysam last edited by

              @Maysam If they need to happen at different moments, you could try using some bool variables to store the true/false if a condition has been met. If that makes sense.

              So, once a condition is met, it flips a bool from false to true (you can do this on the variables tab on the side or in a modify variables block if you wish).

              Then you could do the same for the other if you wanted.

              Furthermore, if need be, you could have a condition block that simply checks if that bool is set to true or false.

              How you'd structure these will be dependent on your need and project, but I hope this helps you find the logic you're looking for, at least.

              M l'andorrà 2 Replies Last reply Reply Quote 0
              • M
                Maysam @MrDaisyBates last edited by

                @MrDaisyBates
                Thank you dear friend,
                Your answer was very helpful. I am trying to see if I can get result with this logic or not.

                MrDaisyBates 1 Reply Last reply Reply Quote 0
                • MrDaisyBates
                  MrDaisyBates @Maysam last edited by

                  @Maysam If not, feel free to share a project link and maybe we can assist you further. Any time you have two conditions being simultaneously being met, two condition blocks is enough. But if you need to allow them to happen in a sequence or at different times, I've had much better luck with bools and simply controlling their state that way.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Maysam @MrDaisyBates last edited by

                    @MrDaisyBates said in Performing an action after a condition has been met:

                    If not, feel free to share a project link and maybe we can assist you further. Any time you have two conditions being simultaneously being met, two condition blocks is enough. But if you need to allow them to happen in a sequence or at different times, I've had much better luck with bools and simply controlling their state that way.

                    shared/kIan3J7wb
                    Thank you again
                    In this project I want to perform condition #03 When two previous conditions has been met.( conditions #01 , #02) . In fact, when the first two conditions are placed on a candle, the subsequent candles are checked for the establishment of the third condition.

                    MrDaisyBates 1 Reply Last reply Reply Quote 0
                    • MrDaisyBates
                      MrDaisyBates @Maysam last edited by

                      @Maysam Okay. So. To make sure I'm following.

                      You want condition 3 to be your signal. The other two are just mandatory criteria that must be met beforehand?

                      M 1 Reply Last reply Reply Quote 0
                      • MrDaisyBates
                        MrDaisyBates last edited by

                        https://fxdreema.com/shared/yL3iwJy9e

                        image.png

                        This might give you an idea.

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

                          You can obviously do it as you please, but I'm hoping it illustrates what I mean by the bool logic to make it happen. Basically, if condition 1 isn't met, you can see your bool is set to false. If it is true, we move on to the second condition. And there, if the condition is not true, then we set the bool to false still. However, if the second condition is true, the first one must have also been true to even get to that point.

                          Then for your execution, you can see all we simply need to do is check if the bool is set to true or false. And if it's set to true, then we check for the signal condition.

                          1 Reply Last reply Reply Quote 0
                          • M
                            Maysam @MrDaisyBates last edited by

                            @MrDaisyBates
                            Yes, exactly.

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

                              I'm looking at your first condition. You might not want it set to "crosses above" and instead just above/below. At least the way I have it structured anyways. Unless you only want it to happen on that exact candle. "Crosses above" as you know is more of a single signal. If you want that, then you do you. Just a heads up.

                              M 2 Replies Last reply Reply Quote 0
                              • M
                                Maysam @MrDaisyBates last edited by

                                @MrDaisyBates
                                The first two conditions are the signal and the third condition is the trigger (entry point).

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Maysam @MrDaisyBates last edited by

                                  @MrDaisyBates
                                  By the way, crosses above is the most important signal condition for me.

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

                                    @MrDaisyBates That's exactly what I wanted to say. 🙂

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

                                    Online Users

                                    V
                                    O
                                    J
                                    B

                                    22
                                    Online

                                    146.7k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors