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

 

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

 

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

 
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

 
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:
 
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:

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