fxDreema

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

    How do I add a grace period?

    Questions & Answers
    2
    10
    1165
    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.
    • Zereleth
      Zereleth last edited by

      If I for example had a 10 SMA and a MACD, I wanted to trade when the SMA crosses over from negative to positive but only if the MACD has crossed over from negative to positive in the last 5 candles.

      How would I make this work? I basically want the MACD to cross over and then give a grace period of 5 candles in which the MACD block is allowed to be passed; as it stands right now it won't work because it wants the MACD and SMA to cross over at exactly the same time

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

        Do this:

        0_1592418630970_01.png

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

        Zereleth 2 Replies Last reply Reply Quote 1
        • Zereleth
          Zereleth @l'andorrà last edited by

          @l-andorrà Sorry for the late reply, I tried what you said but my bot doesn't seem to be trading still. Any ideas? https://fxdreema.com/shared/UbwBg2jpe

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

            @l-andorrà So I looked it up (http://fxdreema.com/forum/topic/3449/CROSS-WIDTH-function-do-not-work/3) and it turns out the cross width isn't what I thought it was, it's not a grace period due; as FxDreema put it: "it's something useless I think. It compares 2 candles far away from each other and does not care of anything in between. All candles between 1 and 10 are just discarded."

            Does anyone know how I can add a grace period any other way?

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

              @zereleth You can always check the value of the MACD every single bar and compare it to as many previous bas as required. Not a nice way to do it but certainly efficient.

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

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

                @l-andorrà Wouldn't that cause excessive bulk/slippage?

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

                  @zereleth Not at all. Storing the value of an indicator on several variables is not related to slippage. Just catch the value of MACD for the last 5 candles on 5 different variables. Compare them to each other and you will know for sure if there was a crosing or not within that period. Slippage is not relevant here because there is no open trade related.

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

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

                    @l-andorrà Sorry I think I might have used poor language, I don't mean slippage but i'm referring to a similar thing. Would having a bulkier setup not make the trades take longer to open as it has to run a larger script each tick? Also that answers my question about the MACD thank you i'll work on that

                    You're like my savoiur on this forum lmfao

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

                      @l-andorrà I tried this but it doesn't seem to be working or making any trades, i'd think trying to make a pass period would be a really common desire on this site but I can't find any other posts https://fxdreema.com/shared/VNIoiPzjc

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

                        @zereleth Specify candle ID 1 on all operans of all 'condition' blocks. Try it and let me know.

                        (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

                        K
                        C
                        E
                        M
                        F
                        T
                        M

                        17
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors