how to use generic csv file
-
hello,
my CSV file date format is 13-12-2016 09:15, and it show error while uploading file
https://drive.google.com/file/d/0B_cy3mMpatfZSi1NMUFWME9ZMHc/viewplease help
-
When seeking ...
@Devinderjeet-Singh said in how to use generic csv file:
please help
it is usually helpful to show what one has tried (the code, at least the part that loads the data) and what Python told you (the error)
The
GenericCSVData
is documented. See Docs - Data Feeds ReferenceQuoting from it:
- dtformat: Format used to parse the datetime CSV field. See the python strptime/strftime documentation for the format. If a numeric value is specified, it will be interpreted as follows 1: The value is a Unix timestamp of type int representing the number of seconds since Jan 1st, 1970 2: The value is a Unix timestamp of type float If a callable is passed it will accept a string and return a datetime.datetime python instance
An example which already includes the solution for the no
timeframe
specified -
here is the error picture. it just simple adding data to any strategy
https://drive.google.com/open?id=0B_cy3mMpatfZVmxYcU5uVjB2bjQit's 10 day's - minute data
where am I getting wrong? -
Pictures are nice, but if you use the facilities of a forum (like pasting text and quoting it to highlight it, as pointed out above) it could help more.
It will also be of no help to future users, when you remove the picture from your google drive share. Your post has been edited to add the figure for future reference.
In any case it seems you are pretty new to Python. Your error has nothing to do with backtrader. See