Download MetaTrader 5

Pre 1970 Dates

To add comments, please log in or register
Scott Watson
134
Scott Watson 2013.01.24 22:55 

Hello to All,

 

Is there a way to use dates that are before 1970? 

Andriy Moraru
1261
Andriy Moraru 2013.01.25 10:24  
Judging from the fact that MQL's datetime counts seconds since Jan 1 1970, no. Why do you need those dates anyway? Not like there were any real Forex rates back then.
Scott Watson
134
Scott Watson 2013.01.25 16:21  

Hello enivid,

 

Thank you for taking the time to respond to my query. I figured that I would need to code my own date/time functions to support dates that go back further than 1970. While Forex data doesnt go that far back but stocks do and now that MT5 supports stock symbols I would have figured that the good folks at metaquotes would have realized that there will be a need for the basic date/time struct to handle dates that go back 100 years, their current date/time struct can handle dates up to the year 3000 well into the future. Seems to me someone over there wasnt thinking things through when they designed the date/time struct to be included into MT5.

EK 

phi nuts
2184
phi nuts 2013.01.25 17:45  
Create an CI that read that historical data. Pretty easy to create this CI, and there's also one in mql5 market if you prefer to spend money.
Why Is MQL5 Market the Best Place for Selling Trading Strategies and Technical Indicators
Why Is MQL5 Market the Best Place for Selling Trading Strategies and Technical Indicators
  • 2012.07.09
  • MetaQuotes Software Corp.
  • www.mql5.com
MQL5.community Market provides Expert Advisors developers with the already formed market consisting of thousands of potential customers. This is the best place for selling trading robots and technical indicators!
Scott Watson
134
Scott Watson 2013.01.25 17:56  

Hello phi.nuts

 

Thank you for taking the time to respond to my query. I have no idea what you are talking about. What is a CI?

EK 

phi nuts
2184
phi nuts 2013.01.25 18:01  
Emerald_King:

Hello phi.nuts

 

Thank you for taking the time to respond to my query. I have no idea what you are talking about. What is a CI?

EK 

CI = Custom Indicator, EA = Expert Advisor, Script = Script.
Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • 2009.11.23
  • Андрей
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.
Scott Watson
134
Scott Watson 2013.01.25 23:42  
phi.nuts:
CI = Custom Indicator, EA = Expert Advisor, Script = Script.

Hello phi.nuts

 

Thanks again for commenting, but all I am looking to do is reference dates that are older than 1970 and get the number of days between dates.

 

EK 

phi nuts
2184
phi nuts 2013.01.26 01:51  
Emerald_King:

Hello phi.nuts

 

Thanks again for commenting, but all I am looking to do is reference dates that are older than 1970 and get the number of days between dates.

 

EK 

Ups, that will be difficult to impossible things to do.
To add comments, please log in or register