OPEN-SOURCE SCRIPT
The Map - RMA

Concept This indicator is designed to be the ultimate "Map" for intraday traders. Instead of guessing where support and resistance are, it automatically projects Higher Timeframe (HTF) Market Structure onto your chart and combines it with Institutional Volume Analysis. It answers two critical questions instantly: "Where are we?" (Premium vs. Discount) and "Who is trading?" (Whales vs. Retail).
Key Features
Dynamic Market Structure (The Map):
Automatically fetches the Highest High and Lowest Low from a higher timeframe (Default: 4-Hour) over a user-defined lookback period.
Premium Zone (Red): The upper 50% of the range. Ideally used for looking for Short/Sell setups.
Discount Zone (Green): The lower 50% of the range. Ideally used for looking for Long/Buy setups.
Equilibrium (Gray): The 50% midpoint. A key target for mean reversion strategies.
Whale Volume Detection (The Fuel):
Identifies "Whale Candles" where the current volume significantly exceeds the average (e.g., 2x the 20-period average).
Plots visual Bubbles (Green for Up-close, Red for Down-close) to highlight where big money is entering the market.
Filters out noise by only showing bubbles on candles with significant price movement.
Live Dashboard:
A clean table in the top-right corner displays the current Zone status (Premium vs. Discount) and Volume status in real-time.
How to Use
Trend Following: If price breaks out of the H4 High with a Green Whale Bubble, it indicates strong bullish momentum.
Reversal Trading: If price enters the Red (Premium) Zone and prints a Red Whale Bubble (rejection), it suggests institutional selling pressure at resistance.
Confluence: This tool is best used as a "Context Filter" alongside your favorite entry trigger (like a London Breakout or MACD crossover).
Settings
Structure Timeframe: Choose the HTF for your map (Default: 240/4-Hour).
Lookback: How many bars to scan for Highs/Lows (Default: 20).
Whale Multiplier: How much larger than average volume must be to trigger a bubble (Default: 2.0x).
Visuals: Toggle the Zones map on/off to fix chart scaling if needed.
Disclaimer This indicator is for educational and analytical purposes only. Past performance (structure levels) does not guarantee future price action. Always manage your risk.
Key Features
Dynamic Market Structure (The Map):
Automatically fetches the Highest High and Lowest Low from a higher timeframe (Default: 4-Hour) over a user-defined lookback period.
Premium Zone (Red): The upper 50% of the range. Ideally used for looking for Short/Sell setups.
Discount Zone (Green): The lower 50% of the range. Ideally used for looking for Long/Buy setups.
Equilibrium (Gray): The 50% midpoint. A key target for mean reversion strategies.
Whale Volume Detection (The Fuel):
Identifies "Whale Candles" where the current volume significantly exceeds the average (e.g., 2x the 20-period average).
Plots visual Bubbles (Green for Up-close, Red for Down-close) to highlight where big money is entering the market.
Filters out noise by only showing bubbles on candles with significant price movement.
Live Dashboard:
A clean table in the top-right corner displays the current Zone status (Premium vs. Discount) and Volume status in real-time.
How to Use
Trend Following: If price breaks out of the H4 High with a Green Whale Bubble, it indicates strong bullish momentum.
Reversal Trading: If price enters the Red (Premium) Zone and prints a Red Whale Bubble (rejection), it suggests institutional selling pressure at resistance.
Confluence: This tool is best used as a "Context Filter" alongside your favorite entry trigger (like a London Breakout or MACD crossover).
Settings
Structure Timeframe: Choose the HTF for your map (Default: 240/4-Hour).
Lookback: How many bars to scan for Highs/Lows (Default: 20).
Whale Multiplier: How much larger than average volume must be to trigger a bubble (Default: 2.0x).
Visuals: Toggle the Zones map on/off to fix chart scaling if needed.
Disclaimer This indicator is for educational and analytical purposes only. Past performance (structure levels) does not guarantee future price action. Always manage your risk.
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.
"Need help with Pine Script or a custom indicator? Feel free to message me, I'd be happy to assist!
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
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.
"Need help with Pine Script or a custom indicator? Feel free to message me, I'd be happy to assist!
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
☕ Support my work: paypal.me/ramegy"
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.