]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix(quickadapter): preserve label params per candle (#112)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 23 Jul 2026 18:31:00 +0000 (20:31 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2026 18:31:00 +0000 (20:31 +0200)
commitbccb1c3e7d5232e462ce3e6f6b8612cacfb34ca2
treebd3ec945a16a9d87558e212ad20da793dcd55453
parentd81031d2754e62f6af392c52b19e10fcf8bc7399
fix(quickadapter): preserve label params per candle (#112)

* fix(quickadapter): preserve label params per candle

* fix(quickadapter): reject invalid dynamic label params

* refactor(quickadapter): harden label-param validation and dedupe runmode gate

- add _is_finite_number guard rejecting bool and non-numeric before
  np.isfinite (which raised on str/object) across the label getters/setters
- factor the duplicated runmode-in-TRADE_MODES predicate into the
  is_trade_runmode cached_property
- document the per-candle NATR construction and drop the redundant fillna
  after where() in the per-row NATR path
- note that backtest and hyperopt (not only backtest) retain the per-candle
  label period in the README
README.md
quickadapter/user_data/strategies/QuickAdapterV3.py