-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Qlib data doc #1207
Qlib data doc #1207
Conversation
qlib/contrib/data/handler.py
Outdated
fields += ["Resi($close, %d)/$close" % d for d in windows] | ||
names += ["RESI%d" % d for d in windows] | ||
if use("MAX"): | ||
# The max price for past d days, divided by latest close price to remove unit | ||
# Represent the upper resistent price range with 80% percentile of price. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we get with 80% percentile of price
from the expression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was try to express this works with QTLU to for a resistence price range between 80% - 100% of price band. I guess this wording is too confusing. I will just remove this sentence.
qlib/contrib/data/handler.py
Outdated
fields += ["Max($high, %d)/$close" % d for d in windows] | ||
names += ["MAX%d" % d for d in windows] | ||
if use("LOW"): | ||
# The low price for past d days, divided by latest close price to remove unit | ||
# Represent the lower supporting price range with 20% percentile of price. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we get with 20% percentile of price
from the expression?
Co-authored-by: you-n-g <[email protected]>
Thanks so much. Welcome to become one of Qlib's contributors |
* Explain data crawler structure * Add documentation for data and feature * Update scripts/data_collector/yahoo/README.md Co-authored-by: you-n-g <[email protected]> * Remove some confusing wording * Add third party data source * Fix command typo * Update commands Co-authored-by: you-n-g <[email protected]>
Add doc and comments for data and feature
Description
Add comments to explain data structure and feature's meaning
Motivation and Context
Documentation to explain data structure, what is the input and output for each step? Since most data in managed as file, user can sample a few to take a deeper look.
It would also be helpful for user to know how the price volume factor is calcualted and what do they mean.
How Has This Been Tested?
pytest qlib/tests/test_all_pipeline.py
under upper directory ofqlib
.Screenshots of Test Results (if appropriate):
Types of changes