fxDreema

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

    News during Backtest

    Questions & Answers
    13
    59
    7873
    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.
    • Archer
      Archer last edited by

      well... according to the author - YES
      I've never tried it myself, cause live option is not what I'm aiming for.

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

        Hi!

        I got this project a little bit forward, adding the 6 datetimes to the indicator buffers and also visualizing the event dates. Keywords aren't supported in this version.

        newsfilter.ex5
        newsfilter.mq5

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        Archer 1 Reply Last reply Reply Quote 2
        • Archer
          Archer @roar last edited by

          @roar said in News during Backtest:

          Hi!

          I got this project a little bit forward, adding the 6 datetimes to the indicator buffers and also visualizing the event dates. Keywords aren't supported in this version.

          newsfilter.ex5
          newsfilter.mq5

          very cool @roar , very cool !

          I am convinced that with each subsequent version of your work we will reach a one blocker on fxDreema 😉

          In the meantime, thank you once more for your commitment !

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

            so I've ran a few tests and already can do some basic news filtration.
            Awesome stuff ! Can't wait for next upgrades.

            @roar quick question - is there any chance to 'force' the indicator to include news buffers from currencies other than the one being tested?
            If so, where can I add those currencies in the indicator's code?
            For instance, while backtesting on EUR/USD, I'd also like to consider news from GBP and other currencies I select.

            And a less urgent matter, maybe for later if it's not much of a hassle - the names of specific news events.
            It would be great if they were included in the names of the vertical lines that are shown on the chart.
            And that's all for now 🙂

            roar 1 Reply Last reply Reply Quote 0
            • roar
              roar @Archer last edited by

              @Archer glad it works. Currently the indicator filters for USD and the margin and profit currency of current pair. These filters are on line 75, you can add more currencies similar to the "USD" part

              43845700-61dc-43c0-9cb0-b2cea5064487-image.png

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              Archer 1 Reply Last reply Reply Quote 1
              • T
                tec.nacks @Archer last edited by

                @Archer oh okay, How can I get it into FxDreema block to be able to use it in real-time inside an EA?

                Archer 1 Reply Last reply Reply Quote 0
                • Archer
                  Archer @tec.nacks last edited by

                  @tec-nacks said in News during Backtest:

                  @Archer oh okay, How can I get it into FxDreema block to be able to use it in real-time inside an EA?

                  To prevent the EA from opening positions in the live market before and after news events, I came up with this solution:

                  https://fxdreema.com/shared/x0YpZjKB

                  You simply need an indicator that draws vertical lines on the chart indicating upcoming news. There are plenty of such indicators available online. Choose one that suits you.

                  Instead of the "SKIP TICKS" block, you can also use ON/OFF blocks to deactivate the desired block in the EA before and after the news. This way, you won't stop all actions in the "ON TICK" section, but only specific ones.

                  Just keep in mind that I'm a very basic user of fxDreema. This isn't a genius method, and certainly, more advanced users on this forum might find better solutions. However, it has been working for me for many months, so I'm using it for now.

                  T 1 Reply Last reply Reply Quote 0
                  • Archer
                    Archer @roar last edited by

                    @roar said in News during Backtest:

                    @Archer glad it works. Currently the indicator filters for USD and the margin and profit currency of current pair. These filters are on line 75, you can add more currencies similar to the "USD" part

                    thx @roar

                    So I added the currencies I'm interested in to the code

                    sample.png

                    and ran a test on the USDJPY pair.
                    It seems like everything is working as it should.
                    I just hope I didn't mess up your code, and this is how it should be added.
                    Please let me know if this isn't the right approach.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tec.nacks @Archer last edited by

                      @Archer Waowwww...this is superrrrr

                      How can I didn't see this coming ... Thank you man

                      What indicator do you use?

                      1 Reply Last reply Reply Quote 0
                      • T
                        tec.nacks @Archer last edited by

                        @ Archer Pls, I would like to use this News Filter in my backtest as well but I don't seem to put together the files and what should be where.

                        Help with a more straight forward guide pls

                        1 Reply Last reply Reply Quote 0
                        • T
                          tec.nacks last edited by tec.nacks

                          @Archer pls I'll like you to explain the logic behind why you have Current Candle time to be Above or Equals not below negative 3600 (and is the 3600 and 1800 in seconds or minutes?) and between Skip Ticks and Turn ON/OFF blocks, which do you find me effective?

                          Screenshot 2023-12-03 190017.png

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

                            I'm not sure that works, it would be better like this

                            image.png
                            newsfilter.mq5

                            Need small help? Tag me in your post
                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                            1 Reply Last reply Reply Quote 1
                            • G
                              garipyolcu last edited by

                              Hello evryone
                              have good time.
                              When I put the terminate block on the bot, it doesn't work during the backtest I wanted to see if it was true or not
                              I mean, this option doesn't work in backtest, but it works in forward test?
                              Thank you for helping me.

                              1 Reply Last reply Reply Quote 0
                              • S
                                sunny4chris last edited by

                                Hello everyone please I need help on how to use my phone to create a not

                                1 Reply Last reply Reply Quote 0
                                • T
                                  tec.nacks last edited by tec.nacks

                                  @roar Hello man, I converted a News Indie from MT4 to MT5 using FxD Conversion feature and was getting this error not sure what's the root cause. Can you help look into it pls?

                                  Screenshot 2023-12-04 061227.png

                                  FFC.mq4
                                  FFC.mq5

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

                                    thank you @roar
                                    I'll fallow yor way.

                                    @tec-nacks

                                    I normally use two news idicators:

                                    IceFX.NewsInfo.ex4
                                    FFC_March_2021.mq4
                                    FFC_March_2021.ex4

                                    IceFX has a cool built-in additional function for disabling auto trading on the entire platform, but for obvious reasons, you need to be careful when using it if you're using more than one EA.

                                    Regarding the backtest, simply place the file named "All news events 2007-01-01 thru 2023-12-31 timestamped UTC time -- sorted by date, time.csv" into the folder that roar mentioned in the previous message, just rename it to "news.csv".
                                    Then the indicator will start working.

                                    The logic in the block you're asking about is simple ->>> -3600 seconds means that one hour before the news, the EA will trigger the SKIP TICKS function, which will block EA actions for a specified number of minutes in that block. So, if you set it to, for example, 90 minutes and the news was at 14:00, the EA won't do anything from 13:00 to 14:30.

                                    I don't know the structure of your EA, so I'm not sure which method, SKIP TICKS or ON/OFF, will be more effective for you.

                                    T 2 Replies Last reply Reply Quote 0
                                    • T
                                      tec.nacks @Archer last edited by

                                      @Archer Yeah I love IceFx but its not available for MT5. or Do you have the MT5 version?

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

                                        nope, and I don't think there is one.

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

                                          Hi @roar !

                                          I'm still testing various configurations in backtesting with this indicator, and as I mentioned earlier, it works fine in a basic scope.
                                          However, to reach a higher level of sophistication and acquire solid data, at least two important functions are missing:

                                          1. The first is the option I've mentioned before - filtering news that contain specific keywords along with the impact level, such as "Speaks,H," or/ and filtering based solely on the provided word.

                                          2. The second is the ability to adjust the broker's time and the time in the database concerning daylight saving time. Unfortunately, currently, the tester needs to be stopped four times a year to manually adjust the offset: for daylight saving time, for the two-week gap resulting from the fact that the USA and other regions change time with a two weeks delay compared to Europe, then back to standard time, and again for the two-week gap. Forgetting this adjustment will cause news markers to appear incorrectly on the chart and in buffers depending on the season. Perhaps introducing four separate options for the offset to account for these four time changes at once could work? Or maybe there's an easier solution... I'm not quite sure.

                                          Regardless, I would be extremely grateful if these two functions could be added in the next update.

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

                                            Isn't DLS time set by your broker (server time)? Meaning as this is used on backtest, DSL happens anyway...

                                            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! 😊

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

                                            Online Users

                                            S
                                            T
                                            A
                                            Y
                                            H
                                            B

                                            12
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors