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.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.