]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix(quickadapter): enforce reversal NATR fraction bounds (#140)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 27 Jul 2026 18:54:23 +0000 (20:54 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2026 18:54:23 +0000 (20:54 +0200)
commit371435f2f79dc5b956d8960f2f2d0cb960c4054e
treec0b1360a15f807af1d3e37b463b01c1714e372bd
parentb19cf6d9235dda3f7a3d4d75363de257a0c2ebbf
fix(quickadapter): enforce reversal NATR fraction bounds (#140)

Enforce the documented [0, 1] upper bound for both reversal NATR multiplier
fractions at the configuration boundary:

- reject config values above 1 (warn and fall back per component)
- fail fast with ValueError when canonical defaults exceed max_value
- canonicalize the out-of-range component warning to the single
  "<= {max_value}" form, dropping the wrong "[-inf, x]" notation
- clarify the strict min < max ordering in the README tunables table with
  symmetric "(< upper bound)" / "(> lower bound)" hints

Fixes #137
README.md
quickadapter/user_data/strategies/Utils.py