OPEN-SOURCE SCRIPT

Infinity Flow Oscillator

696
Infinity Flow Oscillator — Rmi / Mfo Wave Energy & Range Compression

Flow is a momentum and pressure oscillator designed to help traders read directional flow, internal market pressure, wave movement and compression conditions in one clean lower-panel tool.

The oscillator combines several components into a single visual flow reading:

• RMI Flow
• MFI Pressure
• WaveTrend Energy
• Range Compression / Expansion
• Flow Score from -100 to +100
• Bullish and bearish confirmation dots
• Strong and extreme momentum zones
• Layered fills and cloud-style visual structure

The goal of this oscillator is to make momentum easier to read visually. It is not designed to predict price movement or replace a full trading plan. It should be used as a confirmation and context tool together with price action, market structure, support and resistance, volume conditions and risk management.

────────────────────────────
MAIN CONCEPT
────────────────────────────

The oscillator reads the market through a normalized flow scale.

The center line represents balance.

Above zero:
Bullish pressure is dominant.

Below zero:
Bearish pressure is dominant.

Near zero:
Market flow is neutral, mixed or indecisive.

The stronger the oscillator moves away from zero, the stronger the directional pressure becomes.

The tool uses layered fills and color transitions to make the state of the market visible at a glance.

Bullish flow is displayed with cyan / green-style visual pressure.
Bearish flow is displayed with pink / red-style visual pressure.
Compression or range conditions can be highlighted with a softer background layer.

────────────────────────────
WHAT THE OSCILLATOR SHOWS
────────────────────────────

1. Flow Line

The main flow line represents the final combined oscillator value. It blends momentum, money flow, wave movement and compression logic into one reading.

When the flow line rises above zero, bullish pressure is increasing.
When the flow line falls below zero, bearish pressure is increasing.

2. Signal Line

The signal line smooths the main flow reading.

When the flow line crosses above the signal line, bullish momentum may be improving.
When the flow line crosses below the signal line, bearish momentum may be improving.

3. Bullish and Bearish Dots

Bullish dots appear when the flow line crosses above the signal line under valid conditions.
Bearish dots appear when the flow line crosses below the signal line under valid conditions.

These dots are designed as visual confirmation markers, not automatic trade entries.

4. Strong Momentum Zones

The strong levels mark areas where momentum becomes more directional.

Above the positive strong level:
Bullish pressure is considered stronger.

Below the negative strong level:
Bearish pressure is considered stronger.

5. Extreme Zones

The extreme levels show areas where the market may be stretched.

A strong move into the upper extreme zone can show aggressive bullish pressure.
A strong move into the lower extreme zone can show aggressive bearish pressure.

Extreme readings do not automatically mean reversal. In strong trends, extreme conditions can continue longer than expected.

6. Compression / Range Background

The oscillator can highlight compression or range-like conditions.

Compression often means the market is building energy.
Expansion can happen after compression, especially when price breaks structure or a range.

This layer is useful for understanding when the market is quiet, compressed or preparing for a stronger directional move.

────────────────────────────
INPUT GUIDE
────────────────────────────

Show Oscillator

Enables or disables the main oscillator visual.

When enabled, the flow line, signal line, fills and zones are visible.
When disabled, the oscillator can be hidden without removing the script from the chart.

Show Dots

Enables or disables bullish and bearish confirmation dots.

Use this if you want a cleaner oscillator without signal markers.

Flow Length

Controls the sensitivity of the main flow calculation.

Lower values react faster but may create more noise.
Higher values are smoother but react later.

Beginner suggestion:
Use the default value first. Adjust only after watching how the oscillator behaves on your preferred market and timeframe.

Signal Length

Controls the smoothing of the signal line.

Lower values create faster crosses.
Higher values create slower, cleaner crosses.

Beginner suggestion:
A smoother signal line is usually easier to read when learning the tool.

RMI Length

Controls the RMI-based momentum component.

RMI helps identify directional pressure and momentum shifts. It is useful for detecting when the market starts to build bullish or bearish energy.

MFI Length

Controls the money flow component.

MFI adds a volume-weighted pressure reading to the oscillator. It helps show whether momentum is supported by volume activity.

WaveTrend Length

Controls the wave movement component.

WaveTrend helps create a smoother cyclic reading of market pressure. It can help identify changes in momentum rhythm.

Range / Compression Length

Controls the compression and expansion component.

This part of the oscillator is designed to show when movement is narrow, quiet or compressed compared with normal conditions.

Strong Level

Sets the level used to define strong bullish or bearish flow.

Example:
If the strong level is 50, readings above +50 represent stronger bullish pressure and readings below -50 represent stronger bearish pressure.

Extreme Level

Sets the level used to define extreme bullish or bearish flow.

Example:
If the extreme level is 80, readings above +80 are considered extreme bullish pressure and readings below -80 are considered extreme bearish pressure.

Bull Color

Controls the bullish visual color.

Bear Color

Controls the bearish visual color.

Neutral Color

Controls the neutral or balanced visual color.

Fill Transparency

Controls how visible the oscillator fills are.

Lower transparency makes fills stronger.
Higher transparency makes fills lighter.

Background Compression Highlight

Enables or disables the compression background.

Use this to identify moments where the market may be moving into a quieter range or preparing for a future expansion.

