@Bejenaru The only way to find information in the past is by searching for it via loops. Because your current structures are not loops, only the information stored from the exact moment you changed to the new TF onwards is considered. You need loops to get the past info when changing the TF.
Considering you are not using it as an EA but as an indicator, you should use an indicator instead.