Skip to content

Commit

Permalink
Final fixes for Yahoo offline feed
Browse files Browse the repository at this point in the history
  • Loading branch information
backtrader committed Nov 21, 2018
1 parent d680adb commit e9130c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backtrader/feeds/yahoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class YahooFinanceCSVData(feed.CSVDataBase):
swap the columns again arose.
'''
lines = ('adjclose',)

params = (
('reverse', False),
('adjclose', True),
Expand Down Expand Up @@ -152,7 +154,7 @@ def _loadline(self, linetokens):
o /= adjfactor
h /= adjfactor
l /= adjfactor
c /= adjustedclose
c = adjustedclose
# If the price goes down, volume must go up and viceversa
if self.p.adjvolume:
v *= adjfactor
Expand Down Expand Up @@ -239,8 +241,6 @@ class YahooFinanceData(YahooFinanceCSVData):
'''

lines = ('adjclose',)

params = (
('proxies', {}),
('period', 'd'),
Expand Down

0 comments on commit e9130c2

Please sign in to comment.