Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader 5

MetaTrader 5 MT5 is already out of its beta stage, but the development is ongoing. Some brokers already offer real accounts and the interest of traders is growing. You can discuss anything related to MetaTrader 5 in this forum.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 6th November 2011, 03:58
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default historical data

Hi

In order to maintain 300 days of historical data for forex pairs. I need to feed values to the parameters of the function
MQL5 Code:
int CheckLoadHistory(string symbol,ENUM_TIMEFRAMES period,datetime start_date)
  {

as indicated in Example of a Script for Adding History



what would the start_date be?
MQL5 Code:
start_date = TimeCurrent() - 25920000; //300x24x60x60

thx

Last edited by samjesse; 6th November 2011 at 04:00.
Reply With Quote
  #2 (permalink)  
Old 6th November 2011, 10:10
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,548
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Didn't you just answer your own question?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #3 (permalink)  
Old 6th November 2011, 19:40
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx, I was not sure if I can subtract int from datetime, since both appear to be different types.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data, Data Everywhere mercaforex Fundamental Analysis 2 13th January 2011 18:15
Parade Of Data On Its Way mercaforex Fundamental Analysis 0 28th October 2009 17:40
Data Will Be The Lynchpin mercaforex Fundamental Analysis 0 29th September 2009 12:00
USD/CHF. New data! FEUA Technical Analysis 0 4th August 2009 15:08
Historical Performance of Harmonic Patterns and their Constituent Fibonacci Ratios collin Trading Systems and Strategies 1 2nd June 2009 03:09


All times are GMT. The time now is 11:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2