How to get data from candle of a specific time frame?

 

Hello ;

I want the value of S1Buffer in time frames lower than 15 minutes to be equal to its value in time frame 15 minutes, but currently the value of S1Buffer in lower time frames is not equal to its value in time frame 15 minutes

At the same time, the rest of the buffers, which include OpenBuffer, CloseBuffer, and COBuffer, their value in the lower time frame is equal to their value in the 15-minute time frame.

Can anyone help me with this?

Files:
m15.mq4  3 kb
 
Alireza Sajjadi: the value of S1Buffer in lower time frames is not equal to its value in time frame 15 minutes

They will never be equal.

 
William Roeder #:

They will never be equal.

No way to solve this?
Why in CoBuffer is equal?
 
Alireza Sajjadi #:
No way to solve this?
Why in CoBuffer is equal?
Of course not they are calculated on different data sets.


Reason: