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 אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור