Jump to content

How to predict n. ahead days in the future stocks or indices with R.


Atomo12345

Recommended Posts

to predict n. ahead days in the future stocks or indices with R.

 

Install R-4.3.2rc-win.exe.

Install Pacchetti di R (Packages of R).

In read.table("C://Users//Atomo//Downloads//^gspc.csv",header=TRUE, sep=',') , change Atomo in your user name.

Put the file ^gspc.csv in the folder Downloads.

Open thr text file "previsione ar"(prediction ar).

Run R and put the text in the program.

You can try the method:"yw" or "ols" or "yule-walker",but I find that the best is the "burg".

You can change the ^gspc.csv, with any other file remember to ghange the ylim.

The prediction is good for 15 days ahead than the statistical deviation become too high.

Enjoy.

 

https://www.mediafire.com/file/5mcnkz08q0l0rls/R-4.3.2rc-win.rar/file

Link to comment
Share on other sites

to predict n. ahead days in the future stocks or indices with R.

 

Install R-4.3.2rc-win.exe.

Install Pacchetti di R (Packages of R).

In read.table("C://Users//Atomo//Downloads//^gspc.csv",header=TRUE, sep=',') , change Atomo in your user name.

Put the file ^gspc.csv in the folder Downloads.

Open thr text file "previsione ar"(prediction ar).

Run R and put the text in the program.

You can try the method:"yw" or "ols" or "yule-walker",but I find that the best is the "burg".

You can change the ^gspc.csv, with any other file remember to ghange the ylim.

The prediction is good for 15 days ahead than the statistical deviation become too high.

Enjoy.

 

https://www.mediafire.com/file/5mcnkz08q0l0rls/R-4.3.2rc-win.rar/file

 

 

sorry Atomo have you already done some testing on this stuff or is it the usual waste of time like any other time series analyzer that is better lost than found...anyway thanks for your share

Link to comment
Share on other sites

I don't do any test about the attendibility of the forecast.

You can try by yourself.

The next 15 days predicted for the S&P500 are possibles.Also the limits of the interval with the statistical deviations.

On the S&P500 there in an overbouth.then it can correct about to 4250.Next it rebound circa 4450 points.

This is a statistical method and I confeded in it better then in Astro-trading.

Link to comment
Share on other sites

To install the packages co to pacchetti(packages),installare pacchetti da file locali(install packages from local files)and select the zip files.This program has o consolle similar to ms dos ,but there is no necessary learn the language of programmation of R.For the prediction is sufficient to copy the text of previsionear.txt (predictionar.txt)and put them in the consolle.

I am not a mathematical and I read very little about regression,but this system is based on scientific observations and (nobody can predict the future) I confided sufficiently in it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...