| MATLAB Central > MATLAB Newsreader > Have text file of stock data, help manipulating an... |
|
|
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 18:13:05 Message: 1 of 31 |
|
Howdy. I have a text file of stock data. The text file looks like this: http://ftp.hlmtrading.com/incoming/Prime2011-01-25_115947.jpg |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 25 Jan, 2011 19:07:03 Message: 2 of 31 |
|
Post a couple of lines with the headers of your initial file (I personally don't want to lose time creating myself example input dataor even worse copying your snap since you can just copy paste it here), and the desired output. Then we'll show you the steps to get there. |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 19:12:03 Message: 3 of 31 |
|
Post a couple of lines with the headers of your initial file (I personally don't want to lose time creating myself example input dataor even worse copying your snap since you can just copy paste it here), and the desired output. Then we'll show you the steps to get there. |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 19:24:03 Message: 4 of 31 |
|
Here is an example of the output copied from the csv file. Here you can see the date at the bottom is always the current date, and decrement by 1 day, excluding Saturday and Sunday. |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 19:31:05 Message: 5 of 31 |
|
"Forrest" wrote in message <ihn7a3$i49$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 25 Jan, 2011 19:53:03 Message: 6 of 31 |
|
% Read in data skipping first column and discarding the rest after OHLC |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 20:56:04 Message: 7 of 31 |
|
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <ihn9mv$obd$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 21:18:03 Message: 8 of 31 |
|
Looking into the 'isbusday.' |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 25 Jan, 2011 22:15:05 Message: 9 of 31 |
|
"Forrest" wrote in message <ihnemb$f9i$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 22:53:03 Message: 10 of 31 |
|
I seem to be getting an error. |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 25 Jan, 2011 23:20:03 Message: 11 of 31 |
|
"Forrest" wrote in message <ihnk8e$1ho$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 25 Jan, 2011 23:30:07 Message: 12 of 31 |
|
Here is the full error message: |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 26 Jan, 2011 11:49:03 Message: 13 of 31 |
|
"Forrest" wrote in message <ihnmdv$mh6$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 26 Jan, 2011 15:01:03 Message: 14 of 31 |
|
It's not in the code, I used the " to show that that was the error message. What I mean is that in the code the quatoation wasn't there, I used the " to wrap around the error message. |
|
Subject: Have text file of stock data, help manipulating and saving as From: dpb Date: 26 Jan, 2011 15:19:06 Message: 15 of 31 |
|
Forrest wrote: |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 26 Jan, 2011 15:24:04 Message: 16 of 31 |
|
So what I am saying is this picture here. I am highlighting the areas I put the quotations on. They aren't actually in the code. |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Oleg Komarov Date: 26 Jan, 2011 18:59:05 Message: 17 of 31 |
|
"Forrest" wrote in message <ihpeak$ioh$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 26 Jan, 2011 19:41:05 Message: 18 of 31 |
|
Oleg, |
|
Subject: Have text file of stock data, help manipulating and saving as From: dpb Date: 26 Jan, 2011 20:07:35 Message: 19 of 31 |
|
Forrest wrote: |
|
Subject: Have text file of stock data, help manipulating and saving as csv From: Forrest Date: 26 Jan, 2011 20:09:03 Message: 20 of 31 |
|
Let me know if this link works to a download of the original text file: |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 26 Jan, 2011 20:38:03 Message: 21 of 31 |
|
dpb <none@non.net> wrote in message <ihpuue$quq$1@news.eternal-september.org>... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Oleg Komarov Date: 26 Jan, 2011 21:08:03 Message: 22 of 31 |
|
"Forrest" wrote in message <ihq0nb$huk$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 27 Jan, 2011 00:25:05 Message: 23 of 31 |
|
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <ihq2fj$bs4$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Oleg Komarov Date: 27 Jan, 2011 03:57:03 Message: 24 of 31 |
|
> idx = ~ismembc(weekday(Dates),[7,1]); |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 27 Jan, 2011 05:24:03 Message: 25 of 31 |
|
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <ihqqef$eb$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 27 Jan, 2011 18:13:04 Message: 26 of 31 |
|
One small problem....... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 27 Jan, 2011 20:33:05 Message: 27 of 31 |
|
Trying to create a loop to create the Dates array. My logic is that first you get the size of the array, which tells you how many dates you need to populate this array. |
|
Subject: Have text file of stock data, help manipulating and saving as From: Oleg Komarov Date: 27 Jan, 2011 21:08:03 Message: 28 of 31 |
|
|
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 28 Jan, 2011 09:53:04 Message: 29 of 31 |
|
It looks like this evaluates everything to the same date. See the attached pic with the output, I just converted to dates and all the same date showed up. |
|
Subject: Have text file of stock data, help manipulating and saving as From: Oleg Komarov Date: 28 Jan, 2011 15:28:03 Message: 30 of 31 |
|
"Forrest" wrote in message <ihu3m0$fvk$1@fred.mathworks.com>... |
|
Subject: Have text file of stock data, help manipulating and saving as From: Forrest Date: 28 Jan, 2011 15:34:03 Message: 31 of 31 |
|
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <ihuna3$oq3$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| stocks trading alg... | Forrest | 25 Jan, 2011 13:14:05 |
