fxDreema

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

    Finally , Integration of News Filter :) [ MT4 Only ]

    Tutorials by Users
    29
    68
    31937
    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.
    • T
      Traderz last edited by

      Hello folks,
      i saw many people here asking for adding News filter to their EA made by fxdreema , So out of my admiration of fxdreema I have edited the one I use in my manual made EAs to be compatible with FxDreema , until now it's only for MT4 , and If you tried to make it works with MT5 with Conversion tool , it wouldn't . Even after fixing all errors it will give you Stack Overflow due to the conversion method , May be @fxDreema can do this ( MT5 Version ) and even convert all this tutorial in one block so it would be easy for everyone as it will give a huge boost for fxdreema

      First of all , The Origin is from an open source code from mql5 from this link Here
      I have to mention that to save that guys's copyright , delete it if it's against the rules . That's what i use and edited the code to work with blocks system in fxdreema

      Here's the link for the Project
      https://fxdreema.com/shared/sSJwC65Ob

      You will have to copy that 2 block from Oninit() and other 2 also from Deinint() , and you will have to make a variable called " trade " it's a boolean one with "true" value

      in OnTick() tab you will find a separated block called " On Global Scope " it's of no value in the compiling you can delete it normally but YOU HAVE to Copy it's contents and put in the first of the EA on the local Compiler in the Global scope
      It contains the Variabes and all custom function included in the Project
      I hope @fxDreema in the future give us a tab called global scope and we could add anything in it .

      The Condition block checks if the trade allowed or not by checking news function , if it passed you should connect it to your trading function , if not remember that you should connect the yellow part to any managing function you have in the code otherwise if there's news , you trading will stop ( as it should be ) but also your managing order functions as Trailing or Breakeven will be suspended also and that would be a problem

      Also remember to connect the route of Trading with the route of managing to also allow managing whether there's news or not
      it's done in the example by connection of "If trade" block to "no trade" block

      Don't forget to put both links of http://www.dailyfx.com/ and http://ec.forexprostools.com/ To your trusted URLs in the Terminal so your EA can check for the News

      I hope that help you guys , and hope @fxDreema to convert this work to single block and also make it compatible with MT5

      Thanks

      A Z 2 Replies Last reply Reply Quote 3
      • T
        Traderz last edited by

        Remember : Don't Compile it online , get mq4 version first then add what in "On Global Scope" tab in the global scope of the file then compile it locally

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

          Nice. Did someone try this?

          1 Reply Last reply Reply Quote 0
          • M
            mfuetterer last edited by

            Interesting, but I can't get it running.

            A lot of compilation issues.

            Don't know, whats meant, with compile locally.
            If I can't change the trading rules ....

            1 Reply Last reply Reply Quote 0
            • A
              ambrogio @Traderz last edited by

              @traderz Hi!, and thank you for your precious work, but I need to understand better how to use it. Do I have to copy something in the file by opening it with Metaeditor?

              Z 1 Reply Last reply Reply Quote 0
              • T
                Traderz last edited by

                @ambrogio
                Yes, Don't Compile it with FXDreema but export the file as .mq4 then open it with Metaeditor and added what's in the block " Global Scope "
                in the global scope section of the file ( it's the very first beginning of the file just after you name the variables and constans and before any functions )

                A 1 Reply Last reply Reply Quote 0
                • A
                  ambrogio @Traderz last edited by

                  @traderz
                  thank you very much, copy and paste and compiling .ex4 everything ok, in the coming days I will test

                  1 Reply Last reply Reply Quote 0
                  • F
                    fred1356 last edited by

                    great ! did someone test it? it seems promising!

                    1 Reply Last reply Reply Quote 0
                    • A
                      ambrogio last edited by ambrogio

                      Hi @Traderz , it seems that Dailyfx.com does not work, I'm wrong?

                      0_1535097400204_MY_NEWS_FILTER.ex4
                      0_1535097406475_MY_NEWS_FILTER.mq4

                      There are no errors in the journal but does not draw vertical lines.

                      Please, can you check?
                      Thanks

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        Traderz @ambrogio last edited by

                        @ambrogio maybe it's server problem itself , I use investing.com always it's better

                        A 1 Reply Last reply Reply Quote 1
                        • A
                          ambrogio @Traderz last edited by

                          @traderz said in Finally , Integration of News Filter 🙂 [ MT4 Only ]:

                          @ambrogio maybe it's server problem itself , I use investing.com always it's better

                          1 Reply Last reply Reply Quote 0
                          • J
                            jackywong8712 last edited by

                            May I know what is the purpose of the function "IsTradeAllowed()"?

                            I cannot find logic of this function. Please kindly advise.

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jackywong8712 @jackywong8712 last edited by

                              OK now. Found that it is MQL5 function for checking if the Expert Advisor is allowed to trade and trading context is not busy.

                              1 Reply Last reply Reply Quote 0
                              • T
                                tradingstrategy88 last edited by

                                It is great! , but can you make a short video about how you put the news filter to the EA, Please?
                                cause it will help alot people, much appreciate

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zedeai2 @Traderz last edited by

                                  @traderz Hello, this project had been 3 years ago. Is is still working? Because I just tried and there is error as this pic0_1608346415151_92f33c5a-14a2-419e-a6d3-f66e10284b0f-image.png

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    zedeai2 @ambrogio last edited by

                                    @ambrogio !Hello, this project had been 3 years ago. Is is still working? Because I just tried and there is error as this pic

                                    0_1608354902687_8c3ffa49-a73e-4391-afe2-9d06e64231f7-image.png

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      ambrogio @zedeai2 last edited by

                                      @zedeai2 Hello, you don't have to compile trough fxdreema builder, read well all topic.

                                      Z 1 Reply Last reply Reply Quote 0
                                      • Z
                                        zedeai2 @ambrogio last edited by

                                        @ambrogio Hello, thank you for reply. And is this you link working properly? https://fxdreema.com/shared/sSJwC65Ob

                                        Otherwise do you have the final project that working well?

                                        Because I don't undersand the compilation steps.

                                        1...
                                        2...
                                        3.. etc

                                        Thank you very much for your attention

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          ambrogio @zedeai2 last edited by

                                          @zedeai2 I don't remember at all if that link works, but in my projects I found this one that MUST BE TESTED

                                          https://fxdreema.com/shared/twV9ZV9zb

                                          This file should be your template to always use when you want to integrate the news filter.

                                          0_1608475550659_FILE4.JPG

                                          I highlighted where to start with your expert, and also the block # 2020 that we will need after.

                                          STEP 1) When you have finished your expert, save it through the .mq4 button
                                          STEP 2) With the MetaEditor application, open the file you just saved
                                          STEP 3) Copy and paste the content of block #2020 in the place i have indicate in this screenshot

                                          0_1608476239138_FILE.JPG

                                          0_1608476261536_FILE2.JPG

                                          Your project is ready to be tested.
                                          BUT REMEMBER: if you reload the new modified .mq4 file in the fxdreema builder you will lose the content copied from the 2020 block, and you will have to redo the steps above.

                                          Z N Kallamamran B 4 Replies Last reply Reply Quote 1
                                          • Z
                                            zedeai2 @ambrogio last edited by

                                            @ambrogio Hello, Thank you very much for your reply :).

                                            Here are the steps I did as mentioned by you guideline :

                                            1 Steps compilation wass generated successfully inside the mt4 metaedior
                                            2 But I don't see any line as should be seen on the original ea template (pic 1 was generated by the original ea template, and the pic 2 wass generated by your ea as downloaded on your link here https://fxdreema.com/shared/twV9ZV9zb

                                            So, any problem to my steps of compilation, or is there no vertical line as should be seen as original version?

                                            Thank you very much for your great help 🙂

                                            0_1608510962699_3fcb3cae-136d-4312-9095-d22dd3b88d58-image.png

                                            A Z N 3 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post

                                            Online Users

                                            P
                                            R
                                            A
                                            D
                                            A
                                            E

                                            19
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors