OPEN-SOURCE SCRIPT
byquan GP maxmin+SPtrend

GP MaxMin SRSI + SSPtrend
Description
GP MaxMin SRSI + SSPtrend is a composite technical indicator designed to combine momentum context analysis with trend confirmation.
The script integrates:
A multi-source, multi-timeframe Stochastic RSI context layer
A standard Supertrend-based trend switch
A time-based signal validation window to reduce isolated or out-of-context signals
This indicator is intended for market observation and educational analysis, not as a standalone trading system.
Conceptual Overview
The core idea behind this indicator is simple:
Strong trend reversals or continuations are more meaningful when they occur after the market reaches extreme momentum conditions across multiple timeframes.
Instead of triggering signals immediately at overbought or oversold levels, this script:
Detects momentum extremes first
Waits for a structural trend confirmation
Allows signals only within a limited context window
Indicator Structure
1. Multi-Source Stochastic RSI Context
The script computes Stochastic RSI values based on four price sources:
Open
High
Low
Close
From these values, the script extracts:
The minimum momentum reading (deepest oversold condition)
The maximum momentum reading (strongest overbought condition)
This approach aims to reflect momentum dispersion, rather than relying on a single price input.
2. Multi-Timeframe Aggregation
Momentum values are evaluated across multiple higher timeframes (configurable by the user).
The aggregated values are normalized into a unified 0–100 scale, producing:
A composite oversold context
A composite overbought context
These conditions define market context only, not entry signals.
3. Trend Confirmation Using Supertrend
A conventional Supertrend calculation is used to detect trend state changes:
Trend transitions define potential directional shifts
Supertrend acts as the only trigger mechanism
No signal is generated solely from momentum values.
4. Context Validation Window
Once an overbought or oversold context is detected:
A configurable bar-based window is opened
Supertrend signals occurring within this window are considered valid
Signals outside the window are ignored
This design helps avoid delayed or unrelated confirmations.
Signal Logic Summary
BUY context
Oversold momentum detected → Supertrend turns bullish within the allowed window
SELL context
Overbought momentum detected → Supertrend turns bearish within the allowed window
Only signals satisfying both context and confirmation are displayed.
Intended Use
This indicator is designed to be used as:
A confirmation or filtering tool
A context layer alongside other analysis methods
A visual aid for studying market structure and momentum behavior
It is not intended to:
Predict future price movements
Replace risk management
Provide trading advice or signals with guaranteed outcomes
Important Notes
This script does not repaint
All calculations are rule-based and deterministic
Results may vary across symbols and timeframes
Users are encouraged to evaluate the logic independently
Past behavior does not imply future performance.
Attribution & Transparency
This script is a custom integration and modification of commonly used technical concepts such as:
Stochastic RSI
Supertrend
Multi-timeframe analysis
While the underlying ideas are widely known, the combination, parameterization, and signal-filtering logic reflect a personal implementation approach.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or solicitation to trade.
Description
GP MaxMin SRSI + SSPtrend is a composite technical indicator designed to combine momentum context analysis with trend confirmation.
The script integrates:
A multi-source, multi-timeframe Stochastic RSI context layer
A standard Supertrend-based trend switch
A time-based signal validation window to reduce isolated or out-of-context signals
This indicator is intended for market observation and educational analysis, not as a standalone trading system.
Conceptual Overview
The core idea behind this indicator is simple:
Strong trend reversals or continuations are more meaningful when they occur after the market reaches extreme momentum conditions across multiple timeframes.
Instead of triggering signals immediately at overbought or oversold levels, this script:
Detects momentum extremes first
Waits for a structural trend confirmation
Allows signals only within a limited context window
Indicator Structure
1. Multi-Source Stochastic RSI Context
The script computes Stochastic RSI values based on four price sources:
Open
High
Low
Close
From these values, the script extracts:
The minimum momentum reading (deepest oversold condition)
The maximum momentum reading (strongest overbought condition)
This approach aims to reflect momentum dispersion, rather than relying on a single price input.
2. Multi-Timeframe Aggregation
Momentum values are evaluated across multiple higher timeframes (configurable by the user).
The aggregated values are normalized into a unified 0–100 scale, producing:
A composite oversold context
A composite overbought context
These conditions define market context only, not entry signals.
3. Trend Confirmation Using Supertrend
A conventional Supertrend calculation is used to detect trend state changes:
Trend transitions define potential directional shifts
Supertrend acts as the only trigger mechanism
No signal is generated solely from momentum values.
4. Context Validation Window
Once an overbought or oversold context is detected:
A configurable bar-based window is opened
Supertrend signals occurring within this window are considered valid
Signals outside the window are ignored
This design helps avoid delayed or unrelated confirmations.
Signal Logic Summary
BUY context
Oversold momentum detected → Supertrend turns bullish within the allowed window
SELL context
Overbought momentum detected → Supertrend turns bearish within the allowed window
Only signals satisfying both context and confirmation are displayed.
Intended Use
This indicator is designed to be used as:
A confirmation or filtering tool
A context layer alongside other analysis methods
A visual aid for studying market structure and momentum behavior
It is not intended to:
Predict future price movements
Replace risk management
Provide trading advice or signals with guaranteed outcomes
Important Notes
This script does not repaint
All calculations are rule-based and deterministic
Results may vary across symbols and timeframes
Users are encouraged to evaluate the logic independently
Past behavior does not imply future performance.
Attribution & Transparency
This script is a custom integration and modification of commonly used technical concepts such as:
Stochastic RSI
Supertrend
Multi-timeframe analysis
While the underlying ideas are widely known, the combination, parameterization, and signal-filtering logic reflect a personal implementation approach.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or solicitation to trade.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.