Strategies
Freqtrade 'FSupertrendStrategy' by @juankysoriano (Juan Carlos Soriano), faithful port: triple-Supertrend long entry, Supertrend(18,3) exit, ROI ladder 10%/5%/2.5%, 26.5% trailing-from-high stop, LINKUSDT.BINANCE_SPOT 1h
Outcome: Abandoned
FSupertrendStrategyLinkSpot
Outcome Summary
FSupertrendStrategyLinkSpot was a line-for-line port of an open-source Freqtrade triple-Supertrend strategy, run long-only at leverage 1 on LINK spot 1h bars because the source never enables shorting. It went through 3 iterations and never got past code verification. Each time it failed the Layer 1.5 hypothesis/config consistency check, which flagged that the optimization_plan fixes leverage at 1.0, and it was then abandoned as a verification loop. No backtest, optimization or analyst review took place, so the strategy's edge was never measured.
Hypothesis
The source is a tradeable strategy, so this is a faithful port. Venue and instrument: the code as written is long-only and unlevered (can_short is never set), so per the routing rule it belongs on BINANCE_SPOT (under target at 10.7%). LINK was chosen instead of BTC to avoid the over-concentrated BTC series and the BTC Supertrend variant already in the pipeline. The data span was verified in the catalog: LINKUSDT.BINANCE_SPOT-1-HOUR covers 2019-01-16 to 2026-10-01. The tunable set is empty because a faithful port must test the author's hyperopted values, and the corpus overfits whenever it re-optimizes. All six Supertrend states must be maintained incrementally (O(1) per bar) to avoid the Layer-3 sandbox timeouts seen recently.
verification_loop: Verification failed (Layer 1.5 — hypothesis/config consistency) [class=hypothesis_mismatch]: - optimization_plan fixes leverage at 1.0
Implementation
Stratmill translation of Freqtrade FSupertrendStrategy (@juankysoriano, GPL-3.0) on LINKUSDT spot 1h: long when buy Supertrends (8,4),(9,7),(8,1) are all 'up' with volume>0; exit when sell Supertrend (18,3) is 'down', on the ROI ladder 10%/75%/5%/2.5% at 0/30/60/120 min, or on a -26.5% stop trailed from the high that tightens to 5% once high-water profit exceeds 10%. The six Supertrends are exact incremental ports of technical.indicators.supertrend (SMA of TRANGE), O(1) per bar.
Iteration 3 fix: the Layer-1 syntax error ('invalid decimal literal', line 1) came from iteration 2's code field holding the outbox placeholder text instead of Python. This submission carries the full source inline. The trading logic is the same as before, with one change: the ROI-ladder age now comes from calendar time (bar ts_init minus position ts_opened) instead of a held-bar counter, so it is restart-safe. Venue-managed bracket legs (STOP_MARKET stop, LIMIT ROI take-profit) are re-priced every bar to the trailing stop and the current ROI rung, which reproduces Freqtrade's intra-candle stop/ROI fills. Long-only and unlevered, as Freqtrade runs it (can_short is never set), so it trades on BINANCE_SPOT. The short signal is computed but never traded.
Verification Results
Verification failed (Layer 1.5 — hypothesis/config consistency) [class=hypothesis_mismatch]: - optimization_plan fixes leverage at 1.0
Iteration History
sandbox_timeout: Verification failed (Layer 3 — sandbox backtest): smoke test exceeded the 300s wall-clock limit on a ~20000-bar window (833 days of LINKUSDT.BINANCE_SPOT-1-HOUR-LAST-EXTERNAL). This almost always means per-bar work that scales with history — e.g. rescanning the full funding/supplementary series, or rebuilding a list and calling min()/sorted() inside calculate_signal()/on_bar() on every bar. Precompute sorted timestamp arrays ONCE in __init__ and use bisect, or cache lookups keyed by timestamp, so per-bar cost is O(log n) not O(n).
Verification failed (Layer 1 — static analysis): - Syntax error: invalid decimal literal (<unknown>, line 1) (line 1)
Outcome Summary
For an unlevered spot port, make sure the optimization plan and the Layer 1.5 consistency check agree on how a fixed leverage of 1.0 is handled before coding, so a configuration mismatch does not end the run before any backtest.
It was abandoned in a verification loop after 3 iterations, failing Layer 1.5 (hypothesis/config consistency, class hypothesis_mismatch) because the optimization_plan fixes leverage at 1.0. Backtest review, optimization, analyst and risk review were never reached.
A faithful long-only, unlevered port of @juankysoriano's Freqtrade FSupertrendStrategy on LINKUSDT.BINANCE_SPOT 1h: enter long when three hyperopted Supertrends (8/4, 9/7, 8/1) all point up, exit when Supertrend(18,3) turns down, with a 10%/5%/2.5% ROI ladder and a 26.5% stop trailed from the high.
No performance data exists: the backtest report is empty and there is no optimization report, so there are no return, Sharpe or trade-count figures.
Analysis
FSupertrendStrategy
Backtest and paper results are hypothetical. Trading involves risk of loss.