For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Can't Read The Csv



  • Hii,
    My CSV file looks like this:
    2019-02-26 22:45:00,778.0,787.0,777.1,784.2,0.0

    And my customCSV looks like this
    class customCSV(btfeed.GenericCSVData):
    params = (
    ('nullvalue', 0.0),
    ('dtformat', ('%Y-%m-%d %H:%M:%S')),
    ('datetime', 0),
    ('time',-1),
    ('open', 1),
    ('high', 2),
    ('low', 3),
    ('close',4),
    ('volume',5),
    )

    Whenever I run the code I get the following error:
    IndexError: list index out of range

    I do not know what am I doing wrong. Please help me to get This correct
    Thank You


  • administrators

    1. Read, read and read. For example read this everytime you see the forum
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    
    1. Read this

    https://www.backtrader.com/algotrading/backtesting/dataloading.html


Log in to reply
 

});