How to access 10min data on 1 day indicator?

 

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

 
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.

   

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