OPEN-SOURCE SCRIPT
업데이트됨

1-Min Rapid Scalper

5 551
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
릴리즈 노트
08/10/2026

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.