Skip to content

Commit

Permalink
Merge pull request #635 from Lumiwealth/fix-momentum-example
Browse files Browse the repository at this point in the history
update comments on get_momentum signature
  • Loading branch information
grzesir authored Nov 22, 2024
2 parents 59d2088 + 6d0a85a commit 2ace12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lumibot/entities/bars.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Bars:
get_last_dividend
Returns the dividend per share value of the last dataframe row
get_momentum(start=None, end=None)
get_momentum(num_periods=1)
Calculates the global price momentum of the dataframe.
aggregate_bars(frequency)
Expand Down
3 changes: 1 addition & 2 deletions lumibot/example_strategies/stock_momentum.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ def get_assets_momentums(self):
is_live = False

if is_live:
from credentials import ALPACA_CONFIG

from lumibot.credentials import ALPACA_CONFIG
from lumibot.brokers import Alpaca
from lumibot.traders import Trader

Expand Down

0 comments on commit 2ace12b

Please sign in to comment.