Skip to content

Commit

Permalink
update comments on get_momentum signature
Browse files Browse the repository at this point in the history
  • Loading branch information
brettelliot committed Nov 22, 2024
1 parent 59d2088 commit 6d0a85a
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 6d0a85a

Please sign in to comment.