Download MetaTrader 5
To add comments, please log in or register
All Code Base apps are available from MetaTrader 5. You can publish your own one!
P_Cherry
97
P_Cherry 2013.10.08 12:11 

Hi,

I have indicator working on daily timeframe (comparing today close with yesterday close etc....).

Now I would like to compare not today's close but close 10min before the daily close.

Is is possible to access 10min value on 1day indicator or should I solve the whole indicator as 10min indicator?

Thanks for hint

Peter

Mehrdad Shiri
4450
Mehrdad Shiri 2013.10.08 13:01  
P_Cherry:

Hi,

I have indicator working on daily timeframe (comparing today close with yesterday close etc....).

Now I would like to compare not today's close but close 10min before the daily close.

Is is possible to access 10min value on 1day indicator or should I solve the whole indicator as 10min indicator?

Thanks for hint

Peter

1) you can use " ctrl+y " to see each day in separate.

2 ) it is the current price when you say today's close; so when you need close price for a day you must use past day's.

3) yes. and you can draw line manually on chart FOR M10 and see it on daily chart  and compare.

4)  oryou must have change in your indicator code to draw it automaticaly.

   

Daniel Bosman
309
Daniel Bosman 2013.10.09 20:51  
You can acces 10M data simply by using CopyClose. In your case maybe you want to call this function using a specified start datetime. See https://www.mql5.com/en/docs/series/copyclose
Documentation on MQL5: Timeseries and Indicators Access / CopyClose
Documentation on MQL5: Timeseries and Indicators Access / CopyClose
  • www.mql5.com
Timeseries and Indicators Access / CopyClose - Documentation on MQL5
/
To add comments, please log in or register