fxDreema

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

    Finally, News Filter for MT5 in 1 easy to use Block !!

    Tutorials by Users
    31
    74
    15785
    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.
    • D
      Dre @morteza alishahi last edited by

      @morteza-alishahi Is it working for you?

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

        is doesn't work @QuantEngineer Screenshot 2023-07-28 022135.png

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

          Work fine, but need adjusts.

          Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
          Site: https://www.ontradingx.com.br
          Youtube: https://www.youtube.com/@ontradingx
          Boa sorte a todos nós!

          English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
          Website: https://www.ontradingx.com.br
          Youtube: https://www.youtube.com/@ontradingx
          Good luck to all of us!

          S D 2 Replies Last reply Reply Quote 0
          • S
            ssupsom @OntradingX last edited by

            @OntradingX Could you please tell me how you create this filter step by step?

            1 Reply Last reply Reply Quote 0
            • D
              Dre @OntradingX last edited by

              @OntradingX What adjusts are required? Could you send a screenshot?

              OntradingX 1 Reply Last reply Reply Quote 0
              • K
                Kenzowen last edited by

                What tutorial are you speaking about? You give zero help or explenation, might as well have spoken chinese same outcome....

                1 Reply Last reply Reply Quote 0
                • OntradingX
                  OntradingX @Dre last edited by

                  @Dre
                  93f3d555-a286-4948-95eb-fb142b7f30d7-image.png

                  below complete code:
                  /*
                  int minbeforeEvent = 6024;
                  int minAfterEvent = 60
                  24;
                  string currency_code = "";
                  string country_code=NULL; //--- country code (ISO 3166-1 Alpha-2)
                  ENUM_CALENDAR_EVENT_IMPORTANCE min_event_importance = CALENDAR_IMPORTANCE_HIGH;
                  */

                  int FilteredEventsCount = 0;
                  MqlCalendarValue values[];
                  //--- set the boundaries of the interval we take the events from
                  datetime date_from=TimeCurrent() - (60minbeforeEvent);
                  datetime date_to=TimeCurrent() + (60
                  minAfterEvent); // 0 means all known events, including the ones that have not occurred yet
                  //Print(TimeToString(TimeCurrent(), TIME_DATE|TIME_SECONDS), " -> Searching from ", TimeToString(date_from, TIME_DATE|TIME_SECONDS), " to ", TimeToString(date_to,TIME_DATE|TIME_SECONDS));
                  //--- request event history since the beginning to future time

                  //if(verbose) Print("Begin Searching for events from " + TimeToString(date_from,TIME_DATE|TIME_SECONDS) + " to " + TimeToString(date_to,TIME_DATE|TIME_SECONDS) + " For Country " + country_code + ", currency " + currency_code );
                  if(!CalendarValueHistory(values, date_from, 0, country_code, currency_code))
                  {
                  PrintFormat("Error! Failed to get events for country_code=(%s), currency=(%s)", country_code, currency_code);
                  PrintFormat("Error code: %d", GetLastError());

                  } else {
                  //if(verbose) Print("Found some events");
                  //PrintFormat("Received event values for country_code=(%s), currency=(%s) is (%d)", country_code, currency_code, ArraySize(values));
                  int total=ArraySize(values);
                  string commentString = "";
                  for(int i=0; i<total; i++)
                  {
                  //if(values[i].impact_type < )
                  MqlCalendarEvent event;
                  ulong event_id=values[i].event_id;
                  if(CalendarEventById(event_id,event))
                  {
                  if(((ENUM_CALENDAR_EVENT_IMPORTANCE)event.importance >= min_event_importance )
                  && (values[i].time <= date_to)
                  )
                  {
                  FilteredEventsCount++;

                             commentString = commentString + TimeToString(values[i].time,TIME_DATE|TIME_SECONDS) + " " + event.name + " " + EnumToString((ENUM_CALENDAR_EVENT_IMPORTANCE)event.importance ) + "\n";
                            }
                         }
                   }
                  

                  commentString = "MQL5 returned " + FilteredEventsCount + " events from " + TimeToString(date_from,TIME_DATE|TIME_SECONDS) + " to " + TimeToString(date_to,TIME_DATE|TIME_SECONDS) + " For Country " + country_code + ", currency " + currency_code + "\n" + commentString;
                  if(verbose) Comment(commentString);
                  }
                  if( FilteredEventsCount > 0 )
                  {~next~}
                  else
                  {~inext~}

                  BELOW, CODE TO INSERT IN GLOBAL VARIABLES:
                  string event_info = "";

                  AND, NEED CREAT THIS:
                  6bad9574-7abd-4cfd-8ef7-368a01118425-image.png

                  BELOW CONFIGURATIONS:
                  c006a5b5-7efe-41f3-b3a4-267acfd3158c-image.png

                  88d0f952-396c-4196-b1b3-aeb1b05206d7-image.png

                  29a5e1b5-3ef1-4baa-b840-cf0b23b73eba-image.png

                  a72c1d18-5785-41dc-a2bb-092f2aabc32c-image.png

                  396f9b31-4609-4b30-85b7-4e9b6a01f796-image.png

                  f238acaf-dc82-469f-8fc2-f24c848b87e8-image.png

                  AND TO FINISH INSERT THIS BUTTON CREATED IN ON TICK OR ON TIMER
                  b7ad49ce-b0e2-48d8-88a4-9af2efdb2148-image.png

                  Hope this helps someone.

                  Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                  Site: https://www.ontradingx.com.br
                  Youtube: https://www.youtube.com/@ontradingx
                  Boa sorte a todos nós!

                  English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                  Website: https://www.ontradingx.com.br
                  Youtube: https://www.youtube.com/@ontradingx
                  Good luck to all of us!

                  D L 2 Replies Last reply Reply Quote 4
                  • D
                    Dre @OntradingX last edited by

                    @OntradingX Thanks, appreciate the support but I'm still struggling.

                    Copying the code & instructions above I get this error:

                    Error.png

                    Also, is the last parameter Datatype ENUM_CALENDAR_EVENT_IMPORTANCE ?

                    Thanks

                    OntradingX J 3 Replies Last reply Reply Quote 0
                    • OntradingX
                      OntradingX @Dre last edited by

                      @Dre please, print your screen (constants and variables) here

                      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                      Site: https://www.ontradingx.com.br
                      Youtube: https://www.youtube.com/@ontradingx
                      Boa sorte a todos nós!

                      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                      Website: https://www.ontradingx.com.br
                      Youtube: https://www.youtube.com/@ontradingx
                      Good luck to all of us!

                      D 1 Reply Last reply Reply Quote 0
                      • OntradingX
                        OntradingX @Dre last edited by

                        @Dre ENUM_CALENDAR_EVENT_IMPORTANCE is correct

                        Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                        Site: https://www.ontradingx.com.br
                        Youtube: https://www.youtube.com/@ontradingx
                        Boa sorte a todos nós!

                        English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                        Website: https://www.ontradingx.com.br
                        Youtube: https://www.youtube.com/@ontradingx
                        Good luck to all of us!

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

                          image.png

                          Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                          Site: https://www.ontradingx.com.br
                          Youtube: https://www.youtube.com/@ontradingx
                          Boa sorte a todos nós!

                          English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                          Website: https://www.ontradingx.com.br
                          Youtube: https://www.youtube.com/@ontradingx
                          Good luck to all of us!

                          1 Reply Last reply Reply Quote 0
                          • D
                            Dre @OntradingX last edited by

                            @OntradingX Thanks again.

                            I'm not using any Variables:

                            Constants.png

                            1 Reply Last reply Reply Quote 0
                            • L
                              lucas farias de almeida last edited by

                              segui exatamente oque esta ai não deu nenhum erro porem nao aparece nenhum evento no grafico como posso saber se funciona ou não ?
                              e como posso usar as regras dele para desligar o botão negociação automatica antes do evento e voltar a ligar após o evento envez de abrir uma order de compra ou venda me explica ai por favor oque esta acontecendo

                              OntradingX 1 Reply Last reply Reply Quote 0
                              • OntradingX
                                OntradingX @lucas farias de almeida last edited by

                                @lucas-farias-de-almeida Oi lucas, para que isto funcione adequadamente são vários passos, inclusive um que talvez esteja faltando ai do seu lado é o do bloco comentário para exibir os dados da noticia. Me chame no reservado e talvez eu possa lhe ajuda no telegram.

                                Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                                Site: https://www.ontradingx.com.br
                                Youtube: https://www.youtube.com/@ontradingx
                                Boa sorte a todos nós!

                                English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                                Website: https://www.ontradingx.com.br
                                Youtube: https://www.youtube.com/@ontradingx
                                Good luck to all of us!

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

                                  @Dre said in Finally, News Filter for MT5 in 1 easy to use Block !!:

                                  I'm still struggling.

                                  I'm still struggling too. @OntradingX
                                  Please help !!

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lucag @OntradingX last edited by lucag

                                    @OntradingX Ciao ,
                                    Hi is working very well i think there is a simple mistake

                                    MinuteBeforeEvent act like MinuteAfterEvent so it's inverted.

                                    i think in this code we need to change + with -

                                    datetime date_from=TimeCurrent() - (60 * minbeforeEvent);
                                    datetime date_to=TimeCurrent() + (60 * minAfterEvent);

                                    so

                                    datetime date_from=TimeCurrent() + (60 * minbeforeEvent);
                                    datetime date_to=TimeCurrent() - (60 * minAfterEvent);

                                    I'm wrong ?
                                    Thank's

                                    edit :
                                    I try to invert + and - but now will display nothing, for now i invert the parameters that i will pass.

                                    OntradingX 1 Reply Last reply Reply Quote 0
                                    • OntradingX
                                      OntradingX @lucag last edited by

                                      @lucag you is correct, great information.

                                      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                                      Site: https://www.ontradingx.com.br
                                      Youtube: https://www.youtube.com/@ontradingx
                                      Boa sorte a todos nós!

                                      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                                      Website: https://www.ontradingx.com.br
                                      Youtube: https://www.youtube.com/@ontradingx
                                      Good luck to all of us!

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        GeoFX last edited by GeoFX

                                        • Hey mates! Thank you for doing this! 🙌 Since this topic is so popular, could anyone shot a step-by-step video tutorial on how a News filter is built w/ FXStudio and post it in this thread
                                        • I believe it would be much appreciated by the community, especially by those having less experience w/ FXStudio and Custom Block building. Thank you! 🙏
                                        1 Reply Last reply Reply Quote 1
                                        • A
                                          abinfoappp last edited by

                                          how to filter All day event ?

                                          OntradingX 1 Reply Last reply Reply Quote 0
                                          • OntradingX
                                            OntradingX @abinfoappp last edited by

                                            @abinfoappp write ALL

                                            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                                            Site: https://www.ontradingx.com.br
                                            Youtube: https://www.youtube.com/@ontradingx
                                            Boa sorte a todos nós!

                                            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                                            Website: https://www.ontradingx.com.br
                                            Youtube: https://www.youtube.com/@ontradingx
                                            Good luck to all of us!

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

                                            Online Users

                                            E
                                            E
                                            O
                                            O
                                            D
                                            F
                                            K
                                            C
                                            E
                                            M

                                            21
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors