I would like to know how to make a Matlab timetable from this data:
date time open high low close tickvol
0 2011.01.02 17:01 1.3342 1.3344 1.3341 1.3341 0
1 2011.01.02 17:02 1.3343 1.3343 1.3343 1.3343 0
2 2011.01.02 17:03 1.3344 1.3344 1.3344 1.3344 0
3 2011.01.02 17:06 1.3345 1.3349 1.3345 1.3348 0
4 2011.01.02 17:07 1.3346 1.3346 1.3346 1.3346 0
... ... ... ... ... ... ... ...
4558998 2023.05.19 16:54 1.08051 1.08057 1.08046 1.08046 0
4558999 2023.05.19 16:55 1.08047 1.08055 1.08042 1.08054 0
4559000 2023.05.19 16:56 1.08053 1.08058 1.0805 1.08055 0
4559001 2023.05.19 16:57 1.08055 1.0806 1.08048 1.08056 0
4559002 2023.05.19 16:58 1.08055 1.08057 1.08055 1.08057 0
Not much idea of matlab, and don't know what to do with python to leave correct the data.
What can I do to make this happen?
Edited:
I've tried with this:
TT=readtimetable('EURUSD_big_data.csv')
but this error appears:
Expected a datetime or duration variable to use as RowTimes. Check that the data can
be converted to datetime or duration, or supply a "TimeStep" or "SampleRate".
how to I use
TimeStep
in this example?
Since you have what looks like a big pandas DataFrame, you can use
mfinance. I will plot a dataset found in the docs (that matches the format of yours but with more rows to select just a portion/period of time -- by using partial string indexing--) to have a meaningful visualization.Output :
Dataset/Period used :