Multiple Time Frame for TimeSeriesForecast Indicat


Category:
0
0

Hello,

Is it possible to get all 3 TimeSeriesForecast lines on one chart for different time frames like 1 min, 5 min, 30 min all on the 1 min time chart?

The inputs for the TimeSeriesForecast would be the same but for different period aggregations.

Thanks!

RESOLVED
Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on September 16, 2022 4:00 pm
119 views
0
Private answer

This one is very simple. I think anyone who has been studying the several dozen MTF solutions I have provided should be able to build this one on their own.

input higherTimeFrame = AggregationPeriod.THIRTY_MIN;
input length = 9;
input bar_plus = 7;
plot TSF = Inertia(close(period = higherTimeFrame), length) + LinearRegressionSlope(close(period = higherTimeFrame), length) * bar_plus;
TSF.SetDefaultColor(GetColor(8));

Screenshot below shows how this looks on the chart.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 16, 2022 5:49 pm