OPEN-SOURCE SCRIPT
Scalp The React

Scalp The React (STR) is an advanced, all-in-one market structure and liquidity mapping framework. Designed for scalpers, intraday traders, and swing traders, this indicator dynamically builds actionable "Reaction Zones," Fibonacci projection targets, and liquidity sweep setups based on real-time market structure breaks and session timings.
Instead of relying on static, manual drawings, STR automatically identifies structural pivots, determines the market bias, and projects forward-looking target zones to give you a complete roadmap of where the price is likely to react.
🌟 Core Features & Modules
1. Dynamic Fibonacci Setup Modes
The heart of STR is its adaptive Fibonacci projection engine. Depending on your trading style, you can choose how the indicator anchors its High/Low legs to draw the target zones.
Scalp Mode: A step-by-step approach. It waits for the current 0 or 1 boundaries of the active setup to be completely broken before anchoring a new Fibonacci leg.
Intraday Mode: Focuses purely on trend reversals. It maps new Fibonacci projection zones only when a Change of Character (CHoCH) occurs.
HTF (Higher Timeframe) Mode: Top-down analysis made easy. It grabs the exact High and Low of the previous Higher Timeframe candle (e.g., 4H) and projects intraday zones based on that HTF range.
Session Mode: Perfect for session-to-session liquidity traders. It automatically tracks the High and Low of specific trading sessions (Asia, London, New York). The moment a session ends, it instantly projects the Fibonacci scheme based on the current market bias. (Labels explicitly tell you if a level is the "Asia High" or "London Low").
First 4H Mode: An opening range breakout approach. It maps the High and Low of the day's first 4 hours (e.g., 03:00 - 07:00) and projects the roadmap for the rest of the day.

2. Target & Liquidity Zones
Whenever a new setup is confirmed, the indicator plots highly specific mathematical zones:
Magnetic Retest Level (0.5): The fair-value equilibrium of the anchor leg.
Reaction Zone (1.47 - 1.55): The primary Take Profit and reaction box.
External Reaction Zone (2.56 - 2.64): The extended macro target box.
Liquidity Sweep Box (-0.21 to -0.29): Placed exactly opposite to the breakout direction. If the price pushes into this zone and closes back inside the range, the indicator marks a precise Sweep (x) label, signaling a potential liquidity trap / reversal.
3. Market Structure Engine (BOS & CHoCH)
The script continuously scans for fractal highs and lows. It draws "Candidate" levels and waits for the price to break them (wick or body close based on your preference). Once broken, it permanently stamps the chart with BOS (Break of Structure) or CHoCH (Change of Character) labels and lines, keeping a clean historical record of the trend state.
4. Kinetic MA Trail & Bias Engine
To avoid plotting setups against the broader trend, the indicator uses a "Kinetic MA." This is a macro moving average that trails the price uniquely by filtering out noise using Supertrend and ATR logic.
When the price is above the Kinetic MA, the macro bias is Bullish.
When the price is below the Kinetic MA, the macro bias is Bearish.
Note: This internal bias is what dictates the direction of the Session and First 4H Fibonacci projections.
5. Advanced FVG / Breaker Engine
A built-in Fair Value Gap (FVG) and Breaker block extraction module.
Displays the last N unmitigated gaps.
Overlap Filter: Automatically hides overlapping FVGs to keep the chart incredibly clean.
Raid Detection: Marks an "x" inside the gap if the price aggressively wicks into it (a liquidity raid) but fails to close beyond it.
Supports mitigation filtering by Wick, Body Close, or Average line.
⚙️ How to Use It?
Select your Mode: If you trade the London/New York overlaps, set the Fib Mode to "Session". If you are a pure price-action scalper, set it to "Scalp" or "Intraday".
Follow the Liquidity: Look for setups where the price breaks structure, pulls back into the yellow Magnetic Level (0.5), or sweeps the Red Liquidity Box (-0.21 to -0.29) before targeting the Green Reaction Zones.
Align with the Kinetic MA: Use the glowing Kinetic MA band to stay on the right side of the macro trend.
⚠️ Disclaimer
For Educational Purposes Only:
The "Scalp The React" indicator and all its built-in features (including Fibonacci zones, market structure labels, moving averages, and FVG detection) are provided strictly for educational and informational purposes.
Not Financial Advice:
This script does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. Trading in financial markets (including cryptocurrencies, forex, stocks, and commodities) involves a high degree of risk and may not be suitable for all investors. You could lose some or all of your initial investment.
No Guarantee of Results:
Past performance of any trading system or methodology is not necessarily indicative of future results. The zones, labels, and signals generated by this script are based on mathematical formulas and historical price action; they do not predict the future.
User Responsibility:
By using this script, you acknowledge that you are solely responsible for your own trading decisions. Always conduct your own research (DYOR), practice strict risk management, and consult with a certified financial advisor before making any trading or investment decisions. The author of this script assumes no responsibility for any trading losses incurred.
Instead of relying on static, manual drawings, STR automatically identifies structural pivots, determines the market bias, and projects forward-looking target zones to give you a complete roadmap of where the price is likely to react.
🌟 Core Features & Modules
1. Dynamic Fibonacci Setup Modes
The heart of STR is its adaptive Fibonacci projection engine. Depending on your trading style, you can choose how the indicator anchors its High/Low legs to draw the target zones.
Scalp Mode: A step-by-step approach. It waits for the current 0 or 1 boundaries of the active setup to be completely broken before anchoring a new Fibonacci leg.
Intraday Mode: Focuses purely on trend reversals. It maps new Fibonacci projection zones only when a Change of Character (CHoCH) occurs.
HTF (Higher Timeframe) Mode: Top-down analysis made easy. It grabs the exact High and Low of the previous Higher Timeframe candle (e.g., 4H) and projects intraday zones based on that HTF range.
Session Mode: Perfect for session-to-session liquidity traders. It automatically tracks the High and Low of specific trading sessions (Asia, London, New York). The moment a session ends, it instantly projects the Fibonacci scheme based on the current market bias. (Labels explicitly tell you if a level is the "Asia High" or "London Low").
First 4H Mode: An opening range breakout approach. It maps the High and Low of the day's first 4 hours (e.g., 03:00 - 07:00) and projects the roadmap for the rest of the day.
2. Target & Liquidity Zones
Whenever a new setup is confirmed, the indicator plots highly specific mathematical zones:
Magnetic Retest Level (0.5): The fair-value equilibrium of the anchor leg.
Reaction Zone (1.47 - 1.55): The primary Take Profit and reaction box.
External Reaction Zone (2.56 - 2.64): The extended macro target box.
Liquidity Sweep Box (-0.21 to -0.29): Placed exactly opposite to the breakout direction. If the price pushes into this zone and closes back inside the range, the indicator marks a precise Sweep (x) label, signaling a potential liquidity trap / reversal.
3. Market Structure Engine (BOS & CHoCH)
The script continuously scans for fractal highs and lows. It draws "Candidate" levels and waits for the price to break them (wick or body close based on your preference). Once broken, it permanently stamps the chart with BOS (Break of Structure) or CHoCH (Change of Character) labels and lines, keeping a clean historical record of the trend state.
4. Kinetic MA Trail & Bias Engine
To avoid plotting setups against the broader trend, the indicator uses a "Kinetic MA." This is a macro moving average that trails the price uniquely by filtering out noise using Supertrend and ATR logic.
When the price is above the Kinetic MA, the macro bias is Bullish.
When the price is below the Kinetic MA, the macro bias is Bearish.
Note: This internal bias is what dictates the direction of the Session and First 4H Fibonacci projections.
5. Advanced FVG / Breaker Engine
A built-in Fair Value Gap (FVG) and Breaker block extraction module.
Displays the last N unmitigated gaps.
Overlap Filter: Automatically hides overlapping FVGs to keep the chart incredibly clean.
Raid Detection: Marks an "x" inside the gap if the price aggressively wicks into it (a liquidity raid) but fails to close beyond it.
Supports mitigation filtering by Wick, Body Close, or Average line.
⚙️ How to Use It?
Select your Mode: If you trade the London/New York overlaps, set the Fib Mode to "Session". If you are a pure price-action scalper, set it to "Scalp" or "Intraday".
Follow the Liquidity: Look for setups where the price breaks structure, pulls back into the yellow Magnetic Level (0.5), or sweeps the Red Liquidity Box (-0.21 to -0.29) before targeting the Green Reaction Zones.
Align with the Kinetic MA: Use the glowing Kinetic MA band to stay on the right side of the macro trend.
⚠️ Disclaimer
For Educational Purposes Only:
The "Scalp The React" indicator and all its built-in features (including Fibonacci zones, market structure labels, moving averages, and FVG detection) are provided strictly for educational and informational purposes.
Not Financial Advice:
This script does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. Trading in financial markets (including cryptocurrencies, forex, stocks, and commodities) involves a high degree of risk and may not be suitable for all investors. You could lose some or all of your initial investment.
No Guarantee of Results:
Past performance of any trading system or methodology is not necessarily indicative of future results. The zones, labels, and signals generated by this script are based on mathematical formulas and historical price action; they do not predict the future.
User Responsibility:
By using this script, you acknowledge that you are solely responsible for your own trading decisions. Always conduct your own research (DYOR), practice strict risk management, and consult with a certified financial advisor before making any trading or investment decisions. The author of this script assumes no responsibility for any trading losses incurred.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.