]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(quickadapter): centralize exit_pricing and reversal_confirmation validation...
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 25 Jul 2026 14:10:01 +0000 (16:10 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Jul 2026 14:10:01 +0000 (16:10 +0200)
commit3810d3f252c0a78affbc24102324c152104d39c8
tree7851a6c376a4f5a2b82b4f8e32cac544e9c7d6f0
parentad3246b8a77e2ac0b594652e205a4f2f9cfdfe86
refactor(quickadapter): centralize exit_pricing and reversal_confirmation validation (#125)

Fold trade_price_target_method and reversal_confirmation inline validation onto the declarative spec-table pattern (get_exit_pricing_config, get_reversal_confirmation_config); coupled min/max NATR pair kept on validate_range. Remove the vestigial default_reversal_confirmation ClassVar. Guard np.isfinite via a shared _is_finite_value helper so every numeric validation path is total (no raise on ints >= 2**64 or non-scalar input). Cache config-derived validation properties (cached_property) in the strategy and regressor. Behavior preserved for all realistic inputs.
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/QuickAdapterV3.py
quickadapter/user_data/strategies/Utils.py