fxDreema

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

    Please how to find the day of month

    Questions & Answers
    6
    13
    865
    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.
    • Julianrob
      Julianrob last edited by

      I've read all the posts on this and it's not clear. I want to filter out certain days of the month like day 19 by not including them in trading. Here is what I tried but didn't succeed, I don't know why?
      DOM-filter.png

      Then I saw fxdreema's post (https://fxdreema.com/shared/iB1YvWgSb) but it goes over my head. So here I want to write a condition to exclude this day 19 - Am I on the right track? It doesn't work yet

      https://fxdreema.com/shared/pfDjrmQY

      Any help would be much appreciated. Also if the day of month could be put into an input variable too that would be awesome

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

        You can get it like this: https://fxdreema.com/shared/9qnCuF8Pd condition block variable == 19 will give you the what you want

        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
        • Julianrob
          Julianrob last edited by

          I'm not quite following you. I got the custom code, that makes sense. But how will I write that condition to exclude that day?
          How would it be written below to do buy trades each day except day 19?
          https://fxdreema.com/shared/d3Pkl8x1e

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

            Download and test that, in the comment on backtest you will see it displays the current day of the month number

            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
            • Julianrob
              Julianrob last edited by

              Thanks I’ll take a look, maybe I can learn more from your book I just ordered. But still not clear how an example code could look to exclude days

              S Vahab.K 2 Replies Last reply Reply Quote 0
              • S
                sktsec @Julianrob last edited by

                @Julianrob
                Add a condition: day_of_month!=19

                1 Reply Last reply Reply Quote 1
                • Julianrob
                  Julianrob last edited by

                  Thanks @sktsec

                  But I really don't understand the mql4 language at all. How can I do this? I've got this:
                  https://fxdreema.com/shared/LDYu92WIb but the EA won't load. I really don't understand custom code

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

                    @jstap Wouldn't the option selected on the first post do exactly what your custom code does?

                    (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à Maybe I sometimes prefer to use custom because it gives me a direct reference to what is happening. I also didn't test that to see what happened.

                      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
                      • Vahab.K
                        Vahab.K @Julianrob last edited by

                        @Julianrob I do Somthing Like This https://fxdreema.com/shared/T0HAriLpd

                        Julianrob 1 Reply Last reply Reply Quote 0
                        • J
                          JayPhillbrooks last edited by

                          Here is my version. It does the exact same as Vahab's solution. It's a step longer for your case but could be useful for different needs.
                          https://fxdreema.com/shared/5qSsLDfnd

                          1 Reply Last reply Reply Quote 0
                          • Julianrob
                            Julianrob @Vahab.K last edited by

                            @Vahab-K Thankyou, you are genius, it works perfectly! 😁
                            @JayPhillbrooks Yes, I believe this would work well too. Filtering out certain days of the month is very helpful for enhancing performance

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

                              @jstap Ok. 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.

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

                              Online Users

                              S
                              T
                              F
                              I
                              S
                              S
                              G
                              I
                              B
                              D

                              20
                              Online

                              146.6k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors