Triple Ehlers Market StateClear trend identification is an important aspect of finding the right side to trade, another is getting the best buying/selling price on a pullback, retracement or reversal. Triple Ehlers Market State can do both.
Three is always better
Ehlers’ original formulation produces bullish, bearish and trendless signals. The indicator presented here gate stages three correlation cycles of adjustable lengths and degree thresholds, displaying a more refined view of bullish, bearish and trendless markets, in a compact and novel way.
Stick with the default settings, or experiment with the cycle period and threshold angle of each cycle, then choose whether ‘Recent trend weighting’ is included in candle colouring.
John Ehlers is a highly respected trading maths head who may need no introduction here. His idea for Market State was published in TASC June 2020 Traders Tips. The awesome interpretation of Ehlers’ work on which Triple Ehlers Market State’s correlation cycle calculations are based can be found at:
DISCLAIMER: None of this is financial advice.
Retracement
Fibonacci Ranges (Real-Time) [LuxAlgo]The "Fibonacci Ranges" indicator combines Fibonacci ratio-derived ranges (channels), together with a Fibonacci pattern of the latest swing high/low.
🔶 USAGE
The indicator draws real-time ranges based on Fibonacci ratios as well as retracements. Breakouts from a Fibonacci Channel are also indicated by labels, indicating a potential reversal.
Each range extremity/area can also be used as support/resistance.
🔶 CONCEPTS
Fibonacci Channels
Latest Fibonacci
Both, Latest Fibonacci and Fibonacci Channels , display different Fibonacci levels (labels not included in the code):
However, the 2 react in a totally different way.
🔹 Fibonacci Channels
2 conditions must be fulfilled until a Fibonacci Channel is displayed:
New swing high/low
close has to be between chosen limits/levels ( Break level )
As visual guidance, chosen Break levels are accentuated by 2 small gray blocks:
Once the channel is displayed, it will remain visible until x consecutive bars break out of the chosen Break level at closing time.
• x consecutive bars is set by Break count .
The amount of breaks is counted in the code. When the price, without breaking the user-set limit, closes back between the 2 levels, the count is reset to 0.
By enabling Channels and Shadows you can see previous channels (" Shadows ", which is always delayed with 1 bar)
Previous channels can be helpful in finding potential support/resistance areas, especially from large channel blocks
The more narrow Break levels are set the less chance the price closes between these 2 levels, and the quicker close breaks out.
In other words, narrow levels give fewer & smaller channels, broader levels give more & larger channels.
Note:
• swing settings: L & R
• Break count (x consecutive bars that close outside chosen levels to invalidate the Fibonacci Channel )
will also be of influence in displaying the channels.
• Show breaks enable you to visualize signals when there is a break:
• Alerts can also be set ( Break Down / Break Up )
🔹 Latest Fibonacci
This displays the Fibonacci levels between the latest swing high and swing low, independently from the Fibonacci Channel .
The Lastest Fibonacci can be helpful in detecting the current trend against the larger Fibonacci Channel .
🔶 SETTINGS
🔹 Swing Settings
L: set left of pivothigh / pivotlow
R: set right of pivothigh / pivotlow
🔹 Fibonacci Channels
Channel : Channel / Channels + Shadows / None
Break level
-0.382 - 1.382
0.000 - 1.000
0.236 - 0.764
0.382 - 0.618
Break count
🔹 Fibonacci
Toggle
Colours: [ -0.382 - 0 ], [ 0.236 - 0.382 ], [ 0.5 ], [ 0.618 - 0.764 ], [ 1 - 1.382 ]
Encapsulation BoxThe “Encapsulation Box” indicator is designed to locate areas of the chart where the highs and lows of candlesticks are “embedded” or enclosed within the body of a previous candlestick. This setup indicates a significant contraction in the market and can provide important trading signals. Here's how it works in more detail:
Detecting contraction: The indicator looks for situations where the price range of the candles is very narrow, i.e. when subsequent candles have highs and lows that are contained within the range of a previous candle. This condition indicates a contraction in the market before a possible directional move.
When a contraction is detected, the indicator draws a rectangle around the area where the highs and lows of the candles are embedded. The rectangle has its upper vertex corresponding to the maximum of the candles involved and its lower vertex corresponding to the minimum. The width of the rectangle is defined by can be customized by the user.
A key feature of this indicator is the horizontal line drawn outside the rectangle. This line is positioned in the middle of the rectangle and represents 50% of the range of the rectangle itself. This line acts as a significant support or resistance level depending on the direction the contraction breaks.
The indicator can generate buy or sell signals when a break in the rectangle or horizontal line occurs. For example, if the price breaks above the rectangle and the horizontal line, it could generate a buy signal, indicating a possible uptrend. Conversely, if the price breaks below the rectangle and the horizontal line, it could generate a sell signal, indicating a possible downtrend.
lib_retracement_labelLibrary "lib_retracement_label"
creates a retracement label between the origin and target of a retracement, updating it's position (via update + draw) when the target moves.
create_tooltip(name, min, max, tol_min, tol_max)
Parameters:
name (string)
min (float)
max (float)
tol_min (float)
tol_max (float)
method update(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method create_retracement_label(this, move_endpoint, args, tooltip)
Creates a new RetracementLabel object.
Namespace types: D.Line
Parameters:
this (Line type from robbatt/lib_plot_objects/23)
move_endpoint (Point type from robbatt/lib_plot_objects/23)
args (LabelArgs type from robbatt/lib_plot_objects/23)
tooltip (string)
method create_retracement_label(this, move_end, args, tooltip)
Creates a new RetracementLabel object.
Namespace types: D.Line
Parameters:
this (Line type from robbatt/lib_plot_objects/23)
move_end (Pivot type from robbatt/lib_pivot/43)
args (LabelArgs type from robbatt/lib_plot_objects/23)
tooltip (string)
method enqueue(id, item, max)
Namespace types: RetracementLabel
Parameters:
id (RetracementLabel )
item (RetracementLabel)
max (int)
method draw(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method draw(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel )
method delete(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method delete(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel )
RetracementLabel
Fields:
move_endpoint (|robbatt/lib_plot_objects/23;Point|#OBJ)
center_label (|robbatt/lib_plot_objects/23;CenterLabel|#OBJ)
Price Action Box RetracementsThe Price Action Box Retracements Indicator offers a fresh perspective on price analysis, departing from the conventional fixed-length lookback period commonly used in trading indicators. This indicator embraces a more flexible and adaptable approach, taking into account changes in price action behavior and avoiding overfitting. With a design philosophy rooted in the principle of "Keep it simple, stupid!" (KISS), this indicator allows users to customize just one variable: Price Box Size.
Imagine the price action as a journey within a box or channel, defined by significant pivots from the past that act as support and resistance levels. The Price Action Box Retracements Indicator visualizes the midpoints between these pivots, representing half-point retracements. By adjusting the "Price Box Size" variable, users can select the size of the price action box that the script will identify on the chart. A larger value will look for a larger box/channel, meaning the price will stay within it for a longer duration. Think of it as switching to a slower timeframe without changing the chart resolution.
The indicator plots a median line within the price action box, which changes color based on the position of the price action within the box. When the price action is trading below the median, the line is displayed in red, indicating a potential for short entries. Conversely, when the price action is above the box median, the line turns green, suggesting opportunities for long entries. An orange color is used when the price action breaks outside the box, signaling the start of a new trend or a measured move where the box size is expected to double.
Sudden changes in the median location are crucial signals that the price action has broken outside its previous box and created a new one. Usually, the price action will attempt to return back and test its old box boundaries or median (support/resistance) before continuing further. If the new box is positioned above the previous one, it indicates an upward channel (uptrend), while a box below the previous one suggests a descending channel (downtrend). A flat median line represents a ranging market, where the price action lacks a clear directional bias.
In addition to the median plot, the script also offers a pivot-anchored moving average, assisting traders in identifying smaller trends and potential entry points within a larger price action box.
Experience a new approach to price analysis with the Price Action Box Retracements Indicator and enhance your trading strategies with simplicity and flexibility.
SMMA Bounce IndicatorThis indicator Looks for continuous retracements from Smoothed Moving Average periods of the user's choosing. This can be helpful in locating reversals and pullbacks with a quick glance. With this indicator, you have plenty of options to cater to your time period of choice as well as the freedom to change to colors that best suit your chart. This script was made in whole by SirvivalFX and utilized the (Built-in Script) "Smoothed Moving Average" with inspirations from rmunoz's Engulfing Candle Indicator. *DISCLAIMER*- This should be used with a plethora of knowledge and tools to work effectively and should not be used as a surefire trading tactic. You may use and alter this script in any form you like! :)
Trend & Pullback Toolkit (Expo)█ Overview
The Trend & Pullback Trading Toolkit is an all-encompassing suite of tools designed for serious traders who want a comprehensive trend approach. It empowers traders to align their strategies with prevailing market trends, thereby mitigating risk while maximizing profit potential.
The Toolkit helps traders spot, analyze, and react to market trends, pullbacks, and significant trends. It combines multiple trading methodologies, such as the Elliott Wave theory, cyclical analysis, retracement analysis, strength analysis, volatility analysis, and pivot analysis, to provide a thorough understanding of the market. All these tools can help traders detect trends, pullbacks, and major shifts in the overall trend. By integrating different methodologies, this toolkit offers a multifaceted approach to analyzing market trends.
In essence, the Trend & Pullback Toolkit is the complete package for traders seeking to detect, evaluate, and act upon market trends and pullbacks while being prepared for major trend shifts.
The Trend & Pullback Toolkit works in any market and timeframe for discretionary analysis and includes many oscillators and features, but first, let us define what a cycle is:
█ What is a cycle
This involves the analysis of recurring patterns or events in the market that repeat over a specific period. Cycles can exist in various time frames and can be identified and analyzed with various tools, including some types of oscillators or time-based analysis methods.
Traders must also be aware that cycles do not always repeat perfectly and can often shift, evolve, or disappear entirely.
█ Features & How They Work
Elliott Wave Cycles: This is a method of technical analysis that traders use to analyze financial market cycles and forecast market trends. Elliott Wave theory asserts that markets move in repetitive cycles, which traders can analyze to predict future price movement. The core principle behind the theory is that market prices alternate between an impulsive, or driving phase, and a corrective phase on all time scales of trend. This pattern forms a fractal, meaning it's a self-similar pattern that repeats regardless of the degree or size of the waves.
The Elliott Wave Cycle Feature uses the principle of the Elliott Wave to identify trends and pullbacks in real-time.
Ratio Wave Cycle: This method elaborates on the concept of how negative volatility, or the degree of variation in the negative returns of a financial instrument, influences the effectiveness of a relative price move. Essentially, it delves into the relationship between the negative fluctuations in the market and the resulting relative price change, exploring how the two aspects interact with each other.
The central concept is that trends are generally more stable and predictable than rapid retracements. Therefore, the indicator calculates the relationship between these two market movements. By doing so, it establishes a trend-based identification system. This system aids in forecasting future market movements, allowing traders to make informed decisions based on these predictions. Essentially, it uses the calculated relationship to discern the overall direction (trend) of the market despite temporary counter-movements (retracements), thereby providing a more robust trading signal.
Periodic Wave Cycle: Thi refers to patterns or events in price action that recur over a specific time period. Periodic cycles can range from short-term intraday cycles (like the tendency for stock market volatility to be high at the opening and close of trading) to long-term cycles trend cycles. Traders use this to predict future price movements and trends.
By identifying the phases of a cycle, traders can predict key turning points in the market.
Retracement Cycles: Retracements are temporary price reversals that occur within a larger trend. These retracements are a common occurrence in all markets and timeframes, representing a pause or counter-move within a larger prevailing trend. Retracements can be driven by a variety of factors, including profit-taking, market uncertainty, or a change in market fundamentals. Despite these periodic reversals, the overall trend (upwards or downwards) often continues after the retracement is complete.
Fibonacci retracement functions are primarily used to identify potential retracement levels.
Volatility Cycle: A volatility cycle refers to the periodic changes in the degree of dispersion or variability of a security's returns, expressed as a standard deviation or variance. This feature uses both measures.
Strength Cycle: Gauges the power of a market trend and its inherent impulses. This feature offers a broad perspective on the cyclical nature of markets, which alternate between periods of strength, often referred to as bull markets, and periods of weakness, known as bear markets. It effectively tracks the direction, intensity, and cyclic patterns of market behavior.
Let us define the difference between strength and impulse:
Strength: This refers to the power or force behind a price move. In trading, this refers to the momentum or volume supporting a price move.
Impulse: In the context of trading, an impulse usually refers to a strong move in price. Impulse moves are typically followed by corrective moves against the trend.
Pivot Cycles: Pivot cycles refer to the observation of recurring price patterns or turning points in the market. Pivots can be defined as significant highs or lows that act as potential reversal or support/resistance points. Pivot point analysis helps traders understand the prevailing market sentiment. Overall, pivot cycles provide traders with a framework to identify potential market turning points and price levels of interest.
█ How to use the Trend & Pullback Toolkit
Elliott Wave Cycles
Ratio Wave Cycle
Periodic Wave Cycle
Retracement Cycles
Volatility Cycle:
Strength Cycle
Pivot Cycles
█ Why is this Trend & Pullback Toolkit Needed?
The core philosophy of this toolkit revolves around the popular adage in trading circles: "The trend is your friend." This toolkit ensures that you are always in sync with the trend, thereby increasing the chances of successful trades.
Here's an overview of the key benefits:
Trend Identification: The toolkit includes sophisticated algorithms and indicators that help identify the prevailing trend in the market. These algorithms analyze price patterns, momentum, volume, and other factors to determine the direction and strength of the trend.
Risk Reduction: By enabling traders to trade with the trend, this toolkit reduces the risk of betting against market momentum.
Profit Maximization: Trading with the trend increases the likelihood of successful trades.
Advanced Analysis Tools: The toolkit includes tools that provide a deeper insight into market dynamics. These tools enable a multi-dimensional analysis of market trends, from Elliott Wave cycles and period cycles to retracement cycles, ratio wave cycles, pivot cycles, and strength cycles.
User-friendly Interface: Despite its sophistication, the toolkit is designed with user-friendliness in mind. It allows for customization and presents data in easy-to-understand formats.
Versatility: The toolkit is versatile and can be used across different markets - stocks, forex, commodities, and cryptocurrencies. This makes it a valuable resource for all types of traders.
█ Any Alert Function Call
This function allows traders to combine any feature and create customized alerts. These alerts can be set for various conditions and customized according to the trader's strategy or preferences.
█ In conclusion, The Trading Toolkit is a powerful ally for any trader, offering the capabilities to navigate the complexities of the market with ease. Whether you're a novice or an experienced trader, this toolkit provides a structured and systematic approach to trading.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
สคริปต์แบบชำระเงิน
Fib Retracement AlgoFib Retracement Algo
Description: This indicator has a series of steps that it takes before it finds possible retracement areas depending on the trend. The indicator itself is really simple to use.
How does it work?
This indicator uses the Hurst Exponent to verify whether or not the market is trending or not. It then determines the trend and then decides which retracement is possible.
If the hurst is below 0.5, then the retracement lines won't appear; they only appear in a trending market above 0.5 if you don't see the lines.
How Traders can use this indicator
Traders who trade bounces or retracements can use this indicator and enjoy the verification process that goes behind finding these retracements. This indicator can also be used to identify possible gaps on some occasions.
Examples of the indicator:
Consecutive Unswept Lower Highs/ Higher Lows CounterCounts consecutive Lower Highs and Higher Lows; number resets to zero when previous pivot high or low gets swept
-To help give an idea of when a retracement / run-on-stops may be overdue. i.e. the higher the counter number grows, the longer we've gone without a proper retracement.
//inputs//
~pivot lookback/lookforward: increase this for more significant pivot highs and lows.
~number of pivot high 'counter' labels (pairs) to show in history.
~formatting options.
Fib RetracementI've re-created the fib retracement tool as an indicator and this is as close as I can currently get to matching the built-in fib retracement tool.
Why did I make this? For custom labels for every fib retracement level.
Caveats to this vs the built-in tool are:
the "Save as Default" doesn't appear to work (I believe this is due to the interactive/confirm based settings)
copy and paste to another chart is locked into the price of source location
when dragging the points of retracement the tool/indicator disappears
Hopefully some can find usefulness in this code or it's functionality.
MATHR3E RETRACEMENTS█ OVERVIEW
MATHR3E Retracements automatically draws upward and downward price projection levels based on Fibonacci ratios and a retracement methodology.
█ CONCEPTS
Disclaimer
MATHR3E RETRACEMENTS indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
How to use:
Two kinds of retracement are available:
Regular retracement:
Once a price thrust is identified and a recent exhaustion is formed, Regular retracements can be applied.
The indicator will automatically draw price projection levels based on these Fibonacci ratios: 38.2%, 61.8% and so on.
These levels then help to identify areas of support and resistance in response to the initial price thrust.
Antipodal retracement:
After an all-time record high / low is located, Price projections are applied by the indicator:
• From an ATH the figure is multiplied by both 0.618 and 0.382 to arrive at downside price projection levels.
• From an ATL the figure is multiplied by both 1.382 and 1.618 to arrive at upside price projection levels.
█ FEATURES & BENEFITS
Versatile
The indicator is designed to work with other indicators by the same author, including the identification of exhaustion points.
It will then make it easier to identify scaled profit taking levels that are based on Fibonacci levels.
This indicator can be applied to any market or time frame.
Retracement methodology
It differs slightly from the original in the process of identifying the reference low/high points referred as Magnet Price.
While the original determines when the market last traded above the reference low/high, this indicator instead relies on a process of selecting the last confirmed Magnet.
The qualification combines a reference price with the last requirement for wave A, i.e. an eight-bar-high (customizable) reference price, from the Waves indicator by the same author.
Since the process of selecting magnet points is different, this leads to retracement lines that remain closer to the price as trends unfold.
Similar to LINES indicator, this indicator automatically analyzes the price action around these levels to Confirm/Invalid breakouts and deliver signals for trend following.
Qualifiers
Qualifiers/Disqualifiers will then be used to assess whether a trend reversal is coming or whether the previous trend is likely to resume.
Fully Customizable
Especially when selecting magnet levels.
Customizable Fibonacci levels for Regular and Antipodal retracements
Alerts
Alerts format can be adapted to be received on Discord servers.
Set up your alerts and get notified on:
• Confirmed Break signal
• Invalidated signal
Golden PocketGolden Pocket
This marks up the fibonacci retracement levels of 0.65 and 0.618 by default, these levels are often referred to as the golden pocket.
They are known by this because when price has an impulse either to the up or downside, price will end up retracing at some point. This Golden pocket often lines up with other means of confluence where it's considered a good entry price from the retrace.
Unlike standard fib retracement indicators, these boxes will extend with current price until they are hit. As well as this, there is a moving average filter which you can set to higher timeframes meaning that you can choose to only look for golden pockets which are following the higher time frame trend. You can easily monitor all of your settings by setting up just 1 alert.
Settings
You have the option to enable/disable the line which marks out the pivot points the fib is being calculated from, you can also change the colour and style of the line.
Below this you have the option to choose what colour the fib boxes are and what colour they change to once price hits it. If you want them to disappear change the colours opacity to 0%.
If you want to change the golden pocket levels you can do that by changing the 0.618 or 0.65 levels in the settings.
The pivot distance controls what part defines a pivot high or low, it must be the highest/lowest to the left/right of the pivot candle count.
MA filter will only accept golden pockets which are trending with the Moving average.
You can change all the settings of the Moving average which acts as a filter including which timeframe it is calculated on.
Alerts
Simply toggle this on int the settings and then click on the 3 dots next to the indicators name, 'add alert', leave the top boxes as they are, you can name the alert anything you like but once you confirm this, it will monitor all golden pockets on the particular asset and timeframe you are looking at. The alerts are set up to trigger as soon as price touches one of the boxes.
Use Cases
We like setting are moving average up on the daily timeframe and using the Moving average filter so we know we are only trading with the higher timeframe trend. From there we can set up alerts on any lower timeframe.
Feel free to use any part of this script in your own code, please just give us a mention so we can check out your contributions to the community as well!
Happy to take in any suggestions or ways of improving
Probability Oscillator (Zeiierman)█ Overview
The Probability Oscillator (Zeiierman) turns price dynamics into a regime-aware probability map of continuation vs. reversal. Rather than treating momentum as a single, fixed signal, it adapts its core estimator to current market conditions—favoring trend persistence in calm regimes and oscillation/reversion in volatile regimes.
You get a fast Probability line, a slower Signal line, dynamic OB/OS bounds, midline bias, color-coded trend probability, background regime cues, and Momentum Impulse dots that reveal concentrated bursts of directional intent. Beneath the surface, the Probability line functions as a sequential Bayesian filter — continuously updating a regime-conditioned prior (trend or volatility) with new market evidence. The resulting posterior odds are then expressed as a bounded oscillator for intuitive interpretation. In stable markets, the prior favors continuity; in volatile markets, it reweights toward mean reversion.
⚪ Why This One Is Unique
The Probability Oscillator operates within a self-adaptive probabilistic framework that continuously reshapes itself in response to the market’s evolving structure. Rather than relying on fixed formulas or static thresholds, it employs a context-aware Bayesian core that interprets flow dynamics through an adaptive regime model.
Its internal architecture blends state recognition, probability normalization, and dynamic envelope mapping, allowing it to adjust between conditions of directional stability and volatility-driven reversion fluidly. The result is an intelligent, self-adjusting probability field that remains stable in trends, reactive in consolidations, and contextually aware across all market states—delivering a refined sense of probabilistic direction without exposing raw computational structure.
█ Main Features
⚪ Probability Oscillator
At the core lies a probability-driven oscillator that continuously adapts its internal weighting to evolving market behavior. It translates incoming price evidence into a smooth probability curve that distinguishes between continuation and reversion phases, providing a refined view of conviction beneath price action.
The Probability Oscillator estimates the likelihood of trend continuation while dynamically adjusting to the surrounding volatility regime:
Probability Line (fast) – Captures short-term probability shifts, weighted by current market conditions — calm or volatile.
Signal Line (slow) – A smoothed probability filter that defines the prevailing bias and confirms directional persistence.
Momentum Impulse Dots – Small markers highlighting bursts of positive (green) or negative (red) momentum, indicating transitions in conviction strength.
The oscillator’s probabilistic framework automatically transitions between two self-adaptive modes:
Low-Volatility Mode – Prioritizes directional momentum and smooth trend continuity, ideal for trending markets.
High-Volatility Mode – Emphasizes oscillatory probability swings and reversals, optimized for range-bound or transitional conditions.
This dual-regime behavior allows the Probability Oscillator to remain stable in directional trends yet responsive in volatile ranges, producing a coherent probabilistic signal across any timeframe.
⚪ Trend Probability Coloring
The Trend Probability Coloring system transforms the Signal Line into a live confidence gauge. Its adaptive hue reflects the underlying probabilistic bias — green for sustained bullish pressure, red for bearish control, and yellow during transitional uncertainty. Behind the scenes, it applies curvature-sensitive weighting and probabilistic smoothing to display a visually coherent measure of directional conviction.
⚪ Impulse Dots
Impulse Dots identify moments of concentrated momentum expansion — short bursts of probabilistic acceleration that often precede shifts in structure. Each impulse represents a localized jump in directional confidence, isolating meaningful change-points from background noise. The result is a precise visualization of where probability and price begin to align, revealing early cues of strength, exhaustion, or imminent rotation.
█ How to Use
⚪ Trend Following
The Signal Line acts as the long-term probabilistic trend gauge, revealing when the market is building or losing directional conviction. Its slope and color communicate both bias and transition strength:
Green → bullish probability bias (trend continuation likely).
Red → bearish probability bias (downside continuation likely).
Yellow → transitional or indecisive phase (potential regime shift).
Use the Signal Line to confirm directional alignment:
A transition from red → yellow → green signals that the market is turning bullish and probability is shifting toward continuation on the upside.
A transition from green → yellow → red signals that bullish conviction is fading and bearish control is emerging.
⚪ Overbought & Oversold
The Probability Oscillator can also be used to identify overbought and oversold conditions by observing when the Probability Line moves above its upper bound or below its lower bound. These events often signal potential market slowdowns, pullbacks, or even broader reversals depending on context and regime.
The OB/OS levels automatically adapt to the prevailing market mode:
Trend Mode (~70/30) – Optimized for riding trends and timing pullbacks within directional continuations.
Volatility Mode (~80/20) – Tailored for fading extremes and capturing fast mean-reversion moves during consolidation phases.
Signals: Reclaims from oversold zones within a bullish bias, or rejections from overbought zones in a bearish bias, represent high-probability inflection points — especially when confirmed by Impulse Dots or regime-aligned Signal Line color transitions.
⚪ Using Volatility Modes to Choose Strategy
The Probability Oscillator automatically adapts its behavior to the active volatility regime, enabling traders to align their approach with the current market state. One of the most effective ways to use the tool is to select a trading strategy that aligns with the prevailing market mode.
Trend Mode (purple fill) – Represents low-volatility, directional environments where markets move smoothly and sustain momentum over time. In these conditions, a trend-following approach is most effective. Focus on the broader direction, participate on Probability-over-Signal crossups above 50, and trail positions as long as the Signal Line remains green. These calm phases often persist before volatility expansion, making them ideal for riding steady continuation waves rather than reacting to short-term fluctuations.
Volatility Mode (blue switch bar) – Activates in high-volatility conditions, signaling increased market agitation and sharper price swings. In this regime, trading becomes more tactical. Mean-reversion and scalping strategies perform best—fade OB/OS extremes, use midline reclaims for timing, or trade Impulse confirmations to capture breakout accelerations and short-term momentum surges.
⚪ Impulse
The Momentum Impulses highlight periods when the market experiences sharp bursts of directional momentum, marking transitions in conviction strength and energy expansion.
Green top dots → Indicate strong bullish impulses, often signaling the onset or acceleration of upward momentum.
Red bottom dots → Indicate strong bearish impulses, highlighting pressure buildup or downside continuation.
These impulses are particularly useful in two contexts:
During ranging markets , they help confirm overbought and oversold conditions, signaling when reversals or exhaustion points are highly probable.
During regime transitions , they validate breakout strength, confirming that new directional phases are supported by genuine momentum rather than noise.
In essence, Impulse Dots visualize the heartbeat of market conviction—pinpointing where momentum surges align with probabilistic bias, whether to confirm a breakout or warn of exhaustion in choppy conditions.
█ How It Works
⚪ Regime Switch Engine
At the foundation lies a Bayesian regime adaptation process that treats volatility as evolving market evidence. The system continuously updates a prior belief about whether the market favors directional persistence or oscillatory reversion. In calm states, it maintains a continuity-biased belief structure that favors smoother probability propagation.
Calculation: Employs a volatility-normalized Bayesian comparator, generating a posterior distribution over regime likelihoods. This ensures the oscillator remains statistically invariant to scale and consistent across instruments and timeframes.
⚪ Trend Probability Coloring (Conviction Layer)
The Trend Probability Coloring system visualizes Bayesian posterior confidence in real time. It continuously updates the Signal Line’s color as new evidence shifts the model’s belief between bullish, neutral, and bearish states.
When the posterior probability leans strongly upward, the line turns green; as uncertainty grows, it fades to yellow; and when conviction turns negative, it transitions to red. Each color change represents a probabilistic reweighting — the model’s evolving assessment of directional dominance.
Calculation: Applies posterior-weighted smoothing and curvature-based confidence mapping to translate Bayesian belief strength into a fluid visual gradient.
⚪ Momentum Impulse Engine
The Momentum Impulse Engine detects sudden bursts in probabilistic conviction — moments when the Bayesian posterior sharply reweights toward one directional outcome. These impulses represent statistically significant shifts in belief, where new evidence rapidly alters the model’s assessment of market direction.
Green impulses highlight surges in bullish probability; red impulses mark spikes in bearish conviction. Each impulse reflects a brief phase of directional dominance, revealing where probability momentum begins to accelerate or exhaust.
Calculation: Employs nonlinear Bayesian change detection and extreme-value gating to isolate abrupt posterior inflections.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
สคริปต์แบบชำระเงิน
VolatilityCone by ImpliedVolatilityThis volatility cone draws the implied volatility as standard deviations from a measurement date.
For best results set measurement date to high volume bars.
How to use:
1) Select VolatilityCone from Indicators
2) Click to the chart to set the measurement date
3) Determine the impliedvolatility for the measurement date of your symbol
e.g.
For S&P500 use VIX value at measurement date for implied volatility
TSG's Beast SignalsThis indicator is built with the purpose of keeping things simple and user-friendly. It is a custom formula I developed lately and it signals pretty accurately changes of direction in the price.
Added an Alert option to it lately - with customizable messages.
_____________________________________________________
_____________________________________________________
HOW IT IS DONE
I make great use of the Average True Range indicator which is the best and simple volatility indicator out there and mix its behavior with several Moving Averages to catch exhaustions of trends and potential reversal points. Moving Averages are treated as bands and the price is kept within it (Something like Bollinger Bands , but custom).
_____________________________________________________
_____________________________________________________
WHAT TIMEFRAMES TO USE IT ON
The bigger the timeframe, the less noise you will have. It is playing out nicely to signal major trend reversal or retracements, but I used it for scalping aswell.
_____________________________________________________
_____________________________________________________
PLANS
Maybe MultiTimeframe table to align signals coming from different timeframes for better accuracy of entry?
Good Luck!
Market Structure - By LeviathanThis indicator helps you identify market structure by plotting swing highs and lows (HH, LH, HL, LL), BOS/CHOCH and 0.5 retracement levels. Other functionalities will be added in future updates.
Indicator Settings Overview
SWING LENGTH
The number of leftbars and rightbars when searching for swing points. The lower the value, the more swing points are shown and the higher the value, the less swing points are shown. I suggest adjusting it to fit your style and when switching between different timeframes.
BOS CONFIRMATION
Choose whether a Break of Structure is determined by a candle close or a wick breaching previous swing point. Using the "Wick" confirmation option will result in more breaks of structure.
CHOCH
Turning this ON renames the first counter trend Break of Structure (BOS) to CHoCH (Change of Character) and therefore signaling a possible trend shift.
SHOW 0.5 RETRACEMENT LEVEL
This will show a level halfway between a swing low and a swing high of an expansion move, which can act as an approximate retracement point if the trend continues.
In uptrends, 0.5 level is drawn between Higher Lows (HL) and Higher Highs ( HHs ). Long entries can be placed around that level if you suspect that the uptrend will continue.
In downtrends, 0.5 level is drawn between Lower Highs (LH) and Lower Lows (LLs). Short entries can be placed around that level if you suspect that the downtrend will continue.
Zig Zag Ratio Simplified█ OVERVIEW
This indicator was to show ratio between zig zag. Ideally to find Fibonacci Retracement / Projection, Harmonic Patterns, ABCD, Elliot Wave and etc.
█ CREDITS
LonesomeTheBlue
█ FEATURES
Table can positioned by any position and font size can be resized.
█ USAGE / TIPS EXAMPLES (Description explained in each image)
[MAD] Fibonacci retracementThis is just a Fibonacci Retracement tool with some interactive information based on the actual closing price
How to use:
add the script,
input left bottom with the 1st click,
input top with the 2nd click
Informations you can see than:
Fiblevel (Price) %till_this_point = pricedifference
additional:
Bottom of the fib
Range Up in % + Price-Range
Range Down in %
you can shift the comma with the decimal functions for trading shitcoins as example
if looking into the past, level/price will follow, liveinfo using the close is than hidden
what will follow:
reverse
log/linear
autogrow when range will be wicked
maybe alerts on levels... have to think about how to capture correctly
Support & Resistance Trendlines with PP + Fib. Channel█ Support & Resistance Trendlines with Pivot Points + Fibonacci Channel
This script automatically draw support and resistance trend lines based on pivot points and add a fibonacci channel.
It will show potential patterns with the help of support and resistance lines as well as breakout target and pullback entry with the fibonacci extension and retracement levels.
It is based on atolelole's script, I only made it more configurable so please check out his script.
I added the possibility to change values and add additional retracement and extension levels.
I also made it customizable with the possibility to change lines color, width and style.
ABC 123 Harmonic Ratio Custom Range Interactive█ OVERVIEW
This indicator was designed based on Harmonic Trading : Volume One written by Scott Carney.
This is about harmonic ratios which expanded through retracement and projection.
Derivation is pretty much explained here such as Primary, Primary Derivation, Secondary Derivation and Secondary Derivation Extreme.
Derivation value depends on minimum retracement or maximum projection.
This derivation value utilize Fibonacci value which later expand to Harmonic Ratio.
█ INSPIRATION
Inspired by design, code and usage of CAGR . Basic usage of custom range / interactive, pretty much explained here . Credits to TradingView.
This build is based and visualized upon Harmonic Trading Ratios.
This build also was stripped down from XABCD Harmonic Pattern Custom Range Interactive .
█ CREDITS
Scott Carney, Harmonic Trading : Volume One (Page 18)
█ FEATURES
Table can positioned by any position and font size can be resized.
Labels can be either changed to alphabets or numbers.
█ HOW TO USE
Draw points from Point A to Point C.
Dont worry about magnet, point will attached depends on High or Low of the candle.
█ USAGE / TIPS EXAMPLES (Description explained in each image)
ZigZag with Retracement LevelsThis is a modification to "ZigZag with Fibonacci Levels" by LonesomeTheBlue.
By default, the script finds the ZigZag, draws Fibonacci lines and labels accordinly. ZigZag period can be set.
The modification to the original script provides the following features:
1) Option for user to customize retracement levels, if they don't want to use Fibonacci levels. This allows for different strategy adoptions.
2) Option to show Fibonacci or custom retracement levels based on the latest pivot (including the current bar)
For example:
Enjoy and happy trading~!!
50% Strat RetracementThe purpose of this script is to show/alert you when there is a 50% Strat Reversal. It works very well to find possible 3 candles.
The arrows, and line can be turned on and off.
You can change the 50% to say 45% so that you will be alerted before it actually hits the 50% retracement.
The script will only alert if the reversal is a 2up red candle, a 2up green candle which will hopefully turn into a 3 candle.
High and Low Fibonacci Pivot PointsThis is a standard fibonacci retracement level indicator and free to use for all. I couldn't find any decent retracement levels that works for me (and definitely wasted money on paid script access that didn't work so well for my trading style), so I created this for my own use and now sharing it with the TradingView community. Fibonacci retracement levels help traders predict key areas where a stock/security may find support or resistance. The common ratios are available, such as 23.6, 38.2, 61.8 and so forth. You can choose from Day, Week or Month for your fibonacci retracement lines. In order to keep in sync with my particular style of keeping charts nice and clean, I've created this indicator with defaults to use friendly color schemes. You can of course, choose another color, etc... that fits your own taste. All of my published scripts utilize TradingView's version 5 scripting.
Main Features:
- Show or hide pre-market high and lows (the pre-market high & lows are hidden by default)
- Show or hide the 1-hour 20 EMA line (hidden by default, as this is more uncommon than the 1-hour 50 EMA line for potential support or resistance)
- Show or hide the 1-hour 50 EMA line
- Show or hide the fibonacci retracement lines (the 50% line is hidden by default)
- Option to allow the fibonacci retracement lines to start out the first few minutes of market open to use the pre-market high & low. Once the stock/security price breaks either the pre-market high or pre-market low, it reverts to using the day's high and low. This only works on chart timeframes under the daily time frame.
FYI:
All customizable settings have a help/info window. Please refer to the help/info window, if you're unsure of what a setting does what. Also, note that I wrote and published this script after market close, so I haven't had the chance to check/test if everything works, which can only be fully verified during market open hours (for non-crypto securities).
* Please note that this script is in its early beta stage and there could be bugs. This is being provided as is and the information provided by this script is meant for informational/entertainment purposes only.






















