-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Support Highfreq Backtest with the Model/Rule/RL Strategy #438
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit
Hold shift + click to select a range
d3a1e03
add sample & base class
bxdd 971d6a2
update strategy
bxdd 8979d78
update report & account
bxdd 39deb7d
update env & strategy, add workflow
bxdd b14efa1
update trade calendar & backtest workflow
bxdd af0053e
fix bug
bxdd 8920c19
del outdate file
bxdd 86a6f56
trade_account support multi bar report
bxdd 49cdaf8
update port_ana_record
bxdd f404a03
black format
bxdd a109df3
fix bug in recorder
bxdd d297a49
fix bugs
bxdd e30df11
solve the conflict
bxdd ae33950
del old strategy
bxdd 7540ecd
fix trade time bug
bxdd bc3eada
black format
bxdd f7d3096
update the internal bar strategy
bxdd 621cb24
fix some comments and add docstring
bxdd 07eaada
fix comments
bxdd c703dab
fix rule_strategy reset method
bxdd de2658a
fix rule_strategy bug
bxdd ea60e60
update rule_startegy & add README, notebook for multi-level trading
bxdd eaa719d
optimize rule_strategy performance
bxdd dda509d
Update record_temp.py
you-n-g 26d75b7
Update sample.py
you-n-g 0c6e505
fix comments
bxdd 75fcb38
Merge branch 'qlib_highfreq_backtest' of github.com:bxdd/qlib into bx…
bxdd ee74489
solve the conflict
bxdd 2ad61f1
rename var in backtest
bxdd 4085b44
move backtest to core, fix calendar bugs, add some docstring
bxdd 6a63654
Merge github.com:microsoft/qlib into bxdd-qlib_highfreq_backtest
bxdd c26bee1
Support loading for backtest
ultmaster 029b63c
fix bugs & add highfreq backtest example
bxdd 96e393b
del DEBUG log
bxdd bf3b757
fix bugs
bxdd 60e082e
add infra interface & fix no KeyboardInterpret bug
bxdd d3dac06
Update simple playground
ultmaster cdc59a7
Merge branch 'nested_decision_exe' into rl-dummy
ultmaster bf16e1a
update Order with dataclass
bxdd a46d99a
black format
bxdd a183d8a
update workflow_by_code & update executor
bxdd 04fff8c
solve conflict
bxdd 449e3f4
Update init in backtest
ultmaster a8e96e5
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
ultmaster 83535bf
Playground checkpoint
ultmaster 4d48c96
fix CI
bxdd 3200bb8
Update an initial version of RL
ultmaster d515efb
Finish RL dummy example
ultmaster cc8339a
Add a few comments
ultmaster 2314405
Rename files
ultmaster f5ac623
Refactor for strategy
ultmaster bf02fc2
Add RL strategy demo
ultmaster 8aee853
update Exchange
bxdd c43805e
Update end-to-end example and requirements
ultmaster 1581ef1
Update impl for robustness
ultmaster 46d253b
update Exchange.deal_order
bxdd a06fa2b
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
ultmaster 76be5d5
Refine example
ultmaster f78e901
fix comments & add VAStrategy & add trade indicator
bxdd 9e45528
update backtest time range
bxdd 4ac6e6e
fix account bug & update indicator_analysis & fix some comments
bxdd 56cf43d
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
7525854
Add shortcut in init
ab97e82
fix bug in Exchange
bxdd d226ac8
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
583fbbe
Resolve init conflict
1517a9e
add default executor config & update bug in indicator
bxdd b6564cd
support trade decision update
bxdd 284d967
fix bug in resam feature
bxdd 4f384d3
API enhancement
you-n-g b68294d
add InfPosition
you-n-g b41267f
successful run random order gen in day script
you-n-g 9b91758
performance optimization for cal_sam_minute
you-n-g e78cdd4
return the detailed order indicator
you-n-g c907d8d
fix bugs of random strategy
you-n-g 72c9593
adapting strategies to latest interfaces.
you-n-g 27f0db6
black format & add comments & add randStrategy direction
you-n-g 8e8bba1
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
ultmaster 20d566c
Merge branch 'rl-dummy' of github.com:ultmaster/qlib into rl-dummy
ultmaster e1b6f31
add Handler Storage
bxdd 90bbf2b
Fix account update bar_count bug
you-n-g 9985bef
update HashingStockStorage
bxdd 8d1b197
update handler_storage test
bxdd b242d6e
delMiniTimer in haandler storage test
bxdd bbf5d1b
add file order strategy
you-n-g 24d5a31
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
a401f1e
improve the docstring
you-n-g 2b4a493
Order patch
8b85b9e
optimize performance of resam data in rule_strategy & exchange
bxdd 8dd5788
fix comments & update resam ts_last method
bxdd ef7fe8a
support parallel HF trading
you-n-g ecf2f24
fix comments
bxdd 9b74a19
Merge pull request #493 from bxdd/optimize_resam_data
bxdd 50c0e99
fix ffr and order amount
you-n-g 7048bef
fix ffr and order amount
you-n-g e063d35
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
8264523
Support order dataframe
cb72857
fix annotation recursive error
you-n-g bdac9f4
supporting seperated buy and sell price
you-n-g e214557
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
354f7e6
Constrain TWAP trade step
03d6fac
fix TWAP strategy
you-n-g dd8231e
simplify the portfolio-based report
you-n-g 6fd50a5
Supporting skip empty decisions
you-n-g 4e41e9c
simplify the portfolio-based report
you-n-g e42aa67
Supporting skip empty decisions
you-n-g d6984a3
fill_placehorder
TideQuant d1b8ed9
fix qrun
TideQuant 85c75a6
config_extend
cbe7c52
high_fre_yaml
wangwenxi-handsome bd6080b
yaml update
wangwenxi-handsome 4488c3b
code optimization
wangwenxi-handsome 8b28575
fill placehorder dict and list
wangwenxi-handsome 267ee35
fix all example
wangwenxi-handsome 93796bd
add exchange kwargs
wangwenxi-handsome 8c743a4
use init_instance_by_config
wangwenxi-handsome 1fb50d5
Merge branch 'main' into nested_decision_exe
you-n-g 0c946cf
add supporting setting trade unit in exchange
you-n-g e8f5a1e
black format
you-n-g 5c5379e
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
32ae6e4
fix calculating base_price
you-n-g eada864
align range limit
you-n-g 17d8b8a
fix calculating base_price
you-n-g cbd52b7
align range limit
you-n-g 80f5426
update docsting
you-n-g ece7b66
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
155019b
move the pa sign from last step to first
you-n-g 45bde75
move the pa sign from last step to first
you-n-g c29e5b2
Fix circular import
4c4b30e
fix base price and volumn
wangwenxi-handsome 9b38e62
Add more friendly index range by timing
you-n-g ca14e36
initial account by position
wangwenxi-handsome 0646e53
fix spell error
wangwenxi-handsome 7b9e338
add docs
wangwenxi-handsome 831773a
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
571d27c
exchange support expression buy sell limit
you-n-g 94b4567
refactor index_range to trade_range
you-n-g 870f834
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
d907817
unify variable names
you-n-g aae4b02
*tuple
wangwenxi-handsome f295497
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
wangwenxi-handsome 344f4f6
add data calendar API and refine order cal api
you-n-g 5241b2f
Merge branch 'nested_decision_exe' of github.com:microsoft/qlib into …
you-n-g 65b4434
add PandasQuote
wangwenxi-handsome 110141d
add doc
wangwenxi-handsome 567841e
get qlib data in exchange
wangwenxi-handsome 6ad52e8
black and doc
wangwenxi-handsome 2b8d4dc
callable
wangwenxi-handsome 7738f39
filter zero base price
you-n-g 5f50614
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
ed12c7f
add common_infra warning and fix time bug
you-n-g 572181e
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
4a62e02
add get_data_cal_avail_range method
you-n-g 25ff62f
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
92f2891
fix order factor setting issue
you-n-g 62583ea
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
4e862f7
add print cash in verbose mode and code format
you-n-g 9bf8c99
type checking update
83d4387
pandas_order_indicator
wangwenxi-handsome 10c182e
add order_indicator doc
wangwenxi-handsome 2c8a3de
high_performance_data_structure
wangwenxi-handsome bbba960
Merge branch 'nested_decision_exe' into nested_decision_exe
you-n-g d445f28
Merge branch 'main' into nested_decision_exe
you-n-g 0ec6b87
fix little bug
wangwenxi-handsome 301e047
Merge branch 'nested_decision_exe' of https://github.com/wangwenxi-ha…
wangwenxi-handsome 9e6f4ec
Merge pull request #520 from wangwenxi-handsome/nested_decision_exe
you-n-g a8ea66b
black
wangwenxi-handsome 9d732e9
Update Action
wangwenxi-handsome 6dcbf51
update action
wangwenxi-handsome 4ffb05a
Update Action
wangwenxi-handsome 103d303
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
wangwenxi-handsome e88c45e
update position
wangwenxi-handsome bdebe12
support empty benchmark
you-n-g c202a4b
fix _get_base_vol_pri clip_time_range
wangwenxi-handsome 4924717
fix black
wangwenxi-handsome fcca242
add cash settlement mechanism
you-n-g 66971d5
fix indicator
wangwenxi-handsome ba1c575
doc and black for indicator
wangwenxi-handsome 0d41ca2
fix data format bug & twap peeking strategy
you-n-g 0b607da
Merge branch 'nested_decision_exe' of https://github.com/microsoft/ql…
e817413
Restore examples
c1992b1
Merge pull request #456 from ultmaster/rl-dummy
you-n-g ab3c4a2
new twap (more even)
you-n-g 73f5cc0
add suspend check in twap
you-n-g 5c2ddac
volume limit
wangwenxi-handsome 0f2d85d
volume limit update
wangwenxi-handsome f5db0e1
fix vol limit bug
wangwenxi-handsome 3ff1d91
add __init__
wangwenxi-handsome 8e87950
Print volume limitation log
you-n-g 74e1ee6
update position and negative cash
wangwenxi-handsome 7c85880
add position test
wangwenxi-handsome 05b9fb5
Fix bug when Account.benchmark_config is None
you-n-g 735153a
Cash Update (#559)
wangwenxi-handsome 309dfa3
Add a example to collecting all the decisions
you-n-g 2da6a8c
fix Path re
wangwenxi-handsome f67b99a
update exchange
wangwenxi-handsome 222c2fd
fix exchange bug
wangwenxi-handsome 8eb7a1f
numpy_order_indicator
wangwenxi-handsome f7d7f1a
fix nanmean
wangwenxi-handsome 16b9548
get_base_info
wangwenxi-handsome e134c35
fix index data bug
wangwenxi-handsome be0d9e6
update freq
wangwenxi-handsome f111e34
align interface
wangwenxi-handsome 9c326fd
add import order
you-n-g 13a9b7c
type error bug
you-n-g d9ad8ff
index_data
wangwenxi-handsome 25f54dd
new high freq struc
wangwenxi-handsome 7ee4a20
add lru
wangwenxi-handsome 43a8f50
fix bug
wangwenxi-handsome d39c8de
draft design
you-n-g 9a74471
Pass basic tests
you-n-g 5f0ee6c
fix bugs
you-n-g 5003e49
fix metric calculation error
you-n-g 9446116
redundant references
wangwenxi-handsome 4da3f3b
broadcast_to and get single data
wangwenxi-handsome 9193805
close and reindex
wangwenxi-handsome f71b0c1
250s
wangwenxi-handsome 88d2f92
fix sum index data bug
you-n-g 6203e4c
Update the docs of Report
you-n-g 163e3c6
replace multi processing with joblib (#477)
you-n-g 3760a18
Merge nested main (#597)
wangwenxi-handsome 4099050
Merge remote-tracking branch 'origin/main' into nested_decision_exe
you-n-g 48a860c
fix backtest yaml
you-n-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
draft design
- Loading branch information
commit d39c8de800aa846eb313530b63c43bc066b12d74
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.