OPEN-SOURCE SCRIPT

Saif's Liquidity Swings with EMA Crossovers

"Saif's Liquidity Swings with EMA Crossovers" is a versatile tool for traders, combining both short-term trend-following (via EMAs) and swing trading techniques (via liquidity swing zones). It is suitable for intraday, swing, or trend traders looking for reliable signals based on key technical indicators.

By offering alerts, customizable settings, and clear visual cues, the script aims to assist traders in making timely decisions based on market trends and liquidity zones.

1. EMA Crossovers

The script plots five key EMAs on the chart, which are common technical analysis tools used to smooth price data and help identify trends:

EMA 5
EMA 8
EMA 13
EMA 50
EMA 200

Alerts: The script includes multiple alert conditions that are triggered whenever there is a crossover or crossunder between any of the 5 EMAs. These alerts notify you when:

One EMA crosses above or below another.
For example, when EMA 5 crosses above EMA 8, an alert is triggered indicating potential trend change. This allows traders to act upon these signals quickly and potentially capitalize on trend shifts.

2. Liquidity Swing High and Low Zones
The script also analyzes market liquidity by identifying Swing Highs and Swing Lows. These are key levels where the price has changed direction, which can be useful for determining entry or exit points.

Swing Highs are defined by a pivot high over the last 14 bars, while Swing Lows are defined similarly by a pivot low. The following logic applies:

Swing High: A local peak where the price turns downward.
Swing Low: A local trough where the price turns upward.

These swing zones are drawn as boxes on the chart, with the option to define the area as either:

Wick Extremity: Defined by the high/low of the candle's wick.
Full Range: Defined by the entire price range of the candle (including the body).

Alerts for Swing Crossovers:

The script generates alert conditions when the price crosses above or below the identified swing high or low levels.

3. Customizable Settings

The script provides several customization options for traders to adjust the settings:

Pivot Lookback Length: The number of bars to look back when identifying pivot points (default is 14).
Swing Area: Choose whether the swing zones are drawn based on the wick extremity or the full range of the candle.
Intrabar Precision: Option to analyze the data on a lower timeframe (such as 1-minute) for more precise intraday signals.
Filtering Options: The ability to filter and display swing zones based on Count or Volume, allowing for a more tailored analysis.

Additionally, traders can control the appearance of the swing highs/lows, such as:

Showing or hiding swing highs/lows.
Adjusting the label size for swing markers.

4. Use Case & Application

Trend Identification: The EMAs (5, 8, 13, 50, 200) help traders identify and follow trends. Shorter EMAs (5, 8, 13) react quickly to price changes, while longer EMAs (50, 200) help smooth out market noise and show long-term trends.
Swing Trading: The liquidity swing zones help identify key levels of support and resistance where price might reverse, allowing traders to take positions at optimal points.
Alerts: Alerts for both EMA crossovers and swing zone crossovers can help traders stay on top of market movements, improving their decision-making and timely execution.

5. Key Features:

5 EMAs plotted on the chart with automatic alerts for crossovers.
Swing Highs and Lows identified and plotted as boxes on the chart, indicating areas of market liquidity.
Customizable Lookback Period for pivot analysis and intrabar precision for more accurate intraday data.
Volume and Count Filtering for swing zones to focus on the most relevant signals.
Alerts for crossover events between EMAs and swing highs/lows.

Breadth IndicatorsChart patternsCyclesemacrossoverEMASexponentialmovingaverages

Skrypt open-source

W prawdziwym duchu TradingView autor tego skryptu opublikował go jako open source, aby inwestorzy mogli go zrozumieć i zweryfikować. Pozdrowienia dla autora! Możesz go używać bezpłatnie, ale ponowne użycie tego kodu w publikacji podlega Zasadom Regulaminu. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Wyłączenie odpowiedzialności