Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Polynom/Polyfit #440985
05/08/14 13:41
05/08/14 13:41
Joined: Apr 2014
Posts: 23
M
Mothership Offline OP
Newbie
Mothership  Offline OP
Newbie
M

Joined: Apr 2014
Posts: 23
Hey!

I looked into the polyfit, polynom-section in the manual the other day, which states:
Quote:
and can be used for predicting future prices


How is this being presented in the charts? For example, when running the example script that is given, the chart would look like this:
http://postimg.org/image/mo5ypp74p/

I have a hard time interpreting the results of the blue and the green line. What do they mean? And how can they tell me information about the future?

One thing I “discovered” is where I marked with a red circle. Where the blue movesup while the price goes down. Is this an example of such a prediction?



Many thanks

MS

Re: Polynom/Polyfit [Re: Mothership] #441008
05/09/14 07:00
05/09/14 07:00
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
In the example, the "predict" variable is the current price plus the predicted price change within the next 3 bars - under the assumption that the recent part of the price curve resembles a polynom.

What you do with this information is up to you. For instance, you could enter a long trade if the predicted price change is above a threshold, and a short trade if it is below a negative threshold. The correlation variable can be used for preventing trades when the correlation is low.

In this forum section some threads before, another user has posted a similar indicator that predicts prices under the assumption that the recent price curve resembles an exponential function.

Re: Polynom/Polyfit [Re: jcl] #449693
03/29/15 07:56
03/29/15 07:56
Joined: Apr 2014
Posts: 23
M
Mothership Offline OP
Newbie
Mothership  Offline OP
Newbie
M

Joined: Apr 2014
Posts: 23
Hi!

Sorry for a late answer - I just read through my posts under "My stuff", and found this old goodie.

I just wonder if there is a way for you to explain to me what a "polynom" is. Unfortunately, I didn't go that far in my match class (I guess it has something to do with math...)

Thank you!

Re: Polynom/Polyfit [Re: Mothership] #449709
03/29/15 19:15
03/29/15 19:15
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California

Re: Polynom/Polyfit [Re: GPEngine] #449804
03/31/15 18:13
03/31/15 18:13
Joined: Apr 2014
Posts: 23
M
Mothership Offline OP
Newbie
Mothership  Offline OP
Newbie
M

Joined: Apr 2014
Posts: 23


Hi GP!

Sorry for being unclear. I've read the page you linked, among others.
Is there a way you can make this clearer to me by explaining it with an example?

Thank you.

Re: Polynom/Polyfit [Re: Mothership] #449816
03/31/15 23:17
03/31/15 23:17
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Polynomial regression works the same as linear regression, but it models the relationship between variables as a polynomial (quadratic, cubic, quartic or higher degree) instead of as a straight line (degree one).

That's about as simple an explanation as you'll find. If that doesn't make sense to you, it would be worth your while brushing up on your math. Check out Kahn Academy for some courses to quickly get you up to speed.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1