────────────────────────────
HOW TO READ THE TOOL
────────────────────────────

Basic reading:

Flow above zero:
Bullish pressure has the advantage.

Flow below zero:
Bearish pressure has the advantage.

Flow near zero:
No clear directional advantage.

Flow above signal:
Bullish momentum is improving.

Flow below signal:
Bearish momentum is improving.

Flow above strong level:
Bullish momentum is strong.

Flow below negative strong level:
Bearish momentum is strong.

Flow inside extreme zones:
Market pressure is stretched and should be interpreted carefully.

────────────────────────────
BEGINNER TUTORIAL
────────────────────────────

Step 1 — Start with the zero line

The first thing to watch is whether the oscillator is above or below zero.

If it stays mostly above zero, the market is showing bullish pressure.
If it stays mostly below zero, the market is showing bearish pressure.
If it keeps crossing zero, the market may be choppy or undecided.

Step 2 — Watch the flow and signal cross

A bullish cross happens when the flow line crosses above the signal line.
A bearish cross happens when the flow line crosses below the signal line.

These crosses are stronger when they happen in the direction of the broader trend.

Step 3 — Check the strong levels

A bullish cross below zero may be early.
A bullish cross above zero is usually cleaner.
A bullish cross followed by movement above the strong level shows stronger momentum.

The same logic applies in reverse for bearish conditions.

Step 4 — Respect the extreme zones

When the oscillator reaches an extreme zone, the market may be stretched.

This can mean two different things:
• strong trend continuation
• potential exhaustion

Do not assume every extreme reading is a reversal. Use price structure and support/resistance for confirmation.

Step 5 — Use compression as context

When compression appears, the market may be losing directional movement or preparing for expansion.

A compression zone followed by a strong flow breakout can be useful context for trend continuation or range breakout analysis.

────────────────────────────
EXAMPLE USE CASES
────────────────────────────

Example 1 — Bullish confirmation

Price is above a key support area.
The oscillator crosses above the signal line.
Flow moves above zero.
The bullish dot appears.
The flow line continues toward the strong bullish level.

This suggests bullish pressure is improving. A trader may use this as confirmation together with chart structure and risk planning.

Example 2 — Bearish confirmation

Price rejects a resistance area.
The oscillator crosses below the signal line.
Flow moves below zero.
The bearish dot appears.
The flow line continues toward the negative strong level.

This suggests bearish pressure is increasing. A trader may use this as confirmation together with structure and risk planning.

Example 3 — Avoiding weak signals

A bullish dot appears, but the flow line is still below zero.
Price is also under resistance.
The oscillator does not reach the strong bullish level.

This may indicate a weaker bullish attempt. A beginner may choose to wait for stronger confirmation.

Example 4 — Strong trend continuation

The oscillator stays above zero for a long period.
Pullbacks remain above the signal line or quickly recover.
Flow repeatedly returns toward the strong bullish zone.

This can indicate that bullish momentum remains active. In this situation, bearish crosses may be temporary pullbacks rather than full reversals.

Example 5 — Range or compression behavior

The oscillator stays near zero.
Bullish and bearish crosses appear frequently.
Compression background is visible.
Price is moving sideways.

This can indicate a range or low-direction environment. In this situation, signals may be less reliable unless price breaks out with confirmation.

────────────────────────────
SUGGESTED BEGINNER SETTINGS
────────────────────────────

For cleaner signals:
Use longer lengths.
Use a smoother signal line.
Keep dots enabled.
Watch only crosses that happen near or beyond the zero line.

For faster signals:
Use shorter lengths.
Use a faster signal line.
Expect more noise and more false moves.

For trend confirmation:
Focus on whether the oscillator remains above or below zero.
Use strong levels to confirm momentum expansion.

For range detection:
Watch the compression background and repeated crosses around zero.

────────────────────────────
HOW TO COMBINE WITH OTHER TOOLS
────────────────────────────

This oscillator works best as a confirmation tool.

Possible combinations:

1. Price action
Use the oscillator to confirm breakouts, pullbacks and reversals.

2. Support and resistance
Bullish signals are more meaningful near support.
Bearish signals are more meaningful near resistance.

3. Trend indicators
Use the oscillator to confirm trend strength and avoid entering against strong momentum.

4. Volume analysis
The MFI component helps include money flow pressure, but additional volume tools may still provide useful context.

5. Risk management
Always define stop loss, invalidation level and target logic before entering a trade.

────────────────────────────
ALERTS
────────────────────────────

The oscillator can be used with alert conditions such as:

Bullish dot
Bearish dot
Strong bullish flow
Strong bearish flow
Extreme bullish flow
Extreme bearish flow

Suggested alert workflow:

1. Add the oscillator to the chart.
2. Open the TradingView alert window.
3. Select the oscillator as the alert source.
4. Choose the condition you want to monitor.
5. Use alerts as notifications, not as automatic trading decisions.

────────────────────────────
IMPORTANT NOTES
────────────────────────────

This script is an analytical oscillator. It is not a complete trading system.

It does not guarantee entries, exits or profitable results.

Market conditions can change quickly. Trend, volatility, liquidity, news and session behavior can affect all oscillator readings.

The tool should be tested on each market and timeframe before being used in live trading decisions.

Past signals do not guarantee future results.

Use proper risk management at all times.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.