logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Alan R  
#1 Posted : Saturday, September 10, 2011 8:17:06 AM(UTC)
Alan R

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/23/2009(UTC)
Posts: 51

The moving average indicator has an option to shift it horizontally. I would like to be able to do the same thing with the Time Series Forecast indicator. Does anyone have the code to do this or can instruct me has to how to shift an indicator horizontally?

mstt  
#2 Posted : Saturday, September 10, 2011 5:30:43 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Alan

I think you'll find that the Mov() TIMESERIES or T function is the same as the Time Series Forecast indicator, and Mov() does provide the controls you require. If you really want to use TSF() all you need to do is apply the Ref() function to it and move the TSF() result left or right as required. There is discrete MFL code for the TSF() finction, but why bother if you don't need to. All MFL code I've seen for Linear Regression based functions lose accuracy as the amount of data loaded is increased (say above 2500 to 5000 bars).

Roy
Alan R  
#3 Posted : Sunday, September 11, 2011 3:27:54 AM(UTC)
Alan R

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/23/2009(UTC)
Posts: 51

Hi Roy:

Thanks for the post. I have tried the REF() function but I lose the lates TSF() data point. What I am looking for is a way to move the TSF() forward one session such that the latest forecast is moved one day into the future. In otherwords, when I look at the latest closing price, far right on the chart, TSF() is forecasting the price one session into the future. I want to shift TSF() so that the forecasted price actually shows up one session into the future.

Regards,
Alan

mstt  
#4 Posted : Sunday, September 11, 2011 4:14:17 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Alan

MetaStock does not dispaly indicators beyond the last data bar and I'm not aware of any way to get around that limitation.

Roy
Alan R  
#5 Posted : Sunday, September 11, 2011 6:32:15 AM(UTC)
Alan R

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/23/2009(UTC)
Posts: 51

Hi Roy

I guess that's why the MetaStock coders did it the way they did when they coded TSF(). I know that with the line studies, such as, the linear regression line study, the linear regression line can be extended into the future. So I guess TSF would have to be coded as a line study. Is this something that is possible to do?

Alan

mstt  
#6 Posted : Sunday, September 11, 2011 4:37:44 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Alan

Line studies can often be simulated as indicators (not always easily, but possible in some cases). However, the fact that the simulations are indicators means that they are subject to the same limitations as all other indicators, and the inability to plot beyond the last data bar still applies to those simulations.

Roy
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.