-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Volume Weighted Average Price Strategy added. (#239)
# Describe Request Volume Weighted Average Price Strategy added. # Change Type New strategy. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced the `VolumeWeightedAveragePriceStrategy`, allowing users to make trading decisions based on the Volume Weighted Average Price (VWAP). - Enhanced documentation with updated installation and usage instructions, including dedicated test data in CSV format. - Added backtesting functionality for evaluating strategy performance against defined asset sets. - **Bug Fixes** - Corrected the link format for the Volume Weighted Average Price Strategy. - **Documentation** - Comprehensive updates to the README, reflecting version 2 enhancements and clarifying licensing information. - **Tests** - Implemented unit tests for the new VWAP strategy to ensure accuracy in computations and reporting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
6 changed files
with
490 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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
252 changes: 252 additions & 0 deletions
252
strategy/volume/testdata/volume_weighted_average_price_strategy.csv
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,252 @@ | ||
Action | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 | ||
1 | ||
1 | ||
-1 | ||
1 | ||
-1 | ||
-1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
1 | ||
1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 | ||
-1 |
This file contains 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.