TradingView策略未分类已发布

1-Min Rapid Scalper

TradingView 原文 · 抓取于 2026.09.30

TradingView 策略 · BVLabs

原作者BVLabs
首次发布2026.10.05
当前版本v2.0
已审核发布文件tradingview-d7hoossf.pine5.7 KB · TradingView · v2.0
SHA-256
19f95c6d1f8c11eeafd186e39b1b60312099490e774aa156aa16f6d3c84f035d
授权
待确认
授权与文件校验
授权条款
待确认
SHA-256
19f95c6d1f8c11eeafd186e39b1b60312099490e774aa156aa16f6d3c84f035d
登录后下载;未登录仍可查看源码预览
SOURCE PREVIEW

源码预览

正在读取已发布源码…
CAPABILITIES

核心功能

A Heikin Ashi candle morphology sequencer engineered to detect three-bar momentum accelerations following a directional color-flip reversal. Filtered by ADX trend strength and equipped with a dual-mode exit system — a 1-bar impulse capture by default, or full ATR-based TP/SL management with a hard-cap Plug stop — the strategy is purpose-built for ultra-short timeframe execution where speed and structural precision matter more than sustained trend duration.

═══════════════════════════════════════ KEY FEATURES ═══════════════════════════════════════

Heikin Ashi Morphology Sequencer — Three consecutive wickless candles required (open = low for longs, open = high for shorts) — Each bar's body must strictly exceed the prior bar's body size — A color-flip on the 4th lookback bar confirms genuine regime reversal — Separate long and short sequencers with mirror-image logic

Precision Heikin Ashi Source — True HA values pulled via ticker.heikinashi() and request.security() — No approximation — morphology integrity preserved across all timeframes — Overlaid cleanly on the standard candlestick chart

ADX Trend Strength Filter — Full DMI calculation (DI+ and DI−) via ta.dmi() — ADX must exceed configurable threshold at signal bar — Eliminates entries during directionless, low-conviction market conditions

Dual Exit System — 1-Bar Exit (default): close command issued on entry bar, executes at next bar's open — ATR Mode: TP and SL locked at entry price using prior bar's ATR — no mid-trade recalculation — The Plug: hard percentage stop caps maximum loss regardless of ATR width

═══════════════════════════════════════ HOW IT WORKS ═══════════════════════════════════════

Step 1 — Color-Flip Confirmation The 4th bar back must be the opposite color to the signal candles. Bearish on bar 4 precedes long setups; bullish precedes shorts. This confirms the sequence is an emergence from the opposite regime — not continuation of exhausted momentum.

Step 2 — Three-Bar Acceleration Sequence Bars 1, 2, and 3 (looking back from signal bar) must each be wickless on their entry side and larger in body than the preceding bar. For longs: open equals low on all three bars. For shorts: open equals high. The expanding body size requirement confirms compounding directional conviction, not just sustained direction.

Step 3 — ADX Gate ADX must exceed the configured threshold at the moment of signal. This confirms the market is exhibiting sufficient trend energy to justify a momentum entry. Signals that pass candle morphology but occur during low-ADX environments are filtered.

Step 4 — Entry Entry is placed at the open of the bar immediately following the signal. No repainting — all conditions are evaluated on confirmed bars.

Step 5 — Exit Default (1-Bar): strategy.close() is issued on the entry bar. With process_orders_on_close = false, the engine triggers execution at the very next bar's open — harvesting the initial impulse and exiting before any adverse development.

ATR Mode: TP and SL are calculated once at the position-open bar using the prior bar's ATR value (avoiding look-ahead). Levels are locked into strategy.exit() immediately. The Plug applies math.max() (longs) or math.min() (shorts) to enforce whichever stop is tighter — ATR-derived or percentage-derived — so maximum loss is always bounded.

═══════════════════════════════════════ THE WICKLESS CONDITION EXPLAINED ═══════════════════════════════════════

A wickless bullish Heikin Ashi candle occurs when haOpen equals haLow — meaning buyers controlled every tick of that bar with zero retracement. Three consecutive wickless bars with each body larger than the last represents compounding momentum conviction. It is a structural fingerprint of institutional-grade directional pressure, not random noise. The color-flip prerequisite ensures this conviction is fresh — not the tail end of a prior trend.

═══════════════════════════════════════ THE PLUG — RISK ARCHITECTURE ═══════════════════════════════════════

ATR-based stops are volatile by nature — during wide-range sessions, a 2× ATR stop can represent a significant percentage drawdown. The Plug introduces a percentage-based ceiling on loss distance that operates independently of ATR. Whichever stop is closer to entry price is applied. This design ensures that even in extreme volatility conditions, a single trade can never breach a user-defined maximum loss threshold.

═══════════════════════════════════════ RECOMMENDED USE ═══════════════════════════════════════

— Primary timeframe: 1-minute (strategy is named and tuned for this) — Works on any liquid instrument: forex, crypto, equity futures, indices — 1-Bar Exit mode is best suited for instruments with tight spreads and fast fills — ATR mode with The Plug is better suited for instruments with wider intrabar volatility — Lower ADX thresholds will increase signal frequency; higher values increase selectivity — Backtest across multiple sessions before deploying with real capital

INSTALLATION

安装与验证

◇
安装说明待补充

在文档完善前,请勿将未验证文件用于实盘环境。