Download MetaTrader 5

2 easy questions, select period for graph and location of tutorials for scripting?

To add comments, please log in or register
Surreall
18
Surreall 2012.09.28 10:31 

Hi All,


Very very new to MT5. A couple of very simple questions for you

1) I am trying to save trade history of a graph. But when i save the csv file there are millions of data points. I can see how to select, minute, hourly, day, week, and month. But what i am trying to do is say select hourly rate for the last 24 hours...is there an easy way to do this?

2) Are there any easy guide tutorials for scripting. IE starting from the very basics. I can programme in VBA etc, but i have no idea how to navigate my way around MT5


Any help would be greatly appeciated

Liping Wang
3661
Liping Wang 2012.09.29 06:25  

For question #2: the best resources is the articles in current web site.

Surreall
18
Surreall 2012.09.30 10:09  
MarketArt:

For question #2: the best resources is the articles in current web site.

Thank you for your answer

Any help on No.1 anyone?

Rgds


Surreall

Miguel Chambel
442
Miguel Chambel 2012.09.30 12:48  
Surreall:

Thank you for your answer

Any help on No.1 anyone?

Rgds

Surreall

Hi!

Check this script. Just drop it on the chart you want (symbol and timeframe) and choose the start date and end date. 

Regards 

Files:
Surreall
18
Surreall 2012.10.01 10:57  
Helghast:

Hi!

Check this script. Just drop it on the chart you want (symbol and timeframe) and choose the start date and end date. 

Regards 

That looks good thank you

Whats the code to change the end_time to current time?

And start_time to use current time minus a specificed time range eg 3 days before?

Rgds

Documentation on MQL5: Date and Time / TimeCurrent
Documentation on MQL5: Date and Time / TimeCurrent
  • www.mql5.com
Date and Time / TimeCurrent - Documentation on MQL5
Surreall
18
Surreall 2012.10.01 11:04  
Surreall:

That looks good thank you

Whats the code to change the end_time to current time?

And start_time to use current time minus a specificed time range eg 3 days before?

Rgds



Well i clicked on the current time link that appeared in my post, which was very handy, so that is sorted now. Just how do i set a time variable as CurrentTime - 3days (as example)?


Rgds

To add comments, please log in or register