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

Understanding Rise Ratio #1

Closed
jellebuth opened this issue Jun 15, 2022 · 1 comment
Closed

Understanding Rise Ratio #1

jellebuth opened this issue Jun 15, 2022 · 1 comment

Comments

@jellebuth
Copy link

I love the project. Well done! I am a High-Frequency Trader in the crypto market usign Hummingbot myself. I will do a similar project in the near future.

Could you explain in words what the rise ratio is and how this is measured. I could not figure that out via the code

Thanks!

@bradleyboyuyang
Copy link
Owner

I love the project. Well done! I am a High-Frequency Trader in the crypto market usign Hummingbot myself. I will do a similar project in the near future.

Could you explain in words what the rise ratio is and how this is measured. I could not figure that out via the code

Thanks!

The feature rise ratio here can be understood as a lagged return with a rolling period (in seconds) defined as the parameter "before_time", which can be tuned and set by yourself (like 360 seconds or more). For the time index that is larger than "before_time", we simply find the lagged price and then calculate a return as the factor value. But for the time index that is smaller than "before_time", there's no data previously with such a time lag, so using the beginning ask price (at 9:00) to calculate the lagged return would be enough.

In this project I only use the lagged return for ask_price1 as one feature since I think it's already informative enough, but you may also try for other price series like buy_price1 or mid-quote series.

Anyway, sorry about the Chinese comment, and glad you are interested in the project.

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