INVITE-ONLY SCRIPT

Madd Monkey Pro MKDx Leg and Zone Mapping Engine

37
Madd Monkey Pro MKDx is a structure and zone mapping tool for intraday traders who prefer clear, rule-based legs and focused entry areas instead of constantly redrawing levels by hand.
The script was developed and tested mainly on XAUUSD (Gold) using 15-minute and 5-minute charts. You can apply it to other symbols and timeframes at your own discretion, but you should always test and adapt settings for each market.

Purpose
MKDx is designed to help answer three practical questions:
  1. Where is the current impulsive leg in price?
  2. Where is the main pullback or entry zone inside that leg?
  3. How do trades taken from those zones behave over time, according to your own rules?


Core components (high-level logic)
MKDx combines several modules:
  • Leg detection engine – tracks clear bullish and bearish displacement moves and maintains the currently active leg as new bars confirm structure.
  • Zone engine – defines a focused “entry band” within each leg, using a premium/discount style layout rather than shading the entire range.
  • Trend and momentum filters – optional filters to help you stay aligned with broader direction and avoid trading every leg blindly.
  • Confluence checks – additional conditions that a leg must pass before being considered valid by the indicator.
  • Optional SL / TP references – tools that can mark guideline stop and target areas relative to each leg and zone.


These components are displayed as leg markers, shaded or outlined zones, optional horizontal reference lines, and simple long/short markers where your chosen filters agree.

Key features
  • Automatic mapping of bullish and bearish legs that updates as new highs or lows are confirmed.
  • Highlighted entry zones inside each active leg, instead of persistent bands that cover the entire chart.
  • Configurable filters for trend, momentum and confluence so you can adjust how selective or permissive the signals are.
  • Optional status panel showing approximate counts of outcomes (for example, how many legs would have reached a rough target or stop under your interpretation).
  • Independent toggles for leg lines, zones, markers, labels and the panel so you can keep charts clean.


Suggested usage
Timeframes: Originally tuned for XAUUSD on the 15m and 5m charts. Other timeframes and instruments require your own forward testing.

Use MKDx to:
  • Identify the current active leg and its direction.
  • Watch for price returning into the mapped zone.
  • Combine that context with your own entry logic (price action, candlestick patterns, sessions, etc.) and risk rules.

MKDx does not open or manage trades. Position sizing, stop placement, targets and daily limits are entirely your responsibility.

Notes and limitations
  • Closed bars are not repainted, but leg and zone definitions can change as structure develops. This is expected behavior for any structure-based approach.
  • All arrows, zones and counts are context tools only. They are not trade recommendations or performance guarantees.
  • Past behavior of any configuration does not imply similar results in the future.


Risk disclaimer
This script is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Trading and investing involve significant risk, and you can lose more than your initial investment. Past performance and historical behavior do not guarantee future results.
By using Madd Monkey Pro MKDx, you accept full responsibility for your own trading decisions and outcomes. The author is not liable for any loss or damage arising from the use of this script.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.