Parsifal.Swing.TrendScoreThe Parsifal.Swing.TrendScore indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.TrendScore – Specifics
The Parsifal.Swing.TrendScore module combines short-term trend data with information about the current swing state, derived from raw price data and classical technical indicators. It provides an indication of how well the short-term trend aligns with the prevailing swing, based on recent market behavior.
________________________________________
How Swing.TrendScore Works
The Swing.TrendScore calculates a swing score by collecting data within a bin (i.e., a single candle or time bucket) that signals an upside or downside swing. These signals are then aggregated together with insights from classical swing indicators.
Additionally, it calculates a short-term trend score using core technical signals, including:
• The Z-score of the price's distance from various EMAs
• The slope of EMAs
• Other trend-strength signals from additional technical indicators
These two components—the swing score and the trend score—are then combined to form the Swing.TrendScore indicator, which evaluates the short-term trend in context with swing behavior.
________________________________________
How to Interpret Swing.TrendScore
The trend component enhances Swing.TrendScore’s ability to provide stronger signals when the short-term trend and swing state align.
It can also override the swing score; for example, even if a mean reversion appears to be forming, a dominant short-term trend may still control the market behavior.
This makes Swing.TrendScore particularly valuable for:
• Short-term trend-following strategies
• Medium-term swing trading
Unlike typical swing indicators, Swing.TrendScore is designed to respond more to medium-term swings rather than short-lived fluctuations.
________________________________________
Behavior and Chart Representation
The Swing.TrendScore indicator fluctuates within a range, as most of its components are range-bound (though Z-score components may technically extend beyond).
• Historically high or low values may suggest overbought or oversold conditions
• The chart displays:
o A fast curve (orange)
o A slow curve (white)
o A shaded background representing the market state
• Extreme values followed by curve reversals may signal a developing mean reversion
________________________________________
TrendScore Background Value
The Background Value reflects the combined state of the short-term trend and swing:
• > 0 (shaded green) → Bullish mode: swing and short-term trend both upward
• < 0 (shaded red) → Bearish mode: swing and short-term trend both downward
• The absolute value represents the confidence level in the market mode
Notably, the Background Value can remain positive during short downswings if the short-term trend remains bullish—and vice versa.
________________________________________
How to Use the Parsifal.Swing.TrendScore
Several change points can act as entry triggers or aids:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crosses slow line or the slope of the slow signal changes
• Slow Trigger: change in sign of the Background Value
Examples of these trigger points are illustrated in the accompanying chart.
Additionally, market highs and lows aligning with the swing indicator values may serve as pivot points in the evolving price process.
________________________________________
As always, this indicator should be used in conjunction with other tools and market context in live trading.
While it provides valuable insight and potential entry points, it does not predict future price action.
Instead, it reflects recent tendencies and should be used judiciously.
________________________________________
Extensions
The aggregation of information—whether derived from bins or technical indicators—is currently performed via simple averaging. However, this can be modified using alternative weighting schemes, based on:
• Historical performance
• Relevance of the data
• Specific market conditions
Smoothing periods used in calculations are also modifiable. In general, the EMAs applied for smoothing can be extended to reflect expectations based on relevance-weighted probability measures.
Since EMAs inherently give more weight to recent data, this allows for adaptive smoothing.
Additionally, EMAs may be further extended to incorporate negative weights, akin to wavelet transform techniques.
Swingsetup
Parsifal.Swing.FlowThe Parsifal.Swing.Flow indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.Flow – Specifics
The Parsifal.Swing.Flow module aggregates price and trading flow data per bin (a "bin" refers to a single candle or time bucket) and smooths this information over recent historical data to reflect ongoing market dynamics.
________________________________________
How Swing.Flow Works
For each bin, individual data points—called "bin-infolets"—are collected. Each infolet reflects the degree and direction of trading flow, offering insight into buying and selling pressure.
The module processes this data in two steps:
1. Aggregation:
All bin-infolet values within a bin are averaged to produce a single bin-flow value.
2. Smoothing:
The resulting bin-flow values are then smoothed across multiple bins, typically using short-term EMAs.
The outcome is a dynamic representation of the current swing state based on recent trading flow activity.
________________________________________
How to Interpret Swing.Flow
• Range-bound but not a true oscillator:
While individual bin-infolets are range-bound, the Swing.Flow indicator itself is not a classical oscillator.
• Overbought/Oversold Signals:
Historically high or low values in Swing.Flow may signal overbought or oversold conditions.
• Chart Representation:
o A fast curve (orange)
o A slow curve (white)
o A shaded background that illustrates overall market state
• Mean Reversion Signals:
Extreme curve values followed by reversals may indicate the onset of a mean reversion in price.
________________________________________
Flow Background Value
The Flow Background Value represents the net state of trading flow:
• > 0 (green shading) → Bullish mode
• < 0 (red shading) → Bearish mode
• The absolute value reflects the confidence level in the current trend direction
________________________________________
How to Use the Parsifal.Swing.Flow
Several change points can act as entry point triggers:
• Fast Trigger:
A change in the slope of the fast signal curve
• Trigger:
The fast line crossing the slow line or a change in the slope of the slow signal
• Slow Trigger:
A change in the sign of the Background Value
These triggers are visualized in the accompanying chart.
Additionally, market highs and lows that align with the swing indicator values can serve as pivot points for the ongoing price process.
________________________________________
As always, this indicator is best used in conjunction with other indicators and market information.
While Parsifal.Swing.Flow offers valuable insight and potential entry points, it does not predict future price action.
Rather, it reflects the most recent market tendencies, and should therefore be applied with discretion.
________________________________________
Extensions
• Aggregation Method:
The current approach—averaging all infolets—can be replaced by alternative weighting schemes, adjusted according to:
o Historical performance
o Relevance of data
o Specific market conditions
• Smoothing Period:
The EMA-based smoothing period can be varied. In general, EMAs can be enhanced to reflect relevance-weighted probability measures, giving greater importance to recent data for a more adaptive and dynamic response.
• Advanced Smoothing:
EMAs can be further extended to include negative weights, similar to wavelet transform techniques, allowing even greater flexibility in smoothing methodologies.
Parsifal.Swing.RSIThe Parsifal.Swing.RSI indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module facilitates judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These swings within the trend are inherently tradable.
They can be approached:
• One-sidedly, in alignment with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions.
Note: In strong trends, mean reversions often appear as sideways consolidations, making one-sided trades more robust.
________________________________________
The Parsifal Swing Suite
The suite provides insights into current swing states and offers various entry point triggers.
All modules act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., the RSI, which ranges from 0 to 100%).
________________________________________
The Parsifal.Swing.RSI – Specifics
The Parsifal.Swing.RSI is the simplest module in the suite. It uses variations of the classical RSI, explicitly combining:
• RSI: 14-period RSI of the market
• RSIMA: 14-period EMA of the RSI
• RSI21: 14-period RSI of the 21-period EMA of the market
• RSI21MA: 14-period EMA of RSI21
Component Behavior:
• RSI: Measures overbought/oversold levels but reacts very sensitively to price changes.
• RSIMA: Offers smoother directional signals, making it better for assessing swing continuation. Its slope and sign changes are more reliable indicators than pure RSI readings.
• RSI21: Based on smoothed prices. In strong trends, it reaches higher levels and reacts more smoothly than RSI.
• RSI21MA: Further smooths RSI21, serving as a medium-term swing estimator and a signal line for RSI21.
When RSI21 exceeds RSI, it indicates trend strength.
• In uptrends, RSI21 > RSI, with larger exceedance = stronger trend
• In downtrends, the reverse holds
________________________________________
Indicator Construction
The Swing RSI combines:
• RSI and RSIMA → short-term swings
• RSI21 and RSI21MA → medium-term swings
This results in:
• A fast swing curve, derived from RSI and RSI21
• A slow swing curve, derived from RSIMA and RSI21MA
This setup is smoother than RSI/RSIMA alone but more responsive than using RSI21/RSI21MA alone.
________________________________________
Background Value
The Background Value reflects the overall market state, derived from RSI21:
• > 0: shaded green → bullish mode
• < 0: shaded red → bearish mode
• The absolute value reflects confidence in the current mode
________________________________________
How to Use the Parsifal.Swing.RSI
Several change points can act as entry triggers:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crossing slow line or change in slow signal's slope
• Slow Trigger: change in sign of the Background Value
Examples of these triggers are shown in the chart.
Additionally, market highs and lows aligned with swing values can serve as pivot points in evolving price movements.
________________________________________
As always, this indicator should be used alongside other tools and information in live trading.
While it provides valuable insights and potential entry points, it does not predict future price action.
It reflects the latest tendencies and should be used judiciously.
Parsifal.Swing.CompositeThe Parsifal.Swing.Composite indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.Composite – Specifics
This module consolidates multiple insights into price swing behavior, synthesizing them into an indicator reflecting the current swing state.
It employs layered bagging and smoothing operations based on standard price inputs (OHLC) and classical technical indicators. The module integrates several slightly different sub-modules.
Process overview:
1. Per candle/bin, sub-modules collect directional signals (up/down), with each signal casting a vote.
2. These votes are aggregated via majority counting (bagging) into a single bin vote.
3. Bin votes are then smoothed, typically with short-term EMAs, to create a sub-module vote.
4. These sub-module votes are aggregated and smoothed again to generate the final module vote.
The final vote is a score indicating the module’s assessment of the current swing state. While it fluctuates in a range, it's not a true oscillator, as most inputs are normalized via Z-scores (value divided by standard deviation over a period).
• Historically high or low values correspond to high or low quantiles, suggesting potential overbought or oversold conditions.
• The chart displays a fast (orange) and slow (white) curve against a solid background state.
• Extreme values followed by curve reversals may signal upcoming mean-reversions.
Background Value:
• Value > 0: shaded green → bullish mode
• Value < 0: shaded red → bearish mode
• The absolute value indicates confidence in the mode.
________________________________________
How to Use the Parsifal.Swing.Composite
Several change points in the indicator serve as potential entry triggers:
• Fast Trigger: change in slope of the fast curve
• Trigger: fast line crossing the slow line or change in the slow curve’s slope
• Slow Trigger: change in sign of the background value
These are illustrated in the introductory chart.
Additionally, market highs and lows aligned with swing values may act as pivot points, support, or resistance levels for evolving price processes.
________________________________________
As always, supplement this indicator with other tools and market information. While it provides valuable insights and potential entry points, it does not predict future prices. It reflects recent tendencies and should be used judiciously.
________________________________________
Extensions
All modules in the Parsifal Swing Suite are simple yet adaptable, whether used individually or in combination.
Customization options:
• Weights in EMAs for smoothing are adjustable
• Bin vote aggregation (currently via sum-of-experts) can be modified
• Alternative weighting schemes can be tested
Advanced options:
• Bagging weights may be historical, informational, or relevance-based
• Selection algorithms (e.g., ID3, C4.5, CAT) could replace the current bagging approach
• EMAs may be generalized into expectations relative to relevance-based probability
• Negative weights (akin to wavelet transforms) can be incorporated
Swing Volume Profiles [LuxAlgo]The Swing Volume Profiles indicator aims to calculate and highlight trading activity at specific price levels between two swing points; allowing traders to reveal dominant and/or significant price levels based on volume.
By measuring traded volume at all price levels in the market over a specified time period, the script can also be used to detect some key analysis generally such as supply & demand, buy-side & sell-side liquidity levels, unfilled liquidity voids, and imbalances that can highlight on the chart.
🔶 USAGE
A volume profile is an advanced charting tool that displays the traded volume at different price levels over a specific period. It helps you visualize where the majority of trading activity has occurred.
Key Levels are the areas where the volume is concentrated or where there are significant volume spikes. These levels are known as key support and resistance levels. High-volume nodes indicate areas of high activity and are likely to act as support or resistance in the future.
Volume profile also helps identify value areas, which represent the price levels where the most trading activity has taken place. These levels can act as areas of support or resistance as traders perceive them as fair value.
The Point of Control describes the price level where the most volume was traded. A Naked Point of Control (also called a Virgin Point of Control) is a previous POC that has not been traded. Extending PoC options 'Until Bar Cross' or 'Until Bar Touch' helps in identifying Naked Point of Control Lines.
Previous PoC levels can serve as support and resistance for future price movements. Extending PoC Level 'Until Last Bar' option will help to identify such levels.
🔶 DETAILS
One of the unique features of the script is its ability to detect some other key levels such as levels of acceptance and rejection.
Levels of rejection we may summarize as supply and demand levels, these are also referred to as buy-side and sell-side liquidity levels. They usually occur at extreme highs or lows, where prices may be too high for buyers (high supply, low demand) or too low for sellers (low supply, high demand)
Levels of acceptance are the levels where Liquidity Voids occur, these are also referred to imbalances. Liquidity voids are sudden changes in price when the price jumps from one level to another. The peculiar thing about liquidity voids is that they almost always fill up, so we call them levels of acceptance.
🔶 ALERTS
When an alert is configured, the user will have the ability to be notified in case:
Point Of Control Line is touched/crossed
Value Area High Line is touched/crossed
Value Area Low Line is touched/crossed
🔶 SETTINGS
🔹 Display Options
Mode: Controls the lookback length of detection and visualization, where Present assumes last X bars specifid in '# Bars' option and Historical assumes all data available to the user as well as allowed limits of visiual objects (boxs, lines, labels etc)
# Bars: Controls the lookback length.
🔹 Swing Volume Profiles
The script takes into account user-defined parameters and plots volume profiles. Due to Pine Script™ drwaing objects limit only total volume profiles are presented.
Swing Detection Length: Lookback period
Swing Volume Profiles: Toggles the visibility of the Volume Profiles, with color options to differentiate the Value Area within a profile.
Profile Range Background Fill: Toggles the visibility of the Volume Profiles Range
🔹 Point of Control (PoC)
Point of Control (POC) – The price level for the time period with the highest traded volume
Point of Control (PoC): Toggles the visibility of the Point of Control
Developing PoC: Toggles the visibility of the Developing PoC
Extend PoC: Option that allows detecting virgin PoC levels. Virgin Point of Control (VPoC) is defined as a Point of Control that has never been revisited or touched. The option also allows PoC levels to extend till the last bar aiming to present levels from history where the levels were traded significantly and those levels can be used as support and resistance levels.
🔹 Value Area (VA)
Value Area (VA) – The range of price levels in which the specified percentage of all volume was traded during the time period.
Value Area Volume %: Specifies percentage of the Value Area
Value Area High (VAH): Toggles the visibility of the Value Area High, the highest price level within the Value Area
Value Area Low (VAL): Toggles the visibility of the Value Area Low, the lowest price level within the Value Area
Value Area (VA) Background Fill: Toggles the visibility of the Value Area Range
🔹 Liquidity Levels / Voids
Unfilled Liquidity, Thresh: Enable display of the Unfilled Liquidity Levels and Liquidity Voids, where threshold value defines the significance of the level.
🔹 Profile Stats
Position, Size: Specifies the position and the size of the label presenting Profile Stats, the tooltip of the label includes all related info for each profile.
Price, Price Change, and Cumulative Volume: Enable display of the given options on the chart.
🔹 Volume Profile Others
Number of Rows: Specify how many rows each histogram will have. Caution, having it set to high values will quickly hit Pine Script™ drawing objects limit and may cause fewer historical profiles to be displayed.
Placement: Place profile either left or right.
Profile Width %: Alters the width of the rows in the histogram, relative to the calculated profile length.
🔶 RELATED SCRIPTS
Alternative Liquidity Void Detection script, Buyside-Sellside-Liquidity
StockBee MB BullishStockBee Bullish Momentum Burst & 20% Plus Study Tool
The Stockbee bullish momentum burst study tool is helpful for practitioners of the momentum burst method who want to easily find historical momentum bursts and/or 20% plus gainers using Trading View. This script finds three specific breakouts that meet the below criteria:
4% Breakouts (Colors Candle Body)
1. Volume of the candle is greater than the previous candle volume.
2. The percent change of candle's price is greater than 4% from the previous candle close.
3. Current candle close is less than 30% from candle's high.
**Users can toggle 4% Breakouts on/off and also change candle body color in settings**
Dollar Breakouts (Colors Candle Body)
1. The change of candle's price is greater than $0.90 from the previous candle close.
2. Current candle close is less than 30% from candle's high.
** Dollar Breakout does not take volume into consideration **
**Users can toggle Dollar Breakouts on/off and also change candle body color in settings**
20% Plus Gainers (Displays Yellow Triangle Icon)
1. The change over five candles is greater than 20%.
**Users can toggle 20% plus label on/off, cannot change the label color**
This script also filters out any candle that gaps up and breaks down with a close above 4% the previous candle (Eliminates gap-ups that fade). This tool is meant to find and filter possible candidates. Not every marked candle is a great momentum burst trade. Users can look at 4% Breakouts, Dollar Breakouts, 20% Plus Gainers individually or any combination of the three.
This is helpful for Trading View users trading this specific setup.