PROTECTED SOURCE SCRIPT

Fluxion Oscillator [Kodexius]

39
Fluxion Oscillator is a multi dimensional momentum and flow toolkit designed to highlight exhaustion, reversals and confluence in a very compact way. The script combines a normalized trend oscillator, volume sensitive money movement, a volatility gauge and a visual confluence gauge that all sit in a single pane.

Instead of focusing on a single signal, Fluxion looks at the interaction between price, momentum and volume. The core oscillator tracks the relationship between a fast and a slow response of price, then rescales it into a stable 0 to 100 band. A companion flow line tracks how actively price is being supported or pressured by volume. On top of that, a volatility based gauge and an overbought or oversold reversal layer help highlight when moves are stretched and vulnerable.

The result is an environment where you can quickly see:

-When momentum is expanding or fading

-When price swings are supported or rejected by volume

-Where local tops or bottoms can be forming through divergence

-How strong the current push is in the context of recent volatility

-A compact gauge that visually ranks the current state from “minimum” to “maximum” pressure

It is not a trading system by itself, but a framework that makes it much easier to build rules and confluence around your own strategy.

لقطة

⭐ Features

Normalized Fluxion Oscillator

Core oscillator built from the difference between a fast and a slow smoothing of the chosen source.

Automatically normalized into a bounded range so it behaves consistently across symbols and timeframes.

Dual line structure: the main line and a signal line, making crossovers easy to read.

Dynamic fill that shifts color depending on whether the main line is above or below the signal line.

لقطة

Bullish and Bearish Crosses

Visual circles highlighting when the main oscillator crosses its signal line upward or downward.

Bullish crosses emphasize potential momentum ignition after downside pressure.

Bearish crosses emphasize potential cooling of momentum after upside pressure.

Money Flow Layer

Separate line that blends price and volume over a configurable lookback.

Smoothed to reduce noise and plotted around a central balance level.

Colored region that clearly shows whether buying pressure or selling pressure dominates.

لقطة

Divergence Detection Suite

Automatic detection of regular bullish and regular bearish divergences between price and the normalized oscillator.

Optional hidden bullish and hidden bearish divergences for continuation setups.

Uses pivot based swing points so the lines attach to meaningful highs and lows instead of random wiggles.

All divergence types can be toggled independently so you can keep the chart as clean as you like.

لقطة

Volatility and Positioning Gauge

A compact gauge that evaluates where the current price sits relative to a volume weighted average and its recent typical fluctuation.

Colors shift as price moves from neutral to stretched zones in either direction.

Background highlighting above and below the oscillator scale to reflect when this gauge is in an extreme region.

Helps quickly see whether you are buying into strength after a large extension or stepping in near value.

لقطة

Reversal Signals With Volume Confirmation

A higher time sensitivity reversal metric based on a 0 to 100 scale of recent price changes.

Signals are only highlighted when there is also a short burst in volume, so quiet market noise is reduced.

Bearish reversal markers appear in the upper region, bullish markers in the lower region, giving a clear visual “top” and “bottom” feel.

لقطة

Confluence Gauge

Right side grid composed of horizontal bands, from “Min” at the bottom to “Max” at the top.

Each band reflects a segment of a smoothed, range based momentum reading that tracks how far price has advanced within its recent 0 to 100 window.

The currently active band is highlighted in green for bullish momentum or red for bearish momentum, depending on the relationship between fast and slow lines within that range.

لقطة

A pointer and labels make it obvious where the current environment sits relative to the full range of possible conditions.

لقطة

Divergence Core

Users can define the pivot length to control how strict and how far apart swing points should be.

High Customization

Adjustable lookback lengths for the core oscillator, signal smoothing and normalization.

Separate controls for money flow length and smoothing.

Optional toggles for each divergence type so you can focus only on the structures you care about.

⭐ Calculations

This section explains conceptually how Fluxion works without exposing the full underlying formula details. The goal is to help you understand what each component represents and how it behaves, so you can use it more effectively.

Fluxion Oscillator Core

The foundation of the indicator is the difference between two smoothed versions of the selected price source. One reacts more quickly to new price information, the other reacts more slowly.

When the fast curve is above the slow curve, the oscillator becomes positive, signaling that short term action is advancing faster than the background trend. When the fast curve is below the slow curve, it becomes negative, indicating short term weakness.

