OPEN-SOURCE SCRIPT

BTC-USDT Liquidity Trend [Ajit Pandit]

535
his script helps traders visualize trend direction and identify liquidity zones where price might react due to past pivot levels. The color-coded candles and extended pivot lines make it easier to spot support/resistance levels and potential breakout points.

Key Features:
1. Trend Detection Using EMA
Uses two EMA calculations to determine the trend:
emaValue: Standard EMA based on length1
correction: Adjusted price movement relative to EMA
Trend: Another EMA of the corrected value
Determines bullish (signalUp) and bearish (signalDn) signals when Trend crosses emaValue.
2. Candlestick Coloring Based on Trend
Candlesticks are colored:
Uptrend → Blue (up color)
Downtrend → Pink (dn color)
Neutral → No color
3. Liquidity Zones (Pivot Highs & Lows)
Identifies pivot highs and lows using a customizable pivot length.
Draws liquidity lines:
High pivot lines (Blue, adjustable width)
Low pivot lines (Pink, adjustable width)
Extends lines indefinitely until price breaks above/below the level.
Removes broken pivot levels dynamically.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.