fxDreema

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

    Close trade using RSI and candle cross MA in a certain time period

    Questions & Answers
    3
    11
    620
    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.
    • K
      kk 6 last edited by

      https://fxdreema.com/shared/FMvvM6sNb

      I want to close a trade when the 2 conditions are met. These 2 conditions may or may not happen at the same candle but one should happen and another one is following within, for example, 15 minutes.

      I set the conditions in timer, it doesn't work. Could anyone please guild me what I did wrong. Thank you.

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

        @kk-6 When two conditions can happen at different times you will definitely need variables. As soon as one of them happens, a boolen variable is changed to 'true'. Then the second condition will require a previous 'condition' block requesting the first one to be true. However, please remember that you will need to reinitiate both of them accordingly.

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

        K 1 Reply Last reply Reply Quote 0
        • K
          kk 6 @l'andorrà last edited by

          @l-andorrà Thank you for helping me out. Do you have some example regarding a boolean variable? It doesn't have to be exact criteria as mine. I just want to look how to set it up because I have never done it before, therefore I have no idea where to start. Thanks a bunch.

          1 Reply Last reply Reply Quote 0
          • B
            biztet last edited by

            I suggest you can try connection the two condition block with AND block. So if both condition met regardless which one happen first, it should execute.

            K 1 Reply Last reply Reply Quote 0
            • K
              kk 6 @biztet last edited by kk 6

              @biztet Thank you for helping. I want the action to happen in sequence and within a specific time period. AND block probably doesn't work with a concept. What do you think? I have adjusted an EA in link below.

              @l-andorrà I have adjusted like this. https://fxdreema.com/shared/j9zTpQE6b on a timer tab. Is it what you mean?
              I have made another version https://fxdreema.com/shared/zX1X0XXLb I think it is better in term of a sequence of action.

              1 Reply Last reply Reply Quote 0
              • B
                biztet last edited by

                So if you need it to be in sequence, just put the 1st above the 2nd. Put the time filter on top if you need it.

                K 1 Reply Last reply Reply Quote 0
                • B
                  biztet last edited by biztet

                  Why don't you just make it like this,
                  use once per bar > cond1 > cond2 > close all

                  And you can play with timeframes for any block.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kk 6 @biztet last edited by

                    @biztet Ah! that simple! Thank you! One more question, the blocks are on Tick tab, right? If I want the actions to happen at anytime but within a15 minute range, should I use a Minutes filter block, start from 1 minute, end in 15 minutes?

                    1 Reply Last reply Reply Quote 0
                    • B
                      biztet last edited by

                      I don't think you need the time filter. Since you use within 15 minutes time for closing, set the timeframe m15 in once per bar block, then run this ea on m1 chart. So it will check all minutes in m15 candle.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kk 6 @biztet last edited by kk 6

                        @biztet Brilliant! I appreciate your help. My previous question it was also you who helped me out, I remember. Thanks indeed. Have a beautiful weekend. Regards.

                        1 Reply Last reply Reply Quote 0
                        • B
                          biztet last edited by

                          Goodluck!

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

                          Online Users

                          Q
                          N
                          E
                          S
                          L
                          N
                          A
                          F

                          17
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors