]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(quickadapter): disambiguate and centralize final exit stage constants
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 20 Jul 2026 20:11:15 +0000 (22:11 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 20 Jul 2026 21:01:49 +0000 (23:01 +0200)
commit9aeb2d24826232b1c4c5d49a962517b2b73db00f
treebc0e4b6e93c14abb6119f7372b1d211cfe0222bf
parent6b4b6a7a7dcc4bac4d2f5e33941534192985e775
refactor(quickadapter): disambiguate and centralize final exit stage constants

Rename the _FINAL_EXIT_STAGE tuple to _FINAL_EXIT_STAGE_PARAMS and add the
class-level constant _FINAL_EXIT_STAGE_INDEX (max(partial_exit_stages) + 1),
referenced from the configuration logging, the get_trade_exit_stage clamp,
and the plot config. This removes the triplicated stage-index expression and
distinguishes the final stage parameters from its index. Qualify the plot
config partial_exit_stages and stage-index accesses with QuickAdapterV3 to
match the surrounding constant access.
quickadapter/user_data/strategies/QuickAdapterV3.py