OPEN-SOURCE SCRIPT
Actualizado AMD + FVG Sequential

Price Action and Smart Money Concepts (SMC) terminology:Accumulation — Blue Box: Detects when the range of the last N bars is less than \(\text{accMaxRange} \times \text{ATR}\). As long as the range remains tight, the box extends.Manipulation — M Mark: A wick that punctures the box (either above or below) and closes back inside. This sets the bias: an upward sweep leads to a bearish setup, while a downward sweep leads to a bullish setup.FVG (Fair Value Gap) — Green/Red Box: Includes a BUY/SELL arrow and a background flash. This is the main signal. It only triggers if it is in the direction coherent with the sweep (e.g., a bullish FVG is only valid after a sweep of lows, and vice versa).Distribution — D Mark: Triggered when the price moves away from the FVG by at least \(\text{distMinMov} \times \text{ATR}\).
Notas de prensa
Even if you don't see any large BUY/SELL signals, you will now see:Cyan/fuchsia boxes marking all unfilled FVGs → levels where the price is likely to return.
Orange/yellow Xs marking sweeps → potential reversal candidates.
When you see a sweep + FVG moving in the same rapid direction (a yellow X followed by a cyan box, or an orange X followed by a fuchsia box), you have a "quick" version of the AMD setup—without the need for prior accumulation. The "Quick Bull/Bear setup" alert covers this scenario.
Load it up and tell me what you see now—specifically, whether the cyan/fuchsia boxes are appearing on the visible FVGs within today's downtrend (there should be several between 7380 and 7360).
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.