Strategies
XRP COIN-M 4H Trend-Pullback Continuation ('one wave, three folds' band entry): Buy the 3-Day Low Inside a 20-Day Up-Move, Sell the 3-Day High Inside a 20-Day Down-Move, Exit on Pullback Completion / 2.5-ATR Stop / 5-Day Clock (XRPUSD_PERP.BINANCE_CM, pure OHLCV, long-short, flat ~65-70%)
Outcome: Abandoned
XrpCmTrendPullbackContinuationLS
Outcome Summary
XrpCmTrendPullbackContinuationLS turned the 'one wave, three folds' band sub-module of an FMZ composite CTA system into a single-instrument, pure-OHLCV strategy on the XRP COIN-M inverse perpetual. It traded counter-moves inside an established 20-day trend, in the trend's direction, and was expected to be flat about 65-70% of the time. Across 3 iterations the strategy never got through verification: it was abandoned for 'verifying_stuck_3_timeouts', with no backtest, optimization, or analyst verdict. Its trading edge was therefore never tested.
Hypothesis
Iteration 3. The reported Layer-1 'syntax error' at line 1 came from a placeholder string that was submitted instead of code. This submission is the full iteration-2 code with only the Layer-2-feedback fix applied: the attribute self._bar_ts, which shadowed the framework method _bar_ts(cls, bar), is renamed to self._cur_bar_ts. The signal, entry, exit and sizing logic are unchanged. The code is pure ASCII.
verifying_stuck_3_timeouts
Implementation
XRP COIN-M 4H trend-pullback continuation. The trend is the vol-normalised 20-day log move (t = ln(C/C[120]) / (ATR% * sqrt(120))), and |t| >= 0.3 counts as a trend. Enter long when an up-trend closes near its 3-day low, and short when a down-trend closes near its 3-day high (depth >= 0.8). Exit on pullback completion (close back in the far 20% of the 3-day range), on a 2.5x entry-ATR close stop, or after a 120-hour calendar clock. Size is 1.5% equity risk / (2.5*ATR%), capped at 1.5x equity, in whole $10 contracts.
Iteration History
Verification failed (Layer 1 — static analysis): - `self._bar_ts = ...` binds a value over framework method `_bar_ts(cls, bar)` — every later call raises "'<type>' object is not callable" (or the framework loses the member). Use a different attribute name. (line 87) - `self._bar_ts = ...` binds a value over framework method `_bar_ts(cls, bar)` — every later call raises "'<type>' object is not callable" (or the framework loses the member). Use a different attribute name. (line 72)
Verification failed (Layer 1 — static analysis): - Syntax error: invalid character '—' (U+2014) (<unknown>, line 1) (line 1)
Outcome Summary
Future iterations should first find out why verification kept timing out on this COIN-M inverse-contract strategy (for example, sandbox runtime or data availability for XRPUSD_PERP.BINANCE_CM) before spending more coding iterations on the signal logic.
The run was abandoned with reason 'verifying_stuck_3_timeouts' after 3 iterations, meaning it repeatedly timed out in the verification stage; backtest review, optimization, analyst, and risk review were never reached.
A long-short 4H trend-pullback continuation strategy on XRPUSD_PERP.BINANCE_CM that buys near the 3-day low inside a vol-normalised 20-day up-move (and sells near the 3-day high inside a down-move), exiting on pullback completion, a 2.5-ATR stop, or a 5-day clock, with 1.5%-of-equity risk sizing capped at 1.5x leverage.
No performance data exists: the backtest report is empty and no optimization report was produced, so there are no return, Sharpe, or trade-count figures.
Analysis
【复合CTA交易系统New】(多因子+多品种+多策略自适应公用版)|【Composite CTA Trading System New 】(Multi-factor + Multi-variety + Multi-strategy Adaptive Public Version)
Backtest and paper results are hypothetical. Trading involves risk of loss.