This raw difference is then normalized over a rolling window. The highest and lowest values in that window are used to rescale the oscillator into a 0 to 100 band. This produces a stable, comparable scale across markets and timeframes.

A secondary smoothing of the oscillator creates the signal line. The interaction between the main line and this signal is used to color the fill region and locate cross events.

Money Flow Construction

The money flow line is based on how price closes within its candle range combined with the traded volume. Up candles with strong closes and high volume contribute positively, while down candles with weak closes and high volume contribute negatively.

These contributions are aggregated over a configurable period to create a net “pressure” measure. The result represents how aggressively participants have been positioning over that window, not just whether price went up or down.

The line is then smoothed to reduce micro noise and plotted around a central balance level, here set at 50. Values above the balance zone suggest net positive pressure, values below suggest net negative pressure.

An additional internal threshold is used to detect when this pressure stays on one side of the balance area long enough to be considered an “overflow,” which helps detect sustained accumulation or distribution phases.

Volatility and Positioning Gauge

The gauge computes a volume weighted average price over a user defined period. This gives more weight to prices at which more volume was traded.

It then evaluates how far the current price is from that volume weighted center, relative to the typical price variation around it. This creates a standardized distance measure that tells you how stretched price is from its recent fair zone.

When the distance becomes significantly positive, the market is considered extended upward. When it becomes significantly negative, it is extended downward. Intermediate thresholds are used to create “warning” and “extreme” zones.

Background fills at the top and bottom of the panel change based on this standardized distance, visually indicating when the market is moving into overextended territory that often precedes mean reversion or at least slowing of the move.

Reversal Metric With Volume Filter

A separate 0 to 100 style momentum score is calculated over a mid length window. It evaluates recent gains and losses in price to produce a relative strength measure of the current move.

Upper and lower thresholds on this score are used to mark areas where price action is historically stretched to the upside or downside.

This alone would generate many signals, so a volume based filter is added. Reversal markers are only displayed when this momentum score is in an extreme area and volume has shown a short term pickup.

This combination gives more weight to reversals that occur during active trading, where trapped positions and forced unwinds are more likely.

Divergence Engine

The divergence logic scans for swing highs and swing lows in the normalized oscillator and in price. Swing points are defined by requiring a certain number of bars on both sides of the pivot, which you can configure via the divergence length input.

For regular bullish divergence:

Price makes a lower low, indicating apparent weakness.

The oscillator makes a higher low over the same general region, indicating that internal momentum is actually improving.

If both conditions are met within a valid bar distance, a bullish divergence line is drawn from the prior oscillator pivot to the new one.

For regular bearish divergence:

Price makes a higher high, suggesting continued strength.

The oscillator makes a lower high, showing that underlying momentum is waning.

The engine checks that both pivot structures appear within an allowed time frame, then draws a bearish line between the oscillator peaks.

Hidden divergences are handled in a similar way, except the direction of price and oscillator swings is reversed, which makes them suitable for trend continuation contexts instead of reversal contexts.

Confluence Gauge

The grid on the right converts a smoothed, range based momentum reading into ten equal bands. This momentum reading looks at where the current value sits between the lowest and highest readings of a recent window, then rescales it into a 0 to 100 scale.

That 0 to 100 value is divided into ten slices of ten points each. For example, 0 to 10 is the lowest band, 90 to 100 is the top band.

The algorithm then checks whether the fast component of this reading is above or below its slower companion. If fast is above slow, it is treated as bullish pressure and the active band is colored in green. If fast is below slow, it is treated as bearish pressure and the active band is colored in red.

A pointer label is placed alongside the active band and “Max” and “Min” markers are drawn above and below the grid. This creates a compact visual where you can quickly gauge if the current state is closer to the lower boundary of recent conditions or to the upper boundary, along with its directional bias.

Normalization And Scaling

Several internal components use rolling highest and lowest values to transform raw readings into normalized percentages. This includes the main oscillator and the range based momentum used by the confluence gauge.

The key idea is to express conditions relative to what has recently been possible on that instrument and timeframe instead of using absolute fixed thresholds. This makes Fluxion adaptive and more robust when switching between assets with different volatility profiles.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.