OPEN-SOURCE SCRIPT

Optimized Liquidity Squeeze Indicator

This TradingView Pine Script is for an "Optimized Liquidity Squeeze Indicator," which identifies potential bullish or bearish reversals based on price action and exponential moving averages (EMAs).

Key Features

Inputs for Wick Multipliers:
User-defined multipliers for upper and lower wick sizes, which help determine the strength of reversal signals.

EMA Calculations:
21-period and 50-period EMAs based on closing prices.
An EMA slope is calculated to estimate the trend direction (bullish or bearish) by assessing the slope over a 21-period span.

Candle Components:
The script measures candle body size and the lengths of upper and lower wicks.

Trend Conditions:
A bullish condition is when the 21 EMA is above the 50 EMA, with a positive EMA slope exceeding a 45-degree threshold.
A bearish condition is the reverse (21 EMA below 50 EMA, and a negative slope).

Wick Condition Check:
The script defines separate conditions for upper and lower wick sizes, relative to candle body size.
If the upper wick exceeds the body size by a certain multiplier during a bullish trend (or vice versa for bearish), the script triggers a signal.

Signal Plotting:
Bullish signals are shown as green dots above bars, and bearish signals are shown as red dots below bars.

Alert Conditions:
Alerts are created for both bullish and bearish signals, specifying the wick, EMA, and slope conditions met for the signal.

This indicator is designed to highlight potential liquidity squeezes based on wick and trend criteria, signaling possible reversals with visual and alert notifications.






educationalforecastingFundamental Analysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明