RSI Momentum Waves [Quantigenics]RSI Momentum Waves Indicator
The RSI Momentum Waves Indicator is your intuitive tool for visualizing market strength and trend persistence. It refines the classic RSI by smoothing the data with Exponential Moving Averages (EMAs), which help clear out the noise to give you a more accurate picture of where the market’s heading. The parameters - RSI Period, Smoothing Period, Overbought, Oversold, Upper Neutral Zone, and Lower Neutral Zone - are all adjustable, so you can tailor the indicator to different market conditions or your trading style.
How It Works:
RSI Period (RsiPer): Adjusts how far back the RSI looks to calculate its value, affecting its sensitivity.
Smoothing Period (SmoothPer): Dictates how smooth the EMA lines are, balancing between sensitivity and noise reduction.
Overbought (OBLevel) / Oversold (OSLevel) Levels: Set the thresholds where the market might be too stretched in either direction and due for a reversal.
Neutral Zones (UpperNZ / LowerNZ): Define the areas where the market is considered neutral, and trend strength is less clear.
Trading Instructions:
Use the RSI Momentum Waves to gain insights into the market’s momentum and make informed decisions:
For Trend Identification: If the waves are consistently above the 50 line and climbing, the market may be bullish; if below and declining, bearish signals are suggested.
Overbought and Oversold Regions: Entering these areas might indicate a potential reversal. A peak and downturn in the overbought region can signal a sell, while a trough and upturn in the oversold region can indicate a buy.
Neutral Zone Caution: In the neutral zones, exercise caution and wait for a breakout in either direction for stronger signals.
Confirm with Other Analysis: Never rely solely on one indicator. Confirm the RSI Momentum Waves signals with other technical indicators or fundamental analysis for best practices.
Remember, the goal is to detect the rhythm of the market’s momentum and act accordingly. Happy trading!
Oscillators
Advanced MACD [CryptoSea]Advanced MACD (AMACD) enhances the traditional MACD indicator, integrating innovative features for traders aiming for deeper insights into market momentum and sentiment. It's crafted for those seeking to explore nuanced behaviors of the MACD histogram, thus offering a refined perspective on market dynamics.
Divergence moves can offer insight into continuation or potential reversals in structure, the example below is a clear continuation signal.
Key Features
Enhanced Histogram Analysis: Precisely tracks movements of the MACD histogram, identifying growth or decline periods, essential for understanding market momentum.
High/Low Markers: Marks the highest and lowest points of the histogram within a user-defined period, signaling potential shifts in the market.
Dynamic Averages Calculation: Computes average durations of histogram phases, providing a benchmark against historical performance.
Color-Coded Histogram: Dynamically adjusts the histogram's color intensity based on the current streak's duration relative to its average, offering a visual cue of momentum strength.
Customisable MACD Settings: Enables adjustments to MACD parameters, aligning with individual trading strategies.
Interactive Dashboard: Showcases an on-chart table with average durations for each phase, aiding swift decision-making.
Settings & Customisation
MACD Settings: Customise fast length, slow length, and signal smoothing to tailor the MACD calculations to your trading needs.
Reset Period: Determine the number of bars to identify the histogram's significant high and low points.
Histogram High/Lows: Option to display critical high and low levels of the histogram for easy referencing.
Candle Colours: Select between neutral or traditional candle colors to match your analytical preferences.
When in strong trends, you can use the average table to determine when to look to get into a position. This example we are in a strong downtrend, we then see the histogram growing above the average in these conditions which is where we should look to get into a shorting position.
Strategic Applications
The AMACD serves not just as an indicator but as a comprehensive analytical tool for spotting market trends, momentum shifts, and potential reversal points. It's particularly useful for traders to:
Spot Momentum Changes Utilise dynamic coloring and streak tracking to alert shifts in momentum, helping anticipate market movements.
Identify Market Extremes Use high and low markers to spot potential market turning points, aiding in risk management and decision-making.
Alert Conditions
Above Average Movement Alerts: Triggered when the duration of the MACD histogram's growth or decline is unusually long, these alerts signal sustained momentum:
Above Zero: Alerts for both growing and declining movements above zero, indicating either continued bullish trends or potential bearish reversals.
Below Zero: Alerts for growth and decline below zero, pointing to potential bullish reversals or confirmed bearish trends.
High/Low Break Alerts: Activated when the histogram reaches new highs or falls to new lows beyond the set thresholds, these alerts are crucial for identifying shifts in market dynamics:
Break Above Last High: Indicates a potential upward trend as the histogram surpasses recent highs.
Break Below Last Low: Warns of a possible downward trend as the histogram drops below recent lows.
These alert conditions enable traders to automate part of their market monitoring or potential to automate the signals to take action elsewhere.
Kalman Hull RSI [BackQuant]Kalman Hull RSI
At its core, this indicator uses a Kalman filter of price, put inside of a hull moving average function (replacing the weighted moving averages) and then using that as a price source for the the RSI, very similar to the Kalman Hull Supertrend just processing price for a different indicator.
This also allows it to make it more adaptive to price and also sensitive to recent price action. This indicator is also mainly built for trend-following systems
PLEASE Read the following, knowing what an indicator does at its core before adding it into a system is pivotal. The core concepts can allow you to include it in a logical and sound manner.
1. What is a Kalman Filter
The Kalman Filter is an algorithm renowned for its efficiency in estimating the states of a linear dynamic system amidst noisy data. It excels in real-time data processing, making it indispensable in fields requiring precise and adaptive filtering, such as aerospace, robotics, and financial market analysis. By leveraging its predictive capabilities, traders can significantly enhance their market analysis, particularly in estimating price movements more accurately.
If you would like this on its own, with a more in-depth description please see our Kalman Price Filter.
OR our Kalman Hull Supertrend
2. Hull Moving Average (HMA) and Its Core Calculation
The Hull Moving Average (HMA) improves on traditional moving averages by combining the Weighted Moving Average's (WMA) smoothness and reduced lag. Its core calculation involves taking the WMA of the data set and doubling it, then subtracting the WMA of the full period, followed by applying another WMA on the result over the square root of the period's length. This methodology yields a smoother and more responsive moving average, particularly useful for identifying market trends more rapidly.
3. Combining Kalman Filter with HMA
The innovative combination of the Kalman Filter with the Hull Moving Average (KHMA) offers a unique approach to smoothing price data. By applying the Kalman Filter to the price source before its incorporation into the HMA formula, we enhance the adaptiveness and responsiveness of the moving average. This adaptive smoothing method reduces noise more effectively and adjusts more swiftly to price changes, providing traders with clearer signals for market entries or exits.
The calculation is like so:
KHMA(_src, _length) =>
f_kalman(2 * f_kalman(_src, _length / 2) - f_kalman(_src, _length), math.round(math.sqrt(_length)))
Use Case
The Kalman Hull RSI is particularly suited for traders who require a highly adaptive indicator that can respond to rapid market changes without the excessive noise associated with typical RSI calculations. It can be effectively used in markets with high volatility where traditional indicators might lag or produce misleading signals.
Application in a Trading System
The Kalman Hull RSI is versatile in application, suitable for:
Trend Identification: Quickly identify potential reversals or confirmations of existing trends.
Overbought/Oversold Conditions: Utilize the dynamic RSI thresholds to pinpoint potential entry and exit points, adapting to current market conditions.
Risk Management: Enhance trading strategies by integrating a more reliable measure of momentum, which can lead to improved stop-loss placements and exit strategies.
Core Calculations and Benefits
Dynamic State Estimation: By applying the Kalman Filter, the indicator continually adjusts its calculations based on incoming price data, providing a real-time, smoothed response to price movements.
Reduced Lag: The integration with HMA significantly reduces lag, offering quicker responses to price changes than traditional moving averages or RSI alone.
Increased Accuracy: The dual filtering effect minimizes the impact of price spikes and noise, leading to more accurate signaling for trades.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
Crypto Realized Profits/Losses Extremes [AlgoAlpha]🌟🚀 Introducing the Crypto Realized Profits/Losses Extremes Indicator by AlgoAlpha 🚀🌟
Unlock the potential of cryptocurrency markets with our cutting-edge On-Chain Pine Script™ indicator, designed to highlight extreme realized profit and loss zones! 🎯📈
Key Features:
✨ Realized Profits/Losses Calculation: Uses real-time data from the blockchain to monitor profit and loss realization events.
📊 Multi-Crypto Compatibility: The Indicator is compatible on other Crypto tickers besides Bitcoin.
⚙️ Customizable Sensitivity: Adjust the look-back period, normalization period, and deviation thresholds to tailor the indicator to your trading style.
🎨 Visual Enhancements: Choose from a variety of colors for up and down trends, and toggle extreme profit/loss overlay for easy viewing.
🔔 Integrated Alerts: Set up alerts for high and extreme profit or loss conditions, helping you stay ahead of significant market movements.
🔍 How to Use:
🛠 Add the Indicator: Add the indicator to favorites. Customize settings like period lengths and deviation thresholds according to your needs.
📊 Market Analysis: Monitor the main oscillator and the bands to understand current profit and loss extremes in the market. When the oscillator is at the upper band, this means that the market is doing really well and traders/investors will be likely to take profit and cause a reversal. The opposite is true when the oscillator reaches the lower band. The main oscillator can also be used for trend analysis.
🔔 Set Alerts: Configure alerts to notify you when the market enters a zone of high profit or loss, or during trend changes, enabling timely decisions without constant monitoring.
How It Works:
The indicator calculates a normalized area under the RSI curve applied on on-chain data regarding the number of wallets in profit. It employs a custom "src" variable that aggregates data from the blockchain about profit and loss addresses, adapting to intraday or longer timeframes as needed. The main oscillator plots this normalized area, while the upper and lower bands are plotted based on a deviation metric to identify extreme conditions. Colored fills between these bands visually denote these zones. For interaction, the indicator plots bubbles for extreme profits or losses and provides optional bar coloring to reflect the current market trend.
🚀💹 Enjoy a comprehensive, customizable, and visually engaging tool that helps you stay ahead in the fast-paced crypto market!
RSI w/Hann WindowingThis RSI by John Ehlers of "Yet Another" Improved RSI. Taking advantage of the Hann windowing. As seen on PRC and published by John Ehlers, it has a zero mean and appears smoother than the classic RSI. In his own words " I prefer oscillator-type indicators to have a zero mean. We can achieve this simply by multiplying the classic RSI by 2 so it swings from 0 to 2, and then subtract 1 from the product so the indicator swings from -1 to +1." Ehlers goes on to say " Bear in mind 14 may not be the best length to analysis. So, the best length to use for the RSIH indicator is on the order of the dominant cycle period of the data."
This indicator works well with both bullish and bearish divergences. It also works well with oversold and overbought indications. Shown by the Red zone on top (Overbought) and the green zone on the bottom(oversold). Each which have an adjustable buffer zone. You may need to adjust the length of the RSIH to suit your asset. There are also multiply signal line's to choose from. Also take note of when the RSIH crosses up or down on the signal line.
None of this is financial advice.
Dynamic Cycle Oscillator [Quantigenics]This script is designed to navigate through the ebbs and flows of financial markets. At its core, this script is a sophisticated yet user-friendly tool that helps you identify potential market turning points and trend continuations.
How It Works:
The script operates by plotting two distinct lines and a central histogram that collectively form a band structure: a center line and two outer boundaries, indicating overbought and oversold conditions. The lines are calculated based on a blend of exponential moving averages, which are then refined by a root mean square (RMS) over a specified number of bars to establish the cyclic envelope.
The input parameters:
Fast and Slow Periods:
These determine the sensitivity of the script. Shorter periods react quicker to price changes, while longer periods offer a smoother view.
RMS Length:
This parameter controls the range of the cyclic envelope, influencing the trigger levels for trading signals.
Using the Script:
On your chart, you’ll notice how the Dynamic Cycle Oscillator’s lines and histogram weave through the price action. Here’s how to interpret the movements.
Breakouts and Continuations:
Buy Signal: Consider a long position when the histogram crosses above the upper boundary. This suggests a possible strong bullish run.
Sell Signal: Consider a short position when the histogram crosses below the lower boundary. This suggests a possible strong bearish run.
Reversals:
Buy Signal: Consider a long position when the histogram crosses above the lower boundary. This suggests an oversold market turning bullish.
Sell Signal: Consider a short position when the histogram crosses below the upper boundary. This implies an overbought market turning bearish.
The script’s real-time analysis can serve as a robust addition to your trading strategy, offering clarity in choppy markets and an edge in trend-following systems.
Thanks! Hope you enjoy!
Support Resistance base Volume RSIThe indicator displays support and resistance levels based on volume and the Relative Strength Index (RSI).
Variable and Input Assignment:
lookback: Determines the period for data lookback.
RsiVisible, RsilabelSize, OversoldForRsi, OverboughtForRsi: Various inputs to adjust RSI indicator parameters.
Indicator Calculation:
highestVol: Finds the highest volume within a certain period.
Rsi: Calculates the RSI value with a period of 14.
roc: Calculates the Rate of Change.
Support and Resistance Level Determination:
Uses a comparison between price change (roc) and RSI value to determine whether the price is rising or falling.
If the price is rising and the current volume is greater than the previous highest volume, a new resistance level is established.
If the price is falling and the current volume is greater than the previous highest volume, a new support level is established.
Support and Resistance Lines:
Creates lines indicating the latest support and resistance levels.
These lines are updated whenever there is a change in support or resistance levels.
RSI Labels:
Displays the RSI value above or below the price chart depending on whether the RSI is above or below the overbought or oversold levels.
If the RSI value is above the overbought level, the label is displayed above the price.
If the RSI value is below the oversold level, the label is displayed below the price.
Labels are removed if the corresponding conditions are not met.
Additional RSI Label:
Adds an additional label displaying the RSI value next to the price chart on the last bar.
The main purpose of this script is to assist traders in identifying support and resistance levels based on price movement, volume, and the RSI indicator. Thus, traders can use this information to make better trading decisions.
Multi Timeframe RSI Buy Sell Strategy [TradeDots]The "Multi Timeframe RSI Buy/Sell Strategy" is a trading strategy that utilizes Relative Strength Index (RSI) indicators from multiple timeframes to provide buy and sell signals.
This strategy allows for extensive customization, supporting up to three distinct RSIs, each configurable with its own timeframe, length, and data source.
HOW DOES IT WORK
This strategy integrates up to three RSIs, each selectable from different timeframes and customizable in terms of length and source. Users have the flexibility to define the number of active RSIs. These selections visualize as plotted lines on the chart, enhancing interpretability.
Users can also manage the moving average of the selected RSI lines. When multiple RSIs are active, the moving average is calculated based on these active lines' average value.
The color intensity of the moving average line changes as it approaches predefined buying or selling thresholds, alerting users to potential signal generation.
A buy or sell signal is generated when all active RSI lines simultaneously cross their respective threshold lines. Concurrently, a label will appear on the chart to signify the order placement.
For those preferring not to display order information or activate the strategy, an "Enable backtest" option is provided in the settings for toggling activation.
APPLICATION
The strategy leverages multiple RSIs to detect extreme market conditions across various timeframes without the need for manual timeframe switching.
This feature is invaluable for identifying divergences across timeframes, such as detecting potential short-term reversals within broader trends, thereby aiding traders in making better trading decisions and potentially avoiding losses.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 60%
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
TradeDots Stochastic Z-Score
Enhanced Predictive ModelThe "Enhanced Predictive Model" is a sophisticated TradingView indicator designed for traders looking for advanced predictive insights into market trends. This model leverages smoothed price data through an Exponential Moving Average (EMA) to ensure a more stable trend analysis and mitigate the effects of price volatility.
**Features of the Enhanced Predictive Model:**
- **Linear Regression Analysis**: Calculates a regression line over the smoothed price data to determine the prevailing market trend.
- **Predictive Trend Line**: Projects future market behavior by extending the current trend line based on the linear regression analysis.
- **EMA Smoothing**: Utilizes a dynamic smoothing mechanism to provide a clear view of the trend without the noise typically associated with raw price data.
- **Visual Trend Indicators**: Offers immediate visual cues through bar coloring, which changes based on the trend direction detected by the regression slope. Green indicates an uptrend, while red suggests a downtrend.
**Key Inputs:**
- **Regression Length**: Determines the number of bars used for the regression analysis, allowing customization based on the user's trading strategy.
- **EMA Length**: Sets the smoothing parameter for the EMA, balancing responsiveness and stability.
- **Future Bars Prediction**: Defines how many bars into the future the predictive line should extend, providing foresight into potential price movements.
- **Smoothing Length**: Adjusts the sensitivity of the trend detection, ideal for different market conditions.
This tool is ideal for traders focusing on medium to long-term trends and can be used across various markets, including forex, stocks, and cryptocurrencies. Whether you are a day trader or a long-term investor, the "Enhanced Predictive Model" offers valuable insights to help anticipate market moves and enhance your trading decisions.
**Usage Tips:**
- Best used in markets with moderate volatility for clearer trend identification.
- Combine with volume indicators or oscillators for a comprehensive trading strategy.
**Recommended for:**
- Trend Following
- Market Prediction
- Volatility Assessment
By employing this indicator, traders can not only follow the market trend but also anticipate changes, giving them a strategic edge in their trading activities.
Multiple Indicators Screener v2After taking the approval of Mr. QuantNomad
Multiple Indicators Screener by QuantNomad
New lists have been modified and added
Built-in indicators:
RSI (Relative Strength Index): Provides trading opportunities based on overbought or oversold market conditions.
MFI (Cash Flow Index): Measures the flow of cash into or from assets, which helps in identifying buying and selling areas.
Williams Percent Range (WPR): Measures how high or low the price has been in the last time period, giving signals of periods of saturation.
Supertrend: Used to determine market direction and potential entry and exit locations.
Volume Change Percentage: Provides an analysis of the volume change percentage, which helps in identifying demand and supply changes for assets.
How to use:
Users can choose which symbols they want to monitor and analyze using a variety of built-in indicators.
The indicator provides visual signals that help traders identify potential trading opportunities based on the selected settings.
RSI in purple = buy weak liquidity (safe entry).
MFI in yellow = Liquidity
WPR in blue = RSI, MFI and WPR in oversold areas for all.
Allows users to customize the display locations and appearance of the cursor to their personal preferences.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
=========================================================================
فاحص لمؤشرات متعددة مع مخرجات جدول شاملة لتسهيل مراقبة الكثير من العملات تصل الى 99 في وقت واحد
بختصر الشرح
ظهور اللون البنفسجي يعني كمية الشراء ضعف السيولة .
ظهور اللون الازرق جميع المؤشرات وصلة الى مرحلة التشبع البيعي ( دخول آمن )
ظهور اللون الاصفر يعني السيولة ضعفين الشراء ( عكس اتجاه قريب ) == ركزو على هاللون خصوصا مع عملات الخفيفة
Slow Volume Strength Index (SVSI)The Slow Volume Strength Index (SVSI), introduced by Vitali Apirine in Stocks & Commodities (Volume 33, Chapter 6, Page 28-31), is a momentum oscillator inspired by the Relative Strength Index (RSI). It gauges buying and selling pressure by analyzing the disparity between average volume on up days and down days, relative to the underlying price trend. Positive volume signifies closes above the exponential moving average (EMA), while negative volume indicates closes below. Flat closes register zero volume. The SVSI then applies a smoothing technique to this data and transforms it into an oscillator with values ranging from 0 to 100.
Traders can leverage the SVSI in several ways:
1. Overbought/Oversold Levels: Standard thresholds of 80 and 20 define overbought and oversold zones, respectively.
2. Centerline Crossovers and Divergences: Signals can be generated by the indicator line crossing a midline or by divergences from price movements.
3. Confirmation for Slow RSI: The SVSI can be used to confirm signals generated by the Slow Relative Strength Index (SRSI), another oscillator developed by Apirine.
🔹 Algorithm
In the original article, the SVSI is calculated using the following formula:
SVSI = 100 - (100 / (1 + SVS))
where:
SVS = Average Positive Volume / Average Negative Volume
* Volume is considered positive when the closing price is higher than the six-day EMA.
* Volume is considered negative when the closing price is lower than the six-day EMA.
* Negative volume values are expressed as absolute values (positive).
* If the closing price equals the six-day EMA, volume is considered zero (no change).
* When calculating the average volume, the indicator utilizes Wilder's smoothing technique, as described in his book "New Concepts In Technical Trading Systems."
Note that this indicator, the formula has been simplified to be
SVSI = 100 * Average Positive Volume / (Average Positive Volume + Average Negative Volume)
This formula achieves the same result as the original article's proposal, but in a more concise way and without the need for special handling of division by zero
🔹 Parameters
The SVSI calculation offers configurable parameters that can be adjusted to suit individual trading styles and goals. While the default lookback periods are 6 for the EMA and 14 for volume smoothing, alternative values can be explored. Additionally, the standard overbought and oversold thresholds of 80 and 20 can be adapted to better align with the specific security being analyzed.
ATR Oscillator with DotsThe ATR Oscillator with Dots utilizes the Average True Range (ATR), a traditional measure that captures the extent of an asset's price movements within a given timeframe. Rather than depicting these values in a continuous line, the ATR Oscillator represents them as discrete dots, colored according to the price movement direction: green for upward movements when the current close is higher than the previous, and red for downward movements when the current close is lower.
In terms of functionality, the key feature of this oscillator is how it visualizes volatility through the spacing of the dots. During periods of high market volatility, the shifts between red and green dots tend to occur more frequently and with greater disparity in their positioning along the oscillator’s axis. This indicates sharp price changes and high trading activity. Conversely, periods of market consolidation are characterized by fewer color changes and a more clustered arrangement of dots, reflecting less price movement and lower volatility.
Traders can leverage the insights from the ATR Oscillator with Dots to better understand the market's behavior. For instance, a tight clustering of dots around the zero line suggests a consolidation phase, where the price is relatively stable and may be preparing for a breakout. On the other hand, widely spaced dots alternating between red and green signify strong price movements, offering opportunities for traders to capitalize on trends or prepare for potential reversals.
Imagine a scenario where a trader is monitoring a currency pair in a fluctuating forex market. An observed increase in the frequency and gap of alternating red and green dots would suggest a rise in volatility, possibly triggered by economic news or events. This could be an optimal time for the trader to seek entry or exit points, aligning their strategy with the increased activity. Conversely, a reduction in the frequency and gap of dot changes could signal an impending consolidation phase, prompting the trader to adopt a more cautious approach or explore range-bound trading strategies.
Therefore, the ATR Oscillator with Dots not only simplifies the interpretation of volatility and price momentum through visual cues but also enriches the trader’s strategy by highlighting periods of high activity and consolidation. This tool can be crucial for making informed decisions, particularly in fast-moving or uncertain market conditions, and can be effectively paired with other indicators to confirm trends and refine trading tactics.
Relative Strength Universal
Relative strength is a ratio between two assets, generally it is a stock and a market average (index). RS implementation details are explained here .
This script automatically decides benchmark index for RS calculation based on market cap input values and input benchmark indices values.
Relative strength calculation:
"To calculate the relative strength of a particular stock, divide the percentage change over some time period by the percentage change of a particular index over the same time period". This indicator value oscillates around zero. If the value is greater than zero, the investment has been relatively strong during the selected period; if the value is less than zero, the investment has been relatively weak.
In this script, You can input market cap values and all are editable fields. If company market cap value is grater than 75000(Default value) then stock value will be compared with Nifty index. If company market cap is between 75000 and 25000 then stock value will be compared with midcap 150 to calculate RS. If marketcap is greater than 5000 and less than 25000 then RS will be calculated based on smallcap250. If marketcap is less than 5000 and greater than 500 then it will be compared with NIFTY_MICROCAP250
Stochastic Z-Score Oscillator Strategy [TradeDots]The "Stochastic Z-Score Oscillator Strategy" represents an enhanced approach to the original "Buy Sell Strategy With Z-Score" trading strategy. Our upgraded Stochastic model incorporates an additional Stochastic Oscillator layer on top of the Z-Score statistical metrics, which bolsters the affirmation of potential price reversals.
We also revised our exit strategy to when the Z-Score revert to a level of zero. This amendment gives a much smaller drawdown, resulting in a better win-rate compared to the original version.
HOW DOES IT WORK
The strategy operates by calculating the Z-Score of the closing price for each candlestick. This allows us to evaluate how significantly the current price deviates from its typical volatility level.
The strategy first takes the scope of a rolling window, adjusted to the user's preference. This window is used to compute both the standard deviation and mean value. With these values, the strategic model finalizes the Z-Score. This determination is accomplished by subtracting the mean from the closing price and dividing the resulting value by the standard deviation.
Following this, the Stochastic Oscillator is utilized to affirm the Z-Score overbought and oversold indicators. This indicator operates within a 0 to 100 range, so a base adjustment to match the Z-Score scale is required. Post Stochastic Oscillator calculation, we recalibrate the figure to lie within the -4 to 4 range.
Finally, we compute the average of both the Stochastic Oscillator and Z-Score, signaling overpriced or underpriced conditions when the set threshold of positive or negative is breached.
APPLICATION
Firstly, it is better to identify a stable trading pair for this technique, such as two stocks with considerable correlation. This is to ensure conformance with the statistical model's assumption of a normal Gaussian distribution model. The ideal performance is theoretically situated within a sideways market devoid of skewness.
Following pair selection, the user should refine the span of the rolling window. A broader window smoothens the mean, more accurately capturing long-term market trends, while potentially enhancing volatility. This refinement results in fewer, yet precise trading signals.
Finally, the user must settle on an optimal Z-Score threshold, which essentially dictates the timing for buy/sell actions when the Z-Score exceeds with thresholds. A positive threshold signifies the price veering away from its mean, triggering a sell signal. Conversely, a negative threshold denotes the price falling below its mean, illustrating an underpriced condition that prompts a buy signal.
Within a normal distribution, a Z-Score of 1 records about 68% of occurrences centered at the mean, while a Z-Score of 2 captures approximately 95% of occurrences.
The 'cool down period' is essentially the number of bars that await before the next signal generation. This feature is employed to dodge the occurrence of multiple signals in a short period.
DEFAULT SETUP
The following is the default setup on EURAUD 1h timeframe
Rolling Window: 80
Z-Score Threshold: 2.8
Signal Cool Down Period: 5
Stochastic Length: 14
Stochastic Smooth Period: 7
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 40%
FURTHER IMPLICATION
The Stochastic Oscillator imparts minimal impact on the current strategy. As such, it may be beneficial to adjust the weightings between the Z-Score and Stochastic Oscillator values or the scale of Stochastic Oscillator to test different performance outcomes.
Alternative momentum indicators such as Keltner Channels or RSI could also serve as robust confirmations of overbought and oversold signals when used for verification.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
Garman-Klass-Yang-Zhang Volatility EstimatorThe Garman-Klass-Yang-Zhang Volatility Estimator (GKYZVE) is yet another attempt to robustly measure volatility, integrating intra-candle and inter-candle dynamics. It is an extension of the Garman-Klass Volatility Estimator (GKVE) incorporating insights from the Yang-Zhang Volatility Estimator (YZVE) . Like the YZVE, the GKYZVE holistically considers open, high, low, and close prices. The formula for GKYZ is:
GKYZVE = 0.5 * σ_HL² + * σ_CC² + σ_OC²
Where:
σ_HL² is the variance based on the high and low prices (σ_HL² = (high - low)² / (4 * math.log(2))), weighted at 0.5.
σ_CC² is the close-to-close variance (σ_CC² = (close - close)²), weighted at (2 ln 2) -1 for the logarithmic distribution of returns and emphasizing the impact of day-to-day price changes.
σ_OC² is the variance of the opening price against the closing price (σ_OC² = 0.5 * (open - close)²), weighted at 1.
The GKYZVE differs from the YZVE by using fixed weighing factors derived from theoretical calculations, leaning heavier into the assumption that returns are log-distributed.
This script also offers a choice for normalization between 0 and 1, turning the estimator into an oscillator for comparing current volatility to recent levels. Horizontal lines at user-defined levels are also available for clearer visualization. Both options are off by default.
References:
Garman, M. B., & Klass, M. J. (1980). On the estimation of security price volatilities from historical data. The Journal of Business, 53(1), 67-78.
Yang, D., & Zhang, Q. (2000). Drift-independent volatility estimation based on high, low, open, and close prices. The Journal of Business, 73(3), 477-492.
Volatility Estimator - YZ & RSThe Yang-Zheng Volatility Estimator (YZVE) integrates both intra-candle and inter-candle dynamics, such as overnight and weekend price changes, offering a more detailed analysis compared to traditional methods. The YZVE is proposed to improve over the standard deviation by accounting for the open, high, low, and close prices of trading periods, instead of only the close prices, and attempts to supplant the Parkinson's Volatility Estimator (PVE) by a also capturing inter-candle dynamics. The YZVE is calculated by this formula:
YZ Volatility Squared σ_YZ² = k * σ_o² + σ_rs² + (1 - k) * σ_c²
where k is a weighting factor that adjusts the emphasis between the overnight and close-to-close components, popularly estimated as:
k = 0.34 / (1.34 + (N+1) / (N-1))
where N is the lookback period. Optionally, users may opt to override this calculation with a specified constant (off by default). Next, the
Overnight Volatility Squared σ_o² = (log(O_t / C_(t-1)))²
measures the volatility associated with overnight price changes, from the previous candle's closing price C_(t-1) to the current candle's opening price O_t. It captures the market's reaction to news and events that occur outside of regular trading hours to reflect risk associated with holding positions over non-trading hours and gaps.
Next, the The Rogers-Satchell Volatility Estimator (RSVE) serves as an intermediary step in the computation of YZVE. It aggregates the logarithmic ratios between high, low, open, and close prices within each trading period, focusing on intra-candle volatility without assuming zero inter-candle drift as commonly implicitly assumed in other volatility models:
Rogers-Satchell Volatility Squared σ_rs² = (log(H_t / C_t) * log(H_t / O_t)) + (log(L_t / C_t) * log(L_t / O_t))
Finally,
Close-to-Close Volatility Squared σ_c² = (log(C_t / C_(t-1)))²
measures the volatility from the close of one candle to the close of the next. It reflects the typical candle volatility, similar to naive standard deviation.
This script also includes an option for users to apply the simpler RS Volatility exclusively, focusing on intraday price movements. Additionally, it offers a choice for normalization between 0 and 1, turning the estimator into an oscillator for comparing current volatility to recent levels. Horizontal lines at user-defined levels are also available for clearer visualization. Both are off by default.
References:
Yang, D., & Zhang, Q. (2000). Drift-independent volatility estimation based on high, low, open, and close prices. The Journal of Business, 73(3), 477-491.
Rogers, L.C.G., & Satchell, S.E. (1991). Estimating variance from high, low and closing prices. Annals of Applied Probability, 1(4), 504-512.
Parkinson's Volatility EstimatorThe Parkinson's Volatility Estimator (PVE) provides an alternative method for assessing market volatility using the highest and lowest prices within a given period. Unlike traditional models that predominantly rely on closing prices, the PVE considers the full range of intra-candle price movements, thereby potentially offering a more comprehensive gauge of market volatility. The estimator is derived from the logarithm of the ratio of the high to low prices, squared and then averaged over the period of interest. This calculation is rooted in the assumption that the logarithmic high-to-low ratio represents a normalized measure of price movements, capturing both upward and downward volatility in a symmetric manner (Parkinson, 1980).
In this specific implementation, the estimator is calculated as follows:
Parkinson’s Volatility = (1/4 log(2)) * (1/n) * Σ from i=1 to n of (log(High_i/Low_i))^2
where n is the lookback period defined by the user, and High_i and Low_i are the highest and lowest prices at each interval i within that period. This formulation takes advantage of the logarithmic properties to scale the volatility measure appropriately, utilizing a factor of 1/4 log(2) to normalize the variance estimate (Parkinson, 1980).
This implementation includes options for output normalization between 0 and 1 and for plotting horizontal lines at specified levels, allowing the estimator to function like an oscillator to evaluate volatility relative to recent market regimes. Users can customize these features through script inputs, enhancing flexibility for various trading scenarios and improving its utility for real-time volatility assessments on the TradingView platform.
Reference:
Parkinson, M. (1980). The extreme value method for estimating the variance of the rate of return. The Journal of Business, 53(1), 61-65.
Unmitigated Liquidity Imbalances [AlgoAlpha]🎉 Introducing the Unmitigated Liquidity Imbalance Indicator by AlgoAlpha! 🎉
Dive into the depths of market analytics with our "Unmitigated Liquidity Imbalance" indicator. This tool harnesses unique algorithms to detect liquidity imbalances between bulls and bears, helping traders spot trends and potential entry and exit points with greater accuracy. 📈🚀
🔍 Key Features:
🌟 Advanced Analysis : Analyses candle direction and length to forecast market peaks and valleys.
🎨 Customizable Visuals : Tailor the chart with your choice of bullish green or bearish red to reflect different market conditions.
🔄 Real-Time Updates : Continuously updates to reflect live market changes.
🔔 Configurable Alerts : Set up alerts for key trading signals such as bullish and bearish reversals, as well as trend shifts.
📐 How to Use:
🛠 Add the Indicator : Add the indicator to your favourites and customize the settings to suite your needs.
📊 Market Analysis : Monitor the oscillator threshold; readings above 0.5 suggest bullish sentiment, while below 0.5 indicate bearish conditions. And reversal signals are displayed to show potential entry points.
🔔 Set Alerts : Enable notifications for reversal conditions or trend changes to seize trading opportunities without constant chart watching.
🧠 How It Works:
The core mechanism of the indicator is based on detecting changes in candlestick size and direction to identify bullish and bearish liquidity levels from the peak & valley indicator's logic. By comparing the length of a current candle to the previous one and checking the change in direction, it pinpoints moments where market sentiment could be shifting, indicating if the liquidity at that point is bullish or bearish. The script then looks at what percentage of the past few unmitigated levels are bullish or bearish based on a customizable lookback and determines the liquidity imbalance which can then be interpreted as trend.
Empower your trading with the Unmitigated Liquidity Imbalance indicator and navigate the markets with confidence and precision. 🌟💹
Happy trading, and may your charts be ever in your favour! 🥳✨
💎 Related Indicator
RMVH by mycroftlearnstotradeThe RMVH indicator combines several popular technical analysis tools to provide a comprehensive view of market conditions. It includes Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Volume, and Smoothed Heiken Ashi.
RSI (Relative Strength Index):
The RSI measures the strength and speed of price movements. It oscillates between 0 and 100, with levels above 70 indicating overbought conditions and levels below 30 indicating oversold conditions.
MACD (Moving Average Convergence Divergence):
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. It consists of the MACD line (the difference between a short-term and a long-term moving average) and the signal line (a moving average of the MACD line). The MACD histogram represents the difference between the MACD line and the signal line.
Volume:
The volume displays the total trading volume over a specified period. It helps traders gauge the strength or weakness of price movements. Typically, high volume accompanies strong price moves, while low volume may signal a lack of conviction in the market.
Smoothed Heiken Ashi:
The Smoothed Heiken Ashi is a variation of Japanese candlestick charts that aims to filter out market noise and highlight trends more effectively. It is calculated based on the open, high, low, and close prices, resulting in smoother candlesticks compared to traditional candlestick charts.
Usage:
Traders can use the RMVH indicator to identify potential trend reversals, overbought or oversold conditions, and divergence between price and momentum. Additionally, the volume component can help confirm the strength of price movements, while the Smoothed Heiken Ashi can provide a clearer visualization of trends.
Bullish signals may occur when the RSI and MACD indicate oversold conditions, accompanied by high volume and rising Smoothed Heiken Ashi values. Conversely, bearish signals may occur when the RSI and MACD indicate overbought conditions, accompanied by high volume and declining Smoothed Heiken Ashi values.
Note:
While the RMVH indicator combines multiple technical analysis tools, traders should exercise caution and use additional analysis to confirm signals before making trading decisions. No indicator is foolproof, and market conditions can change rapidly.
Hybrid Overbought/Oversold OverlayIntroduction
This is a new representation of my well-known oscillator Hybrid Overbought/Oversold Detector overlaid on the chart. The script utilizes the following 12 different oscillators to bring forth a new indicator which I call it Hybrid OB/OS .
Utilized Oscillators
The utilized oscillators here are:
Bollinger Bands %B
Chaikin Money Flow (CMF)
Chande Momentum Oscillator (CMO)
Commodity Channel Index (CCI)
Disparity Index (DIX)
Keltner Channel %K
Money Flow Index (MFI)
Rate Of Change (ROC)
Relative Strength Index (RSI)
Relative Vigor Index (RVI/RVGI)
Stochastic
Twiggs Money Flow (TMF)
The challenging part of utilizing mentioned oscillators was that some of their formulas range are not similar and some of them does not have a mathematical range at all. So I used a normalization function to normalize all their output values to (0, 100) interval.
Overbought/Oversold Levels Calculation
I noticed that the levels which considered as OB/OS level by various traders for each of the utilized oscillators are so different, e.g., many traders consider 30 as OS level and 70 as OB level for RSI and some others take 20 and 80 as the levels, or some traders consider 20 and 80 as OS/OB levels for Stochastic oscillator. Also these levels could be different on different assets, e.g., OB/OS levels for CCI on EURUSD chart might be 80 and 20 while the levels on BTCUSDT chart might be 75 and 25, and so on.
So I decided to make a routine to automate the calculation of these levels using historical data. By this feature, my indicator would calculate the corresponding levels for the oscillators on current chart and then decide about the overbought/oversold situation of each one, which leads to a more accurate Hybrid OB/OS indication.
As the result, if all 12 individual oscillators say it's overbought/oversold, the Hybrid OB/OS shows 100% overbought/oversold, vice versa, if none of them say it's overbought/oversold, the Hybrid OB/OS shows 0, and so on.
The Overlaying Oscillator Problem!
A programming-related challenge here was that Pine Script assigns two separate spaces to the oscillators and the overlaid indicators, and the programmers are limited to use just one of them in each of their codes.
Knowing this, I was forced to simulate the oscillator space on the chart and display my oscillator as a diagram somehow. Of course it won't be as nice as the oscillator itself, because the relation between the main chart bars and the oscillator bars could not be obtained, but it's better than nothing!
Settings and Usage
The indicator settings contain some options about the calculations, the diagram display and the signals appearance. By default they are fine, but you could change them as you prefer.
This indicator is better to be used alongside other indicators as a confirmation (specially in counter-trend strategies I believe). Also it generates an external signal which you could use it in your own designed indicators as well.
Feel free to test it and also the former form of the Hybrid OB/OS . Good Luck!
RSI and MACD Composite ScoreComponents of the Indicator
RSI Settings:
The RSI is set with a length parameter, which can be adjusted by the user but defaults to 14. This measures the speed and change of price movements.
MACD Settings:
The MACD is composed of two lines: the MACD line and the signal line, which are calculated from exponential moving averages (EMAs) of different lengths (fast and slow). The default settings are 9 for the fast length, 26 for the slow length, and 3 for the signal length.
The MACD histogram, which is the difference between the MACD line and the signal line, is also calculated.
Normalization and Combination
RSI Normalization : The RSI values are normalized around 0 by subtracting 50 from the RSI and then dividing by 50. This scaling adjusts the RSI to fluctuate around 0, where positive values indicate strength and negative values indicate weakness relative to the median RSI value of 50.
MACD Normalization : The MACD histogram is normalized by dividing it by the highest absolute value of the histogram over the slow length period. This adjustment scales the MACD histogram to fall between -1 and 1, making it comparable in magnitude to the normalized RSI.
Composite Score Calculation
The composite score is simply the sum of the normalized RSI and the normalized MACD histogram. This results in a combined score that reflects both momentum (from RSI) and trend (from MACD), providing a multifaceted view of market dynamics.
Visualization
The composite score is plotted as an oscillator, with a horizontal zero line that helps identify when the score shifts from positive to negative or vice versa.
The background color changes based on the trend: green if the composite score is above zero (bullish trend) and red if below zero (bearish trend).
Multi Timeframe ATR IndicatorThe Average True Range (ATR) indicator is a technical analysis tool used to measure market volatility. The ATR indicator is designed to capture the degree of price movement or price volatility over a specified period of time. It does this by calculating the true range for each bar or candlestick on a chart and then taking an average of these true range values over a set period.
In the provided Pine Script code, the ATR indicator is being calculated for two different timeframes, which allows traders to compare volatility across different periods. The script includes user-defined inputs for the length of the ATR calculation and the type of smoothing (RMA or SMA) to be applied to the true range values. The 'smoothingFunc' function within the script determines whether to use the RMA (Relative Moving Average) or SMA (Simple Moving Average) based on the user's selection.
The true range for each bar is calculated as the maximum of the following three values: the difference between the current high and low, the absolute value of the difference between the current high and the previous close, and the absolute value of the difference between the current low and the previous close. This calculation is designed to ensure that gaps and limit moves are properly accounted for in the volatility measurement.
The script then uses the 'smoothingFunc' to calculate the ATR values for the two timeframes, and these values are plotted on the chart as two separate lines, allowing traders to visually assess the volatility levels.
Overall, this custom ATR indicator is a versatile tool for traders who wish to analyse market volatility and compare it across different timeframes, potentially aiding in making more informed trading decisions based on the prevailing market conditions.
UM-Relative Strength Index with Trending EMA and Fill
Description
This is a different take on the traditional RSI - Relative Strength Index. This indicator turns the RSI line green when above 50 and red when below 50 making directional changes highly visual. Additionally, an exponential Moving Average is drawn of the RSI. The EMA is green when trending higher and red when trending lower. The area between the RSI and EMA lines are green when the RSI is above the RSI EMA and red when the RSI is below the EMA.
About
The RSI by itself is a good tool to determine trend with the colors. It can also be used to determined overbought and oversold extremes. The EMA of the RSI is a smoothing technique. The indicator can also be used to determine trend with the directional color changes.
Recommended Usage
I look for crossovers; bullish crossovers when the RSI crosses above the EMA AND the RSI crosses above 50. A bearish crossover is when the RSI crosses down through the EMA AND crosses below 50. It can also be used for trade confirmation; for example if the RSI EMA is green consider staying long. The indicator works on any timeframe and any security. I use it on smaller timeframes, 3 minute, 1 hour, and 3 hour, to better time entries/exits.
Default settings
The defaults are the author's preferred settings:
- RSI period is 10 using the open, high, low, and close for calculation. The additional data points using the OHLC give smoother effect.
- The EMA used by default is 34.
All parameters and colors are user-configurable.
Alerts
Alerts can be set on the indicator itself and/or alert on color changes of the EMA.
Helpful Hints:
Look for positive or negative crossovers.
Look for crosses above or below 50
Look for RSI divergences, for example if a security hits a new high, the RSI does not, this a sign of subtle weakness.
Draw trend lines on the RSI line. A violation of a recent trend line may indicate a change of trend for the security.