PROTECTED SOURCE SCRIPT

IFT CCI + IFT RSI Average by ysfgnr

84
IFT CCI + IFT RSI Average is a momentum-based oscillator that combines the Inverse Fisher Transform (IFT) of the Commodity Channel Index (CCI) and the Relative Strength Index (RSI) into a single, normalized impulse signal.

The indicator is designed to provide a smoother and more interpretable view of momentum dynamics by transforming traditional oscillators into a bounded range and blending them using adjustable weight ratios.

Core Concept

Both CCI and RSI are calculated, smoothed, and transformed using the Inverse Fisher Transform, which compresses values into a range between -1 and +1.
This transformation improves visual clarity and makes momentum shifts easier to interpret.

The final impulse value is calculated as a weighted average of the IFT-transformed CCI and RSI components.

Weighting Logic

The IFT CCI Weight (%) and IFT RSI Weight (%) inputs control the relative contribution of each component to the final impulse value.

The weights are automatically normalized, meaning the combined contribution always equals 100%, regardless of the selected ratio.
This allows users to emphasize CCI-based momentum, RSI-based momentum, or maintain a balanced blend without affecting overall stability.

Trend Interpretation

The impulse signal is interpreted using fixed threshold levels:

Values above +0.5 indicate strong bullish momentum

Values below -0.5 indicate strong bearish momentum

Values between these levels represent weaker or developing momentum states

An optional Early Trend Entry Mode allows trend detection to begin earlier using predefined threshold logic, without altering the strong trend boundaries.

Multi-Timeframe Support

The indicator supports multi-timeframe analysis.
IFT CCI and IFT RSI calculations can be performed on a user-selected timeframe, while the results are displayed on the current chart timeframe.

This allows higher-timeframe momentum to be analyzed within lower-timeframe price action.

Trend Duration Statistics

The script tracks bullish and bearish trend durations measured in bars and provides statistical summaries using either:

Average duration, or

Median duration, which reduces the influence of extreme values

A progress metric shows how the current trend compares to its historical duration, expressed as a percentage.

Visuals and Table

The impulse line is color-coded based on trend direction and strength

A compact statistics table displays:

Current trend state

Average or median trend duration

Current trend length

Progress relative to historical norms

Table size and position are fully configurable.

Alerts

Alert conditions are provided for:

Strong bullish and bearish momentum starts

Weak trend entries (when enabled)

Trend direction changes

Trend duration threshold warnings

Alerts are designed to notify state changes rather than predict future price movement.

Important Notes

This indicator is intended for analytical and educational purposes.
It does not provide trading signals, predictions, or financial advice.
Users are encouraged to combine it with other tools and apply their own judgment.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.