how to use generic csv file
Devinderjeet Singh last edited by
my CSV file date format is 13-12-2016 09:15, and it show error while uploading file
When seeking ...
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)
GenericCSVDatais documented. See Docs - Data Feeds Reference
Quoting 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
Devinderjeet Singh last edited by backtrader
here is the error picture. it just simple adding data to any strategy
it'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