Inversion Fair Value Gap Oscillator | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Inversion Fair Value Gap Oscillator (IFVG Oscillator) indicator! This unique indicator identifies and tracks Inversion Fair Value Gaps (IFVGs) in price action, presenting them in an oscillator format to reveal market momentum based on IFVG strength. It highlights bullish and bearish IFVGs while enabling traders to adjust detection sensitivity and apply volume and ATR-based filters for more precise setups. For more information about the process, check the "📌 HOW DOES IT WORK" section.
Features of the new IFVG Oscillator:
Fully Customizable FVG & IFVG Detection
An Oscillator Approach To IFVGs
Divergence Markers For Potential Reversals
Alerts For Divergence Labels
Customizable Styling
📌 HOW DOES IT WORK?
Fair Value Gaps are price gaps within bars that indicate inefficiencies, often filled as the market retraces. An Inversion Fair Value Gap is created in the opposite direction once a FVG gets invalidated. The IFVG Oscillator scans historical bars to identify these gaps, then filters them based on ATR or volume. Each IFVG is marked as bullish or bearish according to the opposite direction of the original FVG that got invalidated.
An oscillator is calculated using recent IFVGs with this formula :
1. The Oscillator starts as 0.
2. When a new IFVG Appears, it contributes (IFVG Width / ATR) to the oscillator of the corresponding type.
3. Each confirmed bar, the oscillator is recalculated as OSC = OSC * (1 - Decay Coefficient)
The oscillator aggregates and decays past IFVGs, allowing recent IFVG activity to dominate the signal. This approach emphasizes current market momentum, with oscillations moving bullish or bearish based on IFVG intensity. Divergences are marked where IFVG oscillations suggest potential reversals. Bullish Divergence conditions are as follows :
1. The current candlestick low must be the lowest of last 25 bars.
2. Net Oscillator (Shown in gray line by default) must be > 0.
3. The current Bullish IFVG Oscillator value should be no more than 0.1 below the highest value from the last 25 bars.
Traders can use divergence signals to get an idea of potential reversals, and use the Net IFVG Oscillator as a trend following marker.
🚩 UNIQUENESS
The Inversion Fair Value Gap Oscillator stands out by converting IFVG activity into an oscillator format, providing a momentum-based visualization of IFVGs that reveals market sentiment dynamically. Unlike traditional indicators that statically mark IFVG zones, the oscillator decays older IFVGs over time, showing only the most recent, relevant activity. This approach allows for real-time insight into market conditions and potential reversals based on oscillating IFVG strength, making it both intuitive and powerful for momentum trading.
Another unique feature is the combination of customizable ATR and volume filters, letting traders adapt the indicator to match their strategy and market type. You can also set-up alerts for bullish & bearish divergences.
⚙️ SETTINGS
1. General Configuration
Decay Coefficient -> The decay coefficient for oscillators. Increasing this setting will result in oscillators giving the weight to recent IFVGs, while decreasing it will distribute the weight equally to the past and recent IFVGs.
2. Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
3. Inversion Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for IFVG Zone Invalidation.
4. Style
Divergence Labels On -> You can switch divergence labels to show up on the chart or the oscillator plot.
Oscillators
RSI Trend IndicatorKey features:
Calculation and visualization of RSI :
RSI Length : You set a custom RSI length (default 14) which gives users the flexibility to adjust the period according to their trading style.
Plotting RSI : The RSI is plotted on the chart with a blue line, making it easy to see the RSI value at any given moment.
Overbought/Oversold Levels : Overbought and oversold levels are visually represented at 70 and 30 respectively with red and green lines, which helps traders spot potential reversal zones. This is a key feature as these levels indicate when the market may be overextended.
Trend Identification:
Uptrend Signal : The indicator detects uptrends when the RSI crosses above the oversold level (30). This is a clear signal of potential buying opportunities as the market may be moving from oversold conditions to an uptrend.
Downtrend Signal : It also identifies downtrends when the RSI crosses below the overbought level (70), signaling potential selling opportunities when the market may move from overbought conditions to a bearish phase.
Background lighting:
Using background color changes is an effective way to visually indicate the direction of the trend. A green background indicates an uptrend, while a red background indicates a downtrend. This feature improves clarity, especially when analyzing multiple time frames or busy charts.
Transparency : The background color has a level of transparency (85) that does not completely obscure the chart, ensuring that price action remains visible while giving the user an indication of market direction.
Signal schedule:
Buy and Sell Signals : The BUY label appears below the bar when an uptrend is detected and the SELL label appears above the bar when a downtrend is detected. These signals make it easy for traders to spot potential entry and exit points without constantly watching the chart.
The signal text is color coded to match the trend direction, improving readability of the indicator.
Warning conditions:
Alerts are set when the RSI begins an uptrend or downtrend, providing traders with notifications of important market changes. This is especially useful for those who want to automate their trading strategy or stay informed without constantly looking at the chart.User experience:
Customization : Users can adjust RSI length and overbought/oversold levels to suit their individual trading preferences. This flexibility makes it adaptable to different trading styles (eg scalping, day trading, swing trading).
Visual Clarity : The use of different colors (blue for RSI, red/green for overbought/oversold levels) and labels makes the indicator easy to read and interpret. Additionally, changing the background color helps users quickly identify the current trend without having to analyze numbers or lines. Pros:
Clear Signals: The indicator provides clear buy and sell signals based on RSI crossovers, helping traders identify potential opportunities at a glance.
Visual Trend Indicators: Changing background color and label positions are excellent visual cues, especially for beginners.
Alert System: Built-in alerts ensure traders don't miss important trend reversals or entries.
Customizability: With adjustable RSI length parameters and overbought/oversold levels, users can tailor the indicator to their trading style.
Simple yet effective: The indicator keeps things simple by using the power of RSI to detect trends without overwhelming users with too many technical indicators. Cons:
Lagging Indicator: As with all RSI based indicators, this tool can lag in highly volatile markets as the RSI is based on past price data. This can lead to delayed signals, especially in fast-moving markets.
Overbought/Oversold Traps: While the RSI can be a useful tool for spotting potential reversals, it can sometimes signal early, leading to false buy or sell signals. For example, if the RSI remains overbought for an extended period of time during strong uptrends, a sell signal may be triggered prematurely.
No Trend Confirmation: The RSI alone does not confirm the strength of the trend. Combining this with other trend-following indicators such as moving averages (EMA, SMA) or MACD can improve its reliability. Let me know if this tool helped improve your trading! Happy trading!
MTF TREND/RSIMTF TREND ANALYSIS
JUST A THEORY
USING RSI FROM xdecow as well for just an added confluence
someone wanted to use this so i decided to publish for just open source use not sure how accurate any of this is
Probabilistic Trend Oscillator** MACD PLOTS ARE NOT PART OF THE INDICATOR IT IS FOR COMPARSION**
The "Probabilistic Trend Oscillator" is a technical indicator designed to measure trend strength and direction by analyzing price behavior relative to a moving average over both long-term and short-term periods. This indicator incorporates several innovative features, including probabilistic trend detection, enhanced strength scaling, and percentile-based thresholds for identifying potential trend reversals.
Key Components
Inputs:
The indicator allows users to customize several key parameters:
EMA Length defines the period for the Exponential Moving Average (EMA), which serves as a baseline to classify trend direction.
Long and Short Term Lengths provide customizable periods for analyzing trend strength over different timeframes.
Signal Line Length is used to smooth the trend strength data, helping users spot more reliable trend signals.
Extreme Value Lookback Length controls how far back to look when calculating percentile thresholds, which are used to identify overbought and oversold zones.
Trend Classification:
The indicator categorizes price behavior into four conditions:
Green: Price closes above the open and is also above the EMA, suggesting a strong upward trend.
Red: Price closes below the open but is above the EMA, indicating weaker upward pressure.
Green1: Price closes above the open but remains below the EMA, representing weak upward movement.
Red1: Price closes below the open and the EMA, signaling a strong downward trend.
Trend Strength Calculation:
The script calculates long-term and short-term trend values based on the frequency of these trend conditions, normalizing them to create probabilistic scores.
It then measures the difference between the short-term and long-term trend values, creating a metric that reflects the intensity of the current trend. This comparison provides insight into whether the trend is strengthening or weakening.
Enhanced Trend Strength:
To emphasize significant movements, the trend strength metric is scaled by the average absolute price change (distance between close and open prices). This creates an "enhanced trend strength" value that highlights periods with high momentum.
Users can toggle between two variations of trend strength:
Absolute Trend Strength is a straightforward measure of the trend's force.
Relative Trend Strength accounts for deviations between short term and long term values, focusing on how current price action differs from a long term behavior.
Percentile-Based Thresholds:
The indicator calculates percentile thresholds over the specified lookback period to mark extreme values:
The 97th and 3rd percentiles act as overbought and oversold zones, respectively, indicating potential reversal points.
Intermediate levels (75th and 25th percentiles) are added to give additional context for overbought or oversold conditions, creating a probabilistic range.
Visualization:
The selected trend strength value (either absolute or relative) is plotted in orange.
Overbought (green) and oversold (red) percentiles are marked with dashed lines and filled in blue, highlighting potential reversal zones.
The signal line—a smoothed EMA of the trend strength—is plotted in white, helping users to confirm trend changes.
A gray horizontal line at zero acts as a baseline, further clarifying the strength of upward vs. downward trends.
Summary
This indicator provides a flexible, probabilistic approach to trend detection, allowing users to monitor trend strength with customizable thresholds and lookback periods. By combining percentile-based thresholds with enhanced trend strength scaling, it offers insights into market reversals and momentum shifts, making it a valuable tool for both trend-following and counter-trend trading strategies.
Rikki's DikFat Buy/Sell OscillatorAttached we have a very simple Buy/Sell Oscillator.
This script will color candles red when price is bear trending and green when price is bull trending.
I have taken elements of our CCI color signaler indicator found here: to make this very simple and easy to read candlestick color oscillator for traders both new and seasoned.
The the red candles color red as a result of the fuchsia CCI condition on the previously mentioned indicator.
The green candles color as a result of the black CCI color condition on the previously mentioned script.
The script was modified to run the black CCI condition anywhere the fuchsia condition is not displayed and the colors were changed to red and green for a clean visual representation on the chart.
I have not quite got the wick and border colors correct. For some reason they keep reverting when you click out of the script setting. Will update once complete.
The code and script are public. Enjoy :)
Stochastic RSI with Golden Entries/ExitsStochastic RSI with gold entries/exits
Review
The Stochastic RSI with Golden Entries/Exits indicator is designed to provide traders with high probability entry and exit points based on the Stochastic RSI. By combining RSI and stochastic indicators, this tool aims to capture overbought and oversold conditions in a precise manner, allowing traders to spot potential reversal points with precision.
Main features and functionality
Stochastic RSI Calculation:
The indicator calculates the Relative Strength Index (RSI) and applies a stochastic function to the RSI values. This approach provides a nuanced view of overbought and oversold conditions, helping traders identify turning points even in trending markets.
The main stochastic RSI parameters are:
K Line (blue) – A smoothed version of the Stochastic RSI %K line that helps filter out noise.
D line (orange) – additional smoothing of the K line used as a signal line.
These lines can be customized through parameters allowing adjustments based on trading style or market conditions.
Golden entry and exit signals:
Golden Entry: The script identifies potential buy signals (golden entries) when the K line crosses above the D line below the oversold level (20). These conditions are often associated with bullish reversals.
Gold Exit: Sell signals (gold exits) occur when the K line crosses below the D line above the overbought level (80), signaling a possible bearish reversal.
Visual signals (points) are displayed on the graph:
Green circle below bar for gold entry points.
Red circle above bar for Golden Exit points.
Visual improvements:
Bands and Middle Line: The upper (80) and lower (20) bands provide reference points for overbought and oversold conditions, while the middle band (50) helps measure the neutral zone.
Background shading: The area between the 80 and 20 bands is shaded, making it easier to identify areas where the Stochastic RSI may signal extreme conditions.
Background lighting for entries: The background turns soft yellow when the Golden Entry condition is met, helping traders easily spot potential buying opportunities.
How to use
Golden Entry: Use the green circles to spot potential long (buy) entries when the Stochastic RSI shows an oversold reversal.
Golden Exit: Use the red circles to identify potential short (sell) signals when the Stochastic RSI signals an overbought reversal.
Trend Confirmation: Combine this indicator with other trend following tools such as moving averages or price action signals to confirm trade entries and exits.
Customization options
K and D smoothing periods: Adjust the smoothness of the K and D lines to adapt to different time frames and market conditions.
RSI and Stochastic Lengths: Fine-tune RSI lengths and Stochastic calculations to tailor the sensitivity of the indicator.
Final thoughts
The Stochastic RSI with Golden Entries/Exits indicator offers a unique combination of RSI and stochastic analysis, highlighting potential reversal points with simple visual cues. Whether you are a day trader or a swing trader, this tool can help you refine your entry and exit strategies, especially in volatile markets.
Let me know if you find this indicator useful, or feel free to suggest features you'd like to see added. Happy trading!
Alex JMA RSX Clone with Price & Divergence [LazyBear]Indicator Description:
RSX Indicator (RSXC_LB): This script is based on a clone of the JMA RSX (Relative Strength Index clone by LazyBear). It is a momentum-based indicator that helps identify overbought and oversold levels, as well as potential trend reversals.
Functional Changes:
Convergence is now marked with a white line on the RSX plot.
Bullish Divergence is marked with a green line, indicating potential upward movement.
Bearish Divergence is marked with a red line, indicating potential downward movement.
The default state is marked with a blue line.
Strong Divergences (both bullish and bearish) are highlighted with triangle markers on the chart.
Updated Features:
The script now visualizes convergence and divergence more clearly using distinct colors:
White: Convergence (indicates potential trend strength).
Green: Bullish divergence (possible price increase).
Red: Bearish divergence (possible price decrease).
Blue: Neutral/default state.
Triangle markers indicate strong divergences, making it easier for the user to spot critical moments.
This visual enhancement aims to provide clearer and more intuitive signals for traders using the RSX indicator, helping them identify trend changes and reversals more effectively.
30 min Aroon Datlı StrategyUse 30 minute with 100 SMA. If it buys above 100 SMA a long trade will be entered. If it sells below 100 SMA short trade will be entered.
Swiss Army Knife Technical Indicator by OthoThis indicator is a powerful tool designed for traders who want a clear, multi-timeframe perspective on market trends. It combines multiple features into one easy-to-read tool, providing insights into market direction, trend strength, and key price action patterns. The indicator also highlights areas of bullish and bearish runs, helping users quickly identify potential opportunities.
Features
Multi-Timeframe Bias Analysis:
This feature calculates trend bias across various timeframes (12-month, monthly, weekly, daily, 4-hour, and 1-hour).
The overall "Current Bias Preference" (Bullish, Bearish, or Neutral) summarizes the market’s direction.
A "Strength of Bias" percentage shows the confidence in the trend, from 0% to 100%.
Bullish/Bearish Run Zones:
The indicator highlights bullish and bearish run periods with green and red background colors, respectively.
These areas represent periods of strong directional moves and help you visually identify trends without cluttering the chart with stop-loss levels.
Once a trend is identified, the timeline remains on the chart as a visual reminder of past market movement, making it easy to reference recent bullish or bearish runs.
RSI Condition Indicator:
The "RSI Indicator" provides a reading of overbought/oversold levels as a percentage (e.g., “Overbought 70%”).
This helps gauge market momentum and identify potential reversal points.
Candle Pattern Recognition:
The tool identifies key candle patterns, including Doji, Hammer, Bullish Engulfing, and Bearish Engulfing.
Patterns are labeled directly on the chart, helping traders quickly spot important price action signals.
How to Use It
Identify Market Direction: Check the "Current Bias Preference" and "Strength of Bias" to determine the overall trend. For instance, if all timeframes align as "Bullish" with a high strength percentage, this suggests a strong uptrend.
Use Bullish/Bearish Run Zones: The green and red background colors highlight past bullish and bearish runs, allowing you to see recent directional momentum without cluttering the chart.
Monitor RSI Levels: The RSI Indicator displays overbought/oversold conditions as a percentage, helping you assess potential reversals or continuation signals.
Watch for Candle Patterns: Look out for Doji, Hammer, and Engulfing patterns, which may signal entry or exit points when aligned with the overall trend.
This tool provides a structured way to assess trends, spot entry signals, and visualize past market movements, making it an excellent companion for any trader’s toolkit.
Stochastic RSI V1Stokastik RSI V1 - Kesişim noktaları işaretlendi, aşırı alım ve satım bölgeleri oluşturuldu. Çok ta önemli olmayabilecek değişiklikler işte...
Combined HalfTrend + Willy EMA StrategyAl dene /@version=5
indicator("Combined HalfTrend + Willy EMA Strategy", overlay=true)
// HalfTrend Ayarları
amplitude = input(2, title="HalfTrend Amplitude")
channelDeviation = input(2, title="HalfTrend Channel Deviation")
emaLength = input(12, title="EMA Length") // Williams %R için EMA uzunluğu
wrLength = input(45, title="Williams %R Length") // Williams %R uzunluğu
// HalfTrend Değişkenleri
var int trend = 0
var int nextTrend = 0
var float maxLowPrice = nz(low , low)
var float minHighPrice = nz(high , high)
var float up = 0.0
var float down = 0.0
float atr2 = ta.atr(100) / 2
float arrowUp = na
EMA Crossover with RSI FilterEMA Crossover with RSI
Overview:
This strategy capitalizes on trend shifts by using a fast EMA (6-period) crossing a slow EMA (200-period) combined with an RSI filter for confirmation. It is optimized for a 4-hour timeframe to capture medium-term trends with fewer noise signals. Starting with an initial capital of $100, it reinvests 100% of equity in each trade and includes a 0.05% commission for realistic backtesting.
Strategy Setup:
Suggested Timeframe: 4-hour chart for balanced trend-capturing and signal accuracy.
Initial Capital: $100
Position Size: 100% of current equity per trade.
Commission: 0.05% per trade to simulate actual trading costs.
Indicators Used:
EMA (Exponential Moving Average):
6-period EMA: Tracks short-term price movements.
200-period EMA: Represents long-term trend direction.
RSI (Relative Strength Index):
14-period RSI: Adds a momentum filter to avoid false entries.
Entry and Exit Conditions:
Long Entry Condition:
Triggered when the 6-period EMA crosses above the 200-period EMA (bullish crossover).
RSI must be above 50 to confirm positive momentum.
When both conditions are met, a long position is opened.
Exit Condition:
The long position closes when the 6-period EMA crosses below the 200-period EMA (bearish crossover) and RSI is below 50, signaling a trend reversal.
Chart Display:
EMA Plots:
6-period EMA in green for short-term trends.
200-period EMA in red for long-term trend direction.
The 4-hour timeframe and commission consideration allow for realistic backtesting with an accurate view of net performance over time.
Average Yield InversionDescription:
This script calculates and visualizes the average yield curve spread to identify whether the yield curve is inverted or normal. It takes into account short-term yields (1M, 3M, 6M, 2Y) and long-term yields (10Y, 30Y).
Positive values: The curve is normal, indicating long-term yields are higher than short-term yields. This often reflects economic growth expectations.
Negative values: The curve is inverted, meaning short-term yields are higher than long-term yields, a potential signal of economic slowdown or recession.
Key Features:
Calculates the average spread between long-term and short-term yields.
Displays a clear graph with a zero-line reference for quick interpretation.
Useful for tracking macroeconomic trends and potential market turning points.
This tool is perfect for investors, analysts, and economists who need to monitor yield curve dynamics at a glance.
Depth Trend Indicator - RSIDepth Trend Indicator - RSI
This indicator is designed to identify trends and gauge pullback strength by combining the power of RSI and moving averages with a depth-weighted calculation. The script was created by me, Nathan Farmer and is based on a multi-step process to determine trend strength and direction, adjusted by a "depth" factor for more accurate signal analysis.
How It Works
Trend Definition Using RSI: The RSI Moving Average ( rsiMa ) is calculated to assess the current trend, using customizable parameters for the RSI Period and MA Period .
Trends are defined as follows:
Uptrend : RSI MA > Critical RSI Value
Downtrend : RSI MA < Critical RSI Value
Pullback Depth Calculation: To measure pullback strength relative to the current trend, the indicator calculates a Depth Percentage . This is defined as the portion of the gap between the moving average and the price covered by a pullback.
Depth-Weighted RSI Calculation: The Depth Percentage is then applied as a weighting factor on the RSI Moving Average , giving us a Weighted RSI line that adjusts to the depth of pullbacks. This line is rather noisy, and as such we take a moving average to smooth out some of the noise.
Key Parameters
RSI Period : The period for RSI calculation.
MA Period : The moving average period applied to RSI.
Price MA Period : Determines the SMA period for price, used to calculate pullback depth.
Smoothing Length : Length of smoothing applied to the weighted RSI, creating a more stable signal.
RSI Critical Value : The critical value (level) used in determining whether we're in an uptrend or a downtrend.
Depth Critical Value : The critical value (level) used in determining whether or not the depth weighted value confirms the state of a trend.
Notes:
As always, backtest this indicator and modify the parameters as needed for your specific asset, over your specific timeframe. I chose these defaults as they worked well on the assets I look at, but it is likely you tend to look at a different group of assets over a different timeframe than what I do.
Large pullbacks can create large downward spikes in the weighted line. This isn't graphically pleasing, but I have tested it with various methods of normalization and smoothing and found the simple smoothing used in the indicator to be best despite this.
Custom AO with Open Difference**Custom AO with Open Difference Indicator**
This indicator, *Custom AO with Open Difference*, is designed to help confirm trend direction based on the relationship between the daily open price and recent 4-hour open prices. It calculates the Awesome Oscillator (AO) based on the difference between the daily open price and the average of the previous six 4-hour open prices. This approach provides insight into whether the current open price is significantly diverging from recent short-term opens, which can indicate a trend shift or continuation.
### Technical Analysis and Features
1. **Trend Confirmation**: By comparing the daily open with the mean of six previous 4-hour open prices, this indicator helps identify trends. When the current daily open is below the average of recent opens, the AO value will plot as green, signaling potential upward momentum. Conversely, if the daily open is above the recent average, the histogram will plot red, suggesting possible downward momentum.
2. **Non-Repainting**: Since it relies on completed 4-hour and daily open prices, this indicator does not repaint, ensuring that all values remain fixed after the close of each period. This non-repainting feature makes it suitable for backtesting and reliable for trend confirmation without fear of historical changes.
3. **AO Mean Calculation**: The indicator calculates the average of six previous 4-hour open prices, providing a smoothed value to reduce short-term noise. This helps in identifying meaningful deviations, making the AO values a more stable basis for trend determination than using just the latest 4-hour or daily open.
4. **Histogram for Visual Clarity**: The indicator is displayed as a histogram, making it easy to identify trend changes visually. If the AO bar turns green, it’s a signal that the 4-hour average is below the daily open, suggesting an uptrend or bullish momentum. Red bars indicate that the daily open is above the recent 4-hour averages, potentially signaling a downtrend or bearish momentum.
### Practical Application
The *Custom AO with Open Difference* is a versatile tool for confirming the open price trend without needing complex oscillators or lagging indicators. Traders can use this tool to gauge the market sentiment by observing open price variations and use it as a foundation for decision-making in both short-term and daily timeframes. Its non-repainting nature adds reliability for traders using this indicator as part of a broader trading strategy.
MTF CCI Scanner [KaninFx]MTF CCI Scanner (Multi-Timeframe CCI Scanner) is an indicator that analyzes CCI (Commodity Channel Index) values across multiple timeframes simultaneously, from M1, M3, M5, M15, M30, H1, H4, to D1. It displays results in a table format showing CCI values and states (Overbought, Oversold, Neutral), allowing traders to quickly visualize buying-selling pressure across all timeframes.
On Balance Volume Oscillator of Trading Volume TrendOn Balance Volume Oscillator of Trading Volume Trend
Introduction
This indicator, the "On Balance Volume Oscillator of Trading Volume Trend," is a technical analysis tool designed to provide insights into market momentum and potential trend reversals by combining the On Balance Volume (OBV) and Relative Strength Index (RSI) indicators.
Calculation and Methodology
* OBV Calculation: The indicator first calculates the On Balance Volume, which is a cumulative total of the volume of up days minus the volume of down days. This provides a running tally of buying and selling pressure.
* RSI of OBV: The RSI is then applied to the OBV values to smooth the data and identify overbought or oversold conditions.
* Exponential Moving Averages (EMAs): Two EMAs are calculated on the RSI of OBV. A shorter-term EMA (9-period in this case) and a longer-term EMA (100-period) are used to generate signals.
Interpretation and Usage
* EMA Crossovers: When the shorter-term EMA crosses above the longer-term EMA, it suggests increasing bullish momentum. Conversely, a downward crossover indicates weakening bullish momentum or increasing bearish pressure.
* RSI Divergences: Divergences between the price and the indicator can signal potential trend reversals. For example, if the price is making new highs but the indicator is failing to do so, it could be a bearish divergence.
* Overbought/Oversold Conditions: When the RSI of OBV is above 70, it suggests the market may be overbought and a potential correction could be imminent. Conversely, when it is below 30, it suggests the market may be oversold.
Visual Representation
The indicator is plotted on a chart with multiple lines and filled areas:
* Two EMAs: The shorter-term EMA and longer-term EMA are plotted to show the trend of the OBV.
* Filled Areas: The area between the two EMAs is filled with a color to indicate the strength of the trend. The color changes based on whether the shorter-term EMA is above or below the longer-term EMA.
* RSI Bands: Horizontal lines at 30 and 70 mark the overbought and oversold levels for the RSI of OBV.
Summary
The On Balance Volume Oscillator of Trading Volume Trend provides a comprehensive view of market momentum and can be a valuable tool for traders. By combining the OBV and RSI, this indicator helps identify potential trend reversals, overbought and oversold conditions, and the strength of the current trend.
Note: This indicator should be used in conjunction with other technical analysis tools and fundamental analysis to make informed trading decisions.
CCI Threshold StrategyThe CCI Threshold Strategy is a trading approach that utilizes the Commodity Channel Index (CCI) as a momentum indicator to identify potential buy and sell signals in financial markets. The CCI is particularly effective in detecting overbought and oversold conditions, providing traders with insights into possible price reversals. This strategy is designed for use in various financial instruments, including stocks, commodities, and forex, and aims to capitalize on price movements driven by market sentiment.
Commodity Channel Index (CCI)
The CCI was developed by Donald Lambert in the 1980s and is primarily used to measure the deviation of a security's price from its average price over a specified period.
The formula for CCI is as follows:
CCI=(TypicalPrice−SMA)×0.015MeanDeviation
CCI=MeanDeviation(TypicalPrice−SMA)×0.015
where:
Typical Price = (High + Low + Close) / 3
SMA = Simple Moving Average of the Typical Price
Mean Deviation = Average of the absolute deviations from the SMA
The CCI oscillates around a zero line, with values above +100 indicating overbought conditions and values below -100 indicating oversold conditions (Lambert, 1980).
Strategy Logic
The CCI Threshold Strategy operates on the following principles:
Input Parameters:
Lookback Period: The number of periods used to calculate the CCI. A common choice is 9, as it balances responsiveness and noise.
Buy Threshold: Typically set at -90, indicating a potential oversold condition where a price reversal is likely.
Stop Loss and Take Profit: The strategy allows for risk management through customizable stop loss and take profit points.
Entry Conditions:
A long position is initiated when the CCI falls below the buy threshold of -90, indicating potential oversold levels. This condition suggests that the asset may be undervalued and due for a price increase.
Exit Conditions:
The long position is closed when the closing price exceeds the highest price of the previous day, indicating a bullish reversal. Additionally, if the stop loss or take profit thresholds are hit, the position will be exited accordingly.
Risk Management:
The strategy incorporates optional stop loss and take profit mechanisms, which can be toggled on or off based on trader preference. This allows for flexibility in risk management, aligning with individual risk tolerances and trading styles.
Benefits of the CCI Threshold Strategy
Flexibility: The CCI Threshold Strategy can be applied across different asset classes, making it versatile for various market conditions.
Objective Signals: The use of quantitative thresholds for entry and exit reduces emotional bias in trading decisions (Tversky & Kahneman, 1974).
Enhanced Risk Management: By allowing traders to set stop loss and take profit levels, the strategy aids in preserving capital and managing risk effectively.
Limitations
Market Noise: The CCI can produce false signals, especially in highly volatile markets, leading to potential losses (Bollinger, 2001).
Lagging Indicator: As a lagging indicator, the CCI may not always capture rapid market movements, resulting in missed opportunities (Pring, 2002).
Conclusion
The CCI Threshold Strategy offers a systematic approach to trading based on well-established momentum principles. By focusing on overbought and oversold conditions, traders can make informed decisions while managing risk effectively. As with any trading strategy, it is crucial to backtest the approach and adapt it to individual trading styles and market conditions.
References
Bollinger, J. (2001). Bollinger on Bollinger Bands. New York: McGraw-Hill.
Lambert, D. (1980). Commodity Channel Index. Technical Analysis of Stocks & Commodities, 2, 3-5.
Pring, M. J. (2002). Technical Analysis Explained. New York: McGraw-Hill.
Tversky, A., & Kahneman, D. (1974). Judgment under uncertainty: Heuristics and biases. Science, 185(4157), 1124-1131.
RTI Thresholds Index | mad_tiger_slayerOverview of the Script
The Relative Trend Index (RTI) Threshold Index is a custom indicator for TradingView that enhances a Relative Trend Index (RTI) . The RTI is designed to reflect the market’s trend strength by comparing the current price to dynamically calculated upper and lower trend boundaries. Additionally, the indicator includes overbought and oversold thresholds, and Trend-coded signals to visually represent market conditions for easier analysis. The RTI Threshold Index is created and meant for long term investments targeted for longer swing trades over a few months to years.
How Do Investors Use the RTI Trend Index?
In the provided chart image, the indicator is displayed on a Bitcoin price chart. Here’s what each visual component represents:
INTENDED USES
The RTI Threshold Index is NOT intended for SCALPING.
With the nature of its components and calculations. This indicator will give false signals when the Timeframe is too low. The best intended use for high-quality signals are above the 12hr timeframes (Note: Coded to be used above 1 Day Timeframes)
The RTI Threshold Index is a TREND-FOLLOWING and MEAN REVERTING INDICATOR . With the explanation below of the image you can see both Trend-Following and Mean Reversion Uses.
A VISUAL REPRESENTATION INTENDED USES
Relative Trend Index Line (Green/Red): The main RTI line changes colors based on long or short conditions, providing an immediate visual cue of the trend direction. This conditional state enter long when the RTI is greater than the long threshold and will not enter short until it is less than the short threshold. (vice versa) When the RTI is less than the short threshold and will not enter long until it is greater than the long threshold.
EMA of RTI: A smoothed version of the RTI in yellow for more stable trend analysis. This EMA can be used for LONGER TERM trends. When the smoothed RTI is above 50, investors can assume that the trend will be in a trending state. Because this is slower than the RTI, you will get slower entries and slower exits.
Threshold Lines: Green and red lines for long and short thresholds, along with dashed lines for overbought and oversold levels. These lines can be calibrated to allow the RTI to enter a long trending or short trending state. The lower the value is for Long Threshold line , it will enter a long trend faster. The higher the value for Short Threshold Line , it will exit faster. We can also set Overbought and Oversold Thresholds. With the RTI entering above the Overbought Threshold line, Investors can assume that the environment is getting heated or is overbought. Same for oversold with the RTI entering below the Oversold Threshold line, Investors can assume that the environment is getting heated or is overbought.
Gradient Background: Shaded overbought and oversold areas improve readability by distinguishing these zones. This coloring of the shaded area tells us the oversold and overbought levels.
Colored Candles: Candles change color based on the RTI condition, aligning the price action visually with the trend status. The Green symbolizes a long state while red symbolizes a short state.
__________________________________________________________________________________
The indicator's primary elements include:
Input Parameters: Configurable settings for trend length, sensitivity, moving average (MA) period, thresholds, and overbought/oversold levels.
RTI Calculation: Computation of trend boundaries and the RTI value based on the price's position within these boundaries.
Visual Components: Horizontal threshold lines, plotted RTI values, color-coded candles, and gradient fills for overbought and oversold zones.
1. Input Parameters
The script includes several configurable inputs, allowing users to customize the indicator’s sensitivity and behavior according to market conditions:
Trend Length: Controls the number of data points for trend calculations. Higher values produce a smoother, less responsive trend, while lower values make the trend more sensitive to recent price changes.
Trend Sensitivity: Sets the sensitivity by defining the upper and lower percentiles for the trend boundaries. Higher sensitivity values make the RTI less reactive, while lower values increase responsiveness.
MA length: Defines the period for the Exponential Moving Average (EMA) applied to the RTI, smoothing its output.
longThreshold and shortThreshold: Set the levels for entering long and short positions. The RTI crossing above longThreshold or below shortThreshold signals a long or short condition, respectively.
Overbought and oversold thresholds: When RTI exceeds overbought or falls below oversold, it indicates overbought or oversold market conditions.
2. Relative Trend Index (RTI) Calculation
The RTI is calculated by dynamically setting upper and lower trend boundaries:
Upper Trend and Lower Trend: Calculated by adding and subtracting the standard deviation of the closing price to/from the close, providing a measure of price variation.
upper array and Lower Arrays : Arrays that hold the upper and lower trend values over the specified trend length period.
Sorting and Indexing: After sorting these arrays, the values at specific percentiles (based on trend sensitivity) are selected as UpperTrend and LowerTrend.
RTI formula: The RTI is calculated by normalizing the close price within the range of UpperTrend and LowerTrend. This yields a percentage that reflects the price's relative position within the trend range.
3. Threshold and Signal Lines
Several horizontal lines mark key threshold levels:
midline: A dashed line at 50, marking the RTI midpoint.
overbought and oversold: Dashed lines for the overbought and oversold levels as set by overbought and oversold.
long hline and short hline: Solid lines marking the longThreshold and shortThreshold levels for entering long and short trades. They are colored Green for long threshold and Red for short threshold
4. Long and Short Conditions
The script defines long and short conditions based on the RTI’s position relative to the longThreshold and shortThreshold:
isLong: Set to true when the RTI exceeds longThreshold, signaling a long condition.
isShort: Set to true when the RTI drops below shortThreshold, signaling a short condition. overboughtcandles and oversoldcandles: Boolean variables that indicate when the RTI crosses the overbought or oversold thresholds, enhancing visual feedback.
5. Color Coding
Color-coded elements help to visually indicate the RTI's current state:
rtiColor: Sets the RTI line color based on the long or short condition (green for long, red for short).
obosColor: Colors specific candles in the overbought (yellow) and oversold (purple) regions, adding clarity to these conditions.
6. Plotting and Visualization
The following components display the RTI indicator and its conditions visually:
RTI and EMA Plot: The RTI line is plotted alongside an EMA line for smooth trend observation. The RTI line uses the conditional colors to indicate market conditions.
Background Gradient Fill: Shaded areas between the overbought and oversold levels highlight these zones in the background.
Colored Candles: Candles on the price chart are color-coded based on the RTI condition (green for long, red for short), making it easy to see trend direction changes.
Overbought and Oversold Gradient Fill: Gradient fills are applied to the overbought and oversold regions, creating a visual effect when the RTI reaches extreme levels.
Conclusion
The RTI Threshold Indicator is a powerful tool for assessing trend strength and market conditions. With configurable parameters, it adapts well to various timeframes and market environments, providing investors with a reliable means to identify potential entry and exit points. With configurable parameters, RTI Threshold Indicator can identify market conditions for potential buy and sell zones.
Dynamic RSI Mean Reversion StrategyDynamic RSI Mean Reversion Strategy
Overview:
This strategy uses an RSI with ATR-Adjusted OB/OS levels in order to enhance the quality of it's mean reversion trades. It also incorporates a form of trend filtering in an effort to minimize downside and maximize upside. The backtest has fewer trades, as it uses substantial filtering to enhance trade quality. As you can see, I didn't cherry pick the results, so the results aren't the most beautiful thing you'll see in your life. I did this to ensure nobody gets misled. If you need a higher frequency of trades, consider removing the trend filter or increasing the length of the EMAs used for trend detection.
Features:
Dynamic OB/OS Levels: Uses ATR to adjust overbought and oversold thresholds dynamically, making the RSI more responsive in varying volatility conditions. This approach enhances signal strength by expanding the RSI range in high volatility and tightening it in low volatility.
Mean Reversion Focus: Designed for mean reversion but incorporates a trend-following filter to reduce countertrend trades. When the RSI is high, it often indicates an uptrend, so a trend filter prevents shorting in these cases and the same goes for downtrends and longing.
Trend Filtering: A moving average cross trend filter checks for the trend direction, with the RSI signal line color-coded to reflect trend shifts. Entries occur when the RSI crosses above or below the dynamic thresholds and is not a countertrend trade.
Stop Losses: Stop losses are set based on ATR distance from the entry price, providing volatility-adjusted protection.
Note:
If you're using this strategy on assets with a higher price, remember to increase the initial capital in the strategy settings. Otherwise, the strategy won't generate any (or many) trades and you'll end up with some inaccurate results.
Recommended Use:
Test it on different assets and timeframes. I’ve found the best results with standard RSI inputs, a relatively slow ATR, and a slower MA cross for trend filtering. Thus, the defaults are set that way. If the trend metrics are too slow, you’ll filter out too many good trades while allowing crummy ones; if too fast, most trades may be filtered out. As always, this has a lot of configurability so experiment to find the balance that works for your trading style.
AutoCorrelation Test [OmegaTools]Overview
The AutoCorrelation Test indicator is designed to analyze the correlation patterns of a financial asset over a specified period. This tool can help traders identify potential predictive patterns by measuring the relationship between sequential returns, effectively assessing the autocorrelation of price movements.
Autocorrelation analysis is useful in identifying the consistency of directional trends (upward or downward) and potential cyclical behavior. This indicator provides an insight into whether recent price movements are likely to continue in a similar direction (positive correlation) or reverse (negative correlation).
Key Features
Multi-Period Autocorrelation: The indicator calculates autocorrelation across three periods, offering a granular view of price movement consistency over time.
Customizable Length & Sensitivity: Adjustable parameters allow users to tailor the length of analysis and sensitivity for detecting correlation.
Visual Aids: Three separate autocorrelation plots are displayed, along with an average correlation line. Dotted horizontal lines mark the thresholds for positive and negative correlation, helping users quickly assess potential trend continuation or reversal.
Interpretive Table: A table summarizing correlation status for each period helps traders make quick, informed decisions without needing to interpret the plot details directly.
Parameters
Source: Defines the price source (default: close) for calculating autocorrelation.
Length: Sets the analysis period, ranging from 10 to 2000 (default: 200).
Sensitivity: Adjusts the threshold sensitivity for defining correlation as positive or negative (default: 2.5).
Interpretation
Above 50 + Sensitivity: Indicates Positive Correlation. The price movements over the selected period are likely to continue in the same direction, potentially signaling a trend continuation.
Below 50 - Sensitivity: Indicates Negative Correlation. The price movements show a likelihood of reversing, which could signal an upcoming trend reversal.
Between 50 ± Sensitivity: Indicates No Correlation. Price movements are less predictable in direction, with no clear trend continuation or reversal tendency.
How It Works
The indicator calculates the logarithmic returns of the selected source price over each length period.
It then compares returns over consecutive periods, categorizing them as either "winning" (consistent direction) or "losing" (inconsistent direction) movements.
The result for each period is displayed as a percentage, with values above 50% indicating a higher degree of directional consistency (positive or negative).
A table updates with descriptive labels (Positive Correlation, Negative Correlation, No Correlation) for each tested period, providing a quick overview.
Visual Elements
Plots:
AutoCorrelation Test : Displays autocorrelation for the closest period (lag 1).
AutoCorrelation Test : Displays autocorrelation for the second period (lag 2).
AutoCorrelation Test : Displays autocorrelation for the third period (lag 3).
Average: Displays the simple moving average of the three test periods for a smoothed view of overall correlation trends.
Horizontal Lines:
No Correlation (50%): A baseline indicating neutral correlation.
Positive/Negative Correlation Thresholds: Dotted lines set at 50 ± Sensitivity, marking the thresholds for significant correlation.
Usage Guide
Adjust Parameters:
Select the Source to define which price metric (e.g., close, open) will be analyzed.
Set the Length based on your preferred analysis window (e.g., shorter for intraday trends, longer for swing trading).
Modify Sensitivity to fine-tune the thresholds based on market volatility and personal trading preference.
Interpret Table and Plots:
Use the table to quickly check the correlation status of each lag period.
Analyze the plots for changes in correlation. If multiple lags show positive correlation above the sensitivity threshold, a trend continuation may be expected. Conversely, negative values suggest a potential reversal.
Integrate with Other Indicators:
For enhanced insights, consider using the AutoCorrelation Test indicator in conjunction with other trend or momentum indicators.
This indicator offers a powerful method to assess market conditions, identify potential trend continuations or reversals, and better inform trading decisions. Its customization options provide flexibility for various trading styles and timeframes.
FMS Suite [KFB Quant]FMS Suite
Overview
The FMS Suite is a powerful and adaptive trend and momentum analysis tool that leverages multiple technical indicators to deliver a comprehensive signal for market direction. This suite combines the strengths of the Aroon, DMI, RSI, Supertrend, and Trix indicators, offering traders a well-rounded perspective on market trends.
How It Works
The FMS Suite integrates five essential components to assess market behavior:
Aroon Indicator : Detects trend strength and direction by analyzing the frequency of recent highs and lows over multiple timeframes. Directional Movement Index (DMI) : Measures the direction and strength of trends, with an ADX component for better trend assessment. Relative Strength Index (RSI) : Evaluates market momentum by indicating overbought or oversold conditions, with signals derived from the 50-line. Supertrend : Utilizes ATR-based volatility measures to establish dynamic support and resistance levels, signaling potential trend changes. Trix : A triple-smoothed EMA oscillator that highlights trend reversals using rate-of-change dynamics.
Each component is calculated across three separate timeframes (fast, medium, and slow), which are then averaged to produce a final FMS Signal . Users can also apply signal smoothing to reduce noise and enhance clarity.
Key Features
Customizable Parameters : Adjust the lengths for each component (fast, medium, slow) to optimize the indicator's responsiveness to different markets. Signal Smoothing Options : Select from various smoothing methods, including SMA, EMA, DEMA, and WMA, to fine-tune the FMS signal. Visual Representation : The FMS Suite plots a histogram representing the raw signal and a smoother line for clearer trend visualization. The background color shifts dynamically to indicate long, short, or neutral conditions. Threshold-Based Alerts : Set your own long and short thresholds, tailoring the indicator to your trading strategy and market outlook. Informative Table Display : An integrated table provides an at-a-glance summary of the current FMS and smoothed FMS signals, along with their respective scores and market state.
How to Use
Trend Confirmation : Utilize the FMS histogram and smoothed signal to validate or challenge existing trend assumptions. Trade Entries and Exits : Identify potential buy (long) or sell (short) signals based on the relationship between the FMS signal and predefined thresholds. Strategy Customization : Fine-tune the indicator settings to align with your trading style, whether it’s short-term scalping or long-term trend following.
Important Considerations
Not Predictive : The FMS Suite does not predict future price movements and should be used in conjunction with other analysis methods. It is based on historical price data, and past performance is not indicative of future results. Settings and Backtesting : Experiment with different lengths and smoothing techniques to optimize performance for specific instruments and market conditions. Always backtest thoroughly.
Disclaimer: This tool is provided for informational and educational purposes only and should not be considered as financial advice. Always conduct your own research and consult with a licensed financial advisor before making any investment decisions.