FXCM Forex Trading

Polynomial regression

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Polynomial regression

Postby Himalaya » Mon Sep 02, 2013 10:49 am

Patrick,

Yes I am looking for a feature different then Scratpower's Poly-reg-Static which fixes in time the centerline/MA.

I.e., on a D1 chart I am interested to to see where the Deviation Channels where last week, last month or on any given date.

Having an adjustable start date will allow one to truly see where the channel was historically as the end date is already adjustable through the "Period" setting.

This will allow visual backtesting of any method using Polynomial Regression Channels on any time frame as one could go back in time and verify where the channels where on any given date/time series.

Thanks for your support of the feature request. When I look at code it looks like hieroglyphics so I am not sure how difficult or easy adding this type of feature is.

Himalaya
Himalaya
 
Posts: 14
Joined: Tue May 14, 2013 9:26 pm

Re: Polynomial regression

Postby Apprentice » Tue Sep 03, 2013 2:11 am

I'm not sure whether I understand you.
Do you want Polynomial regression for the whole period from the first this last,
or Do you want Polynomial regression, for the current period,
from current-period Thill current period.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17120
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Polynomial regression

Postby Himalaya » Tue Sep 03, 2013 9:05 am

Hi Apprentice,

I would like to be able to see where the Polynomial Regression Channel was in the past.

Currently if the "Period" parameter is set to 100, the indicator will use the current bar/candle as the first data point and then include the previous 99 data points.

I would like the indicator to have an adjustable "Start Bar/Candle" feature (an offset first data point). So that a user could set the first data point "X" bars back. The indicator would then use that "Start" bar as the first data point and then look back 99 bars or whatever the user had chosen in the "Period" parameter.

Let me know if I have still not explained it clearly.

Himalaya
Himalaya
 
Posts: 14
Joined: Tue May 14, 2013 9:26 pm

Re: Polynomial regression

Postby Apprentice » Thu Sep 05, 2013 1:56 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17120
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Polynomial regression

Postby Apprentice » Thu Sep 05, 2013 11:56 am

Customizable_Polynomial_Regression has the desired functionality.
See topmost (first) post of this topic.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17120
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Polynomial regression

Postby Himalaya » Thu Sep 05, 2013 3:24 pm

Big Thanks Apprentice,

This is exactly what I was looking for.

Himalaya
Himalaya
 
Posts: 14
Joined: Tue May 14, 2013 9:26 pm

Re: Polynomial regression

Postby Apprentice » Mon Sep 23, 2013 4:47 am

Polynomial Regression Moving Average added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17120
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Polynomial regression

Postby volnmar » Thu Oct 02, 2014 5:41 am

can you please add alert after price cross Deviation?
volnmar
 
Posts: 51
Joined: Tue Jun 17, 2014 1:51 am

Re: Polynomial regression

Postby Apprentice » Sat Oct 04, 2014 2:40 am

Can you specify for which of indicators above, you're interested.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17120
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Polynomial regression

Postby volnmar » Mon Oct 06, 2014 7:16 am

Polynomial_Regression.lua and Customizable_Polynomial_Regression.lua
volnmar
 
Posts: 51
Joined: Tue Jun 17, 2014 1:51 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 10 guests