OPEN-SOURCE SCRIPT
BTC 5m Scalper Pro V4.2 [SAFE STRATEGY]

DescriptionBTC 5m Scalper Pro V4.2 is a trend-following, high-probability scalping script meticulously optimized for volatile assets like Bitcoin (BTC) and Gold (XAU/USD). It is designed to capture quick intraday impulses while heavily filtering out market noise, choppy consolidations, and fakeouts.
The core philosophy of this script is SAFETY FIRST. It enforces strict mechanical rules combining momentum, trend synchronization, and trend strength before printing any signal.Key Features🛡️ Multi-Filter Safety EngineThe script will only trigger a signal if three independent conditions align perfectly:Trend Alignment (Supertrend + 200 EMA): Longs are strictly allowed only above the 200 EMA, and Shorts only below the 200 EMA.Momentum Confirmation (RSI): Filters out weak moves.
Longs require
RSI > 50$, and Shorts require
RSI < 50$.Trend Strength (ADX): An adjustable ADX threshold ensures the script remains completely silent during low-volume, sideways ranges.⏱️ Zero Repainting & Signal ProtectionSignals are strictly calculated and confirmed on the close of the previous bar [1].
The script highlights the candle in bright green (Long) or bright pink (Short) and places a clean "GO" label.
Once printed on a closed bar, the signal never disappears or changes.📊 Advanced Risk Management & Automatic PlottingAnti-Wick Stop Loss: Automatically scans the lowest low (for Longs) or highest high (for Shorts) of the last 3 candles and adds an ATR-based padding to prevent sudden market sweeps from stopping you out early.Dynamic Target Lines: Automatically draws your dynamic Stop Loss (Red) and Take Profit (Blue) lines right on your chart with precise price figures.Manual R:R or Fibonacci Target: Choose between a steady manual Reward-to-Risk ratio (default 1.5) or a Fibonacci 1.618 extension target.🎛️ Fully Customizable Mini DashboardIncludes a sleek, real-time table at the bottom-right of your screen showing critical data from your last trade (Execution Price, exact SL/TP, Entry RSI, and ADX strength).
The dashboard can be shrunk to "Ultra-Small" or completely disabled in the settings for a clean chart layout.How to Set Up Your Real-Time Alerts 🔔This script uses the modern alert() function call system to prevent any sync delays. To get instant alerts with your exact entry price, SL, and TP sent straight to your phone or PC:Click on the Create Alert clock icon (Alt + A).Condition: Select Stratégie SÉCURISÉE: BTC 5m Scalper Pro V4.2.Sub-Condition (Crucial): Select Any alert() function call (or Appels de fonction alert()).Trigger: Leave it on Only Once. Note: The code automatically resets itself and manages the bar-close frequency internally, so it will trigger on every valid setup!Click Create.Disclaimer: Scalping involves financial risk.
Always test this script on historical data and apply proper position sizing.
The core philosophy of this script is SAFETY FIRST. It enforces strict mechanical rules combining momentum, trend synchronization, and trend strength before printing any signal.Key Features🛡️ Multi-Filter Safety EngineThe script will only trigger a signal if three independent conditions align perfectly:Trend Alignment (Supertrend + 200 EMA): Longs are strictly allowed only above the 200 EMA, and Shorts only below the 200 EMA.Momentum Confirmation (RSI): Filters out weak moves.
Longs require
The script highlights the candle in bright green (Long) or bright pink (Short) and places a clean "GO" label.
Once printed on a closed bar, the signal never disappears or changes.📊 Advanced Risk Management & Automatic PlottingAnti-Wick Stop Loss: Automatically scans the lowest low (for Longs) or highest high (for Shorts) of the last 3 candles and adds an ATR-based padding to prevent sudden market sweeps from stopping you out early.Dynamic Target Lines: Automatically draws your dynamic Stop Loss (Red) and Take Profit (Blue) lines right on your chart with precise price figures.Manual R:R or Fibonacci Target: Choose between a steady manual Reward-to-Risk ratio (default 1.5) or a Fibonacci 1.618 extension target.🎛️ Fully Customizable Mini DashboardIncludes a sleek, real-time table at the bottom-right of your screen showing critical data from your last trade (Execution Price, exact SL/TP, Entry RSI, and ADX strength).
The dashboard can be shrunk to "Ultra-Small" or completely disabled in the settings for a clean chart layout.How to Set Up Your Real-Time Alerts 🔔This script uses the modern alert() function call system to prevent any sync delays. To get instant alerts with your exact entry price, SL, and TP sent straight to your phone or PC:Click on the Create Alert clock icon (Alt + A).Condition: Select Stratégie SÉCURISÉE: BTC 5m Scalper Pro V4.2.Sub-Condition (Crucial): Select Any alert() function call (or Appels de fonction alert()).Trigger: Leave it on Only Once. Note: The code automatically resets itself and manages the bar-close frequency internally, so it will trigger on every valid setup!Click Create.Disclaimer: Scalping involves financial risk.
Always test this script on historical data and apply proper position sizing.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.