AlgoRover Breakout Held Retest v0.2.0 Visual — Strategy by AlgoRover
By AlgoRover
Performance Metrics
- Author: AlgoRover
- Symbol: BINANCE:SOLUSDT.P
- Timeframe: 1 minute
- Profit Factor: ,
Description
Breakout Held Retest v0.2.0 — 突破后回踩持稳确认1. Strategy logic / 策略基础逻辑I use the later retest to distinguish a breakout attempt from an entry opportunity. On BINANCE:SOLUSDT.P, standard 1-minute candles are aggregated into completed 15-minute signal bars. A close must move more than 10 basis points beyond the preceding 12-bar high or low, in the direction of the previous bar’s EMA10/EMA40 relationship. The broken boundary is then frozen. A separate later bar must touch it, close back on the breakout side, and have its candle body pointing in the same direction. Only then is a passive entry attempted. This distinction matters to me: a breakout marker records a setup, a retest marker records an order decision, and the platform’s execution marker records a fill. None of these should be presented as interchangeable.我用后续回踩来区分“出现突破”与“值得尝试入场”。交易对象是币安SOL USDT永续合约,TradingView代码为BINANCE:SOLUSDT.P,标准1分钟图在脚本内部合成已收盘的15分钟信号K线。当收盘价沿前一根EMA10与EMA40的趋势方向,突破此前12根信号K线的高点或低点超过10个基点时,策略先冻结被突破的边界。之后独立的一根K线必须触及该边界、收回突破方向一侧,并且K线实体同向,才尝试被动限价入场。这里我关心的是三个不同阶段:突破标记表示建立观察情景,回踩标记表示决定下单,平台成交标记才表示实际成交,三者不能混为一谈。[Figure 1 / 图1:TradingView实际K线实例。B+/B-表示突破后建立观察情景,紫红色粗线表示当时冻结的边界,R+/R-表示后续触及并守住边界后的下单信号。橙色/蓝色分别为信号使用的前一根EMA10/EMA40;红线是15分钟收盘止损参考,绿线是挂单目标,黄色线是被动退出价。图中的Margin call为保证金机制产生的部分减仓,不是新的策略信号。横轴UTC+8,状态表对应最后一根已加载K线。]TradingView原生快照:2. Parameters and rules / 参数规则Defaults are a 12-bar channel, EMA10/EMA40, and a prior-EMA spread between 1 and 10,000 basis points, normalized by the current signal close. The upper bound is deliberately the original broad default; I do not describe it as a tight compression filter. Population volatility of the previous 20 simple returns must be no more than 35 basis points. A setup can wait for five subsequent eligible signal evaluations; expiry or a trend reversal clears it. Both directions are enabled. Entry and passive exit offsets are 0.1 basis point, with at least one tick of distance from the completed close. Entry orders expire after five 15-minute bars. The reference allocation is 100% of current fee-adjusted equity, 1x, with quantity rounded down to 0.01.默认参数为12根通道、EMA10/EMA40,前一根EMA差距按当前信号收盘价归一化后须在1至10,000个基点之间。上限保留原始宽松默认值,因此我不会将它描述成严格的“压缩区间”过滤。此前20个简单收益率的总体标准差须不高于35个基点。突破情景最多等待后续5次符合评估条件的信号判断,超期或趋势反向后清除;允许多空。入场与被动退出偏移均为0.1个基点,并至少距离当前收盘价一个最小跳动;入场挂单5根15分钟K线后失效。参考仓位为当前扣费后权益的100%,1倍,数量向下取整至0.01。The fixed loss threshold is 0.8% of actual average entry, and the profit target is 2%. Stops are evaluated at completed 15-minute closes, rather than submitted as intrabar stop orders. A stop violation within twice the planned stop distance first gets one signal-bar passive exit attempt; a severe violation goes to a market reduction. A still-adverse close or an unfilled passive attempt at the next signal close also falls back to a market exit. Maximum holding time is 24 signal bars (about six hours), with a passive time exit allowed up to five bars, and stop/target/time decisions set a two-bar cooldown. A normally filled resting profit target does not separately set that cooldown in the original code. I preserve these details because replacing all exits with a simple bracket would change the strategy. Native fill callbacks place target protection immediately; Pine places it at the first 1-minute close that observes the fill, so same-minute behavior can differ. Post-only rejection, queue priority, partial fills, cancellation acknowledgements, and Runtime recovery remain approximations.固定止损阈值为实际平均入场价的0.8%,止盈目标为2%。止损在已收盘的15分钟K线上判断,并非盘中触价止损挂单。若触发止损但不利偏移未超过计划止损距离的2倍,先尝试一次、最长一根信号K线的被动退出;严重越界则转为市价减仓。下一次信号收盘若仍处于止损外,或被动退出等待到期,也转为市价退出。最长持仓24根信号K线,约6小时,到期退出可尝试被动挂单最多5根;止损、目标越界或到期决策设置2根冷却。原代码中正常成交的持续挂单止盈不会额外设置这段冷却。我保留这些细节,因为将它们统一替换成简单止盈止损括号单会改变策略。原生系统通过成交回调立即保护目标,Pine则在首次观察到成交的1分钟收盘提交目标,同分钟行为可能不同;post-only拒单、排队、部分成交、撤单确认及Runtime恢复仍是近似。3. Backtest results / 回测效果The archived AlgoRover native test covers 2025-11-16 through 2026-11-16 UTC, a complete 365 days, with 100,000 USDT starting equity, 100% equity allocation, 1x, maker 0.01% and taker 0.025%. It returned 39.17%, with 16.65% maximum minute-level drawdown, 243 completed positions, 49.38% win rate, 1.348 profit factor, and 5,416.50 USDT in fees. The 365-day geometric annualization equals 39.17%; daily-return Sharpe annualized with 365 is 1.790 (the native report’s 252-based Sharpe is 1.488). The separate 90-day test from 2026-08-18 to 2026-11-16 returned 33.48%, with 4.70% maximum drawdown and 66 completed positions. Both ended flat without working or in-flight orders; sizing approvals continued, and no persistent fault was latched before shutdown. These are existing native runs, reused for this port, not newly executed backtests. Funding is excluded.已有AlgoRover原生回测覆盖2025-11-16至2026-11-16 UTC,完整365天,初始100,000 USDT,按权益100%下单,1倍,maker 0.01%/taker 0.025%。净收益39.17%,逐分钟权益最大回撤16.65%,完整平仓243笔,胜率49.38%,盈利因子1.348,累计手续费5,416.50 USDT。按365天几何年化同为39.17%;日收益按365天折算的夏普为1.790,原生报告252天口径为1.488。另一个2026-08-18至2026-11-16的90天测试收益33.48%、最大回撤4.70%、完整平仓66笔。两次运行结束时均空仓、无挂单与在途订单,未出现持续风控卡单,停止前无故障锁定。本次引用的是已有原生运行,没有声称重新执行回测;收益不含资金费率。TradingView compilation and execution were verified on the exact SOL perpetual 1-minute chart, with loaded history from November 9 to November 19 and the research cutoff on November 16 UTC. At the restored reference 1x settings, the tester reports +8,965.56 USDT (+8.97%), with 0.90% maximum drawdown. Its 17 closed records represent only five distinct short entries and 12 margin-call reductions. No long fills occurred at these settings. A temporary long-margin diagnostic made two long entries executable, including the overlapping native November 11 long, then the original 1x setting was restored. This supports a material margin-model difference; it is not a validated performance match. The separate maker/taker proxy ledger finishes at 108,964.38 USDT (+8.96438%), after an additional 1.18 USDT exit fee adjustment, with 1.25% close-sampled maximum drawdown. The tester itself applies 0.01% uniformly, and the ledger adds 0.015% for taker-class exits. The drawdown definitions differ. I would use this version to inspect the signal and exit sequence, and keep its native and TradingView performance claims separate. Zero configured slippage is not evidence of zero live execution cost.TradingView已在准确的SOL永续1分钟图上编译并执行,已加载历史为11月9日至11月19日,研究截止日期为11月16日UTC。恢复原始1倍设置后,测试器收益8,965.56 USDT(8.97%),最大回撤0.90%;17条平仓记录实际只对应5次独立空头入场,其余12条是保证金不足导致的部分强平减仓,当前设置没有多头成交。临时调整多头保证金要求的诊断测试使两次多头入场得以成交,包括与原生重叠的11月11日多头,随后已恢复1倍。这支持保证金模型存在实质差异,不能据此宣称绩效等价。单独的maker/taker近似扣费账本最终权益108,964.38 USDT,收益8.96438%,额外补扣退出手续费1.18 USDT,按收盘权益采样的最大回撤1.25%。测试器本身统一收取0.01%,账本再为归类为taker的退出补扣0.015%;两种回撤定义也不同。我会用这个版本观察信号与退出顺序,并将原生绩效与TradingView绩效分别呈现。配置零滑点不意味着实盘执行成本为零。This strategy was generated using AlgoRover and adapted into Pine Script for visual analysis and backtesting in TradingView, demonstrating a research workflow that moves from a trading idea to explicit rules, then to understanding, modification, and validation. AlgoRover supports more than 4,000 strategies across different categories, custom strategy generation, modification of existing strategy parameters and logic, extensive market data, and execution on local and cloud servers. Its positioning spans strategy generation, rule comprehension, logic modification, and historical validation, lowering the barriers to quantitative strategy research and implementation and making quantitative trading simpler. See the profile for details, and copy the command to install AlgoRover (codex can be replaced with claude or cursor):codex plugin marketplace add AlgoRover/algorover-hub --ref main该策略通过 AlgoRover 生成,并改写为Pine Script,以便在TradingView中进行图示观察与回测,展示了从交易想法到明确规则,再到理解、修改和验证的研究流程。AlgoRover支持 4,000余种不同类别的策略,支持策略自定义生成、现有策略参数与逻辑改写,并提供海量市场数据及本地、云端服务器运行能力。其定位贯穿策略生成、规则理解、逻辑改写和历史验证,降低量化策略研究与实现的门槛,让量化交易变得更简单。详情请看主页,直接复制命令安装AlgoRover:(codex可以替换成claude,cursor)codex plugin marketplace add AlgoRover/algorover-hub --ref main