OPEN-SOURCE SCRIPT

Supertrend with VWAP Filter

65
The Logic Breakdown
VWAP Integration: Added a standard VWAP calculation.

Filtering: The Supertrend "Buy" signal only triggers if close > vwap.

Dynamic Coloring: If the Supertrend says "up" but price is below VWAP, the line turns gray.

Candle Highlights: I added logic for Bullish/Bearish Engulfing and Dojis. These will highlight the bar color specifically when they align with your VWAP-filtered trend.

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.