mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
feat: EURUSD walk-forward splits, bars terminology, README no $factor
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
# How to read files.
|
||||
For example, if you want to read `filename.h5`
|
||||
```Python
|
||||
import pandas as pd
|
||||
df = pd.read_hdf("filename.h5", key="data")
|
||||
```
|
||||
NOTE: **key is always "data" for all hdf5 files **.
|
||||
|
||||
# Here is a short description about the data
|
||||
| Filename | Description |
|
||||
| -------------- | -----------------------------------------------------------------|
|
||||
| "daily_pv.h5" | EURUSD 15-minute OHLCV intraday data. |
|
||||
|
||||
# For different data, We have some basic knowledge for them
|
||||
|
||||
## EURUSD 15min intraday data
|
||||
$open: open price of EURUSD at the start of the 15min bar.
|
||||
$close: close price of EURUSD at the end of the 15min bar.
|
||||
$high: highest price of EURUSD during the 15min bar.
|
||||
$low: lowest price of EURUSD during the 15min bar.
|
||||
$volume: traded volume during the 15min bar.
|
||||
|
||||
**IMPORTANT: There is NO $factor column. Use only $open, $close, $high, $low, $volume.**
|
||||
|
||||
## Market sessions (UTC)
|
||||
- Asian session: 00:00 - 08:00 (mean reversion tendencies)
|
||||
- London session: 08:00 - 16:00 (trending, momentum works)
|
||||
- NY session: 13:00 - 21:00 (high volatility)
|
||||
- London-NY overlap: 13:00 - 16:00 (highest volume)
|
||||
|
||||
## Lookback reference
|
||||
- 4 bars = 1 hour
|
||||
- 8 bars = 2 hours
|
||||
- 16 bars = 4 hours
|
||||
- 32 bars = 8 hours
|
||||
- 96 bars = 1 day
|
||||
@@ -107,7 +107,7 @@ qlib_factor_output_format: |-
|
||||
SZ000776 0.002459
|
||||
|
||||
qlib_factor_simulator: |-
|
||||
The factors will be sent into Qlib to train a model to predict the next several days return based on the factor values of the previous days.
|
||||
The factors will be sent into Qlib to train a model to predict the next several 15min bars return based on the factor values of the previous bars.
|
||||
Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
|
||||
User will use Qlib to automatically do the following things:
|
||||
1. generate a new factor table based on the factor values.
|
||||
@@ -239,7 +239,7 @@ qlib_model_simulator: |-
|
||||
Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms, including supervised learning, market dynamics modeling, and reinforcement learning (RL).
|
||||
User will use Qlib to automatically perform the following tasks:
|
||||
1. Generate a baseline factor table.
|
||||
2. Train the model defined in your class Net to predict the next several days' returns based on the factor values.
|
||||
2. Train the model defined in your class Net to predict the next several 15min bars returns based on the factor values.
|
||||
3. Build a portfolio based on the predicted returns using a specific strategy.
|
||||
4. Evaluate the portfolio's performance, including metrics such as return, IC, max drawdown, and others.
|
||||
5. Iterate on growing the hypothesis to enable model improvements based on performance evaluations and feedback.
|
||||
|
||||
Reference in New Issue
Block a user