sharing data betwwen different graph time frames

 
Hello, my name is Daniel; I'm a new member here.

In the expert advisor, Is there any way to share data between different graphs?

For example, can I get the 20 periods daily moving average in 5 minutes graph ?

Thank You
 
Yes, it is possible. See https://docs.mql4.com/indicators
 

Thank you.

for some reason it doesn't work.

I wrote in my Expert Advisor :

double ma_100_D1 = iMA(NULL, PERIOD_D1, 13,0, MODE_SMA, PRICE_CLOSE,1);

I get a 0 result when running it on 5M graph.

(During execution, the 1 day graph was open).

Any idea about what I did wrong?


thank you

 
I think You haven't D1 history, i.e. EURUSD1440.hst does not exist.
 
Rosh:
I think You haven't D1 history, i.e. EURUSD1440.hst does not exist.

It's working
thank you very much !
 
You're welcome.