Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us

Share your knowledge in the forex community!

Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5

Create A New Account
Home/ Questions/Q 3778
Next
In Process
anatashkin
anatashkin

anatashkin

  • 1 Question
  • 0 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
anatashkin
Asked: December 26, 20202020-12-26T13:50:52+00:00 2020-12-26T13:50:52+00:00In: Forex Expert Advisors

MQL functions for accessing the MetaTrader 5 economic calendar

  • 0

Dear experts!
Tell me the MQL functions for accessing the data of the MetaTrader 5 economic calendar. I would like something like
datetime GetNextNews(string symbol, uint importance, datetime fromTime)
datetime&[] GetAllNews(string symbol, uint importance)
double GetActualValue(string symbol, uint importance, datetime newsTime)double GetForecastValue(string symbol, uint importance, datetime newsTime)double GetPreviousValue(string symbol, uint importance, datetime newsTime) 
There is a calendar in MT5, but there is no software access to it. Anyway, I didn’t find the relevant material in the documentation.
For MT4, expert advisors/indicators are written that load data from external resources (such as ForexFactory, Investing.Com). There is nothing working for MT5, at least in the public domain, and the built-in calendar can only be used visually, without access in the code.
Help, dear experts! 

  • 4 4 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. _money_maker_

      _money_maker_

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      _money_maker_
      2020-12-26T13:51:15+00:00Added an answer on December 26, 2020 at 1:51 pm

      Good day, I remember when we were talking about the MQL calendar, we thought that there would be not only programmatic access to the native calendar, but also access to the history of values? or am I confusing something? please tell me in this direction work is underway or is it already all development, with regard to the calendar?

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. nume

      nume

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      nume
      2020-12-26T13:51:07+00:00Added an answer on December 26, 2020 at 1:51 pm

      No, the question is not about alternative sources. You don’t need a calendar to make a calendar. There are two specific aspects here: 1) how quickly the calendar displays current values and 2) how quickly it is possible to programmatically compare current values with forecast or previous values and open trades based on this. I don’t know who is lying, but there are no calendars that are too fast on the web. Therefore, the calendar in mkl5 is of interest. The speed here should be measured in milliseconds.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. alexvd

      alexvd

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      alexvd
      2020-12-26T13:51:02+00:00Added an answer on December 26, 2020 at 1:51 pm

      If you have activated the calendar on the chart, then nothing prevents you from programmatically running through the OBJECT_EVENT objects on the chart and counting their values. 2-line script

      void OnStart()
        {
         for(int i=0;i<ObjectsTotal(ChartID(),-1,OBJ_EVENT);i++)
            Print(""",ObjectGetString(ChartID(),ObjectName(ChartID(),i,-1,OBJ_EVENT),OBJPROP_TEXT),"" at ",datetime(ObjectGetInteger(ChartID(),ObjectName(ChartID(),i,-1,OBJ_EVENT),OBJPROP_TIME)));
        }

       

      In addition, it is now possible to request and receive alternative calendars on the network without using third-party DLLs. See the description of the WebRequest function.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. marketeer

      marketeer

      • 1 Question
      • 32 Answers
      • 0 Best Answers
      • 96 Points
      View Profile
      marketeer
      2020-12-26T13:50:55+00:00Added an answer on December 26, 2020 at 1:50 pm

      anatashkin:

      For MT4, expert advisors/indicators are written that load data from external resources (such as ForexFactory, Investing.Com). There is nothing working for MT5, at least in the public domain, and the built-in calendar can only be used visually, without access in the code.

      Write a request to the service Desk. In a good way, of course, you need programmatic access to the events of the built-in calendar.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 514
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 921
    • Popular
    • Answers
    • Tags
      • On: December 18, 2020
      • Answers: 16

      How to allow trading at certain times

      • On: December 29, 2020
      • Answers: 16

      Example of implementing the OOP pattern Abstract Factory using MQL5 ...

      • On: December 18, 2020
      • Answers: 15

      EMA with a different formula

      • On: December 29, 2020
      • Answers: 15

      Invitation for algo traders.

      • On: December 29, 2020
      • Answers: 14

      Dear Programmers, do not pass by, help fix the error!

    • atma1
      atma1 added an answer Added activation. Thanks. April 8, 2021 at 6:54 am
    • iks_
      iks_ added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • renat
      renat added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • mvs
      mvs added an answer Renat Fatkhullin: You can not immediately send the received data,… April 8, 2021 at 6:53 am
    • anton_m
      anton_m added an answer Renat Fatkhullin: How much data do you read? You can… April 8, 2021 at 6:53 am
    analytics british company computer developers django employee employer english facebook french google interview javascript language life php proforexea programmer programs pro vsa salary university

    Related Questions

    • atma1

      Yesterday I updated VMware to version 16.1.0 and the product ...

      • 3 Answers
    • anton_m

      It is not possible to read data from the server ...

      • 6 Answers
    • s22aa

      Tell me what the difference is.

      • 2 Answers
    • areedbreen

      on the chart in the tester one yield and in ...

      • 2 Answers
    • 1006293

      A question about the intersection of moving averages in MQL5

      • 3 Answers

    Users

    atma1

    atma1

    • 1 Question
    • 1 Answer
    s22aa

    s22aa

    • 1 Question
    • 1 Answer
    areedbreen

    areedbreen

    • 1 Question
    • 1 Answer

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved