OPEN-SOURCE SCRIPT
Scalp BTC/ETH — Reversal & Continuation (v1, Pine v6)

Scalp BTC/ETH — Reversal & Continuation (1m à 10m)
Cet indicateur détecte des opportunités de micro-scalping sur futures (BTC/ETH) basées sur deux mécaniques courtes validées par structure de prix :
A) Reversal de pression (contre-mouvement contrôlé)
Détection d’une sur-extension brutale suivie d’une absorption sur la bougie suivante.
Objectif : capturer la première respiration après un excès de prix (rejet court).
B) Continuation courte (momentum + reprise)
Détection de 3 bougies directionnelles consécutives suivies d’un pullback léger, puis signal sur la reprise du mouvement initial.
Gestion intégrée (scénario standard TP dynamique)
TP1 → 50% de la position à un gain fixe (% adaptable au timeframe)
Stop déplacé au Break-Even sur le restant
Sortie finale sur bougie inverse significative
(correction ≥ X% du corps précédent) ou timeout (max bars en trade)
Scalp BTC/ETH — Reversal & Continuation (1m to 10m)
This indicator detects short-term futures scalping setups on BTC & ETH using two mechanical price-action models designed for fast execution:
A) Reversal Compression (counter-move entry)
Identifies a sharp impulse (overextension) followed by absorption / failure to extend on the next candle.
Objective: capture the first corrective pullback after exhaustion.
B) Controlled Continuation (momentum follow-through)
Identifies 3 consecutive trend candles, then a shallow pullback, and triggers an entry on the resumption of the main leg.
Built-in trade logic (dynamic TP structure)
TP1 → scale out 50% of the position at a fixed percentage (auto-scaled per timeframe)
Stop moved to Break-Even after TP1
Final exit on either:
• a meaningful opposite candle (≥ X% correction of prior body), or
• a timeout (max bars in trade)
Technical characteristics
Designed for 1m / 3m / 5m / 7m / 10m
No repainting (bar-close confirmed logic)
Works for both LONG & SHORT
Built-in alert events:
ENTRY_LONG / ENTRY_SHORT / TP1 / EXIT_STOP / EXIT_INVERSE / EXIT_TIMEOUT
Suitable for manual execution, semi-automation (alerts) or full bot integration (webhook JSON)
Purpose
Provide a repeatable, rule-based, non-subjective framework to harvest micro-moves with controlled risk, without relying on lagging indicators or long-term prediction.
(A Strategy / backtesting version is planned as a next iteration.)
Cet indicateur détecte des opportunités de micro-scalping sur futures (BTC/ETH) basées sur deux mécaniques courtes validées par structure de prix :
A) Reversal de pression (contre-mouvement contrôlé)
Détection d’une sur-extension brutale suivie d’une absorption sur la bougie suivante.
Objectif : capturer la première respiration après un excès de prix (rejet court).
B) Continuation courte (momentum + reprise)
Détection de 3 bougies directionnelles consécutives suivies d’un pullback léger, puis signal sur la reprise du mouvement initial.
Gestion intégrée (scénario standard TP dynamique)
TP1 → 50% de la position à un gain fixe (% adaptable au timeframe)
Stop déplacé au Break-Even sur le restant
Sortie finale sur bougie inverse significative
(correction ≥ X% du corps précédent) ou timeout (max bars en trade)
Scalp BTC/ETH — Reversal & Continuation (1m to 10m)
This indicator detects short-term futures scalping setups on BTC & ETH using two mechanical price-action models designed for fast execution:
A) Reversal Compression (counter-move entry)
Identifies a sharp impulse (overextension) followed by absorption / failure to extend on the next candle.
Objective: capture the first corrective pullback after exhaustion.
B) Controlled Continuation (momentum follow-through)
Identifies 3 consecutive trend candles, then a shallow pullback, and triggers an entry on the resumption of the main leg.
Built-in trade logic (dynamic TP structure)
TP1 → scale out 50% of the position at a fixed percentage (auto-scaled per timeframe)
Stop moved to Break-Even after TP1
Final exit on either:
• a meaningful opposite candle (≥ X% correction of prior body), or
• a timeout (max bars in trade)
Technical characteristics
Designed for 1m / 3m / 5m / 7m / 10m
No repainting (bar-close confirmed logic)
Works for both LONG & SHORT
Built-in alert events:
ENTRY_LONG / ENTRY_SHORT / TP1 / EXIT_STOP / EXIT_INVERSE / EXIT_TIMEOUT
Suitable for manual execution, semi-automation (alerts) or full bot integration (webhook JSON)
Purpose
Provide a repeatable, rule-based, non-subjective framework to harvest micro-moves with controlled risk, without relying on lagging indicators or long-term prediction.
(A Strategy / backtesting version is planned as a next iteration.)
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.