Future Candle Reversal Projection (Mastersinnifty)Overview
This tool identifies potential future market reversal zones by dynamically projecting pivot-based swing patterns forward in time. Unlike traditional ZigZag indicators that only reflect past movements, this indicator anticipates probable future turning points based on historical swing periodicity.
---
Key Features
- Forward Projections: Calculates and projects future swing zones based on detected pivot distances.
- Customizable Detection: Adjust the ZigZag depth for different trading styles (scalping, swing, position).
- Dynamic Updates: Real-time recalibration as new pivots form.
- Clean Visual Markers: Projects reversal estimates as intuitive labels and dotted lines.
---
How it Works
The indicator identifies significant swing highs and lows using a user-defined ZigZag depth setting. It measures the time (bars) and price characteristics of the latest swing movement. Using this pattern, it projects forward estimated reversal points at consistent intervals. Midpoint price levels between the last high and low are used for each future projection.
---
Who Can Benefit
- Intraday and swing traders seeking advanced planning zones.
- Technical analysts relying on pattern periodicity.
- Traders who wish to combine projected reversal markers with their own risk management strategies.
---
Disclaimer
This tool is an analytical and educational utility. It does not predict markets with certainty. Always combine it with your own analysis and risk management. Past behavior does not guarantee future results.
Cerca negli script per "reversal"
Enhanced Trend Indicator – Reversal & Volume Logic**Enhanced Trend Indicator – Reversal & Volume Logic (Big Brother)**. It aligns with the Companion’s language and tone but expands on the deeper logic and trend-based structure that anchors your full system:
---
## **Enhanced Trend Indicator – Reversal & Volume Logic**
This invite-only script is a comprehensive trend-following and reversal-detection system designed to help traders stay aligned with market momentum while identifying high-probability entry and exit zones. It integrates multi-layered analysis — combining moving average filtering, dynamic structure recognition, and volume-based logic — into one adaptive tool that works across timeframes and market conditions.
---
### **What It Does**
This indicator simplifies trend and reversal detection using a confluence-based approach. It includes:
- **Trend Direction Filtering**: Uses a blend of exponential and simple moving averages (EMA 20, SMA 50/200) to define prevailing market bias and reduce false entries.
- **Structure-Based Support & Resistance**: Automatically identifies pivot-based zones to guide trade placement, stop levels, and profit targets.
- **Signal Logic (Entry/Exit Markers)**: Plots actionable markers only when trend, price structure, and volume validation align.
- **Volume Confirmation**: Suppresses weak signals by using a proprietary volume threshold — avoiding traps in low-liquidity or false breakout zones.
- **Alert Functionality**: Offers custom alerts so traders can monitor multiple assets and act on setups without staring at charts.
---
### **How It Works (Without Revealing Proprietary Logic)**
The Enhanced Trend Indicator is built on a layered decision framework that:
- Filters entries based on directional MA alignment and price retracements
- Confirms trade zones when price breaks structure with volume support
- Validates exits based on fading momentum or structure breaks
- Adapts signal logic dynamically to evolving price conditions
These signals are **not based on standard crossovers** or simplistic technical setups. Instead, the system evaluates multiple real-time criteria before confirming a signal, providing traders with **fewer, but higher-quality opportunities**.
---
### **Who It’s For**
Ideal for:
- Traders seeking clarity in trend direction and clean chart structure
- Swing or intraday traders who rely on technical confluence
- Users looking to reduce noise and improve signal reliability with volume validation
---
### **Why It’s Unique (Moderator-Compliant Justification)**
While this script leverages familiar tools like moving averages and pivot levels, its core value lies in the **original confluence logic** that integrates structure, trend, and volume behavior into a single signal framework.
Unlike public scripts, this tool dynamically adapts to market changes, filters out low-confidence signals, and provides visual cues that simplify execution. Its real-time adaptability and built-in logic stack make it both distinctive and effective in live trading conditions.
---
*This script is provided for educational and research purposes only. Always test thoroughly and use proper risk management before applying to live market environments.*
Red & Green Zone ReversalOverview
The “Red & Green Zone Reversal” indicator is designed to visually highlight potential reversal zones on your chart by using a combination of Bollinger Bands and the Relative Strength Index (RSI).
It overlays on the chart and provides background color cues—red for oversold conditions and green for overbought conditions—along with corresponding alert triggers.
Key Components
Overlay: The indicator is set to overlay the chart, meaning its visual cues (colored backgrounds) are drawn directly on the price chart.
Bollinger Bands Calculation
Period: A 20-period simple moving average (SMA) is calculated from the closing prices.
Standard Deviation Multiplier: A multiplier of 2.0 is applied.
Bands Defined:
Basis: The 20-period SMA.
Deviation: Calculated as 2 times the standard deviation over the same period.
Upper Band: Basis plus the deviation.
Lower Band: Basis minus the deviation.
RSI Calculation
Period: The RSI is computed over a 14-period span using the closing prices.
Thresholds:
Oversold Threshold: 30 (used for the red zone condition).
Overbought Threshold: 70 (used for the green zone condition).
Zone Conditions
Red Zone (Oversold):
Criteria: The price is below the lower Bollinger Band and the RSI is below 30.
Purpose: Highlights a situation where the asset may be deeply oversold, signaling a potential reversal to the upside.
Green Zone (Overbought):
Criteria: The price is above the upper Bollinger Band and the RSI is above 70.
Purpose: Indicates that the asset may be overbought, potentially signaling a reversal to the downside.
Visual and Alert Components
Background Coloring:
Red Background: Applied when the red zone condition is met (using a semi-transparent red).
Green Background: Applied when the green zone condition is met (using a semi-transparent green).
Alerts:
Red Alert: An alert condition titled “Deep Oversold Alert” is triggered with the message “Deep Oversold Signal triggered!” when the red zone criteria are satisfied.
Green Alert: Similarly, an alert condition titled “Deep Overbought Alert” is triggered with the message “Deep Overbought Signal triggered!” when the green zone criteria are met.
Important Disclaimers
Not Financial Advice:
This indicator is provided for informational and analytical purposes only. It does not constitute trading advice or a recommendation to buy or sell any asset. Traders should use it as one of several tools in their analysis and should perform their own due diligence.
Risk Management:
Trading inherently involves risk. Past performance is not indicative of future results. Always implement appropriate risk management and use stop losses where necessary.
Summary
In summary, the “Red & Green Zone Reversal” indicator uses Bollinger Bands and RSI to detect extreme market conditions. It visually marks oversold (red) and overbought (green) conditions directly on the chart and offers alert conditions to help traders monitor these potential reversal points.
Enjoy!!
FVG Reversal Sentinel🔵 FVG Reversal Sentinel – Multi-Timeframe Fair Value Gap Indicator
The FVG Reversal Sentinel is a powerful TradingView indicator designed to help traders identify and track Fair Value Gaps (FVGs) across multiple timeframes, all within a single chart.
This tool allows you to select up to five separate timeframes, ensuring you never miss key market shifts, whether you are scalping, day trading, or swing trading. You can use this indicator in any asset (Cryptos, Futures, Indices, Forex Pairs, etc.).
🔵 - Key Features -
Multi-Timeframe FVG Tracking – Select and display up to five different timeframes on one chart, providing a comprehensive view of market structure.
Customizable Colors – Adjust bullish and bearish FVG colors to match your chart theme for a seamless trading experience.
Enhanced Market Context – Quickly identify key liquidity zones and refine your entries and exits with precision.
Hide the lower timeframes FVGs to get a clear view in a custom timeframe.
Show or hide mitigated FVGs to declutter the chart.
FVGs boxes are going to be displayed only when the candle bar closes
FVGs are going to be mitigated only when the body of the candle closes above or below the FVG area.
No repainting
Whether you're looking to fine-tune your entries or gain a broader market perspective, the FVG Reversal Sentinel indicator ensures you have the tools to stay ahead of price action and capitalize on market inefficiencies.
🔵 - Customization-
You can change the indicator settings as you see fit to achieve the best results for your use case.
TIMEFRAMES
This indicator provides the ability to select up to 5 timeframes. These timeframes are based on the trader's timeframes including any custom timeframes.
Select the desired timeframe from the options list.
Add the label text you would like to show for the selected timeframe.
Check or uncheck the box to display or hide the timeframe from your chart.
FVG SETTINGS
Length of boxes: allows you to select the length of the box that is going to be displayed for the FVGs.
Delete boxes after fill?: allows you to show or hide mitigated FVGs on your chart.
Hide FVGs lower than enabled timeframes?: allows you to show or hide lower timeframe FVGs on your chart. Example - You are in a 15 minutes timeframe chart, if you choose to hide lower timeframe FVGs you will not be able to see 5 minutes FVG defined in your Timeframes Settings, only 15 minutes or higher timeframe FVGs will be displayed on your chart.
BOX VISUALS
Bullish FVG box color: the color and opacity of the box for the bullish FVGs.
Bearish FVG box color: the color and opacity of the box for the bearish FVGs.
LABELS VISUALS
Bullish FVG labels color: the color for bullish labels.
Bearish FVG labels color: the color for bearish labels.
Labels size: the size of the text displayed in the labels.
Labels position: the position of the label inside the FVGs boxes (right, left or center).
BORDER VISUALS
Border width: the width of the border (the thickness).
Bullish FVG border color: the color and the opacity of the bullish box border.
Bearish FVG border color: the color and the opacity of the bearish box border.
🔵 - How to use the indicator -
Just add the indicator in your chart and click in the settings option to customize it.
Make sure you select the desired timeframes and set the colors and opacity for the FVGs boxes.
This indicator can be used in many trading strategies, such as:
SILVER BULLET
iFVG
iFVG RETEST
These strategies are based on the use of FVGs, this tool can help you analyze the market and make the right decision.
🔵 - How was the indicator designed? -
I have spent a lot of time testing other open source indicators from the community. All of these indicators do a great job, but they have a problem, they not only mitigate FVGs when a candle closes above or below the FVG, they also mitigate FVGs when the candle closes exactly to the tick (not above or below the FVG). This is a problem for many strategies that rely on FVGs mitigation.
What makes this indicator different is that it focuses on just mitigating imbalances at the right time for these strategies.
I have taken ideas and some pieces of code from many community indicator developers, such as:
@twingall
@tflab
@marktools
@nacho-fx
@pmk07
... and many other people, to whom I thank for their valuable work and have allowed me to create this tool by making modifications to their source code.
🔵 - Disclaimer -
This tool is intended solely for informational and educational purposes and should not be regarded as financial, investment, or trading advice. It's not designed to predict market movements or offer specific recommendations. Users should be aware that past performance is not indicative of future results and should not rely on any indicator for financial decisions.
5-0 Harmonic Pattern [TradingFinder] 0XABCD 50 Harmonic Detector🔵 Introduction
Harmonic patterns are a powerful tool in technical analysis, widely used to detect reversal points and trend changes. Among these, the 5-0 Harmonic Pattern stands out due to its reliance on specific Fibonacci ratios—1.13, 1.618, 2.24, and 0.45 to 0.55—anchored at points 0, X, A, B, C, and D. This pattern provides a structured approach for identifying critical buy and sell points, helping traders achieve optimal entry and exit levels in volatile markets.
This 5-0 Harmonic Pattern indicator automatically detects and marks bullish and bearish formations on the chart, offering precise trading signals based on established harmonic ratios. With its dynamic signals, the 5-0 pattern enables traders to anticipate market movements and capitalize on favorable price trends.
Especially in fast-moving markets, harmonic patterns, particularly the 5-0 Harmonic Pattern, equip traders with an essential framework for identifying reversal opportunities and refining their trading strategies.
Bullish 5-0 Pattern :
Bearish 5-0 Pattern :
🔵 How to Use
The 5-0 Harmonic Pattern indicator is designed to automatically mark the key levels of the harmonic structure: 0, X, A, B, C, and D. By doing so, it detects both bullish and bearish patterns and helps traders recognize optimal entry and exit points.
Formed through specific Fibonacci levels, this pattern signals potential shifts in trend direction, giving traders critical insights for managing entries and exits effectively. The tool proves valuable in high-volatility settings, enabling traders to leverage these signals for refined decision-making.
🟣 Bullish 5-0 Pattern
A bullish 5-0 pattern materializes when Fibonacci levels indicate a potential price reversal to the upside. With points 0, X, A, B, C, and D in alignment, the indicator highlights this upward momentum by displaying a green arrow as a buy signal on the chart. This marking provides a clear entry point, indicating that prices are likely to rise, making it a prime moment for traders to enter long positions.
Additionally, the bullish 5-0 pattern is equipped with tools for traders to set stop-loss and take-profit points based on harmonic lines within the pattern, which represent support and resistance levels. Using these dynamic points, traders can create a more effective risk-reward setup while following the bullish signals in a standalone harmonic strategy.
🟣 Bearish 5-0 Pattern
The bearish 5-0 pattern functions similarly but signals a likely downturn. This pattern emerges when Fibonacci ratios align at points 0, X, A, B, C, and D, predicting a reversal downward. The indicator generates a sell signal, marked by a red arrow, prompting traders to exit long positions or initiate short trades to capitalize on falling prices.
Traders can utilize this bearish pattern for defining exit strategies and setting key levels for stop-loss and take-profit orders. The bearish 5-0 pattern enhances traders’ abilities to gauge critical price levels and manage trade risk effectively, especially in volatile markets. For traders focused on profiting from downward trends, this indicator serves as a powerful tool for timely entries and exits.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Forma t: If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
Conclusion
The 5-0 Harmonic Pattern indicator serves as a robust solution for technical analysts and traders looking to pinpoint market reversal points. By automatically recognizing 5-0 patterns and generating buy and sell signals based on Fibonacci ratios, this tool supports precise trend analysis and entry/exit timing. The indicator’s adjustable alerts, color themes, and pattern toggles allow for comprehensive customization, ensuring alignment with individual trading strategies.
Harmonic patterns, especially the 5-0 Harmonic Pattern, guide traders in identifying high-accuracy entry and exit points, thus aiding in more informed trading decisions. By combining Fibonacci ratio analysis with real-time signal updates, this indicator provides a well-rounded approach for risk management and capitalizing on trading opportunities. Professional traders can harness this tool to enhance technical analysis precision and capitalize on price trends effectively, maximizing profitability in both bullish and bearish markets.
Smart Signals Assistant [AlgoAlpha]Introduction
The Smart Signals Assistant, developed by AlgoAlpha, is a robust trading tool designed to empower traders of all levels with a flexible, customizable overlay indicator. Built on proprietary logic, this tool can integrate seamlessly with other indicators or be used as a standalone tool and offers powerful market insights, enabling users to tailor their trading strategy by combining different components for unique strategies. Whether you focus on trend-following or mean-reversion strategies, the Smart Signals Assistant is optimized to support you across various market conditions.
Core Features
1. Trend Cipher Component (Trend Identification and Bar Coloring):
The Trend Cipher is the core feature of the Smart Signals Assistant. It offers an intuitive method to detect trends by displaying clear visual signals, such as arrows ("▲" for bullish trends and "▼" for bearish trends). Additionally, signal strength indications are also included where the arrows will have a '+' sign to signify a strong trend, a strong signal is determined when the volatility of prices are increasing. the candlesticks are color-coded to reflect market conditions—green for bullish, red for bearish, and gray when the market is ranging, ranging markets are marked when the prices end up retracing in the opposite direction after a signal is sent, indicating that buyers/sellers are not ready to continue the trend yet. These added layers of confluence allows users to judge if signals provided by the Trend Cipher are high probability signals.
- Exit Signals : "X" marks indicate potential take-profit points when momentum is waning. Users can set a maximum number of exit signals, allowing for greater control over trade management and predictable exit strategies.
- Customization : Users can adjust the period length for the Trend Cipher to suit different market conditions and strategies. For example, a shorter period is more sensitive and responsive to quick shifts in trends, while a longer period offers more stable signals for long-term traders.(longer periods shown below)
2. Trend Bias Component (Long-term Trend Filter and Confirmation):
The Trend Bias acts as a trend confirmation tool. It comes in the form of a smooth band that reflects the central tendency of price movements. It provides a more comprehensive view of whether the price is trend up or down, as well as whether the price is trending strongly or not. It does so by checking if the current momentum of price is stronger relative to the average momentum over a period of time.
As mentioned earlier, the Trend Bias can also act as a marker of central tendency, meaning that users can use the Trend Bias as a dynamic take-profit zone when executing reversal trades.
- When aligned with the Trend Cipher, the Trend Bias helps traders differentiate between strong and weak trends. Bright colors signify a robust trend, while subdued colors signal weakening momentum. This helps users avoid false signals and enter high-probability trades.
3. Fair Value Trail (Entry Optimization):
The Fair Value Trail is a zone-based component that helps users capture optimal entry points, such as when the market is overbought or oversold. By waiting for price retracements into the Fair Value Trail, traders can achieve better pricing and potentially maximize their profits. The Fair Value Trail is unique in the sense that it dynamically adjusts its width according to the market volatility so that the optimal entry area remains as relevant.
- This feature works in conjunction with the Trend Cipher by allowing users to wait for retracement before entering the trade, thus improving their risk-reward ratio.
4. Trend Spine (Range Detection and Filter):
The Trend Spine helps identify periods of price consolidation by flattening the price action into a rigid line. This helps traders avoid entering trades in choppy or directionless markets. The Trend Spine’s values remain unchanged during consolidations, alerting users when to refrain from trading due to a lack of trend direction.
- This feature integrates with other components, providing clearer signals for trading in trending markets while filtering out trades in ranging or consolidating markets.
5. Firmament Cloud (Reversal Zones):
The Firmament Cloud defines zones on the price chart that are considered extreme, indicating overbought or oversold conditions. Price reaching these zones suggests potential reversal points, giving traders additional confirmation to enter or exit trades. The separation of the upper and lower clouds as well of the width of each respective cloud are dynamically adjusted based on the aggressiveness of price movements coupled with user defined settings for some base parameters such as multipliers for separation and width.
- This component works well for traders using a mean-reversion strategy or those looking for early exits during overextended price movements.
Usage and Customization
The Smart Signals Assistant offers a flexible interface, making it simple to adjust settings such as indicator lengths, noise reduction factors, and display options. Key components, such as the Trend Cipher, Trend Bias, and Fair Value Trail, are highly customizable, allowing traders to create a unique trading system tailored to their specific needs. Tooltips accompany most inputs to help users quickly understand how to adjust the tool effectively.
Combining Components for Synergy
1. Trend Cipher and Trend Bias:
By combining the Trend Cipher with the Trend Bias, users receive both short-term and long-term trend confirmations. A bullish signal from the Trend Cipher, when aligned with an upward-trending Trend Bias, significantly enhances the likelihood of a profitable trade, minimizing the chances of acting on premature signals.
2. Fair Value Trail for Entry Optimization:
Rather than immediately acting on a Trend Cipher signal, users can wait for the price to enter the Fair Value Trail. This strategy ensures better entries at premium or discounted prices, maximizing potential returns.
3. Trend Spine for Range Detection:
The Trend Spine works alongside the Trend Cipher to keep traders out of consolidating markets. When the Trend Spine remains flat, it signals a ranging market, advising users to avoid trades during such periods.
4. Firmament Cloud for Reversal Points:
The Firmament Cloud identifies extreme market conditions, marking zones where traders should be cautious about entering trades. When combined with Trend Cipher signals, this component helps users pinpoint overbought or oversold markets, allowing for strategic entries and exits.
Conclusion
The Smart Signals Assistant is more than just a collection of individual indicators. It offers a comprehensive, multi-layered system that provides a deeper understanding of market dynamics, ranging from trend detection to reversal opportunities. The flexibility in customizing its various components allows traders to craft a strategy suited to their style, whether they prefer trend-following or mean-reversion methods. With this tool, traders can enhance decision-making, optimize entries and exits, and navigate both trending and ranging markets more effectively.
Shark Harmonic Pattern [TradingFinder] Shark Detector Indicator🔵 Introduction
The Shark harmonic pattern, first introduced by Scott Carney in 2011, is a recognized tool in technical analysis. Since its inception, it has been widely adopted by traders as an essential market analysis tool.
Due to its complexity, the Shark pattern can be challenging for novice traders. Therefore, we have developed the Harmonic Pattern Indicator to help analysts and traders easily identify these patterns.
🟣 Understanding the Types of Shark Pattern
In technical analysis, the Shark harmonic pattern forms at the end of trends and is categorized into two types: Bullish and Bearish Shark Patterns.
Bullish Shark Pattern : This pattern appears at the end of a downtrend, indicating a potential reversal to an uptrend. Traders can use this pattern to identify buy entry points. The image below illustrates the core components of the Bullish Shark Pattern.
Bearish Shark Pattern : Conversely, the Bearish Shark Pattern forms at the end of an uptrend, signaling a possible reversal to a downtrend. This pattern prompts traders to shift their positions from buying to selling. The image below showcases the characteristics of the Bearish Shark Pattern.
🔵 How to Use
🟣 Trading with the Bullish Shark Pattern
The Bullish Shark Pattern acts as a reversal pattern, helping traders identify the end of a downtrend and the beginning of an uptrend. It consists of five key points that indicate alternating bullish and bearish movements.
Upon the complete formation of this pattern, traders can look for opportunities to enter buy trades. To manage risk effectively, it is advisable to set a stop-loss below the lowest price point within the pattern.
🟣 Trading with the Bearish Shark Pattern
Similarly, the Bearish Shark Pattern functions as a reversal pattern but in the opposite direction. It helps traders identify the end of an uptrend and the onset of a downtrend.
After the pattern fully forms, traders can seek sell entry opportunities. As with the bullish pattern, placing a stop-loss above the highest price point within the pattern is recommended for risk management.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Format : If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Shark harmonic pattern is a potent analytical tool in technical analysis that aids traders in identifying critical reversal points in financial markets. Whether in a bullish or bearish context, this pattern provides clear trend change signals, allowing traders to enter trades with greater precision and optimize their strategies.
However, as with all analytical methods, it is essential to supplement the Shark pattern with additional analyses and strict risk management to avoid potential losses. Incorporating this pattern into a comprehensive trading strategy can lead to better trade outcomes and more opportunities for success
Multiple Divergences [UAlgo]🔶 Description:
"Multiple Divergences " is providing insights into potential divergences across multiple indicators. Divergence, a concept in technical analysis, occurs when the price of an asset diverges from the direction of an accompanying indicator, suggesting a possible reversal or continuation in the price trend.
🔶 Key Features:
Customizable Divergence Settings: Users can adjust parameters such as the minimum number of divergences required to display labels, pivot lookback periods, and plot options for various types of divergences (regular or hidden) and bullish/bearish labels.
Multiple Technical Indicators: The script supports a wide range of popular indicators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, DMI Oscillator, VWmacd, Chaikin Money Flow, Money Flow Index, and Awesome Oscillator. You can choose any of the above-mentioned technical indicators for which you want to capture divergences.
🔶 Purpose of Using Multiple Technical Indicators
In the complex and volatile world of trading, relying on a single indicator can provide an incomplete or misleading picture of market conditions. Different technical indicators analyze various aspects of price movement, volume, and momentum, offering unique insights that can complement each other. By utilizing multiple indicators, traders can cross-verify signals, reduce false positives, and increase the reliability of their trading decisions.
Identifying divergences across multiple indicators further enhances this reliability, as a divergence spotted in several indicators simultaneously is a stronger signal than one found in isolation. This comprehensive approach helps traders to anticipate potential market turning points with greater confidence and precision.
By integrating multiple technical indicators and meticulously tracking their divergences, this script aims traders with a robust tool for navigating the complexities of financial markets.
🔶 How to Obtain Divergences
Regular Bullish Divergence:
This occurs when the price makes a new lower low compared to a previous pivot low, indicating a downward trend. Simultaneously, the selected oscillator makes a higher low compared to its previous pivot low, indicating a potential upward momentum. This divergence suggests that, despite the falling price, the underlying momentum is strengthening, potentially signaling a reversal to an upward trend.
Regular Bearish Divergence:
This happens when the price makes a new higher high compared to a previous pivot high, indicating an upward trend. Concurrently, the selected oscillator makes a lower high compared to its previous pivot high, indicating weakening momentum. This divergence suggests that, despite the rising price, the underlying momentum is weakening, potentially signaling a reversal to a downward trend.
Example for Regular Bullish and Regular Bearish Divergences (Minimum Divergenes Count to Display = 3, All Selected):
Hidden Bullish Divergence:
Hidden bullish divergence is observed when the price makes a higher low compared to a previous pivot low, indicating an upward trend. At the same time, the oscillator makes a lower low compared to its previous pivot low, indicating a potential strengthening momentum. This condition suggests that the underlying strength of the upward trend is intact, despite the oscillator indicating otherwise.
Hidden Bearish Divergence:
This occurs when the price makes a lower high compared to a previous pivot high, indicating a downward trend. Simultaneously, the oscillator makes a higher high compared to its previous pivot high, indicating a potential weakening momentum. This divergence suggests that the underlying weakness of the downward trend is intact, despite the oscillator indicating otherwise.
Divergence Labeling: The script dynamically generates labels on the chart to visually highlight detected divergences based on user-defined criteria. (E.g. "5 Regular Bullish Divs." , "1 Hidden Bearish Div")
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Bearish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bearish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current low and the previous high, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bearish 3-bar reversal pattern when the high of the previous bar is higher than the high of the bar before it, and the current high is lower than the previous high.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current low and the previous high. This percentage is displayed on the chart.
Visual Indicators:
When a bearish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with a downward arrow, red color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bearish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Bullish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bullish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current high and the previous low, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bullish 3-bar reversal pattern when the low of the previous bar is lower than the low of the bar before it, and the current low is higher than the previous low.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current high and the previous low. This percentage is displayed on the chart.
Visual Indicators:
When a bullish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with an upward arrow, green color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bullish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
TradeTale Reversal Cluster ▲▼This script explains how an Oscillator along with Moving Average & Deviation can be used to catch "Reversal Points (Highest points above Overbought & Lowest points below Oversold)".
What is an Oscillator:-
An oscillator is a technical analysis tool that constructs high and low bands between two extreme values and then builds a trend indicator that fluctuates within these bounds. Traders use the trend indicator to discover short-term overbought or oversold conditions. An oscillator with MA & Deviation is used along with minor calculations (maths) in this Oscillator for generating Long (Green Triangles) and Short signals (Red Triangles).
Moving Average (MA):-
A moving average (MA) is used in technical analysis, used to help smooth out price data by creating a constantly updated average price. A rising moving average indicates that the security is in an uptrend, while a declining moving average indicates a downtrend.
Standard Deviation:-
It is a statistical measure of the amount of variation or dispersion in a set of values. It is used to measure the volatility of an asset's price. It is used to measure how much the price varies from its average price over a certain period of time. A higher standard deviation indicates that the prices are more spread out from the mean, suggesting higher volatility, while a lower standard deviation indicates more stable prices.
Calculation of Standard Deviation
- Find the average value of the data set.
- Find the difference between each data point and the mean.
- Square each of these differences.
- Find the average of the squared differences.
- Take the square root of the variance.
Logic of this indicator:-
This indicator calculates the average price using the formula (high + low + close * 2)/4.
Moving Average & its standard deviation is calculated over a period of 5.
It calculates an oscillator value using a special formula which includes MA & Deviation with Price Action over a period of 5. after that :-
- It determines the highest points for Bearish Red Triangles (Bearish Reversal) and
- It also determines the lowest points for Bullish Green Triangle (Bullish Reversal).
These Triangle signals are based on the calculations of the oscillator values and their MAs & Deviation, and they aim to identify potential reversal points in the price action, when goes above (Bearish Reversal) and when goes below (Bullish Reversal). An oscillator that fluctuates between zero and 100 makes it easy to use for many traders. Its easy to identify extremes because an Oscillator is range-bound.
"Green Triangles" signal in is Long Signal and also exit Short signal. (Bullish Entry/Bearish Exit)
"Red Triangles" signal is Short Signal and also exit Long signal. (Bearish Entry/Bullish Exit)
Caution:-
But remember that Oscillators works best in range bound market and is less trustworthy in trending markets. (caution)
A new trader need to be cautious because during strong trends in the market/security, An oscillator may remain in overbought or oversold condition for extended periods.
Chart Timeframe:-
This Indicator works on all timeframes.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:-
Like other technical indicators, This indicator also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
TradeTale Reversal Alert 🚀This script explains how RSI Oscillator along with Bollinger Bands & Moving Average can be used to catch "Reversal Points".
What is an Oscillator:-
An oscillator is a technical analysis tool that constructs high and low bands between two extreme values and then builds a trend indicator that fluctuates within these bounds. Traders use the trend indicator to discover short-term overbought or oversold conditions. RSI with MA is used along with minor calculations (maths) in this Oscillator for generating Long and Short signals.
RSI:-
RSI is a momentum oscillator which measures the speed and change of price movements. RSI moves up and down (oscillates) between ZERO and 100. Generally RSI above 70 is considered overbought and below 30 is considered oversold. Some traders may use a setting of 20 and 80 for oversold and overbought conditions respectively. Some traders may use a setting of 10 and 90 for oversold and overbought conditions respectively. However this may reduce the number of signals. 10 to 30 is shown as bullish zone and 70 to 90 is shown as bearish zone in this Oscillator.
Calculation:-
There are three basic components in the RSI - Avg Gain, Avg Loss & RS.
Avg Gain = Average of Upward Price Change
Avg Loss = Average of Downward Price Change
RS = (Avg Gain)/(Avg Loss)
RSI = 100 – (100 / (1 +RS ))
First Calculation:-
RSI calculation is based on default 14 periods.
Average gain and Average loss are simple 14 period averages.
Average Loss equals the sum of the losses divided by 14 for the first calculation.
Average Gain equals the sum of the Gains divided by 14 for the first calculation.
First Average Gain = Sum of Gains over the past 14 periods / 14.
First Average Loss = Sum of Losses over the past 14 periods / 14.
The formula uses a positive value for the average loss.
RS values are smoothed after the first calculation.
Second Calculation:-
Subsequent calculations multiply the prior value by 13, add the most recent value, and divide the total by 14.
Average Gain = / 14.
Average Loss = / 14.
if
Average Loss = 0, RSI = 100 (means there were no losses to measure).
Average Gain = 0, RSI = 0 (means there were no gains to measure).
Moving Average (MA):-
A moving average (MA) is used in technical analysis, used to help smooth out price data by creating a constantly updated average price. A rising moving average indicates that the security is in an uptrend, while a declining moving average indicates a downtrend.
Bollinger Bands (BB):–
It is consists of a Moving Average line and two standard deviation lines that are plotted above and below the moving average line. The moving average periods & standard deviation can be adjust according to the preference. Bollinger Bands help traders to identify the volatility and potential price range of security.
Logic of this indicator:-
RSI is an oscillator that fluctuates between zero and 100 which makes it easy to use for many traders. Its easy to identify extremes because RSI is range-bound.
Bollinger Band Upper and Lower Bands are used to identify Overbought & Oversold points Respectively. Price crossover of these Upper & Lower Bands used to calculate Reversal Points.
BB, RSI and MA calculations along with maths is used to generate signals.
Rocket signal in is Long Signal and also exit Short signal. (Bullish Entry/Exit)
Bear signal is Short Signal and also exit Long signal. (Bearish Entry/Exit)
But remember that RSI works best in range bound market and is less trustworthy in trending markets. (caution)
A new trader need to be cautious because during strong trends in the market/security, RSI may remain in overbought (70 to 90) or oversold (10 to 30) for extended periods.
Also Bollinger Bands here are used to calculate range reversal, So is less trustworthy in trending markets. (caution)
Chart Timeframe:-
This Indicator works on all timeframes.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:
Don't confuse RSI and relative strength. RSI is changes in the price momentum of a security.
whereas relative strength compares the price performance of two or more securities.
Like other technical indicators, This indicator also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
Oster's Vola Sentiment (OVS)Overview:
Oster's Vola Sentiment (OVS) is an indicator that reflects market sentiment dynamics based on volatility , employing Oster's Volatility Method for calculation. Inspired by traditional volatility analysis, this indicator provides a versatile tool for traders to interpret market sentiments and identify potential trading opportunities, including potential reversal points . By adjusting the period length in the settings, users can fine-tune OVS sensitivity to capture buy or sell signals, achieving different signal qualities.
Sophisticated Calculation Methodology:
The OVS derives insights from Oster's Volatility Method, utilizing metrics related to price range and movement to assess market dynamics. It calculates the relative movement index, providing traders with a quantifiable measure of market sentiment. Additionally, OVS incorporates the Average True Range (ATR) to further refine its analysis, ensuring comprehensive insights into market volatility dynamics.
Interpretation:
Oster's Vola Sentiment (OVS) , represented on the chart, offers traders insights into market sentiment dynamics and potential reversal points . Values above 0 indicate a buy tendency, suggesting favorable conditions for buying opportunities, while values below 0 suggest a sell tendency, signaling potential selling pressure. The probability of a significant market move increases as OVS values approach the predefined buy or sell thresholds. Values exceeding the buy threshold indicate stronger buying signals, while values below the sell threshold signify stronger selling signals. By aligning these interpretations with the trader's investment strategy, OVS aids in decision-making processes, offering nuanced perspectives on market movements.
Dynamic Color Coding for Visual Clarity:
To enhance user experience and facilitate quick decision-making, OVS incorporates dynamic color coding . Market conditions favoring selling are denoted by red hues, while those conducive to buying are highlighted in green. Neutral conditions, indicative of balanced market sentiment, are represented in neutral colors. This intuitive visual feedback enables traders to swiftly identify market opportunities and risks, empowering them to make informed trading decisions.
Customizable Parameters for Tailored Analysis:
Acknowledging the diverse trading preferences and strategies of its users, OVS offers customizable parameters. Traders can adjust the period length to fine-tune the indicator's sensitivity to their desired level, balancing the frequency and quality of signals according to their trading objectives. Additionally, OVSs alert functionalities allow traders to set personalized thresholds, aligning with their risk tolerance and market outlook.
Conclusion:
In conclusion, Oster's Vola Sentiment (OVS) emerges as a valuable addition to the trader's toolkit, offering a versatile and accessible approach to market analysis. Built upon Oster's Volatility Method and sophisticated calculation methodologies, OVS provides traders with actionable insights into market sentiment across various timeframes and asset classes , including potential reversal points. Its intuitive visualizations, coupled with customizable parameters and alert functionalities, empower traders to navigate dynamic market conditions with confidence. Whether you're a seasoned investor or a novice trader, OVS equips you with the tools needed to stay ahead in today's competitive markets.
Mean Reversion Watchlist [Z score]Hi Traders !
What is the Z score:
The Z score measures a values variability factor from the mean, this value is denoted by z and is interpreted as the number of standard deviations from the mean.
The Z score is often applied to the normal distribution to “standardize” the values; this makes comparison of normally distributed random variables with different units possible.
This popular reversal based indicator makes an assumption that the sample distribution (in this case the sample of price values) is normal, this allows for the interpretation that values with an extremely high or low percentile or “Z” value will likely be reversal zones.
This is because in the population data (the true distribution) which is known, anomaly values are very rare, therefore if price were to take a z score factor of 3 this would mean that price lies 3 standard deviations from the mean in the positive direction and is in the ≈99% percentile of all values. We would take this as a sign of a negative reversal as it is very unlikely to observe a consecutive equal to or more extreme than this percentile or Z value.
The z score normalization equation is given by
In Pine Script the Z score can be computed very easily using the below code.
// Z score custom function
Zscore(source, lookback) =>
sma = ta.sma(source, lookback)
stdev = ta.stdev(source, lookback, true)
zscore = (source - sma) / stdev
zscore
The Indicator:
This indicator plots the Z score for up to 20 different assets ( Note the maximum is 40 however the utility of 40 plots in one indicator is not much, there is a diminishing marginal return of the number of plots ).
Z score threshold levels can also be specified, the interpretation is the same as stated above.
The timeframe can also be fixed, by toggling the “Time frame lock” user input under the “TIME FRAME LOCK” user input group ( Note this indicator does not repain t).
Support & Resistance AI (K means/median) [ThinkLogicAI]█ OVERVIEW
K-means is a clustering algorithm commonly used in machine learning to group data points into distinct clusters based on their similarities. While K-means is not typically used directly for identifying support and resistance levels in financial markets, it can serve as a tool in a broader analysis approach.
Support and resistance levels are price levels in financial markets where the price tends to react or reverse. Support is a level where the price tends to stop falling and might start to rise, while resistance is a level where the price tends to stop rising and might start to fall. Traders and analysts often look for these levels as they can provide insights into potential price movements and trading opportunities.
█ BACKGROUND
The K-means algorithm has been around since the late 1950s, making it more than six decades old. The algorithm was introduced by Stuart Lloyd in his 1957 research paper "Least squares quantization in PCM" for telecommunications applications. However, it wasn't widely known or recognized until James MacQueen's 1967 paper "Some Methods for Classification and Analysis of Multivariate Observations," where he formalized the algorithm and referred to it as the "K-means" clustering method.
So, while K-means has been around for a considerable amount of time, it continues to be a widely used and influential algorithm in the fields of machine learning, data analysis, and pattern recognition due to its simplicity and effectiveness in clustering tasks.
█ COMPARE AND CONTRAST SUPPORT AND RESISTANCE METHODS
1) K-means Approach:
Cluster Formation: After applying the K-means algorithm to historical price change data and visualizing the resulting clusters, traders can identify distinct regions on the price chart where clusters are formed. Each cluster represents a group of similar price change patterns.
Cluster Analysis: Analyze the clusters to identify areas where clusters tend to form. These areas might correspond to regions of price behavior that repeat over time and could be indicative of support and resistance levels.
Potential Support and Resistance Levels: Based on the identified areas of cluster formation, traders can consider these regions as potential support and resistance levels. A cluster forming at a specific price level could suggest that this level has been historically significant, causing similar price behavior in the past.
Cluster Standard Deviation: In addition to looking at the means (centroids) of the clusters, traders can also calculate the standard deviation of price changes within each cluster. Standard deviation is a measure of the dispersion or volatility of data points around the mean. A higher standard deviation indicates greater price volatility within a cluster.
Low Standard Deviation: If a cluster has a low standard deviation, it suggests that prices within that cluster are relatively stable and less likely to exhibit sudden and large price movements. Traders might consider placing tighter stop-loss orders for trades within these clusters.
High Standard Deviation: Conversely, if a cluster has a high standard deviation, it indicates greater price volatility within that cluster. Traders might opt for wider stop-loss orders to allow for potential price fluctuations without getting stopped out prematurely.
Cluster Density: Each data point is assigned to a cluster so a cluster that is more dense will act more like gravity and
2) Traditional Approach:
Trendlines: Draw trendlines connecting significant highs or lows on a price chart to identify potential support and resistance levels.
Chart Patterns: Identify chart patterns like double tops, double bottoms, head and shoulders, and triangles that often indicate potential reversal points.
Moving Averages: Use moving averages to identify levels where the price might find support or resistance based on the average price over a specific period.
Psychological Levels: Identify round numbers or levels that traders often pay attention to, which can act as support and resistance.
Previous Highs and Lows: Identify significant previous price highs and lows that might act as support or resistance.
The key difference lies in the approach and the foundation of these methods. Traditional methods are based on well-established principles of technical analysis and market psychology, while the K-means approach involves clustering price behavior without necessarily incorporating market sentiment or specific price patterns.
It's important to note that while the K-means approach might provide an interesting way to analyze price data, it should be used cautiously and in conjunction with other traditional methods. Financial markets are influenced by a wide range of factors beyond just price behavior, and the effectiveness of any method for identifying support and resistance levels should be thoroughly tested and validated. Additionally, developments in trading strategies and analysis techniques could have occurred since my last update.
█ K MEANS ALGORITHM
The algorithm for K means is as follows:
Initialize cluster centers
assign data to clusters based on minimum distance
calculate cluster center by taking the average or median of the clusters
repeat steps 1-3 until cluster centers stop moving
█ LIMITATIONS OF K MEANS
There are 3 main limitations of this algorithm:
Sensitive to Initializations: K-means is sensitive to the initial placement of centroids. Different initializations can lead to different cluster assignments and final results.
Assumption of Equal Sizes and Variances: K-means assumes that clusters have roughly equal sizes and spherical shapes. This may not hold true for all types of data. It can struggle with identifying clusters with uneven densities, sizes, or shapes.
Impact of Outliers: K-means is sensitive to outliers, as a single outlier can significantly affect the position of cluster centroids. Outliers can lead to the creation of spurious clusters or distortion of the true cluster structure.
█ LIMITATIONS IN APPLICATION OF K MEANS IN TRADING
Trading data often exhibits characteristics that can pose challenges when applying indicators and analysis techniques. Here's how the limitations of outliers, varying scales, and unequal variance can impact the use of indicators in trading:
Outliers are data points that significantly deviate from the rest of the dataset. In trading, outliers can represent extreme price movements caused by rare events, news, or market anomalies. Outliers can have a significant impact on trading indicators and analyses:
Indicator Distortion: Outliers can skew the calculations of indicators, leading to misleading signals. For instance, a single extreme price spike could cause indicators like moving averages or RSI (Relative Strength Index) to give false signals.
Risk Management: Outliers can lead to overly aggressive trading decisions if not properly accounted for. Ignoring outliers might result in unexpected losses or missed opportunities to adjust trading strategies.
Different Scales: Trading data often includes multiple indicators with varying units and scales. For example, prices are typically in dollars, volume in units traded, and oscillators have their own scale. Mixing indicators with different scales can complicate analysis:
Normalization: Indicators on different scales need to be normalized or standardized to ensure they contribute equally to the analysis. Failure to do so can lead to one indicator dominating the analysis due to its larger magnitude.
Comparability: Without normalization, it's challenging to directly compare the significance of indicators. Some indicators might have a larger numerical range and could overshadow others.
Unequal Variance: Unequal variance in trading data refers to the fact that some indicators might exhibit higher volatility than others. This can impact the interpretation of signals and the performance of trading strategies:
Volatility Adjustment: When combining indicators with varying volatility, it's essential to adjust for their relative volatilities. Failure to do so might lead to overemphasizing or underestimating the importance of certain indicators in the trading strategy.
Risk Assessment: Unequal variance can impact risk assessment. Indicators with higher volatility might lead to riskier trading decisions if not properly taken into account.
█ APPLICATION OF THIS INDICATOR
This indicator can be used in 2 ways:
1) Make a directional trade:
If a trader thinks price will go higher or lower and price is within a cluster zone, The trader can take a position and place a stop on the 1 sd band around the cluster. As one can see below, the trader can go long the green arrow and place a stop on the one standard deviation mark for that cluster below it at the red arrow. using this we can calculate a risk to reward ratio.
Calculating risk to reward: targeting a risk reward ratio of 2:1, the trader could clearly make that given that the next resistance area above that in the orange cluster exceeds this risk reward ratio.
2) Take a reversal Trade:
We can use cluster centers (support and resistance levels) to go in the opposite direction that price is currently moving in hopes of price forming a pivot and reversing off this level.
Similar to the directional trade, we can use the standard deviation of the cluster to place a stop just in case we are wrong.
In this example below we can see that shorting on the red arrow and placing a stop at the one standard deviation above this cluster would give us a profitable trade with minimal risk.
Using the cluster density table in the upper right informs the trader just how dense the cluster is. Higher density clusters will give a higher likelihood of a pivot forming at these levels and price being rejected and switching direction with a larger move.
█ FEATURES & SETTINGS
General Settings:
Number of clusters: The user can select from 3 to five clusters. A good rule of thumb is that if you are trading intraday, less is more (Think 3 rather than 5). For daily 4 to 5 clusters is good.
Cluster Method: To get around the outlier limitation of k means clustering, The median was added. This gives the user the ability to choose either k means or k median clustering. K means is the preferred method if the user things there are no large outliers, and if there appears to be large outliers or it is assumed there are then K medians is preferred.
Bars back To train on: This will be the amount of bars to include in the clustering. This number is important so that the user includes bars that are recent but not so far back that they are out of the scope of where price can be. For example the last 2 years we have been in a range on the sp500 so 505 days in this setting would be more relevant than say looking back 5 years ago because price would have to move far to get there.
Show SD Bands: Select this to show the 1 standard deviation bands around the support and resistance level or unselect this to just show the support and resistance level by itself.
Features:
Besides the support and resistance levels and standard deviation bands, this indicator gives a table in the upper right hand corner to show the density of each cluster (support and resistance level) and is color coded to the cluster line on the chart. Higher density clusters mean price has been there previously more than lower density clusters and could mean a higher likelihood of a reversal when price reaches these areas.
█ WORKS CITED
Victor Sim, "Using K-means Clustering to Create Support and Resistance", 2020, towardsdatascience.com
Chris Piech, "K means", stanford.edu
█ ACKNOLWEDGMENTS
@jdehorty- Thanks for the publish template. It made organizing my thoughts and work alot easier.
Trend Change DetectorThe trend change detector oscillator is a tool designed to help traders identify the current trend direction paired with the potential reversal zones.
The oscillator is made of multiple parts:
- The colored histogram, that displays the current long-term trend direction (long if above 0, short if below)
- The trend line, which shows the price in relation to the fair value of the current trend
- The reversal zones, which are the area that alarms the traders that the price might reverse soon after having touched them
The indicator can work with three different inputs. In the Source panel, you can choose between "Price", "Price and Volume" and "Ponderated Volume". The price input uses only the price, the price and volume use the average between the price and the ponderated volume, and the ponderated volume shows the indicator working with volume data, with formulas such as the On Balance Volume and the Accumulation-Distribution line.
This indicator can be used both for trend following technique, using the cross of the trend line with the 0-line as signals in conjunction with the bias given by the histogram, and for mean reversal technique thanks to the reversal zones that allow traders to identify potential tops and bottoms.
Agressive ConfirmationThis indicator serves as a guide for aggressive counter-trend trading, offering entries, a trailing stop for trade exits and a performance backtesting system (risk ratio).
AC proves to be an excellent ally in assisting counter-trend entry decisions. The signals come from two different sources, and are positioned almost identically in terms of the timing of entry into a trade on a trend change.
The first is RSI reintegration: simple, effective. The second is price action reintegration (identifies short-term support/resistance, a false break with counter-trend reinjection).
The duality of this entry system means you can be present on most local tops and bottoms without having an excessively high number of trade entries. The failure of the first entry can give a signal on the second (divergence, volatility...): use this complementarity to your advantage! If the first signal ends in a loss, wait for confirmation on the second signal.
The trailing stop system is activated as soon as an entry signal is detected, and if no entry signal is still active. The trade is closed when the candle closes above or below the trailing stop.
Two possible settings:
"passive": (multiply 5, period 8), least reactive trailing stop, willing to hold the trade
"balanced": (multiply 1, period 4): versatile trailing stop, ideal compromise.
These trailing stop parameters are optimized by the automated backtesting strategy of our IRL indicator, which indicates precise reversal levels. To use them in this specific context, you need to be in timeframe m1. For more information on these levels, please see my profile!
The stop loss for each reversal corresponds to the last high/low of the last 4 candles. It's possible to display this value above or below the trade entry signal, which makes it easier to understand the practical application of the signals presented.
An option for displaying more information on trades executed once closed. When an exit signal is detected (stop loss OR trailing stop), the candle leading to the trade's closure is marked with a label, providing information on the trade's profit (expressed in R, risk ratio). A second piece of information, in brackets, is the drawup: this corresponds to the maximum unrealized PNL of the closed trade.
The size of these labels can be modified according to the trade's PNL, all managed by profitability thresholds in R (default: 8R, 4R, 1R).
these latest entry signal performance functions optimize the backtesting process and the identification of relevant reversal strategies, by reversing the methodology: "where are the biggest profits made over such and such a period, what were the signals of my studied strategy, ...". The drawup, for its part, will enable you to appreciate an entry during a volatile period, which can sometimes lead to substantial short-term gains, but which the trailing stop exit failed to capitalize on!
A second signal corresponds to an additional confirmation, generally later in the timing, and informed by candle coloring. Based on RSI convergence/divergence, and to be used as a possible complementary filter to entry signals. Independent and without impact on the entry and exit signals studied.
This indicator has been developed in synergy with our other published technical indicators for identifying reversal zones / reversal timings, and offers a guideline for those less experienced in frontrunning/counter-trending. AC should be the sinequa none for a reversal entry, and will enable you to appreciate the reversal setups studied!
Typical Price Difference - TPD © with reversal zones and signalsv1.0 NOTE: The maths have been tested only for BTC and weekly time frame.
This is a concept that I came through after long long hours of VWAP trading and scalping.
The idea is pretty simple:
1) Typical Price is calculated by (h+l+c) / 3. If we take this price and adjust it to volume we get the VWAP value. The difference between this value and the close value, i call it " Typical Price Difference - TPD ".
2) We get the Historical Volatility as calculated by TradingView script and we add it up to TPD and divide it by two (average). This is what I call " The Source - TS ".
3) We apply the CCI formula to TS .
4) We calculate the Rate of Change (roc) of the CCI formula.
5) We apply the VIX FIX of Larry Williams (script used is from ChrisMoody - CM_Williams_Vix_Fix Finds Market Bottoms) *brilliant script!!!
How to use it:
a) When the (3) is over the TPD we have a bullish bias (green area). When it's under we have a bearish bias (red area).
b) If the (1) value goes over or under a certain value (CAUTION!!! it varies in different assets or timeframes) we get a Reversal Zone (RZ). Red/Green background.
c) If we are in a RZ and the VIX FIX gives a strong value (look for green bars in histogram) and roc (4) goes in the opposite direction, we get a reversal signal that works for the next week(s).
I applied this to BTC on a weekly time frame and after some corrections, it gives pretty good reversal zones and signals. Especially bottoms. Also look for divergences in the zones/signals.
As I said I have tested and confirmed it only on BTC/weekly. I need more time with the maths and pine to automatically adjust it to other time frames. You can play with it in different assets or time frames to find best settings by hand.
Feel free to share your thoughts or ideas on this.
P.S. I realy realy realy try to remember when or how or why I came up with the idea to combine typical price with historical volatility and CCI. I can't! It doesn't make any sense LOL
TASC 2022.12 Short-Term Continuation And Reversal Signals█ OVERVIEW
TASC's December 2022 edition Traders' Tips includes an article by Barbara Star titled "Short-Term Continuation And Reversal Signals". This is the code that implements the concepts presented in this publication.
█ CONCEPTS
The article takes two classic indicators, the Commodity Channel Index (CCI) and the Directional Movement Indicator (DMI), makes changes to the traditional ways of visualizing their readings, and uses them together to generate potential signals. The author first discusses the benefits of converting the DMI indicator to an oscillator format by subtracting the −DI from the +DI, which is then displayed as a histogram. Next, the author shows how the use of an on-chart visual framework (i.e., choosing the line style and color, coloring price bars, etc.) can help traders interpret the signals produced the considered pair of indicators.
█ CALCULATIONS
The article offers the following signals based on the readings of the DMI and CCI pair, suitable for several types of trades:
• Short-term trend change signals:
A DMI oscillator above zero indicates that prices are in an uptrend. A DMI oscillator below the zero line and falling means that selling pressure is dominating and price is trending down. The sign of the DMI oscillator is indicated by the color of the price bars (which correlates with the color of the DMI histogram). Namely, green, red and grey price bars correspond to the DMI oscillator above, below and equal to zero . Colored price bars and the DMI oscillator make it easy for trend traders to recognize changes in short-term trends.
• Trend continuation signals:
Blue circles appear near the bottom of the oscillator chart border when the DMI is above the zero line and the price is above its simple moving average in an uptrend . Dark red circles appear near the top of the chart in a downtrend when the DMI oscillator is below its zero line and below the 18-period moving average. Trend continuation signals are useful for those looking to add to existing positions, as well as for traders waiting for a pullback after a trend has started.
• Reversal signals:
The CCI signals a reversal to the downside when it breaks out of its +100 and then returns at some point, crossing below the +100 level. This is indicated by a magenta-colored diamond shape near the top the chart. The CCI signals a reversal to the upside when it moves below its −100 level and then at some point comes back to cross above the −100 level. This is indicated by a yellow diamond near the bottom of the chart. Reversal signals offer short-term rallies for countertrend traders as well as for swing traders looking for longer-term moves using the interplay between continuation and reversal signals.
Index Reversal Range with Volatility Index or VIXWhat is the Indicator?
• The indicator is a visualization of maximum price in which the respective index can go up to in comparison with it's Volatility Index or VIX.
Who to use?
• Intraday
• Swing
• Position
• Long term Investors
• Futures
• Options
• Portfolio Managers
• Mutual Fund Managers
• Index Traders
• Volatility based Traders
• Long term Investors and Options Traders gets the maximum benefit
What timeframe to use?
• 1 Year: Position & Investors
• 6 Months: Position & Investors
• 3 Months: Swing & Position
• 1 Month: Swing & Position
• 1 Week: Swing
• 1 Day: Swing
• 1 Hour: Intraday & Swing
What are Upper and Lower lines?
• Upper Line: If the index price reach closer to the Upper line there is a high chance of reversal to Bearish trend.
• Lower Line: If the index price reach closer to the Lower line there is a high chance of reversal to Bullish trend.
• This need to be confirmed with multiple levels like Daily, Weekly, Monthly etc.
How to use?
• If the price reach closer to that level there is a high chance of reversal from the current trend.
• To identify the reversal zone of the index.
• To identify the trend.
• Option Traders can Sell a Call or Put Option from that level.
• Long term Investors, Position or Swing traders can plan for a Long entry.
• Intraday traders can use lower timeframes to do the same.
Indicator Menu
• Input VIX: Identify the VIX Symbol of your Index and type it in the box.
• For example for NIFTY Index chart type INDIAVIX in the box.
• Choose multiple timeframes according to your convenience.
How to turn on indicator Name and Value labels?
• Right side of the screen >
• Right click on the Price scale >
• Labels > Indicators and financial name labels, Indicators and financial value labels
Further Reading:
• Various videos and reading materials are available about this method.
wnG - Spikes IdentifierThis indicator, based on the ATR, allows you to identify the potential reversal on price and helps you identify the Support and Resistance.
When the price moves far away from the multiple moving average, the background color changes :
- Red for Short potential entry
- Green for Long potential entry
There are 2 ways to use this script :
- Conservative : Use it in your trading system to Take Profit ==> when the background turns red, close LONG position (and green = close short).
- Aggressive : As soon as the background turns red, enter SHORT (and green = long).
For aggressive use, I recommand you to couple this script with an oscillator to confirm the signals (RSI stochastic for example).
You can customize the sensibility with 4 levels :
- low probability of reversal
- medium probability of reversal
- high probability of reversal
- very high probability of reversal
PS : the "High" and "Very High" probability setup are the only one I'm using in my trading systems.
Trend Pro ReversalTrend Pro Reversal Indicator ( TPR ) is a trend following indicator that I created to analyze market trends.
It is a perfect tool for investors/swing traders to ride the waves.
The algorithm combines several settings.
Multiple moving averages and indicators to follow the trend : their confluence associates a color at each daily candle:
-Red ( bearish ++ )
-Green ( bullish ++ )
-Orange (trend reversal - pre bearish )
-Light blue (trend reversal - pre bullish )
Color precision can be managed in the settings pannel. More precision = more reactivity but also can imply more false signals. The optimal settings is between 32 to 34.
-"Bottom detector" (green dots) : volume based algo, generally corresponds to Spikes in selling volume , and interesting low prices zones.
>>>This setting need to be adjust to each asset and exchanges because it's volume based. Some exchange are more relevant than other (coinbase, ftx, binance..)
For exemple for bitcoin , coinbase with a 150-160 bottom setting is good for mid-long term bottoms.
The lower bottom precision is, the more it shows short term dips.
- "Weakness detector" (white dots) : weakness in the trend - avoid fake outs
>>>This is not necesseraly a sell signal.
When buying momentum and price action is weak, this parameter is actived. It can often lead to short/mid term dump
- Confirmation cloud :
>>>Break it to the upside and there are more chances that the trend is confirmed. It often acts like support cloud in bitcoin bullmarkets. Waiting for the break of the confirmation cloud imply lower risk but also lower performance for swing traders.
Accumulate and averaging down when an asset shows green dots + red candles (bottom zone) and start to close position when weakness come in (green/orange/early-red /white dots) can permit to maximize gains in bullmarket and protect wallet when corrections happen.
-> Ideal use in daily timeframe . Some false signal can happen only when the trend is not clear. (tight range and f*ckmoves)
Designed for bitcoin initially. (works with most altcoins / stocks )
Simplified candlesticksSimplified candlesticks tracks sticks for their body and wick
- For Long bars sticks ( LS ) tracks and marks them on down trend as continuation and reversal if moves appositive direction.
- For largest wicks on ends marks as regular Doji
- For large wicks and medium body marks as possible consolidation
- For only bottom bigger wick as bears weakness if trend down and possible reversal if trend is up.
- For only upper bigger wick as bulls weakness if trend up and possible reversal if trend is down