fxDreema

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

    xmas holiday - no trade filter - custom code

    Questions & Answers
    5
    32
    2400
    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.
    • P
      PipTheRipper last edited by

      Hi guys, does any of you with a bit of mql5 coding experience have an idea how to make a custom mql5 code block to disable trading if month = 12 and day = 20/21/22/23 etc

      Would like to add filter that makes the EA not open new positions if its december 20th to january 6th every year..

      The code should be for mt5.

      Cheers!

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @PipTheRipper last edited by

        @piptheripper You could do it like this, you would have to set the date/time in inputs and put flag in tree.0_1631645607479_Screenshot (676).png

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

          you could also save the hours of time and troubleshooting and just say to your phone, "hey Google / Siri, remind me to turn off my EA's for 2 weeks starting on this date."

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

            @jstap Shouldn't right operands be of a 'text' type instead of numeric? You are using string variables for them.

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

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

              @l-andorrà Yes it should be text, I believe.

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

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

                @jstap That's what I guessed, thanks.

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

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

                  @l-andorrà Your welcome

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click here➡️ https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

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

                    @l-andorrà @PipTheRipper Not sure what I was thinking with the above picture, to get the current date into a variable it needs added to modify variables like this:

                    0_1631996776520_ffc9e9d9-8720-4d69-905e-73275de4fe0e-image.png

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

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

                      Thank you guys! Appreciate it. Will see if I can make it work. I would like to leave the year out, so on backtest over many years, no trades are taken within that time period. If I figure it out I will upload it here so others might benefit. Thanks again!

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

                        @jstap This makes more sense to me, but I didn't dare to say anything befoe because I never use flags. 🙂 Thank you for sharing.

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

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

                          @l-andorrà I use modify variables unless I don't need to see the result in a comment.

                          Learn fxDreema Without the Wait!

                          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                          Don’t miss out

                          Click here➡️ https://mybook.to/fxDreema to get your copy today!

                          Enjoy! 😊

                          1 Reply Last reply Reply Quote 0
                          • A
                            Alex 13 last edited by

                            Can someone help me with the (xmas holiday - no trade filter)?
                            How can i make it on Fxdreema?
                            Can someone post the Projekt that works?
                            It would be great.

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

                              As these days are always set, you can use green filter blocks, to switch a flag on and off.

                              Learn fxDreema Without the Wait!

                              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                              Don’t miss out

                              Click here➡️ https://mybook.to/fxDreema to get your copy today!

                              Enjoy! 😊

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

                                You can do it like this: https://fxdreema.com/shared/5m5IRV06c dates were used for testing, set whatever dates are relevent to you. Check the bool condition, above your buy and sell tree.

                                Learn fxDreema Without the Wait!

                                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                Don’t miss out

                                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                Enjoy! 😊

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alex 13 last edited by Alex 13

                                  For Meta Trader 5 this doesen't work.
                                  Unbenannt.JPG
                                  Whoud this work like this?
                                  Unbenannt.JPG

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

                                    It does mate, mt5 is the same, but needs the full word

                                    TimeToString(datetime value,// number int mode=TIME_DATE|TIME_MINUTES//output format);

                                    put a shard link, ill check what's there, and tell you why something doesn't work

                                    Learn fxDreema Without the Wait!

                                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                    Don’t miss out

                                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                    Enjoy! 😊

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      Alex 13 last edited by Alex 13

                                      https://fxdreema.com/shared/9aNe2tJlb

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

                                        What are you trying to set under the TF block? flags once set work on all TF's. Spread and time filter need to go above everything.

                                        Learn fxDreema Without the Wait!

                                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                        Don’t miss out

                                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                        Enjoy! 😊

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Alex 13 last edited by Alex 13

                                          My goal was to get rid of the error message that I get when backtesting when I have different TFs under different conditions. If spread and time filter are above all else, how do I get the open price mode when testing?
                                          I'm not familiar with it at all.

                                          Could you arrange all the blocks the way you think is correct?
                                          When testing in the backtester, I would like to have the option to not only select tick mode but also 1 minute OHLC and open price mode.
                                          And all these error messages that keep coming up when testing in the journal that they're all gone?

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

                                            I would only set TF when I am happy everything else is working, and I think you want a check flag, if true activate blocks you want, if false activate different blocks.
                                            image.png

                                            Learn fxDreema Without the Wait!

                                            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                            Don’t miss out

                                            Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                            Enjoy! 😊

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

                                            Online Users

                                            A
                                            Z
                                            T
                                            B
                                            A
                                            P

                                            18
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors