fxDreema

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

    MT5 Very simple news filter

    Tutorials by Users
    11
    37
    9027
    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.
    • I
      Ipod last edited by Ipod

      The original idea was not mine, but I came up with an extremely simple version to manage news events. Essentially it detects a news event object on the chart and if so it will prevent any new trades opening, all settings are managed in the indicator for news events.

      Original Thread - https://fxdreema.com/forum/topic/1973/News-EA/39

      Apply the FXSSI news indicator to your chart and set the news up, e.g. 4hrs before and after on 3 star.

      Apply the EA - Simple comment box top left for News - Detected or not.

      FXSSI News MT5.mq5

      https://fxdreema.com/shared/PWmLKlzOc

      https://fxssi.com/forex-news-indicator-mt4 (MT5 download is on this link)

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

        Check if 0 is the next event (I think it could be in the past)

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

          You can choose within the indicator whether you have past events or not, so if you set past events to 1 hour, after that hour if there is one news event active it will dissapear and trading will resume.

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

            Ok, so then the next event is always 0?

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

              Well kinda of, the first event from left to right no matter if it is before or after the news is always 0

              So hence why the settings are controlled within the indicator. When a news event is no longer displayed on the chart after e.g. 4 hours the objects get recreated and thus again the first even from left to right is 0 again.

              1 Reply Last reply Reply Quote 0
              • C
                chrisbe last edited by

                @Ipod Your idea of the FXSS.Cal indicator was brillent, i built an optimized version that uses different parameters, works 100% no need to find the 0, or 1, anyway any idea where i can get my hands on the .MQ5 raw file, i believe i can optimize the indicator to be used for backtesting

                F I 2 Replies Last reply Reply Quote 0
                • F
                  FabioW @chrisbe last edited by

                  @chrisbe would you mind to share it and describe how it works if needed?

                  1 Reply Last reply Reply Quote 0
                  • I
                    Ipod @chrisbe last edited by Ipod

                    @chrisbe There is no way to get the mq5 raw file without hacking the file (I do not have contacts for that), you could commission someone on mql5 to make a news filter with an additional option to be able to download a csv file and allow that to be used during backtests.

                    Otherwise with this you can only forward test sadly, but I am glad you find it useful. Can you share your project so I can maybe improve my own personal news filter.

                    C 2 Replies Last reply Reply Quote 0
                    • C
                      chrisbe @Ipod last edited by

                      @Ipod Hello, true, i workkd out a way to use the back test but for MT4 currently MT5, it involved downloading the past news data and saving to your MT Platform, will shear when am done

                      I 1 Reply Last reply Reply Quote 0
                      • C
                        chrisbe @Ipod last edited by

                        @Ipod Sure will shear it with you shortly, updating a few codes in it

                        1 Reply Last reply Reply Quote 0
                        • I
                          Ipod @chrisbe last edited by

                          @chrisbe Great!

                          Let me know how you get on

                          1 Reply Last reply Reply Quote 0
                          • C
                            chrisbe last edited by

                            Hello Guys, been away from FXdreema in a while, n=but here is the updated news filter works very well,
                            https://fxdreema.com/shared/XC1HgM9Hc,

                            THIS EA HAS BEEN MADE USING FXSSI.Calendar.ex5 AS A NEWS INDICATOR, IT DOESNT NEED TO BE IMPORTED INTO FX DREEMA TO WORK, PARAMETERS HAVE BEEN SET TO USE TRUE OR FALSE TO STOP, CLOSE AND PREVENT TRADE BEFORE NEWS HOUR, DEFAULT PARAMETER IS SET IN SECONDS, 1 HOUR BEFORE NEWS AND 30 MINUTES AFTER NEWS THIS CAN BE CHANGED, DEFAULT PARAMETER FOR STOPING TRADE IS High_Impact OR Medium_Impact, if High_Impact_Only IS SET TO TRUE, ONLY HIGH IMPACT NEWS WILL BE USED, ELSE IF SET TO FALSE BOTH HIGH AND MEDIUM IMPACT NEWS WILL BE USED

                            l'andorrà I Z H VHV-Profit-Masters 5 Replies Last reply Reply Quote 2
                            • l'andorrà
                              l'andorrà @chrisbe last edited by

                              @chrisbe Thank you very much 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.

                              1 Reply Last reply Reply Quote 0
                              • I
                                Ipod @chrisbe last edited by Ipod

                                @chrisbe Nice, thanks for sharing that's some nice code and a great addition.

                                Personally I prefer minutes as the input, I think some minor changes to the over all options / configuration will make this an exceptional fxdreema news filter that was previously extremly difficult. I will try to implement some features my self.

                                I'll have to learn to code and understand this but my vision is something as below. As most prop firms these days void trades that open through news events etc.

                                Constants

                                • News Filter - True / False
                                • Low Impact - 5
                                • Med Impact - 60
                                • High Impact - 240

                                Low, Med and High are in minutes, and 0 would = false or turned off. Generally I use the same value for pre and post news so that's not a huge issue to me.

                                One single variable output "NewsDetected" so in the code, if any of the low, medium or high are detected in those times it sets "NewsDetected" to true and then trading blocks can be determined from that single condition block.

                                Maybe have a variable "News_Detected" and at the end of the code if Low, Med, High add up to 0 then news is allowed, if anyone of them set to 1 would add the total to =>1 then trading is disabled.

                                Something like this.

                                3f071a43-5f30-4c70-8532-be00dfcb35d4-image.png

                                C VHV-Profit-Masters 2 Replies Last reply Reply Quote 0
                                • C
                                  chrisbe @Ipod last edited by

                                  @Ipod Hello, if you want minutes all yu need to do is adjust the time, remember the time is in seconds, the default seconds in the constant section is 3600 seconds which is 1 hour, just convert the minutes you want to seconds and put the value there thats it

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    zentex74 @chrisbe last edited by

                                    @chrisbe Hi is this still valid?

                                    2ea29de1-e272-4225-b776-a0c86c73dbf3-image.png

                                    I dont understand the custom mql code and others which are not connected to anything. What do they do and what are their functions, seems like this link is no longer valid?

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      chrisbe @zentex74 last edited by

                                      @zentex74 Hello
                                      It is valid anything not connected you can delete, the conditions i used to demonstrate is a simple moving average, you can replace the moving average with your own conditions

                                      1 Reply Last reply Reply Quote 0
                                      • Z
                                        zentex74 last edited by

                                        Sorry for the late reply, thanks for your response

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hansol1411 @chrisbe last edited by

                                          @chrisbe

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            hansol1411 last edited by

                                            The code is currently unavailable.

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

                                            Online Users

                                            S
                                            O
                                            K
                                            M
                                            M
                                            C

                                            16
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors