OPEN-SOURCE SCRIPT
AMD Cycle Mapper [forexobroker]

AMD Cycle Mapper [forexobroker] maps the textbook smart-money day cycle: Accumulation (low-volatility consolidation), Manipulation (a sweep of the accumulation extreme that traps breakout traders), and Distribution (a displacement candle back through the range = the real move). The unique angle is a strict three-stage state machine that only arms after compression and a trap, then times entries on an EMA reclaim inside the confirmed distribution bias.
🔶 ALGORITHM
1. Accumulation: ATR must compress below Compression x ATR-avg (its 50-bar average); when idle and compressed, lock the accumulation range from the highest high / lowest low over the Accumulation Window.
2. Manipulation: a wick that pierces the locked range high (or low) by at least Min Sweep x ATR advances the state machine to manip-up or manip-down and records the manipulation bar.
3. Timeout: if distribution does not confirm within Manip->Distrib Max Bars of the manipulation, the cycle resets to idle.
4. Distribution: a displacement candle in the opposite direction with body >= Displacement x ATR that closes back through the range confirms distribution (down after a high sweep, up after a low sweep).
5. Persistent bias: confirmed distribution arms bias +1 / -1 until the opposite distribution fires.
6. Entry timing: within the active distribution bias, an EMA reclaim (ta.crossover / ta.crossunder of close vs the Entry Reclaim EMA) fires the trade. Displacement-Only Mode swaps this for the strict displacement bar; a fired signal resets the phase machine.
🔶 SIGNAL LOGIC
- Buy: distribution-up bias active (low swept during manipulation, then an up displacement >= Displacement x ATR) and close crosses over the Entry Reclaim EMA (or, in Displacement-Only Mode, the displacement bar), in session, position not already long, after the cooldown window, only on barstate.isconfirmed; position-lock flips to LONG and the phase resets.
- Sell: distribution-down bias active (high swept, then a down displacement) and close crosses under the Entry Reclaim EMA (or the displacement bar), in session, position not already short, cooldown elapsed, on barstate.isconfirmed; position-lock flips to SHORT and the phase resets.
Only fires when the full Accumulation -> Manipulation -> Distribution sequence has completed and set bias.
🔶 INPUTS
- Cycle: accumulation window for the consolidation range (default 20) and ATR length.
- Compression: range ATR must sit below Compression x ATR-avg (default 0.8x).
- Manipulation: minimum sweep pierce in ATR multiples (default 0.15x ATR) and manip-to-distribution max bars.
- Distribution: displacement body threshold in ATR multiples (default 1.0x ATR).
- Signal Logic: Entry Reclaim EMA length (default 9) and Displacement-Only Mode toggle (default off).
- Cooldown: minimum bars between signals (default 6).
- Filters: optional session restriction with a session window.
- Visual: accumulation box, dashboard, 3-layer glow, buy/sell colors, dashboard background.
🔶 ALERTS
ACM Buy, ACM Sell, ACM Any Signal, ACM Accumulation, ACM Manip High, ACM Manip Low, ACM Distrib Up, ACM Distrib Down, ACM Compression, ACM Cycle Reset, ACM Any Manip, ACM Any Distrib, ACM Webhook JSON.
🔶 LIMITATIONS
- Requires warm-up: the 50-bar ATR average and Accumulation Window must populate before any cycle can arm.
- The full three-stage sequence is demanding; in trending or choppy regimes the cycle frequently times out without a signal.
- Defaults are tuned for liquid instruments; compression, sweep, and displacement multiples may need tuning per market.
- Displacement-Only Mode is intentionally rare; the default EMA-reclaim regime mode trades more frequently.
- Non-repainting by design: the state machine and all signals confirm on bar close.
🔶 ALGORITHM
1. Accumulation: ATR must compress below Compression x ATR-avg (its 50-bar average); when idle and compressed, lock the accumulation range from the highest high / lowest low over the Accumulation Window.
2. Manipulation: a wick that pierces the locked range high (or low) by at least Min Sweep x ATR advances the state machine to manip-up or manip-down and records the manipulation bar.
3. Timeout: if distribution does not confirm within Manip->Distrib Max Bars of the manipulation, the cycle resets to idle.
4. Distribution: a displacement candle in the opposite direction with body >= Displacement x ATR that closes back through the range confirms distribution (down after a high sweep, up after a low sweep).
5. Persistent bias: confirmed distribution arms bias +1 / -1 until the opposite distribution fires.
6. Entry timing: within the active distribution bias, an EMA reclaim (ta.crossover / ta.crossunder of close vs the Entry Reclaim EMA) fires the trade. Displacement-Only Mode swaps this for the strict displacement bar; a fired signal resets the phase machine.
🔶 SIGNAL LOGIC
- Buy: distribution-up bias active (low swept during manipulation, then an up displacement >= Displacement x ATR) and close crosses over the Entry Reclaim EMA (or, in Displacement-Only Mode, the displacement bar), in session, position not already long, after the cooldown window, only on barstate.isconfirmed; position-lock flips to LONG and the phase resets.
- Sell: distribution-down bias active (high swept, then a down displacement) and close crosses under the Entry Reclaim EMA (or the displacement bar), in session, position not already short, cooldown elapsed, on barstate.isconfirmed; position-lock flips to SHORT and the phase resets.
Only fires when the full Accumulation -> Manipulation -> Distribution sequence has completed and set bias.
🔶 INPUTS
- Cycle: accumulation window for the consolidation range (default 20) and ATR length.
- Compression: range ATR must sit below Compression x ATR-avg (default 0.8x).
- Manipulation: minimum sweep pierce in ATR multiples (default 0.15x ATR) and manip-to-distribution max bars.
- Distribution: displacement body threshold in ATR multiples (default 1.0x ATR).
- Signal Logic: Entry Reclaim EMA length (default 9) and Displacement-Only Mode toggle (default off).
- Cooldown: minimum bars between signals (default 6).
- Filters: optional session restriction with a session window.
- Visual: accumulation box, dashboard, 3-layer glow, buy/sell colors, dashboard background.
🔶 ALERTS
ACM Buy, ACM Sell, ACM Any Signal, ACM Accumulation, ACM Manip High, ACM Manip Low, ACM Distrib Up, ACM Distrib Down, ACM Compression, ACM Cycle Reset, ACM Any Manip, ACM Any Distrib, ACM Webhook JSON.
🔶 LIMITATIONS
- Requires warm-up: the 50-bar ATR average and Accumulation Window must populate before any cycle can arm.
- The full three-stage sequence is demanding; in trending or choppy regimes the cycle frequently times out without a signal.
- Defaults are tuned for liquid instruments; compression, sweep, and displacement multiples may need tuning per market.
- Displacement-Only Mode is intentionally rare; the default EMA-reclaim regime mode trades more frequently.
- Non-repainting by design: the state machine and all signals confirm on bar close.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🔵Gain access to our powerful tools : forexobroker.com/tv
🔵Join our free telegram for updates : t.me/dominicwalsfxhtrader
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/dominicwalsfxhtrader
All scripts & content provided by Forexobroker are for informational & educational purposes only.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🔵Gain access to our powerful tools : forexobroker.com/tv
🔵Join our free telegram for updates : t.me/dominicwalsfxhtrader
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/dominicwalsfxhtrader
All scripts & content provided by Forexobroker are for informational & educational purposes only.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.