Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 03-21-2008, 08:25 AM
Senior Member
 
Join Date: Aug 2006
Posts: 402
RickW00716 is on a distinguished road
Quote:
Originally Posted by newmont View Post
I have found another version of tsf. Dont know much about this indicator , at one stage i used tsf but i think the other version that somebody has posted. Hope this version is the one you are looking for.
could this indicator be modified to have choices for inputs like regular MAs do?
i.e...high,low,HLCC/4,etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 03-21-2008, 04:06 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 2,737
Blog Entries: 30
Linuxser has disabled reputation
Quote:
Originally Posted by newmont View Post
I was reading the link posted by linuxser and they made some observation that tsf was associated with Lin reg, I realise the association in the formula and have included another useful indicator.
Exactly,
TSF its a derivation of LR. I was looking into the code of many TSF indicators and now I have too many doubts. It´s like there is some confusion and some TSF indicator are jut LR Line.

I have the TS code for indciator and functions and I suppose they're ok:

Quote:
{************************************************* ******************
Description: Time Series Forecast
Provided By: Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}

Inputs: Length(NumericSimple), BarsPlus(NumericSimple);

TimeSeriesForecast = LinearRegValue(Close, Length, BarsPlus);
Quote:
{************************************************* ******************
Description : This Indicator plots Time Series Forecast
Provided By : Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}

Inputs: Length(5), BarsPlus(7);

Plot1(TimeSeriesForecast(Length, BarsPlus), "TSForecast");

{Alert Criteria}
If Close < Plot1 AND Plot1 < Plot1[1] AND Plot1[1] > Plot1[2] Then
Alert("The Time Series Forecast line has just changed direction and is now bullish")
Else
If Close > Plot1 AND Plot1 > Plot1[1] AND Plot1[1] < Plot1[2] Then
Alert("The Time Series Forecast line has just changed direction and is now bearish");

{Time Series Forecast Expert Commentary}
#BeginCmtry
Commentary(ExpertTimeSerForcast(Plot1, Length, BarsPlus));
#End;
Quote:
{************************************************* ******************
Description: Linear Regression Value
Provided By: Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}

Inputs: Price(NumericSeries), Len(NumericSimple), TargetB(NumericSimple);
Variables: X(0), Num1(0), Num2(0), SumBars(0), SumSqrBars(0), SumY(0), Sum1(0), Sum2(0), Slope(0), Intercept(0);

If Len = 0 Then
LinearRegValue = 0;

SumBars = 0;
SumSqrBars = 0;
SumY = 0;
Sum1 = 0;
Sum2 = 0;
SumY = Summation(Price, Len);
SumBars = Len * (Len - 1) * .5;
SumSqrBars = (Len - 1) * Len * (2 * Len - 1) / 6;

For X = 0 To Len - 1 Begin
Sum1 = Sum1 + X * Price[X];
End;

Sum2 = SumBars * SumY;
Num1 = Len * Sum1 - Sum2;
Num2 = SumBars * SumBars - Len * SumSqrBars;

If Num2 <> 0 Then
Slope = Num1 / Num2
Else
Slope = 0;

Intercept = (SumY - Slope * SumBars) / Len;

LinearRegValue = Intercept + Slope * (Len - 1 + CurrentBar - BarNumber - TargetB);
The article says:

Quote:
The resulting Time Series Forecast indicator is sometimes referred to as the "moving linear regression" indicator or the "regression oscillator."
TSF is the MA of Linear Regression
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum

Last edited by Linuxser; 03-21-2008 at 04:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 03-26-2008, 06:45 PM
Senior Member
 
Join Date: Aug 2006
Posts: 402
RickW00716 is on a distinguished road
Quote:
Originally Posted by newmont View Post
I have found another version of tsf. Dont know much about this indicator , at one stage i used tsf but i think the other version that somebody has posted. Hope this version is the one you are looking for.
Is it possible to have this indicator applied to highs and lows also to form a channel?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 03-26-2008, 09:58 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 2,737
Blog Entries: 30
Linuxser has disabled reputation
Quote:
Originally Posted by RickW00716 View Post
Is it possible to have this indicator applied to highs and lows also to form a channel?
Time Series Forecast is "some kind" of moving average in a ugly description.

Maybe by changing two words you could have something like you want, but I´m unsure about the results

Code:
Sy  =iClose(NULL,0,st0);          //double sumy=value;
Code:
y   = iClose(NULL,0,st0+i);    //value  = Close[m_pos[0]+i];
with iOpen/iClose/iHigh/iLow
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 03-26-2008, 10:52 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 297
mladen is on a distinguished road
Time series forecast ...

This should do it
Time series forecast is linear regression value with one additional parameter : the "forecasting" parameter

Of LRVForecast parameter :
when set to 0 : Time series forecast == Linear regression value
when set to < 0 : "future"
when set to > 0 : "past"
Attached Images
File Type: gif tsf.gif (13.4 KB, 245 views)
Attached Files
File Type: mq4 Linear regression value - tsf.mq4 (2.7 KB, 74 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 03-27-2008, 07:19 AM
Ethan Hunt's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Israel
Posts: 181
Ethan Hunt is on a distinguished road
Thumbs up

Quote:
Originally Posted by mladen View Post
This should do it
Time series forecast is linear regression value with one additional parameter : the "forecasting" parameter

Of LRVForecast parameter :
when set to 0 : Time series forecast == Linear regression value
when set to < 0 : "future"
when set to > 0 : "past"
Hi mladen, love your work, it's always nice to see your indicators...

Cheers

Ethan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
DeMarker, forecast, TIME SERIES FORECAST INDICATOR

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Week forecast for USD/JPY GFSignals Analytics 31 10-29-2007 06:49 PM
Part 1: Mobile Trading w/Cingular IPAQ HW6515 Series PDA and IBFX MetaTrader 4 Mobile Techguy Metatrader 4 2 06-01-2007 11:00 AM
Does anyone have a similar forecast indicator with sound? increase Indicators - Metatrader 4 1 11-27-2006 07:49 PM
Neural Forecast for Eurusd on 2006 De Vinci Tools and utilities 2 06-08-2006 03:27 AM


All times are GMT. The time now is 03:20 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.