Adaptive KDJ (MTF)Hey guys,
this is an adaptive MTF KDJ oscillator.
Pick up to 3 different timeframes, choose a weighting if you want and enjoy the beautiful signals it will show you.
The length of every timeframe is adaptive and based of the timeframe's ATR.
The plot shows the smoothed average of the 3 KDJ values.
Large triangles show KDJ crossings.
Small triangles show anticipations of possible crossings.
I found out it works best with 1m, 5m, 15m and weighting=1 for forex scalping in 1m.
Use other indicators for confluence.
Oscillateur Stochastique
ADX, Stochastic RSI, OBV, CO, Pivot Point SuperTrend StrategyThis strategy combines multiple technical indicators to identify high-probability trading opportunities. It integrates the Average Directional Index (ADX) for trend strength confirmation, Stochastic RSI for momentum-based entry and exit signals, On Balance Volume (OBV) and Chaikin Oscillator (CO) for volume-based confirmations, and Pivot Point SuperTrend for defining key trend shifts.
Key Features
✅ Multi-Indicator Strategy: Uses ADX, Stochastic RSI, OBV, CO, and Pivot Point SuperTrend for robust trend identification and confirmation.
✅ Customizable Parameters: Allows users to modify thresholds and settings for better adaptability to different market conditions.
✅ Risk Management: Includes risk/reward visualization and automated entry/exit conditions.
✅ Automated Alerts: Generates alerts for entry and exit signals, making it easy to execute trades efficiently.
Strategy Logic
Entry Conditions
📌 Long Entry (Buy Signal)
✅ ADX Trend Confirmation: ADX value is above the user-defined threshold.
✅ Directional Movement: +DI crosses above -DI.
✅ Momentum Confirmation (Stochastic RSI, OBV, CO - Optional):
✅ Stochastic RSI K > D and above the mid-level.
✅ OBV above its moving average.
✅ Chaikin Oscillator above zero.
📌 Short Entry (Sell Signal)
✅ ADX Trend Confirmation: ADX value is above the user-defined threshold.
✅ Directional Movement: -DI crosses above +DI.
✅ Momentum Confirmation (Stochastic RSI, OBV, CO - Optional):
✅ Stochastic RSI K < D and below the mid-level.
✅ OBV below its moving average.
✅ Chaikin Oscillator below zero.
Exit Conditions
📌 Long Exit (Close Buy Position)
✅ Pivot Point SuperTrend turns bearish (trend change).
✅ Stochastic RSI Confirmation (Optional): Stochastic RSI indicates overbought conditions and bearish crossover.
📌 Short Exit (Close Sell Position)
✅ Pivot Point SuperTrend turns bullish (trend change).
✅ Stochastic RSI Confirmation (Optional): Stochastic RSI indicates oversold conditions and bullish crossover.
How to Use
1️⃣ Adjust settings to match your trading style and market conditions.
2️⃣ Enable or disable confirmation indicators (Stochastic RSI, OBV, CO) for additional trade validation.
3️⃣ Set alerts for automated notifications when trade signals occur.
4️⃣ Backtest the strategy on different assets and timeframes to optimize performance.
Best Suited For
🔹 Trend-following traders looking for confirmation before entering trades.
🔹 Intraday and swing traders who want strong entry/exit signals.
🔹 Traders who prefer automated alerts for easy execution.
Disclaimer:
This strategy is intended for educational purposes only. Past performance does not guarantee future results. Always backtest and use proper risk management before applying to live trading.
Stochastic Fusion Elite [trade_lexx]📈 Stochastic Fusion Elite is your reliable trading assistant!
📊 What is Stochastic Fusion Elite ?
Stochastic Fusion Elite is a trading indicator based on a stochastic oscillator. It analyzes the rate of price change and generates buy or sell signals based on various technical analysis methods.
💡 The main components of the indicator
📊 Stochastic oscillator (K and D)
Stochastic shows the position of the current price relative to the price range for a certain period. Values above 80 indicate overbought (an early sale is possible), and values below 20 indicate oversold (an early purchase is possible).
📈 Moving Averages (MA)
The indicator uses 10 different types of moving averages to smooth stochastic lines.:
- SMA: Simple moving average
- EMA: Exponential moving average
- WMA: Weighted moving average
- HMA: Moving Average Scale
- KAMA: Kaufman Adaptive Moving Average
- VWMA: Volume-weighted moving average
- ALMA: Arnaud Legoux Moving Average
- TEMA: Triple exponential moving average
- ZLEMA: zero delay exponential moving average
- DEMA: Double exponential moving average
The choice of the type of moving average affects the speed of the indicator's response to market changes.
🎯 Bollinger Bands (BB)
Bands around the moving average that widen and narrow depending on volatility. They help determine when the stochastic is out of the normal range.
🔄 Divergences
Divergences show discrepancies between price and stochastic:
- Bullish divergence: price is falling and stochastic is rising — an upward reversal is possible
- Bearish divergence: the price is rising, and stochastic is falling — a downward reversal is possible
🔍 Indicator signals
1️⃣ KD signals (K and D stochastic lines)
- Buy signal:
- What happens: the %K line crosses the %D line from bottom to top
- What does it look like: a green triangle with the label "KD" under the chart and the label "Buy" below the bar
- What does this mean: the price is gaining an upward momentum, growth is possible
- Sell signal:
- What happens: the %K line crosses the %D line from top to bottom
- What it looks like: a red triangle with the label "KD" above the chart and the label "Sell" above the bar
- What does this mean: the price is losing its upward momentum, possibly falling
2️⃣ Moving Average Signals (MA)
- Buy Signal:
- What happens: stochastic crosses the moving average from bottom to top
- What it looks like: a green triangle with the label "MA" under the chart and the label "Buy" below the bar
- What does this mean: stochastic is starting to accelerate upward, price growth is possible
- Sell signal:
- What happens: stochastic crosses the moving average from top to bottom
- What it looks like: a red triangle with the label "MA" above the chart and the label "Sell" above the bar
- What does this mean: stochastic is starting to accelerate downwards, a price drop is possible
3️⃣ Bollinger Band Signals (BB)
- Buy signal:
- What happens: stochastic crosses the lower Bollinger band from bottom to top
- What it looks like: a green triangle with the label "BB" under the chart and the label "Buy" below the bar
- What does this mean: stochastic was too low and is now starting to recover
- Sell signal:
- What happens: Stochastic crosses the upper Bollinger band from top to bottom
- What it looks like: a red triangle with a "BB" label above the chart and a "Sell" label above the bar
- What does this mean: stochastic was too high and is now starting to decline
4️⃣ Divergence Signals (Div)
- Buy Signal (Bullish Divergence):
- What's happening: the price is falling, and stochastic is forming higher lows
- What it looks like: a green triangle with a "Div" label under the chart and a "Buy" label below the bar
- What does this mean: despite the falling price, the momentum is already changing in an upward direction
- Sell signal (bearish divergence):
- What's going on: the price is rising, and stochastic is forming lower highs
- What it looks like: a red triangle with a "Div" label above the chart and a "Sell" label above the bar
- What does this mean: despite the price increase, the momentum is already weakening
🛠️ Filters to filter out false signals
1️⃣ Minimum distance between the signals
- What it does: sets the minimum number of candles between signals
- Why it is needed: prevents signals from being too frequent during strong market fluctuations
- How to set it up: Set the number from 0 and above (default: 5)
2️⃣ "Waiting for the opposite signal" mode
- What it does: waits for a signal in the opposite direction before generating a new signal
- Why you need it: it helps you not to miss important trend reversals
- How to set up: just turn the function on or off
3️⃣ Filter by stochastic levels
- What it does: generates signals only when the stochastic is in the specified ranges
- Why it is needed: it helps to catch the moments when the market is oversold or overbought
- How to set up:
- For buy signals: set a range for oversold (for example, 1-20)
- For sell signals: set a range for overbought (for example, 80-100)
4️⃣ MFI filter
- What it does: additionally checks the values of the cash flow index (MFI)
- Why it is needed: confirms stochastic signals with cash flow data
- How to set it up:
- For buy signals: set the range for oversold MFI (for example, 1-25)
- For sell signals: set the range for overbought MFI (for example, 75-100)
5️⃣ The RSI filter
- What it does: additionally checks the RSI values to confirm the signals
- Why it is needed: adds additional confirmation from another popular indicator
- How to set up:
- For buy signals: set the range for oversold MFI (for example, 1-30)
- For sell signals: set the range for overbought MFI (for example, 70-100)
🔄 Signal combination modes
1️⃣ Normal mode
- How it works: all signals (KD, MA, BB, Div) work independently of each other
- When to use it: for general market analysis or when learning how to work with the indicator
2️⃣ "AND" Mode ("AND Mode")
- How it works: the alarm appears only when several conditions are triggered simultaneously
- Combination options:
- KD+MA: signals from the KD and moving average lines
- KD+BB: signals from KD lines and Bollinger bands
- KD+Div: signals from the KD and divergence lines
- KD+MA+BB: three signals simultaneously
- KD+MA+Div: three signals at the same time
- KD+BB+Div: three signals at the same time
- KD+MA+BB+Div: all four signals at the same time
- When to use: for more reliable but rare signals
🔌 Connecting to trading strategies
The indicator can be connected to your trading strategies using 6 different channels.:
1. Connector KD signals: connects only the signals from the intersection of lines K and D
2. Connector MA signals: connects only signals from moving averages
3. Connector BB signal: connects only the signals from the Bollinger bands
4. Connector divergence signals: connects only divergence signals
5. Combined Connector: connects any signals
6. Connector for "And" mode: connects only combined signals
🔔 Setting up alerts
The indicator can send alerts when alarms appear.:
- Alerts for KD: when the %K line crosses the %D line
- Alerts for MA: when stochastic crosses the moving average
- Alerts for BB: when stochastic crosses the Bollinger bands
- Divergence alerts: when a divergence is detected
- Combined alerts: for all types of alarms
- Alerts for "And" mode: for combined signals
🎭 What does the indicator look like on the chart ?
- Main lines K and D: blue and orange lines
- Overbought/oversold levels: horizontal lines at levels 20 and 80
- Middle line: dotted line at level 50
- Stochastic Moving Average: yellow line
- Bollinger bands: green lines around the moving average
- Signals: green and red triangles with corresponding labels
📚 How to start using Stochastic Fusion Elite
1️⃣ Initial setup
- Add an indicator to your chart
- Select the types of signals you want to use (KD, MA, BB, Div)
- Adjust the period and smoothing for the K and D lines
2️⃣ Filter settings
- Set the distance between the signals to get rid of unnecessary noise
- Adjust stochastic, MFI and RSI levels depending on the volatility of your asset
- If you need more reliable signals, turn on the "Waiting for the opposite signal" mode.
3️⃣ Operation mode selection
- First, use the standard mode to see all possible signals.
- When you get comfortable, try the "And" mode for rarer signals.
4️⃣ Setting up Alerts
- Select the types of signals you want to be notified about
- Set up alerts for these types of signals
5️⃣ Verification and adaptation
- Check the operation of the indicator on historical data
- Adjust the parameters for a specific asset
- Adapt the settings to your trading style
🌟 Usage examples
For trend trading
- Use the KD and MA signals in the direction of the main trend
- Set the distance between the signals
- Set stricter levels for filters
For trading in a sideways range
- Use BB signals to detect bounces from the range boundaries
- Use a stochastic level filter to confirm overbought/oversold conditions
- Adjust the Bollinger bands according to the width of the range
To determine the pivot points
- Pay attention to the divergence signals
- Set the distance between the signals
- Check the MFI and RSI filters for additional confirmation
Stochastic RSI with Separate Cross HighlightsStochastic RSI with Separate Cross Highlights
This script overlays the Stochastic RSI indicator on your chart, with separate cross highlights and alerts. The Stochastic RSI is calculated using the RSI (Relative Strength Index) as the base, which is then used to compute the Stochastic %K and %D values. The indicator allows for detailed crossovers and crossunders at the 50 level, with color-coded highlights for crossovers and crossunders between the %K and %D lines.
Key Features:
RSI Source: Customizable input for the source of RSI calculation.
Stochastic RSI: Displays the %K and %D lines based on the Stochastic RSI formula.
Customizable Periods: Adjustable smoothing for the %K and %D lines, and customizable lengths for the RSI and Stochastic components.
Cross Highlights: Background highlights when %K crosses above %D (green) or when %D crosses above %K (red).
Horizontal Bands: Horizontal lines at the 80 (Upper), 50 (Middle), and 20 (Lower) levels, with a shaded background between the 20 and 80 levels for visual clarity.
Alerts: Alerts when either %K or %D crosses the 50 line, indicating potential changes in momentum.
Inputs:
K (SmoothK): Smoothing period for %K.
D (SmoothD): Smoothing period for %D.
RSI Length (lengthRSI): The period for the RSI calculation.
Stochastic Length (lengthStoch): The period for the Stochastic calculation.
RSI Source (src): The source price used for RSI calculation (e.g., Close).
This script is designed for traders looking to monitor the Stochastic RSI along with cross signals and momentum shifts, helping to identify potential overbought or oversold conditions and spot key trend reversals.
Triple SRSI-MFI Ⅲ - Multi TimeframeTriple SRSI-MFI Ⅲ - Multi Timeframe Indicator
Description
The Triple SRSI-MFI Ⅲ - Multi Timeframe indicator is a powerful tool designed to combine Stochastic RSI (SRSI) and Money Flow Index (MFI) across multiple timeframes (higher, current, and lower). It provides a comprehensive view of market momentum and potential overbought/oversold conditions by calculating a weighted hybrid of SRSI-MFI values from three different timeframes. The indicator also integrates Bollinger Bands to help identify trend direction and volatility.
This indicator is ideal for traders who want to analyze market conditions across multiple timeframes without switching charts. It automatically adjusts settings based on the current timeframe and includes a dynamic weighting system optimized for Bitcoin volatility. Additionally, a real-time information panel displays the market state (buy/sell) and signal strength.
Key Features
Multi-Timeframe Analysis: Combines SRSI-MFI from higher, current, and lower timeframes for a holistic view.
Dynamic Weighting: Automatically adjusts weights for each timeframe based on Bitcoin volatility, with an option for manual customization.
Bollinger Bands Integration: Visualizes trend direction and volatility using Bollinger Bands, with customizable source selection.
Real-Time Info Panel: Displays market state (buy/sell) and signal strength (%) in the top-right corner of the chart.
Customizable Settings: Allows users to tweak MFI source, Bollinger Bands parameters, and visibility of individual components.
How to Use
Add to Chart: Add the "Triple SRSI-MFI Ⅲ - Multi Timeframe" indicator to your chart.
Interpret Signals:
Market State (Buy/Sell): Shown in the info panel. "Buy" when the average SRSI-MFI is above the Bollinger Bands basis, "Sell" when below.
Strength (%): The relative position of the average SRSI-MFI within the Bollinger Bands, scaled from 0% to 100%.
Overbought/Oversold Levels: The indicator plots horizontal lines at 80 (overbought) and 20 (oversold). Use these as potential reversal zones.
Combine with Price Action: Use the indicator in conjunction with price action or other tools for better decision-making.
Adjust Settings: Customize the settings (e.g., Bollinger Bands length, weights, visibility) to match your trading style.
Settings
MFI Source: Select the source for MFI calculation (default: "hlc3"). Options include "close", "open", "high", "low", "hl2", "hlc3", "ohlc4".
Bollinger Bands:
Length: Period for Bollinger Bands calculation (default: 20).
Multiplier: Standard deviation multiplier for the bands (default: 2.0).
Source: Choose which SRSI-MFI value to use for Bollinger Bands ("averageHybrid", "hybrid_higher", "hybrid_current", "hybrid_lower"; default: "hybrid_higher").
Weights:
Auto Weight Enabled: Enable/disable automatic weights based on Bitcoin volatility (default: true).
Higher/Current/Lower Weights: Manually set weights for each timeframe if auto-weight is disabled (defaults: 1.5, 1.0, 0.5).
Indicator On/Off:
Toggle visibility for Higher SRSI-MFI, Current SRSI-MFI, Lower SRSI-MFI, Average SRSI-MFI, and Bollinger Bands.
How It Works
SRSI-MFI Calculation:
Stochastic RSI (SRSI) and Money Flow Index (MFI) are calculated for three timeframes: higher, current, and lower.
The hybrid value (SRSI * (MFI / 100)) is computed for each timeframe.
Weighted Average:
The hybrid values are combined into a weighted average (averageHybrid) using dynamic or manual weights.
Bollinger Bands:
Bollinger Bands are applied to the selected source (e.g., hybrid_higher) to identify trend direction and volatility.
Relative Position:
The position of averageHybrid within the Bollinger Bands is scaled to a percentage (0% to 100%) for strength assessment.
Visualization:
Plots individual SRSI-MFI lines, Bollinger Bands, and overbought/oversold levels.
A real-time info panel provides market state and signal strength.
Notes
This indicator is best used as part of a broader trading strategy. It is not a standalone signal generator and should be combined with other forms of analysis.
The automatic weights are optimized for Bitcoin (BTC) volatility. For other assets, you may need to adjust the weights manually.
The indicator may require sufficient historical data to calculate higher and lower timeframe values accurately.
Multi-Timeframe Stochastic RSI ArrowsMulti-Timeframe Stochastic RSI Arrows Indicator by The Venetian
Dear Moderators before you torch me alive theres nothing groundbreaking just very handy indicator for some users.
This indicator provides traders with a jet fighter-style heads-up display for market momentum across multiple timeframes. By displaying Stochastic RSI directional arrows for 12 different timeframes simultaneously, it offers a comprehensive view of market conditions without requiring multiple chart windows.
How It Works
The indicator calculates the Stochastic RSI for each of 12 common timeframes (1m to 3M) and represents directional movements with intuitive arrows:
- ▲ Green up arrow = Rising momentum
- ▼ Red down arrow = Falling momentum
- ◄► Yellow horizontal arrows = Flat/sideways momentum
- ► Gray right arrow = Just peaked (crossed above overbought)
- ◄ Gray left arrow = Just bottomed (crossed below oversold)
Each timeframe's status appears with its label (e.g., "1m ▲") in a clean, vertically-stacked display using ATR-based spacing to maintain consistent visual appearance regardless of price scale.
Key Features
- ATR-Based Spacing : Uses Average True Range to maintain consistent distances between labels even as chart scale changes
- Multi-Timeframe Analysis: Easily spot divergences and confluences across timeframes (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M, 3M)
- Sensitivity Control: Adjust flat detection sensitivity to filter out noise
- Customisable Appearance: Modify arrow size, vertical spacing, and show/hide timeframe labels
- Overbought/Oversold Detection: Highlights when momentum has peaked or bottomed at extreme levels
- Trading Applications
- Trend Alignment: Quickly identify when multiple timeframes align in the same direction
- Divergence Detection: Spot when shorter timeframes begin to shift against longer ones
- Entry/Exit Timing: Use crossovers of significant timeframes as potential signals
- Market Context: Maintain awareness of the bigger picture while trading shorter timeframes
This indicator doesn't break new ground technically but excels in presenting complex multi-timeframe information in a clean, actionable format — much like a pilot's heads-up display provides critical information at a glance. The ATR-based positioning ensures consistent visibility across different instruments and market conditions.
Great effort has been made for this script to adhere to TradingView's Pine Script house rules and focuses on trader usability rather than introducing novel technical concepts.
ReadyFor401ks Stoch + RSIThis indicator is a powerful tool that combines the classic Relative Strength Index (RSI) with a Stochastic RSI to provide traders with a more nuanced view of market momentum and potential reversal points. By blending these two techniques, the script offers a detailed insight into price action, highlighting when a market might be overbought or oversold. The RSI is calculated once and then used both for a traditional RSI plot and to derive the Stochastic RSI, ensuring consistency and efficiency in your analysis.
One of the standout features of this indicator is its dynamic visual presentation. A gradient color scheme is applied to the RSI line, which changes based on its position between customizable overbought and oversold levels. This visual cue allows traders to quickly identify critical zones without having to constantly monitor numerical values. Additionally, the background fill between these levels enhances clarity, making it easier to spot when conditions are ripe for a potential reversal.
The indicator is highly customizable, allowing you to adjust parameters such as the RSI period, Stochastic length, and smoothing factors. This flexibility means you can fine-tune the tool to suit different market conditions, whether you’re trading trending markets or range-bound environments. For example, an RSI crossover above the oversold level can signal an emerging upward trend, while a crossover below the overbought level may indicate a downturn, providing actionable alerts that can be integrated into your trading strategy.
Overall, the ReadyFor401k Stoch + RSI indicator is designed to offer a clear, concise, and visually engaging method for monitoring market momentum. It serves as an excellent complement to other technical analysis tools and can help improve your decision-making process by providing early warning signals for potential market reversals. Whether you’re a seasoned trader or just starting out, this indicator can be a valuable addition to your TradingView toolkit.
Adaptive Stochastic Oscillator with Signals [AIBitcoinTrend]👽 Adaptive Stochastic Oscillator with Signals (AIBitcoinTrend)
The Adaptive Stochastic Oscillator with Signals is a refined version of the traditional Stochastic Oscillator, dynamically adjusting its lookback period based on market volatility. This adaptive approach improves responsiveness to market conditions, reducing lag while maintaining trend sensitivity. Additionally, the indicator includes real-time divergence detection and an ATR-based trailing stop system, allowing traders to manage risk and optimize trade exits effectively.
👽 What Makes the Adaptive Stochastic Oscillator Unique?
Unlike the standard Stochastic Oscillator, which uses a fixed lookback period, this version dynamically adjusts the period length using an ATR-based fractal dimension. This makes it more responsive to market conditions, filtering out noise while capturing key price movements.
Key Features:
Adaptive Lookback Calculation – Stochastic period changes dynamically based on volatility.
Real-Time Divergence Detection – Identify bullish and bearish divergences instantly.
Implement Crossover/Crossunder signals tied to ATR-based trailing stops for risk management
👽 The Math Behind the Indicator
👾 Adaptive Lookback Period Calculation
Traditional Stochastic Oscillators use a fixed-length period for their calculations, which can lead to inaccurate signals in varying market conditions. This version automatically adjusts its lookback period based on market volatility using an ATR-based fractal dimension approach.
How it Works:
The fractal dimension (FD) is calculated using the ATR (Average True Range) over a defined period.
FD values dynamically adjust the Stochastic lookback period between a minimum and maximum range.
This results in a faster response in high-volatility conditions and smoother signals during low volatility.
👽 How Traders Can Use This Indicator
👾 Divergence Trading Strategy
Traders can anticipate trend reversals before they occur using real-time divergence detection.
Bullish Divergence Setup:
Identify price making a lower low while Stochastic %K makes a higher low.
Enter a long trade when Stochastic confirms upward momentum.
Bearish Divergence Setup:
Identify price making a higher high while Stochastic %K makes a lower high.
Enter a short trade when Stochastic confirms downward momentum.
👾 Trailing Stop & Signal-Based Trading
Bullish Setup:
✅Stochastic %K crosses above 90 → Buy signal.
✅A bullish trailing stop is placed at low - ATR × Multiplier.
✅Exit if the price crosses below the stop.
Bearish Setup:
✅Stochastic %K crosses below 10 → Sell signal.
✅A bearish trailing stop is placed at high + ATR × Multiplier.
✅Exit if the price crosses above the stop.
👽 Why It’s Useful for Traders
Adaptive Period Calculation: Dynamically adjusts to market volatility.
Real-Time Divergence Alerts: Helps traders identify trend reversals in advance.
ATR-Based Risk Management: Automatically adjusts stop levels based on price movements.
Works Across Multiple Markets & Timeframes: Useful for stocks, forex, crypto, and futures trading.
👽 Indicator Settings
Min & Max Lookback Periods – Define the range for the adaptive Stochastic period.
Enable Divergence Analysis – Toggle real-time divergence detection.
Lookback Period – Set the number of bars for detecting pivot points.
Enable Trailing Stop – Activate the dynamic trailing stop feature.
ATR Multiplier – Adjust stop-loss sensitivity.
Line Width & Colors – Customize stop-loss visualization.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
+ Stochastic S/R ZonesHey, all. I have a new indicator here that displays zones on your price chart where the stochastic oscillator has moved out of overbought or oversold back into the range of the indicator that is bounded by those two levels.
I know there are many support and resistance indicators on TradingView already, at least a couple of which use the RSI in a similar way as I am using the stochastic here, but I still believe this is a fairly novel interpretation of the stochastic, and it is, in my opinion, a better oscillator than the RSI to be used in this way.
In addition to the zones being plotted on the chart, the indicator also, optionally, can color candles or plot shapes above candles when the 50 line is crossed, so if you want to use this as a simple momentum indicator without desire of having the below chart indicator taking up screen space, you're pretty much covered on the typical signals you might want from it (with the exception of %K / %D crosses, but there are alerts for that).
Visually, it is a simple, clean indicator. There are the zones, and then candle colors or shapes if you opt to add those. These zones are actually drawn from the candle preceding the cross over or cross under. Reason for that is often times the candle of the cross is fairly impulsive and exiting a consolidation. That period of consolidation is what is important to highlight, at least as far as I am concerned. The zones themselves extend until they are broken by a candle. A support zone stops at the candle that closes below its low. Vice versa for a resistance zone.
Usage is fairly simple. All the standard stochastic inputs are available for you to adjust to your heart's content. Additionally, you can choose either the %K or %D line to use as the source from which the zones are drawn, candles are colored, and shapes are plotted. Not sure if this will matter to most people, but I figured it should be made available.
This should be obvious, but I feel it must be said, just because an oscillator (any oscillator) has exited overbought or oversold does not mean that there must be a reversal (or in the case of a trend pullback, continuation). The oscillator can always simply immediately move back into overbought/sold. Just because a support box prints does not mean you should mortgage your house on a long trade. In strong trends, and depending on your oscillator settings, the indicator might draw a box then only a couple of candles later break it, continuing on with the trend. This of course is telling you something, and you would be wise to listen. As with all things trading, context is important.
Here are a few extra screens for you.
I really hope you all like this. It's been ages since I've created anything new, and despite its simplicity and the few lines of code that make it up, it took a lot of work, as I am a poor coder.
Enjoy,
Scott
RSI/Stochastic With Real Time Candle OverlayThis indicator provides an alternative way to visualize either RSI or Stochastic values by representing them as candle bars in real time, allowing a more detailed view of momentum shifts within each bar. By default, it displays the standard historical plot of the chosen oscillator in the background, but once you are receiving real-time data (or if you keep your chart open through the close), it begins overlaying candles that track the oscillator’s intrabar movements. These candles only exist for as long as the chart remains open; if you refresh or load the chart anew, there is no stored candle history, although the standard RSI or Stochastic line is still fully retained. These candles offer insight into short-term fluctuations that are otherwise hidden when viewing a single line for RSI or Stochastic.
In the settings, there is an option to switch between standard candlesticks and Heiken Ashi. When Heiken Ashi is selected, the indicator uses the Heiken Ashi close once it updates in real time, producing a smoothed view of intrabar price movement for the oscillator. This can help identify trends in RSI or Stochastic by making it easier to spot subtle changes in direction, though some may prefer the unmodified values that come from using regular candles. The combination of these candle styles with an oscillator’s output offers flexibility for different analytical preferences.
Traders who use RSI or Stochastic often focus on entry and exit signals derived from crossing certain thresholds, but they are usually limited to a single reading per bar. With this tool, it becomes possible to watch how the oscillator’s value evolves within the bar itself, which can be especially useful for shorter timeframes or for those who prefer a more granular look at momentum shifts. The visual separation between bullish and bearish candle bodies within the indicator can highlight sudden reversals or confirm ongoing trends in the oscillator, aiding in more precise decision-making. Because the candle overlay is cleared as soon as the bar closes, the chart remains uncluttered when scrolling through historical data, ensuring that only the necessary real-time candle information is displayed.
Overall, this indicator is intended for users who wish to track intrabar changes in RSI or Stochastic, with the added choice of standard or Heiken Ashi candle representation. The real-time candle overlay clarifies short-lived fluctuations, while the standard line plots maintain the usual clarity of past data. This approach can be beneficial for those who want deeper insights into how oscillator values develop in real time, without permanently altering the simplicity of the chart’s historical view.
Multi-Indicator Signals with Selectable Options by DiGetMulti-Indicator Signals with Selectable Options
Script Overview
This Pine Script is a multi-indicator trading strategy designed to generate buy/sell signals based on combinations of popular technical indicators: RSI (Relative Strength Index) , CCI (Commodity Channel Index) , and Stochastic Oscillator . The script allows you to select which combination of signals to display, making it highly customizable and adaptable to different trading styles.
The primary goal of this script is to provide clear and actionable entry/exit points by visualizing buy/sell signals with arrows , labels , and vertical lines directly on the chart. It also includes input validation, dynamic signal plotting, and clutter-free line management to ensure a clean and professional user experience.
Key Features
1. Customizable Signal Types
You can choose from five signal types:
RSI & CCI : Combines RSI and CCI signals for confirmation.
RSI & Stochastic : Combines RSI and Stochastic signals.
CCI & Stochastic : Combines CCI and Stochastic signals.
RSI & CCI & Stochastic : Requires all three indicators to align for a signal.
All Signals : Displays individual signals from each indicator separately.
This flexibility allows you to test and use the combination that works best for your trading strategy.
2. Clear Buy/Sell Indicators
Arrows : Buy signals are marked with upward arrows (green/lime/yellow) below the candles, while sell signals are marked with downward arrows (red/fuchsia/gray) above the candles.
Labels : Each signal is accompanied by a label ("BUY" or "SELL") near the arrow for clarity.
Vertical Lines : A vertical line is drawn at the exact bar where the signal occurs, extending from the low to the high of the candle. This ensures you can pinpoint the exact entry point without ambiguity.
3. Dynamic Overbought/Oversold Levels
You can customize the overbought and oversold levels for each indicator:
RSI: Default values are 70 (overbought) and 30 (oversold).
CCI: Default values are +100 (overbought) and -100 (oversold).
Stochastic: Default values are 80 (overbought) and 20 (oversold).
These levels can be adjusted to suit your trading preferences or market conditions.
4. Input Validation
The script includes built-in validation to ensure that oversold levels are always lower than overbought levels for each indicator. If the inputs are invalid, an error message will appear, preventing incorrect configurations.
5. Clean Chart Design
To avoid clutter, the script dynamically manages vertical lines:
Only the most recent 50 buy/sell lines are displayed. Older lines are automatically deleted to keep the chart clean.
Labels and arrows are placed strategically to avoid overlapping with candles.
6. ATR-Based Offset
The vertical lines and labels are offset using the Average True Range (ATR) to ensure they don’t overlap with the price action. This makes the signals easier to see, especially during volatile market conditions.
7. Scalable and Professional
The script uses arrays to manage multiple vertical lines, ensuring scalability and performance even when many signals are generated.
It adheres to Pine Script v6 standards, ensuring compatibility and reliability.
How It Works
Indicator Calculations :
The script calculates the values of RSI, CCI, and Stochastic Oscillator based on user-defined lengths and smoothing parameters.
It then checks for crossover/crossunder conditions relative to the overbought/oversold levels to generate individual signals.
Combined Signals :
Depending on the selected signal type, the script combines the individual signals logically:
For example, a "RSI & CCI" buy signal requires both RSI and CCI to cross into their respective oversold zones simultaneously.
Signal Plotting :
When a signal is generated, the script:
Plots an arrow (upward for buy, downward for sell) at the corresponding bar.
Adds a label ("BUY" or "SELL") near the arrow for clarity.
Draws a vertical line extending from the low to the high of the candle to mark the exact entry point.
Line Management :
To prevent clutter, the script stores up to 50 vertical lines in arrays (buy_lines and sell_lines). Older lines are automatically deleted when the limit is exceeded.
Why Use This Script?
Versatility : Whether you're a scalper, swing trader, or long-term investor, this script can be tailored to your needs by selecting the appropriate signal type and adjusting the indicator parameters.
Clarity : The combination of arrows, labels, and vertical lines ensures that signals are easy to spot and interpret, even in fast-moving markets.
Customization : With adjustable overbought/oversold levels and multiple signal options, you can fine-tune the script to match your trading strategy.
Professional Design : The script avoids clutter by limiting the number of lines displayed and using ATR-based offsets for better visibility.
How to Use This Script
Add the Script to Your Chart :
Copy and paste the script into the Pine Editor in TradingView.
Save and add it to your chart.
Select Signal Type :
Use the "Signal Type" dropdown menu to choose the combination of indicators you want to use.
Adjust Parameters :
Customize the lengths of RSI, CCI, and Stochastic, as well as their overbought/oversold levels, to match your trading preferences.
Interpret Signals :
Look for green arrows and "BUY" labels for buy signals, and red arrows and "SELL" labels for sell signals.
Vertical lines will help you identify the exact bar where the signal occurred.
Tips for Traders
Backtest Thoroughly : Before using this script in live trading, backtest it on historical data to ensure it aligns with your strategy.
Combine with Other Tools : While this script provides reliable signals, consider combining it with other tools like support/resistance levels or volume analysis for additional confirmation.
Avoid Overloading the Chart : If you notice too many signals, try tightening the overbought/oversold levels or switching to a combined signal type (e.g., "RSI & CCI & Stochastic") for fewer but higher-confidence signals.
Averaged Stochastic RSI by TenozenSimplicity beats everything! Averaged Stochastic RSi is calculated using the 2 points of stochastic of the RSI, where the difference is by 2 (larger), and averaged out the stochastic's values. In result it is less noisy and more responsive towards the market's momentum.
I hope you guys find this indicator useful! So far this is the best indicator I ever had! And I also learned that simplicity is better than complex blurry/abstract problems. Ciao!
Multi Stochastic AlertHello Everyone,
I have created a Multi Stochastic Alert based on Scalping Strategy
The Strategy uses below 4 Stochastic indicator:
1. Stochastic (9,3)
2. Stochastic (14,3)
3. Stochastic (40,4)
4. Stochastic (60,10)
Trade entry become active when all of these goes below 20 or above 80, In this indicator you don't need to use all 4, this will show red and green background whenever all of them goes below 20 or above 80.
As shown in picture below, it works better when script is making a channel, Our indicator shows green or red signal, we wait for RSI Divergence and we enter. We book when blue line (9,3) goes above 80, as shown by arrow, and trail rest at breakeven or your own trailing method
Same Situation shown for Short side. We book 50% when Blue line (9,3) Goes below 20 and trail rest at breakeven or your own trailing method
Happy trading, Let me know if any improvements required.
Multi-Timeframe Stochastic OverviewPurpose of the Multi-Timeframe Stochastic Indicator:
The Multi-Timeframe Stochastic Indicator provides a consolidated view of market conditions across multiple timeframes (M1, M5, M15, H1) based on the Stochastic Oscillator, a popular technical analysis tool. The main objective is to allow traders to quickly assess momentum and potential trend reversals across different timeframes on a single chart, helping to make informed trading decisions.
---
General Purpose of Stochastic Oscillator:
The Stochastic Oscillator measures the relationship between a security's closing price and its price range over a given period, aiming to identify momentum, overbought/oversold levels, and potential reversal points. It works on the assumption that:
1. In uptrends, prices tend to close near their highs.
2. In downtrends, prices tend to close near their lows.
It consists of two lines:
%K (fast line): Represents the raw Stochastic value.
%D (slow line): A moving average of %K, used to smooth the data for better signals.
The indicator is generally used to:
Identify Overbought (price above 80% threshold) and Oversold (price below 20% threshold) conditions.
Spot Bullish and Bearish divergences for potential trend reversals.
Evaluate momentum strength within a trend.
---
How This Multi-Timeframe Indicator Enhances Stochastic's Utility:
1. Multi-Timeframe Overview:
The indicator calculates Stochastic values for multiple timeframes (1-minute, 5-minute, 15-minute, and 1-hour) and displays their market conditions (e.g., Bullish, Bearish, Overbought, Oversold, or Indecision) in an organized table format.
This gives traders a broad perspective on short-term, mid-term, and long-term trends simultaneously.
2. Market Condition Summary:
Bullish: Indicates upward momentum (both %K and %D > 50%).
Bearish: Indicates downward momentum (both %K and %D < 50%).
Overbought: Suggests potential trend exhaustion (both %K and %D > 80%).
Oversold: Suggests a potential reversal to the upside (both %K and %D < 20%).
Indecision: Highlights uncertainty when %K and %D are on opposite sides of the 50% level.
3. Quick Decision-Making:
The color-coded table (green for Bullish/Overbought, red for Bearish/Oversold, orange for Indecision) allows traders to quickly identify dominant conditions and momentum alignment across timeframes, helping in trade confirmation.
4. Trend Analysis:
By observing alignment or divergence in market conditions across timeframes, traders can gauge the strength of a trend or anticipate reversals. For example:
If all timeframes show "Bullish," it suggests strong momentum.
If smaller timeframes are "Overbought" while larger ones are "Bearish," it warns of a possible pullback.
5. Customizable Parameters:
The indicator allows customization of Stochastic K, D, smoothing values, and overbought/oversold levels, enabling users to tailor the analysis to specific trading styles or market conditions.
---
Use Cases:
1. Scalping:
A scalper can use lower timeframes (e.g., M1, M5) to find overbought/oversold zones for quick trades.
2. Swing Trading:
Swing traders can align smaller timeframes with higher ones (e.g., M15 and H1) to confirm momentum before entering a trade.
3. Trend Reversals:
Overbought or oversold conditions across all timeframes may indicate a major reversal point, helping traders plan exits or countertrend entries.
4. Trend Continuation:
Consistent bullish or bearish conditions across all timeframes confirm the continuation of a trend, providing confidence to hold positions.
---
Summary:
This indicator enhances the traditional Stochastic Oscillator by giving a multi-timeframe snapshot of market momentum, overbought/oversold conditions, and trend direction. It enables traders to quickly assess the overall market state, spot opportunities, and make more informed trading decisions.
MultiTime Stochastics ProMultiTime Stochastics Pro
This indicator is an enhanced version of the stochastic indicator, featuring two separate stochastics. This functionality allows you to adjust the settings and time frame for each stochastic individually, enabling a more precise analysis of market fluctuations.
The Double Stochastic indicator enables you to simultaneously analyze the market in different time frames with two separate stochastics. One of the standout features of this indicator is that when the chart's time frame changes, each stochastic is displayed according to the time set for it and does not change in other time frames. This feature provides greater flexibility and accuracy in market analysis.
How the Indicator Works
This indicator calculates two separate stochastics:
The first stochastic (K1 and D1) with its own specific time frame and settings.
The second stochastic (K2 and D2) with a different time frame and settings.
These two stochastics are displayed simultaneously on one chart, and overbought and oversold lines are also included.
How to Use
Parameter Adjustment : Adjust the parameters K1 Length, D1 Smoothing, and K1 Time Frame as desired. Do the same for the second stochastic.
Signal Analysis : Analyze buy and sell signals based on the stochastic values and the overbought and oversold lines.
Advantages
Greater Precision : With two separate stochastics, you can follow market fluctuations with greater accuracy.
Flexibility : The ability to individually set the time frame and parameters for each stochastic makes this indicator highly flexible.
Stronger Signals : The simultaneous display of two stochastics allows you to receive stronger buy and sell signals.
Multi-time frame Analysis : The ability to analyze the market in different time frames simultaneously.
This indicator is suitable for traders seeking more precise and flexible market analysis tools. I hope these explanations help you publish your indicator in the best possible way!
4x Stochastic and 1x RSI Buy and Sell SignalsBuy signal (green), when Stochastic 9, 14, 40 and 60 are bellow 20.
Sell signal (red), when Stochastic 9, 14, 40 and 60 are above 80.
Buy signal is larger, when RSI is also bellow 30.
Sell signal is larger, when RSI is also above 70.
Using RSI is optional and can be disabled.
Use this signals when confirmed by another indicators, like support and resistance levels, EMAs and fundamental analysis.
Soul Button Scalping (1 min chart) V 1.0Indicator Description
- P Signal: The foundational buy signal. It should be confirmed by observing RSI divergence on the 1-minute chart.
- Green, Orange, and Blue Signals: Three buy signals generated through the combination of multiple oscillators. These signals should also be cross-referenced with the RSI on the 1-minute chart.
- Big White and Big Yellow Signals: These represent strong buy signals, triggered in extreme oversold conditions.
- BEST BUY Signal: The most reliable and powerful buy signal available in this indicator.
____________
Red Sell Signal: A straightforward sell signal indicating potential overbought conditions.
____________
Usage Guidance
This scalping indicator is specifically designed for use on the 1-minute chart, incorporating data from the 5-minute chart for added context. It is most effective when used in conjunction with:
• VWAP (Volume Weighted Average Price), already included in the indicator.
• RSI on the 1-minute chart, which should be opened as a separate indicator.
• Trendlines, structure breakouts, and price action analysis to confirm signals.
Intended for Crypto Scalping:
The indicator is optimized for scalping cryptocurrency markets.
____________
Future Enhancements:
• Integration of price action and candlestick patterns.
• A refined version tailored for trading futures contracts, specifically ES and MES in the stock market.
Dual Timeframe Stochastic Momentum Index w/buy sell signalsThis indicator combines momentum analysis across two timeframes to identify high-probability trading opportunities. It plots the Stochastic Momentum Index (SMI) for both the chart timeframe and a higher timeframe (default 10 minutes) to help traders align with the broader market trend.
Key Features
Displays SMI and its EMA for both timeframes
Background shading indicates favorable trading conditions
Signal dots mark potential entry points
Customizable parameters for fine-tuning
Signals Explained
Bullish Signals (Green Dots)
Appear when the chart timeframe SMI crosses above its EMA
Only trigger during periods when the higher timeframe shows:
SMI is above its EMA (increasing momentum)
SMI is between -40 and +40 (not overbought/oversold)
Bearish Signals (Red Dots)
Appear when the chart timeframe SMI crosses below its EMA
Only trigger during periods when the higher timeframe shows:
SMI is below its EMA (decreasing momentum)
SMI is between -40 and +40 (not overbought/oversold)
Settings
%K Length: Lookback period for SMI calculation (default: 10)
%D Length: Smoothing period for primary calculation (default: 3)
EMA Length: Smoothing period for signal line (default: 3)
Alternative Timeframe: Higher timeframe for trend analysis (default: 10 minutes)
Best Practices
Use higher timeframe signals to determine market bias
Wait for signal dots in the chart timeframe for entry timing
Avoid trades when higher timeframe SMI is in extreme zones (above 40 or below -40)
Consider additional confirmation from price action or other indicators
Note: This indicator combines trend and momentum analysis but should be used as part of a complete trading strategy that includes proper risk management.
SMI Ergodic Indicator/Oscillator▮ Introduction
The Stochastic Momentum Index Ergodic Indicator (SMII) is a technical analysis tool designed to predict trend reversals in the price of an asset.
It functions as a momentum oscillator, measuring the ratio of the smoothed price change to the smoothed absolute price change over a given number of previous periods.
The Ergodic SMI is based on the True Strength Index (TSI) and integrates a signal line, which is an exponential moving average (EMA) of the SMI indicator itself.
It provides a clearer picture of market trends than the traditional stochastic oscillator by incorporating the concept of "ergodicity", which helps remove market noise.
On ther other hand, the Stochastic Momentum Index Ergodic Oscillator (SMIO) is a histogram that measures the difference between TSI and it's signal line.
By default, in TradingView both SMII and SMIO are provided independently.
Here in this script these two indicators are combined, providing a more comprehensive view of price direction and market strength.
▮ Motivation: why another indicator?
The intrinsic value of this indicator lies in the fact that it allows fine adjustments in both calculation parameters, data source and visualization, features that are not present in the standard indicators or similar.
Also, trend lines breakouts and divergences detector were added.
▮ What to look for
When using the indicator, there are a few things to look out for.
First, look at the SMI signal line.
When the line crosses above -40, it is considered a buy signal, while the crossing below +40 is considered a sell signal.
Also, pay attention to divergences between the SMI and the price.
If price is rising but the SMI is showing negative divergence, it could indicate that momentum is waning and a reversal could be in the offing.
Likewise, if price is falling but the SMI is showing positive divergence, this could indicate that momentum is building and a reversal could also be in the offing.
Divergences can be considered in both indicator and/or histogram.
Examples:
▮ Notes
The indicator presented here offers both the "SMII" and the "SMIO", that is, the "Stochastic Momentum Index Ergodic Indicator" together with the "Stochastic Momentum Index Ergodic Oscillator" (histogram), as per the documentation described in reference links.
So it is important to highlight the differences in relation to my other indicator, Stochastic Momentum Index (SMI) Refurbished .
This last one is purely based on the **SMI**, which is implemented using smoothed ratio between the relative range and the high/low range.
Although they may seem the same in some situations, the calculation is actually different. The TSI tends to be more responsive at the expense of being noisier, while the SMI tends to be smoother. Which of these two indicators is best depends on the situation, the context, and the analyst's personal preference.
Please refer to reference links to more info.
▮ References
SMI documentation
SMII documentation
SMIO documentation
Stochastic RMIThe Relative Momentum Index (RMI) is a technical analysis indicator used to analyze the price movements of assets in a financial market. Similar to the RSI (Relative Strength Index), it helps measure the momentum and strength of the asset's price movements over the recent period. However, the RMI offers a "smoother" view, unlike the RSI. This means that there is less "noise" in the indicator.
As is known, the Stochastic RSI indicator is based on the RSI. What I did was to create a stochastic based on the RMI. If you compare this indicator with the "Stochastic RSI", you will see that there is no difference between them, except that the "Stochastic RMI" is more "smooth" and noiseless.
SMI Ergodic Indicator/Oscillator of Money Flow Index▮ Introduction
The Stochastic Momentum Index Ergodic (SMII) indicator is a technical analysis tool designed to predict trend reversals in the price of an asset.
It functions as a momentum oscillator, measuring the ratio of the smoothed price change to the smoothed absolute price change over a given number of previous periods.
The Ergodic SMI is based on the True Strength Index (TSI) and integrates a signal line, which is an exponential moving average (EMA) of the SMI indicator itself.
The Ergodic SMI oscillator provides a clearer picture of market trends than the traditional stochastic oscillator by incorporating the concept of 'ergodicity', which helps remove market noise.
On ther other hand, MFI (Money Flow Index) is a technical analysis indicator used to measure the inflow of money into an asset and thus help identify buying and selling pressure in a given financial instrument.
When these two indicators are combined, they can provide a more comprehensive view of price direction and market strength.
▮ Motivation: why another indicator?
By combining SMII with MFI, we can gain even more insights into the market.
One way to do this is to use the MFI as an input to the SMII, rather than just using price.
This means we are measuring momentum based on buying and selling pressure rather than just price.
Furthermore, there is the possibility of making several fine adjustments to both the calculation and visualization parameters that are not present in other indicators.
▮ What to look for
When using the SMII MFI indicator, there are a few things to look out for.
First, look at the SMII signal line.
When the line crosses above -40, it is considered a buy signal, while the crossing below +40 is considered a sell signal.
Also, pay attention to divergences between the SMII and the price.
If price is rising but the SMII is showing negative divergence, it could indicate that momentum is waning and a reversal could be in the offing.
Likewise, if price is falling but the SMII is showing positive divergence, this could indicate that momentum is building and a reversal could also be in the offing.
Divergences can be considered in both indicator and/or histogram.
Examples:
▮ Notes
The indicator presented here offers both the 'SMII' and the 'SMIO', that is, the 'Stochastic Momentum Index Ergodic Indicator' together with the 'Stochastic Momentum Index Ergodic Oscillator' (histogram), as per the documentation described in reference links.
So it is important to highlight the differences in relation to my other indicator, the 'Stochastic Momentum Index (SMI) of Money Flow Index (MFI)':
This last one is purely based on the SMI , which is implemented using SMA smoothing for the relative range and the high/low range.
Although they may seem the same in some situations, the calculation is actually different. The TSI tends to be more responsive at the expense of being noisier, while the SMI tends to be smoother. Which of these two indicators is best depends on the situation, the context, and the analyst's personal preference.
Please refer to reference links to more info.
▮ References
SMI documentation
SMII documentation
SMIO documentation
MFI documentation
Advanced Stochastic ForLoopAdvanced Stochastic ForLoop
OVERVIEW
Advanced Stochastic ForLoop is an improved version of Stochastic it is designed to calculate an array of values 1 or -1 depending if soruce for calculations is above or below basis.
It takes avereage of values over a range of lengths, providing trend signals smothed based on various moving averages in order to get rid of noise.
It offers flexibility with different signal modes and visual customizations.
TYPE OF SIGNALS
-FAST (MA > MA or MA > 0.99)
-SLOW (MA > 0)
-THRESHOLD CROSSING (set by user treshold for both directions)
-FAST THRESHOLD (when theres an change in signal by set margin e.g 0.4 -> 0.2 means bearsih when FT is set to 0.1, when MA is > 0.99 it will signal bullish, when MA < -0.99 it will signal bearish)
Generaly Lime color of line indicates Bullish, Fuchsia indicates Bearish.
This colors are not set in stone so you can change them in settings.
Alerts included when line color is:
-Bullish Trend, line color is lime
-Bearish Trend, line color is fuchsia
Credit
Idea for this script was from one of indicators created by www.tradingview.com
Warning
This indicator can be really noisy depending on the settings, signal mode so it should be used preferably as a part of an strategy not as a stand alone indicator
Remember the lower the timeframe you use the more noise there is.
No single indicator should be used alone when making investment decisions.
Adaptive RSI-Stoch with Butterworth Filter [UAlgo]The Adaptive RSI-Stoch with Butterworth Filter is a technical indicator designed to combine the strengths of the Relative Strength Index (RSI), Stochastic Oscillator, and a Butterworth Filter to provide a smooth and adaptive momentum-based trading signal. This custom-built indicator leverages the RSI to measure market momentum, applies Stochastic calculations for overbought/oversold conditions, and incorporates a Butterworth Filter to reduce noise and smooth out price movements for enhanced signal reliability.
By utilizing these combined methods, this indicator aims to help traders identify potential market reversal points, momentum shifts, and overbought/oversold conditions with greater precision, while minimizing false signals in volatile markets.
🔶 Key Features
Adaptive RSI and Stochastic Oscillator: Calculates RSI using a configurable period and applies a dual-smoothing mechanism with Stochastic Oscillator values (K and D lines).
Helps in identifying momentum strength and potential trend reversals.
Butterworth Filter: An advanced signal processing filter that reduces noise and smooths out the indicator values for better trend identification.
The filter can be enabled or disabled based on user preferences.
Customizable Parameters: Flexibility to adjust the length of RSI, the smoothing factors for Stochastic (K and D values), and the Butterworth Filter period.
🔶 Interpreting the Indicator
RSI & Stochastic Calculations:
The RSI is calculated based on the closing price over the user-defined period, and further smoothed to generate Stochastic Oscillator values.
The K and D values of the Stochastic Oscillator provide insights into short-term overbought or oversold conditions.
Butterworth Filter Application:
What is Butterworth Filter and How It Works?
The Butterworth Filter is a type of signal processing filter that is designed to have a maximally flat frequency response in the passband, meaning it doesn’t distort the frequency components of the signal within the desired range. It is widely used in digital signal processing and technical analysis to smooth noisy data while preserving the important trends in the underlying data. In this indicator, the Butterworth Filter is applied to the trigger value, making the resulting signal smoother and more stable by filtering out short-term fluctuations or noise in price data.
Key Concepts Behind the Butterworth Filter:
Filter Design: The Butterworth filter works by calculating weighted averages of current and past inputs (price or indicator values) and outputs to produce a smooth output. It is characterized by the absence of ripple in the passband and a smooth roll-off after the cutoff frequency.
Cutoff Frequency: The period specified in the indicator acts as a control for the cutoff frequency. A higher period means the filter will remove more high-frequency noise and retain longer-term trends, while a lower period means it will respond more to short-term fluctuations in the data.
Smoothing Process: In this script, the Butterworth Filter is calculated recursively using the following formula,
butterworth_filter(series float input, int period) =>
float wc = math.tan(math.pi / period)
float k1 = 1.414 * wc
float k2 = wc * wc
float a0 = k2 / (1 + k1 + k2)
float a1 = 2 * a0
float a2 = a0
float b1 = 2 * (k2 - 1) / (1 + k1 + k2)
float b2 = (1 - k1 + k2) / (1 + k1 + k2)
wc: This is the angular frequency, derived from the period input.
k1 and k2: These are intermediate coefficients used in the filter calculation.
a0, a1, a2: These are the feedforward coefficients, which determine how much of the current and past input values will contribute to the filtered output.
b1, b2: These are feedback coefficients, which determine how much of the past output values will contribute to the current output, effectively allowing the filter to "remember" past behavior and smooth the signal.
Recursive Calculation: The filter operates by taking into account not only the current input value but also the previous two input values and the previous two output values. This recursive nature helps it smooth the signal by blending the recent past data with the current data.
float filtered_value = a0 * input + a1 * prev_input1 + a2 * prev_input2
filtered_value -= b1 * prev_output1 + b2 * prev_output2
input: The current input value, which could be the trigger value in this case.
prev_input1, prev_input2: The previous two input values.
prev_output1, prev_output2: The previous two output values.
This means the current filtered value is determined by the combination of:
A weighted sum of the current input and the last two inputs.
A correction based on the last two output values to ensure smoothness and remove noise.
In conclusion when filter is enabled, the Butterworth Filter smooths the RSI and Stochastic values to reduce market noise and highlight significant momentum shifts.
The filtered trigger value (post-Butterworth) provides a cleaner representation of the market's momentum.
Cross Signals for Trade Entries:
Buy Signal: A bullish crossover of the K value above the D value, particularly when the values are below 40 and when the Stochastic trigger is below 1 and the filtered trigger is below 35.
Sell Signal: A bearish crossunder of the K value below the D value, particularly when the values are above 60 and when the Stochastic trigger is above 99 and the filtered trigger is above 90.
These signals are plotted visually on the chart for easy identification of potential trading opportunities.
Overbought and Oversold Zones:
The indicator highlights the overbought zone when the filtered trigger surpasses a specific threshold (typically above 100) and the oversold zone when it drops below 0.
The color-coded fill areas between the Stochastic and trigger lines help visualize when the market may be overbought (likely a reversal down) or oversold (potential reversal up).
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.