OPEN-SOURCE SCRIPT
Atualizado 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 Lançamento
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 aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.