Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'autotrader.strategy' #21

Open
Neon-Face opened this issue Nov 22, 2024 · 0 comments
Open

ModuleNotFoundError: No module named 'autotrader.strategy' #21

Neon-Face opened this issue Nov 22, 2024 · 0 comments

Comments

@Neon-Face
Copy link

Describe the bug
When I try to run the demo, it alerts that "ModuleNotFoundError: No module named 'autotrader.strategy'"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'run.py'
    here is my run.py code:
from autotrader import AutoTrader
# Create AutoTrader instance, configure it, and run backtest
at = AutoTrader()
at.configure(verbosity=1, show_plot=True, feed="yahoo")
# at.add_strategy("long_ema_crossover")
# at.add_strategy("ema_crossover")
at.add_strategy("macd")
at.backtest(start="1/6/2023", end="1/2/2024")
at.virtual_account_config(initial_balance=1000, leverage=30)
at.run()

Open "macd.py" file in the demo
“from autotrader.strategy import Strategy” is reported a mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant