]> Piment Noir Git Repositories - freqai-strategies.git/log
freqai-strategies.git
10 hours agorefactor(quickadapter): cleanup optuna trials validation
Jérôme Benoit [Thu, 25 Dec 2025 18:20:21 +0000 (19:20 +0100)] 
refactor(quickadapter): cleanup optuna trials validation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
11 hours agorefactor(quickadapter): improve optuna integration
Jérôme Benoit [Thu, 25 Dec 2025 18:04:33 +0000 (19:04 +0100)] 
refactor(quickadapter): improve optuna integration

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 hours agorefactor(quickadapter)!: rename nadaraya_watson to gaussian_filter1d
Jérôme Benoit [Thu, 25 Dec 2025 16:22:13 +0000 (17:22 +0100)] 
refactor(quickadapter)!: rename nadaraya_watson to gaussian_filter1d

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
14 hours agorefactor(quickadapter): cleanup redundant checks in _impute_weights()
Jérôme Benoit [Thu, 25 Dec 2025 15:02:10 +0000 (16:02 +0100)] 
refactor(quickadapter): cleanup redundant checks in _impute_weights()

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
14 hours agorefactor(ReforceXY): cleanup overzealous reward params checks
Jérôme Benoit [Thu, 25 Dec 2025 14:58:23 +0000 (15:58 +0100)] 
refactor(ReforceXY): cleanup overzealous reward params checks

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
15 hours agochore: bump model and strategy versions
Jérôme Benoit [Thu, 25 Dec 2025 13:31:46 +0000 (14:31 +0100)] 
chore: bump model and strategy versions

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
15 hours agofix(quickadapter): ensure extrema weighting sources express future price movements
Jérôme Benoit [Thu, 25 Dec 2025 13:27:22 +0000 (14:27 +0100)] 
fix(quickadapter): ensure extrema weighting sources express future price movements

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
16 hours agotest(ReforceXY): factor out common code
Jérôme Benoit [Thu, 25 Dec 2025 12:21:57 +0000 (13:21 +0100)] 
test(ReforceXY): factor out common code

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
18 hours agotest(ReforceXY): use standardized test parameters and tolerances
Jérôme Benoit [Thu, 25 Dec 2025 11:05:37 +0000 (12:05 +0100)] 
test(ReforceXY): use standardized test parameters and tolerances

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
28 hours agorefactor(ReforceXY): simplify param helpers with auto-lookup defaults
Jérôme Benoit [Thu, 25 Dec 2025 01:09:50 +0000 (02:09 +0100)] 
refactor(ReforceXY): simplify param helpers with auto-lookup defaults

30 hours agodocs(ReforceXY): update tests documentation
Jérôme Benoit [Wed, 24 Dec 2025 22:53:18 +0000 (23:53 +0100)] 
docs(ReforceXY): update tests documentation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
30 hours agotest(ReforceXY): cleanup tests namespace
Jérôme Benoit [Wed, 24 Dec 2025 22:41:31 +0000 (23:41 +0100)] 
test(ReforceXY): cleanup tests namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
31 hours agorefactor(ReforceXY): consolidate default params in test helpers
Jérôme Benoit [Wed, 24 Dec 2025 22:16:34 +0000 (23:16 +0100)] 
refactor(ReforceXY): consolidate default params in test helpers

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
32 hours agorefactor(ReforceXY): align methods signature
Jérôme Benoit [Wed, 24 Dec 2025 21:15:55 +0000 (22:15 +0100)] 
refactor(ReforceXY): align methods signature

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
33 hours agochore(ReforceXY)!: rename idle/hold penalty scale to ratio
Jérôme Benoit [Wed, 24 Dec 2025 20:02:50 +0000 (21:02 +0100)] 
chore(ReforceXY)!: rename idle/hold penalty scale to ratio

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
34 hours agofix(ReforceXY): enforce coherent scale for reward components
Jérôme Benoit [Wed, 24 Dec 2025 18:27:31 +0000 (19:27 +0100)] 
fix(ReforceXY): enforce coherent scale for reward components

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
39 hours agodocs: align k-means wording
Jérôme Benoit [Wed, 24 Dec 2025 13:54:55 +0000 (14:54 +0100)] 
docs: align k-means wording

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
39 hours agorefactor(quickadapter): dynamically adjust extrema plot epsilon for zero weighted...
Jérôme Benoit [Wed, 24 Dec 2025 13:26:45 +0000 (14:26 +0100)] 
refactor(quickadapter): dynamically adjust extrema plot epsilon for zero weighted extrema values

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
40 hours agofix(quickadapter): render zero-weight extrema bars
Jérôme Benoit [Wed, 24 Dec 2025 12:36:53 +0000 (13:36 +0100)] 
fix(quickadapter): render zero-weight extrema bars

2 days agotest(ReforceXY): finish factor decoupling properly
Jérôme Benoit [Wed, 24 Dec 2025 00:06:15 +0000 (01:06 +0100)] 
test(ReforceXY): finish factor decoupling properly

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 days agofeat(ReforceXY): make PBRS position holding risk reward aware
Jérôme Benoit [Tue, 23 Dec 2025 23:13:15 +0000 (00:13 +0100)] 
feat(ReforceXY): make PBRS position holding risk reward aware

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 days agorefactor(ReforceXY): PBRS refactoring, bug fix, and documentation harmonization
Jérôme Benoit [Tue, 23 Dec 2025 19:13:18 +0000 (20:13 +0100)] 
refactor(ReforceXY): PBRS refactoring, bug fix, and documentation harmonization

This commit includes three major improvements to the PBRS implementation:

1. Bug Fix: idle_factor calculation
   - Fixed incorrect variable reference in reward_space_analysis.py:625
   - Changed 'factor' to 'base_factor' in idle_factor formula
   - Formula: idle_factor = base_factor * (profit_aim / risk_reward_ratio) / 4.0
   - Also fixed in test_reward_components.py and ReforceXY.py

2. Refactoring: Separation of concerns in PBRS calculation
   - Renamed apply_potential_shaping() → compute_pbrs_components()
   - Removed base_reward parameter from PBRS functions
   - PBRS functions now return only shaping components
   - Caller responsible for: total = base_reward + shaping + entry + exit
   - Kept deprecated wrapper for backward compatibility
   - Updated ReforceXY.py with parallel changes
   - Adapted tests to new function signatures

3. Documentation: Complete mathematical notation harmonization
   - Achieved 100% consistent notation across both implementations
   - Standardized on Greek symbols: Φ(s), γ, Δ(s,a,s')
   - Eliminated mixing of word forms (Phi/gamma/Delta) with symbols
   - Harmonized docstrings to 156-169 lines with identical theory sections
   - Added cross-references between implementations
   - Fixed all instances of Δ(s,s') → Δ(s,a,s') to include action parameter

Files modified:
- reward_space_analysis/reward_space_analysis.py: Core refactoring + docs
- user_data/freqaimodels/ReforceXY.py: Parallel refactoring + docs
- tests/components/test_additives.py: Adapted to new signature
- tests/components/test_reward_components.py: Bug fix
- tests/api/test_api_helpers.py: Adapted to new signature

All 50 tests pass. Behavior preserved except for intentional bug fix.

2 days agofix(ReforceXY): make the data generation duration aware
Jérôme Benoit [Tue, 23 Dec 2025 17:02:49 +0000 (18:02 +0100)] 
fix(ReforceXY): make the data generation duration aware

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 days agorefactor(ReforceXY): cleanup reward space analysis
Jérôme Benoit [Tue, 23 Dec 2025 16:53:41 +0000 (17:53 +0100)] 
refactor(ReforceXY): cleanup reward space analysis

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agochore: refresh openspec artifacts
Jérôme Benoit [Mon, 22 Dec 2025 22:56:34 +0000 (23:56 +0100)] 
chore: refresh openspec artifacts

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agofeat(ReforceXY): add purge_period to optuna config to periodically purge optuna studies
Jérôme Benoit [Mon, 22 Dec 2025 22:16:46 +0000 (23:16 +0100)] 
feat(ReforceXY): add purge_period to optuna config to periodically purge optuna studies

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agofix(ReforceXY): reset last reward shaping on neutral self loop
Jérôme Benoit [Mon, 22 Dec 2025 19:02:33 +0000 (20:02 +0100)] 
fix(ReforceXY): reset last reward shaping on neutral self loop

When the environment is reset, ensure that the last reward shaping value

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agorefactor(ReforceXY): cleanup variables namespace
Jérôme Benoit [Mon, 22 Dec 2025 18:54:52 +0000 (19:54 +0100)] 
refactor(ReforceXY): cleanup variables namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agorefactor(ReforceXY): add invariant checks to efficiency coefficient computation
Jérôme Benoit [Mon, 22 Dec 2025 18:47:37 +0000 (19:47 +0100)] 
refactor(ReforceXY): add invariant checks to efficiency coefficient computation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agofix(ReforceXY): adjust min_resource calculation
Jérôme Benoit [Mon, 22 Dec 2025 18:05:35 +0000 (19:05 +0100)] 
fix(ReforceXY): adjust min_resource calculation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agotest: factor out transforms tests into dedicated test case
Jérôme Benoit [Mon, 22 Dec 2025 17:35:38 +0000 (18:35 +0100)] 
test: factor out transforms tests into dedicated test case

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agofix(ReforceXY): apply PBRS correction at terminal step
Jérôme Benoit [Mon, 22 Dec 2025 17:29:33 +0000 (18:29 +0100)] 
fix(ReforceXY): apply PBRS correction at terminal step

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
3 days agochore(deps): lock file maintenance (#24)
renovate[bot] [Mon, 22 Dec 2025 15:38:35 +0000 (16:38 +0100)] 
chore(deps): lock file maintenance (#24)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 days agochore(deps): update dependency scikit-image to v0.26.0 (#23)
renovate[bot] [Mon, 22 Dec 2025 15:30:33 +0000 (16:30 +0100)] 
chore(deps): update dependency scikit-image to v0.26.0 (#23)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 days agofix(ReforceXY): fix off-by-one in PBRS next state duration computation
Jérôme Benoit [Mon, 22 Dec 2025 12:37:22 +0000 (13:37 +0100)] 
fix(ReforceXY): fix off-by-one in PBRS next state duration computation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agofix(ReforceXY): eval frequency calculation and resource allocation
Jérôme Benoit [Sun, 21 Dec 2025 23:52:44 +0000 (00:52 +0100)] 
fix(ReforceXY): eval frequency calculation and resource allocation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agorefactor(ReforceXY): cleanup reward space analysis additive enablement handling
Jérôme Benoit [Sun, 21 Dec 2025 19:54:21 +0000 (20:54 +0100)] 
refactor(ReforceXY): cleanup reward space analysis additive enablement handling

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agofix(pbrs): canonical mode disables additives; migrate prev_potential API
Jérôme Benoit [Sun, 21 Dec 2025 17:35:10 +0000 (18:35 +0100)] 
fix(pbrs): canonical mode disables additives; migrate prev_potential API

4 days agoperf(qav3): adjust decline_quantile to 0.75
Jérôme Benoit [Sun, 21 Dec 2025 15:36:16 +0000 (16:36 +0100)] 
perf(qav3): adjust decline_quantile to 0.75

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agorefactor(qav3): remove unneeded float conversion in vw_path_length calculation
Jérôme Benoit [Sun, 21 Dec 2025 14:19:09 +0000 (15:19 +0100)] 
refactor(qav3): remove unneeded float conversion in vw_path_length calculation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agorefactor(qav3): cleanup numerical stability checks
Jérôme Benoit [Sun, 21 Dec 2025 14:13:05 +0000 (15:13 +0100)] 
refactor(qav3): cleanup numerical stability checks

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
4 days agofix(qav3): handle edge cases in zero_phase_filter, smooth_extrema, soft_extremum
Jérôme Benoit [Sun, 21 Dec 2025 13:03:13 +0000 (14:03 +0100)] 
fix(qav3): handle edge cases in zero_phase_filter, smooth_extrema, soft_extremum

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 days agofix(qav3): computation of volume-weighted ER
Jérôme Benoit [Sat, 20 Dec 2025 23:44:44 +0000 (00:44 +0100)] 
fix(qav3): computation of volume-weighted ER

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
5 days agorefactor(tests): Standardize constants, improve documentation and add docstrings...
Jérôme Benoit [Sat, 20 Dec 2025 21:33:38 +0000 (22:33 +0100)] 
refactor(tests): Standardize constants, improve documentation and add docstrings (#22)

* Refactor: Standardize constant access patterns in test suite

Replace class-based constant access (self.TEST_*, self.TOL_*, etc.) with
direct imports from tests/constants module. This improves code clarity and
follows the DRY principle by using the centralized constants module as the
single source of truth.

Changes:
- Replace self.TEST_* with PARAMS.* across all test files
- Replace self.TOL_* with TOLERANCE.* for all tolerance values
- Replace self.SEED* with SEEDS.* for test seeds
- Replace self.CONTINUITY_* with CONTINUITY.*
- Replace self.EXIT_FACTOR_* with EXIT_FACTOR.*
- Replace self.BH_FP_RATE_THRESHOLD with STATISTICAL.BH_FP_RATE_THRESHOLD
- Add/update imports in 12 test files to include required constants
- Fix PNL_BASE_STD -> PNL_STD (correct constant name)

Files modified:
- tests/test_base.py: Updated imports and all constant references
- tests/api/test_api_helpers.py: Added PARAMS, SEEDS, TOLERANCE imports
- tests/cli/test_cli_params_and_csv.py: Added SEEDS import
- tests/components/test_*.py: Updated to use direct imports
- tests/integration/test_*.py: Updated constant access patterns
- tests/pbrs/test_pbrs.py: Comprehensive constant migration
- tests/robustness/test_robustness.py: Updated all robustness tests
- tests/statistics/test_statistics.py: Added required constants

All tests verified passing after migration.

* docs(tests): Add tolerance justification guide and docstring template

Phase 1.2 & 1.3: Comprehensive documentation for test suite best practices

Added:
1. TOLERANCE_GUIDE.md - Comprehensive guide for tolerance selection
   - Decision matrix for choosing appropriate tolerances
   - Detailed rationale for each tolerance constant
   - Usage examples and anti-patterns
   - Mathematical justification for tolerance magnitudes

2. .docstring_template.md - Standardized test docstring format
   - Multiple template levels (minimal, standard, complex)
   - Section-by-section guidelines
   - Common patterns (property-based, regression, integration)
   - Checklist for new tests

3. Tolerance justification comments in test files
   - test_robustness.py: Added 11 inline comments explaining tolerance choices
   - test_pbrs.py: Enhanced docstring with tolerance rationale
   - Focused on IDENTITY_RELAXED and NUMERIC_GUARD usages

4. Fixed test_statistics.py imports
   - Moved constants import to proper location (top of file)
   - Removed duplicate import that was incorrectly placed mid-function

Benefits:
- New contributors can quickly understand tolerance choices
- Reduces test flakiness by documenting error accumulation models
- Establishes clear standards for test documentation
- Makes tolerance selection systematic rather than arbitrary

See also: tests/constants.py for tolerance constant definitions

* docs(tests): Enhance README with constant management and tolerance guidelines

- Add Constants & Configuration section explaining centralized constants.py
- Add Tolerance Selection section with quick reference table
- Add Test Documentation section referencing .docstring_template.md
- Add Maintenance Guidelines section covering:
  - Constant management best practices
  - Tolerance documentation requirements
  - Test documentation standards
- Add Additional Resources section linking to new docs:
  - TOLERANCE_GUIDE.md (numerical tolerance selection guide)
  - .docstring_template.md (test documentation template)
  - constants.py (frozen dataclass constants)
  - helpers/assertions.py (custom assertion functions)
  - test_base.py (base class utilities)

Completes Phase 1 documentation by integrating the tolerance guide and
docstring template into the authoritative test suite README.

* fix(tests): Correct constant reference in bootstrap reproducibility test

Fix incorrect constant migration: SCENARIOS.BOOTSTRAP_ITERATIONS does not
exist. Should use STATISTICAL.BOOTSTRAP_DEFAULT_ITERATIONS instead.

The migration script incorrectly mapped self.BOOTSTRAP_DEFAULT_ITERATIONS
to SCENARIOS.BOOTSTRAP_ITERATIONS when it should have been mapped to
STATISTICAL.BOOTSTRAP_DEFAULT_ITERATIONS (from StatisticalConfig dataclass).

Fixes test_stats_hypothesis_seed_reproducibility in test_statistics.py.

* docs(tests): Clarify TOLERANCE_GUIDE.md as authoritative source

Make it explicit that TOLERANCE_GUIDE.md is the single authoritative source
for tolerance documentation, with README.md providing only a quick reference.

This follows the 'No duplication' principle from copilot-instructions.md:
maintain single authoritative documentation source; reference other sources
rather than copying.

* refactor(tests): Complete constant migration - remove all self.* references

Run migration script to eliminate remaining 28 self.* constant references
across 4 test files:
- test_api_helpers.py: self.SEED → SEEDS.SMOKE_TEST (fixed mapping)
- test_reward_components.py: self.TEST_RR → PARAMS.RISK_REWARD_RATIO (2×)
- test_reward_calculation.py: self.TEST_RR → PARAMS.RISK_REWARD_RATIO (1×)
- test_robustness.py: self.TEST_RR → PARAMS.RISK_REWARD_RATIO (24×)

The migration script (tests/scripts/migrate_constants.py) automates this
refactoring to maintain consistency. It serves two purposes:
1. Complete initial migration (this commit)
2. Future-proof tool for adding new constants or refactoring patterns

All test classes now use direct imports from tests/constants.py.
Class-level aliases in RewardSpaceTestBase can be removed in a follow-up.

* refactor(tests): Remove migration script and unused aliases

- Delete temporary migration script (tests/scripts/migrate_constants.py)
- Remove unused class constant aliases from test_base.py
- Migrate remaining self.PBRS_* references to PBRS.* in test_pbrs.py
- Fix test_case.TOL_IDENTITY_STRICT reference in test_reward_components.py
- Keep only actively used class constants (DEFAULT_PARAMS, PBRS_TERMINAL_PROB, PBRS_SWEEP_ITER, JS_DISTANCE_UPPER_BOUND)

All 154 tests passing.

* docs(tests): Add 21 docstrings to helpers, robustness and statistics tests

Add comprehensive docstrings following .docstring_template.md format:

- tests/helpers/test_internal_branches.py: 3 docstrings
- tests/helpers/test_utilities.py: 6 docstrings
- tests/robustness/test_branch_coverage.py: 5 docstrings
- tests/statistics/test_feature_analysis_failures.py: 7 docstrings

All 29 tests verified passing.

* docs(tests): Remove TOLERANCE_GUIDE.md

* refactor(tests): Complete test suite standardization

- Consolidate mid-file imports (PEP 8 compliance)
- Extend constants.py with new test values
- Update documentation (README, docstring template)
- Fix marker references
- Add initial docstrings to multiple test files

5 days agofix(ReforceXY): PBRS trade duration term should be pnl sign-aware
Jérôme Benoit [Sat, 20 Dec 2025 13:36:10 +0000 (14:36 +0100)] 
fix(ReforceXY): PBRS trade duration term should be pnl sign-aware

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 days agofix(qav3): do not weight the first pivot if cannot be computed
Jérôme Benoit [Fri, 19 Dec 2025 23:30:14 +0000 (00:30 +0100)] 
fix(qav3): do not weight the first pivot if cannot be computed

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 days agorefactor(qav3): adjust annotation line offset to stoploss
Jérôme Benoit [Fri, 19 Dec 2025 16:02:43 +0000 (17:02 +0100)] 
refactor(qav3): adjust annotation line offset to stoploss

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 days agorefactor(qav3): adjust take profit annotation line start date
Jérôme Benoit [Fri, 19 Dec 2025 00:45:48 +0000 (01:45 +0100)] 
refactor(qav3): adjust take profit annotation line start date

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 days agochore(qav3): bump versions
Jérôme Benoit [Thu, 18 Dec 2025 20:38:17 +0000 (21:38 +0100)] 
chore(qav3): bump versions

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 days agorefactor!(qav3): cleanup extrema selection methods namespace
Jérôme Benoit [Thu, 18 Dec 2025 20:28:46 +0000 (21:28 +0100)] 
refactor!(qav3): cleanup extrema selection methods namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
8 days agodocs: refine README.md
Jérôme Benoit [Wed, 17 Dec 2025 22:29:14 +0000 (23:29 +0100)] 
docs: refine README.md
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
8 days agochore(qav3): refine configuration template
Jérôme Benoit [Wed, 17 Dec 2025 21:20:30 +0000 (22:20 +0100)] 
chore(qav3): refine configuration template

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
8 days agochore(qav3): bump versions
Jérôme Benoit [Wed, 17 Dec 2025 21:05:59 +0000 (22:05 +0100)] 
chore(qav3): bump versions

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
8 days agofeat(qav3): add volume weighted efficiency_ratio as extrema weighting source
Jérôme Benoit [Wed, 17 Dec 2025 21:03:55 +0000 (22:03 +0100)] 
feat(qav3): add volume weighted efficiency_ratio as extrema weighting source

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
8 days agofix(ReforceXY): compute exit factor properly
Jérôme Benoit [Wed, 17 Dec 2025 16:09:10 +0000 (17:09 +0100)] 
fix(ReforceXY): compute exit factor properly

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agorefactor(qav3): align variable namespace
Jérôme Benoit [Wed, 17 Dec 2025 01:19:58 +0000 (02:19 +0100)] 
refactor(qav3): align variable namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agorefactor(qav3): refine take profit plot annotations
Jérôme Benoit [Wed, 17 Dec 2025 00:49:15 +0000 (01:49 +0100)] 
refactor(qav3): refine take profit plot annotations

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agofeat(qav3): draw take profit on chart
Jérôme Benoit [Wed, 17 Dec 2025 00:29:30 +0000 (01:29 +0100)] 
feat(qav3): draw take profit on chart

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agofix(qav3): log boolean protections parameters
Jérôme Benoit [Tue, 16 Dec 2025 23:21:53 +0000 (00:21 +0100)] 
fix(qav3): log boolean protections parameters

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agorefactor(qav3): log model and strategy specific configuration
Jérôme Benoit [Tue, 16 Dec 2025 21:41:22 +0000 (22:41 +0100)] 
refactor(qav3): log model and strategy specific configuration

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agorefactor(qav3): cleanup extrema weighting hybrid strategy logic
Jérôme Benoit [Tue, 16 Dec 2025 12:04:39 +0000 (13:04 +0100)] 
refactor(qav3): cleanup extrema weighting hybrid strategy logic

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
9 days agorefactor(ReforceXY): factor out reward tunable defaults
Jérôme Benoit [Tue, 16 Dec 2025 10:13:32 +0000 (11:13 +0100)] 
refactor(ReforceXY): factor out reward tunable defaults

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
10 days agorefactor(ReforceXY): factor out reward factor computations
Jérôme Benoit [Mon, 15 Dec 2025 21:08:46 +0000 (22:08 +0100)] 
refactor(ReforceXY): factor out reward factor computations

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
10 days agochore(qav3): bump strategy version to 3.3.183
Jérôme Benoit [Mon, 15 Dec 2025 18:53:53 +0000 (19:53 +0100)] 
chore(qav3): bump strategy version to 3.3.183

10 days agofix(qav3): plot extrema bars with normalized weights
Jérôme Benoit [Mon, 15 Dec 2025 18:46:10 +0000 (19:46 +0100)] 
fix(qav3): plot extrema bars with normalized weights

10 days agoperf(qav3): make extrema weights computation fully numpy-based
Jérôme Benoit [Mon, 15 Dec 2025 13:14:28 +0000 (14:14 +0100)] 
perf(qav3): make extrema weights computation fully numpy-based

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
10 days agochore(deps): lock file maintenance (#21)
renovate[bot] [Mon, 15 Dec 2025 11:29:18 +0000 (12:29 +0100)] 
chore(deps): lock file maintenance (#21)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 days agodocs: refine README.md formatting
Jérôme Benoit [Sun, 14 Dec 2025 16:22:43 +0000 (17:22 +0100)] 
docs: refine README.md formatting

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
11 days agorefactor(qav3): better handling of 0 weights in extrema weighting
Jérôme Benoit [Sun, 14 Dec 2025 14:09:33 +0000 (15:09 +0100)] 
refactor(qav3): better handling of 0 weights in extrema weighting

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
11 days agorefactor(qav3): align fallbacks un extrema weights handling
Jérôme Benoit [Sun, 14 Dec 2025 14:01:17 +0000 (15:01 +0100)] 
refactor(qav3): align fallbacks un extrema weights handling

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
11 days agofix(qav3): geometric_mean computation in hybrid extrema weighting
Jérôme Benoit [Sun, 14 Dec 2025 13:35:44 +0000 (14:35 +0100)] 
fix(qav3): geometric_mean computation in hybrid extrema weighting

+ nan-aware computations

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agorefactor(qav3): namespace alignment
Jérôme Benoit [Sat, 13 Dec 2025 23:14:28 +0000 (00:14 +0100)] 
refactor(qav3): namespace alignment

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agodocs(qav3): refine configuration template
Jérôme Benoit [Sat, 13 Dec 2025 21:52:29 +0000 (22:52 +0100)] 
docs(qav3): refine configuration template

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agodocs: add code comment
Jérôme Benoit [Sat, 13 Dec 2025 21:41:14 +0000 (22:41 +0100)] 
docs: add code comment

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agodocs(qav3): refine extrema weighting docs
Jérôme Benoit [Sat, 13 Dec 2025 21:26:34 +0000 (22:26 +0100)] 
docs(qav3): refine extrema weighting docs

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agochore(qav3): bump versions
Jérôme Benoit [Sat, 13 Dec 2025 21:09:33 +0000 (22:09 +0100)] 
chore(qav3): bump versions

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agofeat(qav3): add hybrid extrema weighting strategy
Jérôme Benoit [Sat, 13 Dec 2025 20:10:56 +0000 (21:10 +0100)] 
feat(qav3): add hybrid extrema weighting strategy

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 days agofix(qav3): handle NaN with imputation in extrema weighting computation pipeline
Jérôme Benoit [Sat, 13 Dec 2025 11:51:50 +0000 (12:51 +0100)] 
fix(qav3): handle NaN with imputation in extrema weighting computation pipeline

When normalizing extrema weights, NaN values can lead to issues in
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
13 days agodocs: refine README.md description of extrema selection methods
Jérôme Benoit [Sat, 13 Dec 2025 02:32:59 +0000 (03:32 +0100)] 
docs: refine README.md description of extrema selection methods

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
13 days agofeat(qav3): add extrema weighting by swing efficiency ratio and speed
Jérôme Benoit [Sat, 13 Dec 2025 02:12:34 +0000 (03:12 +0100)] 
feat(qav3): add extrema weighting by swing efficiency ratio and speed

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
13 days agofeat(qav3): properly integrate volume extrema weighting, take 2
Jérôme Benoit [Sat, 13 Dec 2025 00:45:01 +0000 (01:45 +0100)] 
feat(qav3): properly integrate volume extrema weighting, take 2

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
13 days agorefactor: add pivot volumes calculation in zigzag function
Jérôme Benoit [Sat, 13 Dec 2025 00:04:21 +0000 (01:04 +0100)] 
refactor: add pivot volumes calculation in zigzag function

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
13 days agofix(qav3): ensure extrema weighting computation properly handle NaN
Jérôme Benoit [Fri, 12 Dec 2025 22:34:08 +0000 (23:34 +0100)] 
fix(qav3): ensure extrema weighting computation properly handle NaN

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agodocs: improve tunables description
Jérôme Benoit [Thu, 11 Dec 2025 16:03:53 +0000 (17:03 +0100)] 
docs: improve tunables description

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agochore(qav3): bump versions
Jérôme Benoit [Thu, 11 Dec 2025 15:58:18 +0000 (16:58 +0100)] 
chore(qav3): bump versions

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agodocs: improve tunables description
Jérôme Benoit [Thu, 11 Dec 2025 15:56:18 +0000 (16:56 +0100)] 
docs: improve tunables description

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agodocs: improve tunables description
Jérôme Benoit [Thu, 11 Dec 2025 15:52:06 +0000 (16:52 +0100)] 
docs: improve tunables description

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agodocs: improve README.md configuration tunables description
Jérôme Benoit [Thu, 11 Dec 2025 15:40:32 +0000 (16:40 +0100)] 
docs: improve README.md configuration tunables description

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agofeat(qav3): Add volume-weighted amplitude extrema weighting strategy
Jérôme Benoit [Thu, 11 Dec 2025 15:30:01 +0000 (16:30 +0100)] 
feat(qav3): Add volume-weighted amplitude extrema weighting strategy

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agochore(qav3): propose a performant configuration template
Jérôme Benoit [Wed, 10 Dec 2025 16:47:52 +0000 (17:47 +0100)] 
chore(qav3): propose a performant configuration template

It's to show what can be achieved by understanding the various tunables
and their interactions.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agorefactor(qav3): remove unneeded intermediate variables
Jérôme Benoit [Tue, 9 Dec 2025 13:25:27 +0000 (14:25 +0100)] 
refactor(qav3): remove unneeded intermediate variables

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agorefactor(qav3): align robust standardization namespace
Jérôme Benoit [Mon, 8 Dec 2025 23:57:11 +0000 (00:57 +0100)] 
refactor(qav3): align robust standardization namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agofeat(qav3): add MMAD standardization for extrema weighting
Jérôme Benoit [Mon, 8 Dec 2025 23:43:51 +0000 (00:43 +0100)] 
feat(qav3): add MMAD standardization for extrema weighting

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agorefactor(qav3): namespace alignment
Jérôme Benoit [Mon, 8 Dec 2025 21:09:01 +0000 (22:09 +0100)] 
refactor(qav3): namespace alignment

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agorefactor(qav3): rename savgol params helper
Jérôme Benoit [Mon, 8 Dec 2025 21:05:44 +0000 (22:05 +0100)] 
refactor(qav3): rename savgol params helper

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agochore(qav3): bump QuickAdapterRegressorV3 and QuickAdapterV3 to 3.7.125 and 3.3.175...
Jérôme Benoit [Mon, 8 Dec 2025 20:54:00 +0000 (21:54 +0100)] 
chore(qav3): bump QuickAdapterRegressorV3 and QuickAdapterV3 to 3.7.125 and 3.3.175 respectively

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agofeat(qav3): add 2 extrema smoothing methods: Savitzky–Golay and Nadaraya-Watson
Jérôme Benoit [Mon, 8 Dec 2025 20:52:33 +0000 (21:52 +0100)] 
feat(qav3): add 2 extrema smoothing methods: Savitzky–Golay and Nadaraya-Watson

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agofix(qav3): ensure symetry at extrema smoothing
Jérôme Benoit [Mon, 8 Dec 2025 15:41:15 +0000 (16:41 +0100)] 
fix(qav3): ensure symetry at extrema smoothing

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agoperf(qav3): sensibler defaults for reversal confirmation
Jérôme Benoit [Mon, 8 Dec 2025 13:10:06 +0000 (14:10 +0100)] 
perf(qav3): sensibler defaults for reversal confirmation

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2 weeks agodocs(README.md): fix minmax_range type in extrema_weighting config table
Jérôme Benoit [Mon, 8 Dec 2025 11:24:41 +0000 (12:24 +0100)] 
docs(README.md): fix minmax_range type in extrema_weighting config table

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>