Closed cinar closed 1 month ago
The pull request introduces comprehensive updates across multiple files in the Indicator Go module, primarily focusing on enhancing the documentation and functionality of various strategies and indicators. Key changes include the addition of the Envelope
indicator and its corresponding strategy, updates to the Money Flow Index Strategy
, and modifications to the README.md
files to reflect these enhancements. Additionally, new files are created for the volume
package and unit tests for both the EnvelopeStrategy
and MoneyFlowIndexStrategy
, ensuring improved test coverage and usability.
File Path | Change Summary |
---|---|
README.md |
Updated to reflect version 2 features, including new indicators, strategies, and backtesting instructions. Added Envelope indicator and updated Money Flow Index Strategy link. |
strategy/README.md |
Updated function signatures for NewAndStrategy and NewOrStrategy to accept multiple strategies. |
strategy/testdata/x |
File replaced with a series of zeros, serving as a placeholder. |
strategy/trend/README.md |
Added documentation for the new EnvelopeStrategy , detailing its methods and functionality. |
strategy/trend/envelope_strategy.go |
Introduced EnvelopeStrategy type and its associated methods for trading recommendations based on the Envelope indicator. |
strategy/trend/envelope_strategy_test.go |
Added unit tests for EnvelopeStrategy , validating its functionality and report generation. |
strategy/volume/README.md |
New documentation for the volume package, outlining its functions and strategies, including MoneyFlowIndexStrategy . |
strategy/volume/money_flow_index_strategy.go |
Implemented MoneyFlowIndexStrategy , defining its parameters and methods for trading recommendations based on MFI. |
strategy/volume/money_flow_index_strategy_test.go |
Added unit tests for MoneyFlowIndexStrategy , ensuring correctness of computations and report generation. |
strategy/volume/volume.go |
Introduced the volume package with an exported function AllStrategies , currently returning an empty slice. |
trend/README.md |
Added documentation for the new Envelope type and its associated functions. |
trend/envelope.go |
Implemented the Envelope type for calculating envelope indicators, including methods for initialization and computation. |
trend/envelope_test.go |
Introduced unit tests for Envelope functionality, validating SMA and EMA calculations and string representation. |
README.md
file, specifically highlighting the addition of the Envelope
indicator and its associated strategy, which aligns with the enhancements made in version 2 of the Indicator Go module.π° In the meadow where indicators play,
New strategies hop and dance all day.
With envelopes bright and MFI's cheer,
Our code is now better, letβs give a cheer!
So letβs test and trade, with joy in our hearts,
For the world of finance, this is just the start! πΌ
trend/envelope.go
42-42: cannot convert DefaultEnvelopePercentage (untyped int value) to type T: T does not contain specific types (typecheck) --- 50-50: cannot convert DefaultEnvelopePercentage (untyped int value) to type T: T does not contain specific types (typecheck)
Attention: Patch coverage is 90.16393%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 92.88%. Comparing base (
68c34da
) to head (6124c7e
).
Files with missing lines | Patch % | Lines |
---|---|---|
strategy/volume/money_flow_index_strategy.go | 92.72% | 2 Missing and 2 partials :warning: |
strategy/volume/volume.go | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Describe Request
Money Flow Index Strategy is added.
Change Type
Volume strategy.
Summary by CodeRabbit
New Features
Envelope
andMoney Flow Index
strategies, expanding the library's trading capabilities.Envelope
type and associated functions for calculating envelope indicators.Bug Fixes
Documentation
Tests