Regression Trend line

 
Operating exclusively on time frame of 5 minutes
I have demand immediately to understand
the trend to great time.
I have modified this indicator: Past Regression Deviated,to see only the trend line.
I wanted to get other three trends line calculated on three different time frame
Practically: on graphic to 5 minutes I should see 4 trends line, of the same length
1: calcolated in 5 minutes
2: calcolated in 15 minutes
3: calculated in 30 minutes
4: calculated in 60 minutes
Someone help me?
I attach indivator modified and a charts of as I should see the trends line

I in advance thank who will help me.
Reason: