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

What are the options for "strategy_type"? #4

Closed
HypergeneticSpacekid opened this issue Aug 23, 2020 · 1 comment
Closed

What are the options for "strategy_type"? #4

HypergeneticSpacekid opened this issue Aug 23, 2020 · 1 comment

Comments

@HypergeneticSpacekid
Copy link

Hey,

Thanks so much for sharing your code by the way and all the effort!

I am setting these options manually in the script. However, I have not figured out what are the options for strategy_type yet. Can you elaborate on this perhaps?

in train.py, line 45:
#company_code = args[1]
#strategy_type = args[2]
company_code = 'HPQ'
strategy_type = ''

thanks in advance,
Alex

@nayash
Copy link
Owner

nayash commented Sep 29, 2020

The project, as of now, includes 4 strategies. You can find these functions in "data_generator.py" file, all starting with prefix "create_label" https://github.com/nayash/stock_cnn_blog_pub/blob/e1f9f052818d27e9d89ea3865d189a8f36145dc4/src/data_generator.py#L99. But I had only included those as example of how to create and use your own strategies. To create and use your own strategy you will need to tweak the code here a little (you just need to read your argument and call your strategy function).

@nayash nayash closed this as completed Sep 29, 2020
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