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

has no attribute 'strategy' #14

Open
saramg963 opened this issue Apr 11, 2020 · 1 comment
Open

has no attribute 'strategy' #14

saramg963 opened this issue Apr 11, 2020 · 1 comment

Comments

@saramg963
Copy link

~/ebisu$ python3 main.py --strategy strategy
Traceback (most recent call last):
File "/home/ooo/ebisu/src/factory.py", line 16, in create
cls = getattr(strategy, args.strategy)
AttributeError: module 'src.strategy' has no attribute 'strategy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 20, in
bot = BotFactory.create(args)
File "/home/ooo/ebisu/src/factory.py", line 24, in create
raise Exception(f"Not Found Strategy : {args.strategy}")
Exception: Not Found Strategy : strategy

I can't solve this.. help plz

@haikalfouzi
Copy link

you used the wrong input argument for strategy. look at strategy.py for the list of prebuilt strategy, and your command should look like this
python main.py --strategy OCC
you can replace OCC with the prebuilt strategy such as Doten, SMA, Rci

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

2 participants