Skip to content

Instantly share code, notes, and snippets.

@lamres
Created March 17, 2020 17:11
Show Gist options
  • Save lamres/b26121f36114058e614e61baf52f8f84 to your computer and use it in GitHub Desktop.
Save lamres/b26121f36114058e614e61baf52f8f84 to your computer and use it in GitHub Desktop.
import backtrader.feeds as btfeed
class FinamHLOC(btfeed.GenericCSVData):
params = (
('dtformat', ('%Y%m%d')),
('tmformat', ('%H%M%S')),
('datetime', 2),
('time', 3),
('high', 5),
('low', 6),
('open', 4),
('close', 7),
('volume', 8)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment