[strategy][1H] SPY slow stochastics
SPY slow stochastics
Overview
The "SPY Auto RSI Stochastics" strategy is designed to leverage a combination of Relative Strength Index (RSI) and Stochastic indicators to identify potential entry and exit points in trading the SPY $SP:SPX.
The technicals:
A simple yet effective strategy for identifying (reversal) trends on SPY (or any asset).
The logic is as follows:
1. Slow stochastics are effective at predicting momentum. They can also be used to effectively identify reversals.
2. A combination of slow and fast RSI (along with an SMA for the fast RSI) can be used to see potential changes in the directional trend of the underlying asset.
3. In order to reduce noise, a band in the middle of RSI values is ignored; think of this as the price converging and potential explosions (sometimes fake) on either side.
4. Outside this noise band, a crossover of fast RSI on slow RSI indicates an upward trend incoming.
5. A crossunder of fast RSI on slow RSI indicates a downward trend incoming.
Strategy Specific Notes -
1. Load this strategy on SPREADEX:SPX on an hourly chart for the best results.
2. This is a generic strategy, use it on anything - index, stocks, etc. You will need to adjust the parameters for the best results.
3. The RSI Upper defines the cutoff for two things -- threshold for entering a long AND exit signal for short. Likewise for RSI Lower.
4. To have alerts on the strategy, add this to your chart, be content with the backtesting results, select "strategy tester", the alert icon, replace the message body with "{{strategy.order.alert_message}}" without the ".
5. In my experience, the strategy won't be immediately profitable upon a signal but it does get there in the backtested results. Intuitively, this makes sense. Reversals take some time to kick in completely.
Inputs
- **slowRSILength**: Length parameter for the slow RSI calculation.
- **fastRSILength**: Length parameter for the fast RSI calculation.
- **smaRSILength**: Length parameter for the Simple Moving Average (SMA) of the fast RSI.
- **RSIUpperThreshold**: Upper threshold for the RSI, used in exit conditions.
- **RSILowerThreshold**: Lower threshold for the RSI, used in exit conditions.
- **RSIUpperDeadzone**: Upper deadzone threshold for the RSI.
- **RSILowerDeadzone**: Lower deadzone threshold for the RSI.
Strategy Logic
- **RSI Calculation**: The script calculates both slow and fast RSI values based on the provided lengths.
- **Entry Condition**: Entry conditions for long and short positions are based on the crossing of fast RSI over slow RSI and SMA RSI, respectively, along with avoidance of RSI deadzones and validation of trade time.
- **Exit Condition**: Exit conditions for both long and short positions are based on crossing RSI thresholds or opposite entry conditions.
Trade Management
- **Position Entry**: Long and short positions are entered based on predefined entry conditions.
- **Position Exit**: Positions are exited based on predefined exit conditions.
- **Alerts**: The script provides alert messages for entry and exit points.
Plotting
- **Slow RSI**: Plots the slow RSI on the chart.
- **SMA RSI**: Plots the Simple Moving Average of fast RSI on the chart.
Example Usage
The defaults work well for SPY on a 1H timeframe.
If you apply this to anything else DAX, EUSTX50, FTSE, CAC (these are what i have); tweak the input parameters.
Plotting
plot(slowRSI, "Slow RSI", color=color.green) //or fastRSI
plot(smaRSI, "SMA RSI", color=color.white)
Conclusion
The "SPY Auto RSI Stochastics" strategy combines RSI and Stochastic indicators to provide potential trade signals for the SPY ETF. Traders can use this strategy with proper risk management and analysis to enhance their trading decisions.
Harmonic Patterns
Otekura Range Trade Algorithm [Chain Hood]The Range Trade Algorithm calculates the levels for Monday.
On the chart you will see that the Monday levels will be marked as 1 0 -1.
The M High level calculates Monday's high close and plots it on the screen.
M Low calculates the low close of Monday and plots it on the screen.
The coloured lines on the screen are the points of the range levels formulated with fibonacci values.
The indicator has its own Value table. The prices of the levels are written.
Potential Range breakout targets tell prices at points matching the fibonacci values. These are Take profit or reversal points.
Buy and Sell indicators are determined by the range breakout.
Users can set an alarm on the indicator and receive direct notification with their targets when a new range occurs.
Fib values are multiplied by range values and create an average target according to the price situation. These values represent an area. Breakdown targets show that the target is targeted until the area.
Converging Chart Patterns - Ultimate [Trendoscope®]🎲 Introducing the Converging Chart Patterns Ultimate Indicator
Derived from the comprehensive capabilities of our premium offering, the Auto Chart Patterns - Ultimate , this new indicator focuses exclusively on converging chart patterns. It marks the beginning of a series that, over time, will encompass the full spectrum of chart pattern analysis, ultimately enhancing and expanding beyond the scope of Auto Chart Patterns.
This strategic separation into more focused indicators is designed to cater to traders seeking precision in specific chart pattern categories.
🎲 Leveraging Research and Open-Source Foundations
Our journey to this indicator has been paved by extensive research and the insights gained from our prior works on Chart Patterns, including:
Algorithmic Identification of Chart Patterns
Flag and Pennant Chart Patterns
Trading Converging Chart Patterns
Drawing upon the foundation laid by our publicly shared indicators - Auto Chart Patterns and Flags and Pennants - this tool is the culmination of our efforts to provide traders with a refined method for strategizing around converging patterns. It not only facilitates the development of technical trading strategies but also aids in evaluating their effectiveness through historical performance analysis. The specific patterns addressed by this indicator include:
Rising Wedge (Converging Type)
Falling Wedge (Converging Type)
Converging Triangle
Rising Triangle (Converging Type)
Falling Triangle (Converging Type)
🎲 Chart Pattern Scanning Methodology
The process of identifying converging chart patterns involves several key steps:
Begin by examining each zigzag for the last 5 or 6 pivot points to identify potential trend line pairs.
Determine if these trend lines are converging by projecting them forwards and checking for an intersection within a specified number of bars ahead.
Upon confirming convergence, categorize each pattern based on the directional orientation of its trend lines, as detailed in our article - Algorithmic Identification of Chart Patterns
🎲 Methodology or Trading for Chart Patterns
While traditional views assign specific trading biases to converging patterns (e.g., Rising Wedges as bearish and Falling Wedges as bullish, with Triangles being more versatile), empirical support for these assumptions is limited. Our indicator is designed to empower users to explore and validate various trading hypotheses, including unconventional ones, thereby not confining trading strategies to past market behaviors.
We enable extensive customization for testing different strategies, with the initial setup allowing for both long and short trading scenarios for each identified pattern. Users have the liberty to adjust trading directions and other parameters within the indicator's settings to suit their analytical needs.
This open approach is rooted in the methodology outlined in - Trading Converging Chart Patterns , exemplified by the following process, which users can adapt and refine through our indicator.
🎲 Overview of Indicator Components
The components of our indicator are illustrated in the chart below
Pattern Visualization : This feature dynamically displays the patterns on the chart, focusing on currently active patterns. To maintain clarity and performance, historical patterns are not shown due to the constraints of drawing objects.
Trading Annotations : The indicator marks open trades directly on the chart, accommodating both long and short positions depending on the user's settings and the current status of trades associated with each pattern.
Performance Metrics Table : A comprehensive table presents the back testing results for individual patterns as well as aggregated outcomes. It includes crucial metrics such as win rates and the profit factor based on the set risk-reward ratio, offering users valuable insights into the potential profitability of their configurations and trade strategies.
🎲 Exploring the Indicator's Customization Options
This indicator is rich in settings, offering users the capability to tailor criteria and adapt their trading rules. Each setting is accompanied by detailed tooltips, providing insights into their use. Let's examine each category systematically.
🎯 Zigzag Configuration Options
These settings enable users to adjust the scope of their pattern analysis by varying the zigzag's length and depth.
Length Adjustment : Modifying this parameter changes the scale of detected patterns, with higher values spotting larger formations and lower ones focusing on more compact patterns.
Depth Enhancement : This alters the intricacy of the recursive zigzag analysis, potentially unveiling larger patterns across several levels. Caution is advised, as excessive depth may lead to the indicator exceeding its processing capacity.
🎯 Pattern Scanning Settings
This suite of settings fine-tunes the pattern scanning process, generally calibrated for precise geometric alignment of identified patterns. While most settings may remain as default for routine use, users are encouraged to tweak them, especially the "Last Pivot Direction," to explore various theoretical approaches to pattern trading.
🎯 Trade Configuration Settings
Arguably the most crucial for users, these settings offer complete autonomy in defining trading strategies around converging chart patterns. This includes the flexibility to set entry, stop, and target prices, adjust risk-reward ratios, select the historical depth for back testing, and incorporate filters to steer trade direction.
🎯 Pattern Specific Settings
Here, users can personalize settings for individual patterns or groups, enhancing the specificity of their strategy. Apart from enabling/disabling individual patterns and pattern groups, users can also select pattern specific Last Pivot Direction, Trade Direction Filter and external filters for each pattern.
🎯 Fully Customizable Alerts
Implemented through the alert() function, these alerts bypass the standard template in the alert widget. To counteract this, we've introduced placeholders within the settings to craft detailed alert templates.
Available Categories Include
New - Alerts when a new pattern is identified
Entry - Alerts when an entry condition for configured pattern based trade is met.
Stop - Alerts when a trade that has reached entry gets stopped out without reaching target
Target - Alerts when a trade reaches its target
Invalidation - Alerts when a trade reaches invalidation point before reaching the entry.
Each alert types can have its own template. Customizable templates are very important in using alerts for broker or exchange integration.
Here are some of the placeholders that are defined in the indicator.
{type} - Alert type - new/entry/stop/target/invalid
{pid} - Pattern ID of the pattern belonging to trade. Multiple trades can have same pattern id since a pattern can be traded in both long and short directions.
{tid} - Unique Trade ID for the given trade.
{ticker} - Ticker ID on which the indicator is run
{timeframe} - Chart timeframe on which the indicator is run
{basecurrency} - Base currency of the symbol
{quotecurrency} - Quote currency of the symbol
{pivots} - Pivot values of the pattern
{price} - Current price when the alert is triggered.
{pattern} - Name of the pattern on which the alert is triggered.
{direction} - Direction of the trade.
{entrydirection} - Direction of the entry signal. Used for specific bot integration.
{exitdirection} - Direction of the exit signal. Used for specific bot integration.
{entry} - Entry price of the trade
{stop} - Stop price of the trade
{target} - Target price of the trade
{invalidation} - Invalidation price of the trade
🎯 Display and Stats
These settings are used to control the display options on the chart. Closed trade stats is displayed in a table and printed in the bottom left corner of the chart. This can be customized by using display settings.
Flags and Pennants [Trendoscope®]🎲 An extension to Chart Patterns based on Trend Line Pairs - Flags and Pennants
After exploring Algorithmic Identification and Classification of Chart Patterns and developing Auto Chart Patterns Indicator , we now delve into extensions of these patterns, focusing on Flag and Pennant Chart Patterns. These patterns evolve from basic trend line pair-based structures, often influenced by preceding market impulses.
🎲 Identification rules for the Extension Patterns
🎯 Identify the existence of Base Chart Patterns
Before identifying the flag and pennant patterns, we first need to identify the existence of following base trend line pair based converging or parallel patterns.
Ascending Channel
Descending Channel
Rising Wedge (Contracting)
Falling Wedge (Contracting)
Converging Triangle
Descending Triangle (Contracting)
Ascending Triangle (Contracting)
🎯 Identifying Extension Patterns.
The key to pinpointing these patterns lies in spotting a strong impulsive wave – akin to a flagpole – preceding a base pattern. This setup suggests potential for an extension pattern:
A Bullish Flag emerges from a positive impulse followed by a descending channel or a falling wedge
A Bearish Flag appears after a negative impulse leading to an ascending channel or a rising wedge.
A Bullish Pennant is indicated by a positive thrust preceding a converging triangle or ascending triangle.
A Bearish Pennant follows a negative impulse and a converging or descending triangle.
🎲 Pattern Classifications and Characteristics
🎯 Bullish Flag Pattern
Characteristics of Bullish Flag Pattern are as follows
Starts with a positive impulse wave
Immediately followed by either a short descending channel or a falling wedge
Here is an example of Bullish Flag Pattern
🎯 Bearish Flag Pattern
Characteristics of Bearish Flag Pattern are as follows
Starts with a negative impulse wave
Immediately followed by either a short ascending channel or a rising wedge
Here is an example of Bearish Flag Pattern
🎯 Bullish Pennant Pattern
Characteristics of Bullish Pennant Pattern are as follows
Starts with a positive impulse wave
Immediately followed by either a converging triangle or ascending triangle pattern.
Here is an example of Bullish Pennant Pattern
🎯 Bearish Pennant Pattern
Characteristics of Bearish Pennant Pattern are as follows
Starts with a negative impulse wave
Immediately followed by either a converging triangle or a descending converging triangle pattern.
Here is an example of Bearish Pennant Pattern
🎲 Trading Extension Patterns
In a strong market trend, it's common to see temporary periods of consolidation, forming patterns that either converge or range, often counter to the ongoing trend direction. Such pauses may lay the groundwork for the continuation of the trend post-breakout. The assumption that the trend will resume shapes the underlying bias of Flag and Pennant patterns
It's important, however, not to base decisions solely on past trends. Conducting personal back testing is crucial to ascertain the most effective entry and exit strategies for these patterns. Remember, the behavior of these patterns can vary significantly with the volatility of the asset and the specific timeframe being analyzed.
Approach the interpretation of these patterns with prudence, considering that market dynamics are subject to a wide array of influencing factors that might deviate from expected outcomes. For investors and traders, it's essential to engage in thorough back testing, establishing entry points, stop-loss orders, and target goals that align with your individual trading style and risk appetite. This step is key to assessing the viability of these patterns in line with your personal trading strategies and goals.
It's fairly common to witness a breakout followed by a swift price reversal after these patterns have formed. Additionally, there's room for innovation in trading by going against the bias if the breakout occurs in the opposite direction, specially when the trend before the formation of the pattern is in against the pattern bias.
🎲 Cheat Sheet
🎲 Indicator Settings
Custom Source : Enables users to set custom OHLC - this means, the indicator can also be applied on oscillators and other indicators having OHLC values.
Zigzag Settings : Allows users to enable different zigzag base and set length and depth for each zigzag.
Scanning Settings : Pattern scanning settings set some parameters that define the pattern recognition process.
Display Settings : Determine the display of indicators including colors, lines, labels etc.
Backtest Settings : Allows users to set a predetermined back test bars so that the indicator will not time out while trying to run for all available bars.
Auto Chart Patterns [Trendoscope®]🎲 Introducing our most comprehensive automatic chart pattern recognition indicator.
Last week, we published an idea on how to algorithmically identify and classify chart patterns.
This indicator is nothing but the initial implementation of the idea. Whatever we explained in that publication that users can do manually to identify and classify the pattern, this indicator will do it for them.
🎲 Process of identifying the patterns.
The bulk of the logic is implemented as part of the library - chartpatterns . The indicator is a shell that captures the user inputs and makes use of the library to deliver the outcome.
🎯 Here is the list of steps executed to identify the patterns on the chart.
Derive multi level recursive zigzag for multiple base zigzag length and depth combinations.
For each zigzag and level, check the last 5 pivots or 6 pivots (based on the input setting) for possibility of valid trend line pairs.
If there is a valid trend line pair, then there is pattern.
🎯 Rules for identifying the valid trend line pairs
There should be at least two trend lines that does not intersect between the starting and ending pivots.
The upper trend line should touch all the pivot highs of the last 5 or 6 pivots considered for scanning the patterns
The lower trend line should touch all the pivot lows of the last 5 or 6 pivots considered for scanning the patterns.
None of the candles from starting pivot to ending pivot should fall outside the trend lines (above upper trend line and below lower trend line)
The existence of a valid trend line pair signifies the existence of pattern. What type of pattern it is, to identify that we need to go through the classification rules.
🎲 Process of classification of the patterns.
We need to gather the following information before we classify the pattern.
Direction of upper trend line - rising, falling or flat
Direction of lower trend line - rising, falling or flat
Characteristics of trend line pair - converging, expanding, parallel
🎯 Broader Classifications
Broader classification would include the following types.
🚩 Classification Based on Geometrical Shapes
This includes
Wedges - both trend lines are moving in the same direction. But, the trend lines are either converging or diverging and not parallel to each other.
Triangles - trend lines are moving in different directions. Naturally, they are either converging or diverging.
Channels - Both trend lines are moving in the same direction, and they are parallel to each other within the limits of error.
🚩 Classification Based on Pattern Direction
This includes
Ascending/Rising Patterns - No trend line is moving in the downward direction and at least one trend line is moving upwards
Descending/Falling Patterns - No trend line is moving in the upward direction, and at least one trend line is moving downwards.
Flat - Both Trend Lines are Flat
Bi-Directional - Both trend lines are moving in opposite direction and none of them is flat.
🚩 Classification Based on Formation Dynamics
This includes
Converging Patterns - Trend Lines are converging towards each other
Diverging Patterns - Trend Lines are diverging from each other
Parallel Patterns - Trend Lines are parallel to each others
🎯 Individual Pattern Types
Now we have broader classifications. Let's go through in detail to find out fine-grained classification of each individual patterns.
🚩 Ascending/Uptrend Channel
This pattern belongs to the broader classifications - Ascending Patterns, Parallel Patterns and Channels. The rules for the Ascending/Uptrend Channel pattern are as below
Both trend lines are rising
Trend lines are parallel to each other
🚩 Descending/Downtrend Channel
This pattern belongs to the broader classifications - Descending Patterns, Parallel Patterns and Channels. The rules for the Descending/Downtrend Channel pattern are as below
Both trend lines are falling
Trend lines are parallel to each other
🚩 Ranging Channel
This pattern belongs to the broader classifications - Flat Patterns, Parallel Patterns and Channels. The rules for the Ranging Channel pattern are as below
Both trend lines are flat
Trend lines are parallel to each other
🚩 Rising Wedge - Expanding
This pattern belongs to the broader classifications - Rising Patterns, Diverging Patterns and Wedges. The rules for the Expanding Rising Wedge pattern are as below
Both trend lines are rising
Trend Lines are diverging.
🚩 Rising Wedge - Contracting
This pattern belongs to the broader classifications - Rising Patterns, Converging Patterns and Wedges. The rules for the Contracting Rising Wedge pattern are as below
Both trend lines are rising
Trend Lines are converging.
🚩 Falling Wedge - Expanding
This pattern belongs to the broader classifications - Falling Patterns, Diverging Patterns and Wedges. The rules for the Expanding Falling Wedge pattern are as below
Both trend lines are falling
Trend Lines are diverging.
🚩 Falling Wedge - Contracting
This pattern belongs to the broader classifications - Falling Patterns, Converging Patterns and Wedges. The rules for the Converging Falling Wedge are as below
Both trend lines are falling
Trend Lines are converging.
🚩 Rising/Ascending Triangle - Expanding
This pattern belongs to the broader classifications - Rising Patterns, Diverging Patterns and Triangles. The rules for the Expanding Ascending Triangle pattern are as below
The upper trend line is rising
The lower trend line is flat
Naturally, the trend lines are diverging from each other
🚩 Rising/Ascending Triangle - Contracting
This pattern belongs to the broader classifications - Rising Patterns, Converging Patterns and Triangles. The rules for the Contracting Ascending Triangle pattern are as below
The upper trend line is flat
The lower trend line is rising
Naturally, the trend lines are converging.
🚩 Falling/Descending Triangle - Expanding
This pattern belongs to the broader classifications - Falling Patterns, Diverging Patterns and Triangles. The rules for the Expanding Descending Triangle pattern are as below
The upper trend line is flat
The lower trend line is falling
Naturally, the trend lines are diverging from each other
🚩 Falling/Descending Triangle - Contracting
This pattern belongs to the broader classifications - Falling Patterns, Converging Patterns and Triangles. The rules for the Contracting Descending Triangle pattern are as below
The upper trend line is falling
The lower trend line is flat
Naturally, the trend lines are converging.
🚩 Converging Triangle
This pattern belongs to the broader classifications - Bi-Directional Patterns, Converging Patterns and Triangles. The rules for the Converging Triangle pattern are as below
The upper trend line is falling
The lower trend line is rising
Naturally, the trend lines are converging.
🚩 Diverging Triangle
This pattern belongs to the broader classifications - Bi-Directional Patterns, Diverging Patterns and Triangles. The rules for the Diverging Triangle pattern are as below
The upper trend line is rising
The lower trend line is falling
Naturally, the trend lines are diverging from each other.
🎲 Indicator Settings - Auto Chart Patterns
🎯 Zigzag Settings
Zigzag settings allow users to select the number of zigzag combinations to be used for pattern scanning, and also allows users to set zigzag length and depth combinations.
🎯 Scanning Settings
Number of Pivots - This can be either 5 or 6. Represents the number of pivots used for identification of patterns.
Error Threshold - Error threshold used for initial trend line validation.
Flat Threshold - Flat angle threshold is used to identify the slope and direction of trend lines.
Last Pivot Direction - Filters patterns based on the last pivot direction. The values can be up, down, both, or custom. When custom is selected, then the individual pattern specific last pivot direction setting is used instead of the generic one.
Verify Bar Ratio - Provides option to ignore extreme patterns where the ratios of zigzag lines are not proportionate to each other.
Avoid Overlap - When selected, the patterns that overlap with existing patterns will be ignored while scanning. Meaning, if the new pattern starting point falls between the start and end of an existing pattern, it will be ignored.
🎯 Group Classification Filters
Allows users to enable disable patterns based on group classifications.
🚩 Geometric Shapes Based Classifications
Wedges - Rising Wedge Expanding, Falling Wedge Expanding, Rising Wedge Contracting, Falling Wedge Contracting.
Channels - Ascending Channel, Descending Channel, Ranging Channel
Triangles - Converging Triangle, Diverging Triangle, Ascending Triangle Expanding, Descending Triangle Expanding, Ascending Triangle Contrcting and Descending Triangle Contracting
🚩 Direction Based Classifications
Rising - Rising Wedge Contracting, Rising Wedge Expanding, Ascending Triangle Contracting, Ascending Triangle Expanding and Ascending Channel
Falling - Falling Wedge Contracting, Falling Wedge Expanding, Descending Triangle Contracting, Descending Triangle Expanding and Descending Channel
Flat/Bi-directional - Ranging Channel, Converging Triangle, Diverging Triangle
🚩 Formation Dynamics Based Classifications
Expanding - Rising Wedge Expanding, Falling Wedge Expanding, Ascending Triangle Expanding, Descending Triangle Expanding, Diverging Triangle
Contracting - Rising Wedge Contracting, Falling Wedge Contracting, Ascending Triangle Contracting, Descending Triangle Contracting, Converging Triangle
Parallel - Ascending Channel, Descending Channgel and Ranging Channel
🎯 Individual Pattern Filters
These settings allow users to enable/disable individual patterns and also set last pivot direction filter individually for each pattern. Individual Last Pivot direction filters are only considered if the main "Last Pivot Direction" filter is set to "custom"
🎯 Display Settings
These are the settings that determine the indicator display. The details are provided in the tooltips and are self explanatory.
🎯 Alerts
A basic alert message is enabled upon detection of new pattern on the chart.
Multi-Timeframe Recursive Zigzag [Trendoscope®]🎲 Welcome to the Advanced World of Zigzag Analysis
Embark on a journey through the most comprehensive and feature-rich Zigzag implementation you’ll ever encounter. Our Multi-Timeframe Recursive Zigzag Indicator is not just another tool; it's a groundbreaking advancement in technical analysis.
🎯 Key Features
Multi Time-Frame Support - One of the rare open-source Zigzag indicators with robust multi-timeframe capabilities, this feature sets our tool apart, enabling a broader and more dynamic market analysis.
Innovative Recursive Zigzag Algorithm - At its core is our unique Recursive Zigzag Algorithm, a pioneering development that powers multiple Zigzag levels, offering an intricate view of market movements. This proprietary algorithm is the backbone of our advanced pattern recognition indicators.
Sub-Waves and Micro-Waves Analysis - Dive deeper into market trends with our Sub-Waves and Micro-Waves feature. Sub-Waves reveal the interconnectedness of various Zigzag levels, while Micro-Waves offer insight into the fundamental waves at the base level.
Enhanced Indicator Tracking - Integrate and track your custom indicators or oscillators with the zigzag, capturing their values at each Zigzag level, complete with retracement ratios. This offers a comprehensive view of market dynamics.
Curved Zigzag Visualization - Experience a new way of visualizing market movements with our Curved Zigzag Display, employing Pine Script’s polyline feature for a more intuitive and visually appealing representation.
Built-in Customizable Alerts - Stay ahead with built-in alerts that can be customized via user input settings.
🎯 Practical Applications
Our Zigzag Indicator is designed with an understanding of its inherent nature - the last unconfirmed pivot that consistently repaints. This characteristic, while by design, directs its usage more towards pattern recognition rather than direct identification of market tops and bottoms. Here's how you can leverage the Zigzag Indicator:
Harmonic Patterns - Ideal for those familiar with harmonic patterns, this tool simplifies the manual spotting of complex XABCD, ABC, and ABCD patterns on charts.
Chart Patterns - Effortlessly identify patterns like Double/Triple Taps, Head and Shoulders, Inverse Head and Shoulders, and Cup and Handle patterns with enhanced clarity. Navigate through challenging patterns such as Triangles, Wedges, Flags, and Price Channels, where the Zigzag Indicator adds a layer of precision to your breakout strategy.
Elliott Wave Components - The indicator's detailed pivot highlighting aids in identifying key Elliott Wave components, enhancing your wave analysis and decision-making process.
🎲 Deep Dive into Indicator Features
Join us as we explore the intricate features of our indicator in more detail.
🎯 Multi-Timeframe Capability
Our indicator comes equipped with an input option for selecting the desired resolution. This unique feature allows users to view higher timeframe Zigzag patterns directly on their lower timeframe charts.
🎯 Recursive Multi Level Zigzag
Our advanced recursive approach creates multi-level Zigzags from lower-level data. For instance, the level 0 Zigzag forms the base, calculated from specified length and depth parameters, while level 1 Zigzag is derived using level 0 as its foundation, and so forth.
The indicator not only displays multiple Zigzag levels but also offers settings to emphasize specific levels for more detailed analysis.
🎯 Sub-Components and Micro-Components of Zigzag Wave
Sub-components within a Zigzag wave consist of the previous level's Zigzag pivots. Meanwhile, the micro-components are composed of the base level (Level 0) Zigzag pivots encapsulated within the wave.
🎯 Curved Zigzag
Experience a new perspective with our curved Zigzag display. This innovative feature utilizes the polyline curved option to automatically generate sinusoidal waves based on multiple points.
🎯 Indicator Tracking
Default indicators such as RSI, MFI, and OBV are included, alongside the ability to track one external indicator at each Zigzag pivot.
🎯 Customizable Alerts
Our indicator employs the `alert()` function for alert creation. While this means the absence of a customization text box in the alert settings, we've included a custom text area for users to create their own alert templates.
Template placeholders include:
{alertType} - type of alert. Either Confirmed Pivot Update or Last Pivot Update. Depends on the alert type selected in the inputs.
When Last Pivot Update type is selected, the alerts are triggered whenever there is a new Zigzag Pivot. This may also be a repaint of last unconfirmed pivot.
When Confirmed Pivot Update type is selected, the alerts are triggered only when a pivot becomes a confirmed pivot.
{level} - Zigzag level on which the alert is triggered.
{pivot} - Details of the last pivot or confirmed pivot including price, ratio, indicator values and ratios, subcomponent and micro-component pivots.
🎲 User Settings Overview
🎯 Zigzag and Generic Settings
This involves some generic zigzag calculation settings such as length, depth, and timeframe. And few display options such as theme, Highlight Level and Curved Zigzag. By default, zigzag calculation is done based on the latest real time bar. An option is provided to disable this and use only confirmed bars for the calculation.
Indicator Settings
Allows users to track one or more oscillators or volume indicators. Option to add any indicator via external input is provided.
🎯 Alert Settings
Has input fields required to select and customize alerts.
Divergence Indicator [Trendoscope®]🎲 New Divergence Indicator by Trendoscope
Our latest Divergence Indicator revolutionizes the way traders identify market trends and potential reversals. Built upon the robust foundation of the Zigzag Trend Divergence Detector and inline with our recent implementation of the Divergence Goggles indicator, this tool is designed to be intuitive yet powerful, making it an essential addition to any trader's toolkit.
We received several queries on extending the Divergence Goggles to last N bars instead of using an interactive widget. Though it is possible, we thought the better approach is to enable the indicator to use any oscillator and trend indicator in order to define the divergence.
🎯 Key Features
Flexible Oscillator Integration : Choose from a wide range of built-in oscillators or import your own, including options like the innovative Multiband Oscillator. This versatility extends to using volume indicators like OBV for divergence calculations, broadening the scope of analysis.
Trend Identification Versatility : Utilize built-in methods like Zigzag and MA Difference, or integrate external trend indicators. Our system adapts to various methods, ensuring you have the right tools for precise trend identification.
Customizable Zigzag Sensitivity : Adjust the Zigzag based on your chosen oscillator's sensitivity to ensure divergence lines are accurate and visually coherent.
Repainting vs. Delayed Signals : Tailor the indicator to your strategy by choosing between immediate repainting signals and slightly delayed but more stable signals.
🎯 Understanding Divergence: Key Rules
Bullish Divergence
Happens only in downtrend
Observed on Pivot Lows
Price makes lower low whereas oscillator makes higher low, indicating weakness and possible reversal
Bearish Divergence
Happens only in uptrend
Observed on Pivot Highs
Price makes higher high whereas oscillator makes lower high, indicating weakness and possible reversal
Bullish Hidden Divergence
Happens only in uptrend
Observed on Pivot Lows
Price makes higher low, whereas indicator makes lower low due to price consolidation. In bullish trend, this is considered as bullish as the price gets a breather and get ready to surge further.
Bearish Hidden Divergence
Happens only in downtrend
Observed on Pivot Highs
Price makes lower high whereas oscillator makes higher high due to price consolidation. In bearish trend, this is considered as bearish as the price gets a breather and get ready to fall further.
🎯 Visual Insights: Divergence and Hidden Divergence
For a clearer understanding, refer to our visual guides:
🎲 Using the Divergence Indicator: A Step-by-Step Guide
🎯 Step 1 - Selecting the Oscillator
Customize your analysis by choosing from a variety of oscillators or importing your preferred one. Options are available to select a range of built-in oscillators and the loopback length. However, if the oscillator that user want to use is not in the list, they can simply load the oscillator from the indicator library and use it as an external signal.
In our current example, we are using a custom oscillator called - Multiband Oscillator
This also means, the indicator option is not limited to oscillators. Users can even make use of volume indicators such as OBV for the calculation of divergence.
🎯 Step 2 - Choosing the Trend Identification Method
Select from our built-in methods or integrate an external indicator to accurately identify market trends. Trend is one of the key parameters of divergence type identification. Trend can be identified mathematically by various methods. Some of them are as simple as above or below 200 moving average and some can follow trend based indicators such as supertrend and others can be very complex.
To cater for a wider audience, here too we have provided the option to use an external trend indicator. The simple condition for the external trend indicator is that it should return positive value for uptrend and negative value for downtrend.
Other than that, we also have 2 built in trend identification methods.
Zigzag - The trend is defined by the starting pivot of divergence line. If the starting pivot is Higher High or Higher Low, then it is considered uptrend. And if the starting pivot is either Lower Low or Lower High, then we consider it as downtrend.
MA Difference - In this case, the difference between the moving average of pivots joining the divergence line will determine the trend. It is considered uptrend if the moving average increased from starting pivot to ending pivot of the divergence line, and it is considered downtrend if the moving average decreased from starting pivot to the ending pivot of the divergence line.
🎯 Step 3 - Adjusting Zigzag Sensitivity
Fine-tune the Zigzag to match the oscillator's sensitivity, ensuring divergence lines are accurate and visually coherent.
🎯 Step 4 - Managing Repainting
Understand the implications of repainting in the last pivot of the Zigzag and choose between immediate or delayed signals based on your trading strategy. The last pivot of the zigzag repaint by design. This is not necessarily a bad thing. Users can just choose not to use the last pivot, but instead use the last but one for all the calculations. But, this also means, the signals will be delayed.
Indicator provides option to use repainting signal vs delayed signal. If you select the repaint option, the signals are shown immediately as and when they occur. But, there is a possibility that these signals change when the new price candles change zigzag pivot.
If you chose not to select the repaint option, then the divergence signals may lag by a few bars.
Smart Bullish Pennant PatternDescription:
This script is designed to identify and visualize the Bullish Pennant pattern, a popular continuation pattern used by traders. The script follows a structured approach to identify the underlying bullish trend, the consolidation phase, and finally, the breakout from the pennant, which could signify a potential continuation of the bullish trend.
Here's how the script operates:
Bullish Trend Identification:
The script first identifies a bullish trend based on a user-defined length and a specified Exponential Moving Average (EMA).
A bullish trend is considered to be in place if the closing price is above the trend EMA, and the EMA is rising over the specified length of bars.
Consolidation Phase Detection:
During the bullish trend, the script looks for a consolidation phase, which is identified by comparing the range of the recent bars against the range of the bullish trend.
The consolidation phase is characterized by a narrowing price range, forming the pennant.
Breakout Confirmation:
A breakout from the consolidation is considered confirmed if the closing price breaks above the consolidation high, accompanied by an increase in volume.
The script allows for a one-bar delay in confirmation to avoid false breakout signals.
Price Target Calculation:
Upon a confirmed breakout, the script calculates the price target based on the height of the preceding bullish trend, added to the breakout point.
Visual Aids:
The script plots the consolidation range during the consolidation phase.
A breakout is visually indicated with a triangle above the breakout bar.
The price target is displayed on the chart with a step line.
Alerts:
An alert is triggered upon a confirmed breakout, notifying the trader of the potential bullish continuation.
Labels:
Labels are plotted to indicate the start of the bullish trend and the breakout point.
By employing this script, traders can automate the process of identifying the Bullish Pennant pattern, aiding in timely decision making for potential trade entries and exits.
This script is protected, ensuring its proprietary nature while sharing its utility with the TradingView community.
Harmonic PatternsHarmonic Patterns
Harmonic Pattern utilizes the recognition of specific structures that possess distinct and consecutive Fibonacci ratio alignments that quantify and validate harmonic patterns. These patterns calculate the Fibonacci aspects of these price structures to identify highly probable reversal points in the financial markets. This methodology assumes that harmonic patterns, like many patterns and cycles in life, continually repeat.
Input Parameters:
Zigzag Setup:
These group of parameters are used to identify the swing points. The script also draws the Zigzag line and swing labels based on these parameters.
Harmonic Pattern Setup:
Ignore XD leg calculations – Optionally one can choose to ignore the XD leg calculation.
Fixed value leg offset % - Fixed value leg parameters are such parameters where single value Fibonacci value is used. This makes pattern identification very rare. To overcome this one can input % value which would be used to derive the range of Fibonacci numbers for pattern identification. E.g. XD leg in Bat pattern has fixed leg of 88.6%, If we input 5% as fixed value leg offset % then instead of fixed value of 88.6%, script calculates range as 88.6% + 5% (Value 1) and 88.6% - 5% (Value 2) and uses the same for pattern identification.
The script plots a diamond shape label on the last candle of the chart. The label has been enabled with a tooltip which shows number of patterns of each type along with the time where latest pattern is located.
This script covers harmonic patterns listed in the table below. Each harmonic pattern has bullish and bearish variants. All these patterns have 4 legs known as XABCD.
The Patterns have been configured as specified in the table below. Refer to Figure 1 and Figure 2 to understand how to read and interpret the table.
Figure 1
Figure 2
Harmonic Pattern Table Inputs█ OVERVIEW
This indicator was intended as educational purpose only based on Harmonic Pattern Table (Source Code) .
Some user have different ratios in mind, thus I add input to allow user to change those ratios.
█ CREDITS
Scott M Carney, Trading Volume 3: Reaction vs. Reversal
█ CREDITS
1. List Harmonic Patterns.
2. Font size small for mobile app and font size normal for desktop.
3. Font color does automatically change follow dark / light chart theme.
4. Inputs to change ratio values.
█ USAGE / EXAMPLES
Dynamic Sine Wave The Dynamic Sine Wave is designed to calculate a sine wave that reflects the oscillations between the highest high and lowest low points over a specified period, providing traders with a unique perspective on market trends.
Why a Sine Wave is Relevant:
A sine wave is relevant in this context because it is a mathematical function that represents periodic oscillations, making it suitable for capturing the cyclic nature of price movements in financial markets.
By using a sine wave, this indicator highlights the repetitive patterns of price highs and lows over a specified period, which can assist traders in identifying potential trend reversals or continuations.
The sine wave's amplitude and frequency are adjusted based on the highest high and lowest low points, ensuring that it adapts to market volatility and provides a dynamic representation of price action.
Overall, the "Dynamic Sine Wave" indicator offers a unique perspective on market dynamics, helping traders make informed decisions by visualizing the ebb and flow of prices.
@tk · spectral█ OVERVIEW
This script is an indicator that helps traders to identify the price difference between spot and futures of the current crypto plotted into the chart. It works in both types of markets, when the chart is plotting the crypto in spot market, it will compare with its respective futures ticker and vice-versa. If the current asset isn't a crypt ticker, the indicator will not be plotted into the chart.
█ MOTIVATION
Since crypto's derivative market is based on spot market asset's price, to calculate the arbitrage mechanisms that attempts to balance the asset price, this indicator can help traders to identify some spot and futures price divergence that can create an anomaly of funding rate and can push it to an extreme negative — or positive — rate. So, easing to track the price difference between both markets will bring more evidences to identify an artificial price move, specially in crypto assets with low market cap.
█ CONCEPT
The trading concept to use this indicator is the concept of the arbitrage machamism created by exchanges that calculates the funding rate based on spot and futures price difference that will vary from exchange to exchange. This strategy don't works alone. It needs to be aligned together with others indicators like Exponential Moving Averages, Chart Patterns, Support and Resistance, and so on... Even more confluences that you have, bigger are your chances to increase the probability for a successful trade. So, don't use this indicator alone. Compose a trading strategy and use it to improve your analysis.
█ CUSTOMIZATION
This indicator allows the trader to customize the following settings:
GENERAL
Text size
Changes the font size of price difference table to improve accessibility.
Type: string
Options: `tiny`, `small`, `normal`, `large`.
Default: `small`
Position
Changes the position of price difference table.
Type: string
Options: `top_left`, `top_center`, `top_right`, `middle_left`, `middle_center`, `middle_right`, `bottom_left`, `bottom_center`, `bottom_right`.
Default: `bottom_right`
Pair Quote
The ticker quote symbol that will be used to base the ticker comparison from spot to futures (e.g. BTCUSDT which `USDT` is the quote. ETHBTC which `BTC` is the quote).
Type: string
Default: USDT
Spectrum Color
The color of the spectrum candles. Spectrum candles are the candles of the opposite market. If the current ticker is in the spot market, the spectrum candles will be the price of the futures market.
Type: color
Default: #434651
█ FUNCTIONS
The indicator contains the following functions:
stripStarts(src, str)
Strips a defined pattern from a string.
Parameters:
src: (string) Source string
str: (string) String pattern to be stripped from start of source string.
Returns: (string) Stripped string with matched regex pattern.
ZigZag++ FibonacciAuto Fibonacci tools are powerful ways designed to simplify your technical analysis by automatically drawing Fibonacci retracement and extension levels on your chart. This indicator is built to enhance your trading experience with clearer market moves and informative insights.
You can easily spot your waves and patterns when the percentages are moving with you.
Key Features:
Automated Fibonacci Levels: Plots Fibonacci retracement and extension levels based on recent price movements.
Multi-Timeframe Support: This indicator is your versatile companion, offering multi-timeframe functionality. You can seamlessly track Fibonacci levels across different resolutions, providing a comprehensive view of the market.
Two Types of Fibs: Retracement and Timeframe extension Fibonacci levels. Use retracements to identify potential reversal points and extensions to anticipate price targets, giving you a well-rounded perspective on market movements.
Benefits:
Save Time: No more manual Fibonacci drawing; It does this for you in real-time.
Enhanced Analysis: Gain a deeper understanding of potential support, resistance, and price targets.
User-Friendly: Suitable for traders of all levels, this indicator simplifies complex technical analysis.
For the math lovers
I started creating the ZigZag++ based on the MT4 calculation as I found it better performing than the tradingview inbuilt one. I have revised the calculation couple of times and now the final calculation is simple yet more accurate for my analysis.
First, I observe the market direction for the last Depth setting by comparing the rate at which high values reduce and low values increase. When the number of ticks set by Deviation is crossed and the last cross is more than the Backstep candles, then we have our ZigZag points.
These are the points we use in our Fibonacci calculation.
Checkout ZigLib below to use the same logic in your scripts.
Sample usage
This is a 4 Hour configuration with the default settings.
When the trend reversed, some key points I watch are 0.618 and 0.5. The market retraced back and formed the new point for the next ZigZag line on that level. This market behaviour happens quite often on these Fibonacci points. I would be looking for reversal or a break in this zone to know the next step.
Resources
ZigZag++ Lib by me; for retrieving the line points.
Fibonacci Toolkit by Lux Algo; For drawing the Timeframe Fibs. Very Amazing script.
Smart Money Breakouts [ChartPrime]The " Smart Money Breakouts " indicator is designed to identify breakouts based on changes in character (CHOCH) or breaks of structure (BOS) patterns, facilitating automated trading with user-defined Take Profit (TP) level.
the indicator incorporates essential elements such as volume analysis and a data table to assist traders in optimizing their strategies.
🔸 Breakout Detection:
The indicator scans price movements for "Change in Character" (CHOCH) and "Break of Structure" (BOS) patterns, signaling potential breakout opportunities in the market.
🔸User-Defined TP :
Traders can customize the Take Profit (TP) through the indicator settings, with these levels dynamically calculated based on the Average True Range (ATR). This allows for precise risk management and profit targets that adapt to market volatility.
🔸 Volume Analysis and Trade Direction Specific Analysis:
The indicator includes a volume checker that provides valuable insights into the strength of the breakout, taking into account trade direction.
🔸If the volume label is red and the trade is long, it suggests a higher likelihood of hitting the Stop Loss (SL).
🔸If the volume label is green and the trade is long, it indicates a higher probability of hitting the Take Profit (TP).
🔸For short trades, a red volume label suggests a higher likelihood of hitting TP, while a green label suggests a higher likelihood of hitting SL.
🔸A yellow volume label suggests that the volume is inconclusive, neither favoring bullish nor bearish movements.
🔸Data Table:
The indicator features a data table that keeps track of the number of winning and losing trades for specific timeframes or configurations.
This table serves as a valuable tool for traders to analyze performance and discover optimal settings and timeframes.
The "Smart Money Breakouts" indicator provides traders with a comprehensive solution for breakout trading, combining technical analysis of changes in character and breaks of structure, volume insights, and performance tracking while dynamically adjusting TP and SL levels based on market volatility through the ATR.
Trendline Breakouts With Targets [ChartPrime]The Trendline Breakouts With Targets indicator is meticulously crafted to improve trading decision-making by pinpointing trendline breakouts and breakdowns through pivot point analysis.
Here's a comprehensive look at its primary functionalities:
Upon the occurrence of a breakout or breakdown, a signal is meticulously assessed against a false signal condition/filter, after which the indicator promptly generates a trading signal. Additionally, it conducts precise calculations to determine potential target levels and then exhibits them graphically on the price chart.
🔷 Key Features:
🔸 Trendline Drawing: The indicator automatically plots trendlines based on significant pivot points and wick data, visually representing the prevailing trend.
🔸 Breakout and Breakdown Signals : It triggers trading signals when a breakout (price moves above the trendline) or a breakdown (price moves below the trendline) is detected, helping traders identify potential entry points.
🔸 False Breakout/ Breakdown Filter ✔️: To enhance accuracy, the indicator incorporates a filter to reduce false breakout and breakdown signals, helping traders avoid premature entries.
🔸 Target Calculation: The indicator performs target-level calculations, a critical aspect of trade management.
These calculated target levels are visually displayed on the price chart, helping traders set precise profit targets and make well-informed trading decisions.
🔸 Color-Change Labels: The indicator features label color changes to provide quick visual cues. Labels are initially displayed in orange. When a take profit (TP) level is reached, the label changes to green, indicating a successful trade. Conversely, if a stop-loss (SL) level is hit, the label turns red, signaling a losing trade.
🔸 Settings :
This indicator combines technical analysis, trendline identification, breakout/breakdown signals, and risk management tools to assist traders in making more informed and efficient trading decisions. It can be a valuable addition to any trader's toolkit, helping them identify potential trade opportunities and manage risk effectively.
YinYang MomentumOverview:
YinYang Momentum is a Price, Volume and Momentum Oscillator. Its job is to help you see swings in momentum and the strength of it. It also creates signals (Blood Diamond (Bear) and Support Cross (Bull)) where these momentum swings may occur. YinYang Momentum features 3 Price and 3 Volume 'Mountains with Ice'. There are Predictive, Regular and Confirming Mountains. You have the ability to overlay them on top of each other which helps to decipher momentum swings. The Volume Mountains are very important for showing the strength behind the Price Mountains and their Signals. If you look, you'll notice, as the 'Ice' starts to curve into the 'Mountains' it signals a potential shift in Momentum. The green Mountain is the Predictive, the Blue is the Regular and the Purple is the Confirming. You'll also notice that the Predictive Mountains movements happen first and move much more drastically. When you notice the regular starts to follow suit, there is a potential for a momentum shift. Shortly after, a signal will occur if this shift is actually happening. You can also check the Confirming Mountain for more confirmation (however, leaving the Confirming Mountain active can be a little confusing and make it harder to read signals). YinYang Momentum also features Information Tables. These tables display how the Blood Diamonds and Support Cross' are fairing on different Timeframes. This way, you'll be able to see if it's in a Bullish or Bearish state on critical Time Frames no matter what Timeframe you're trading on.
Before we move onto the tutorial, let's discuss what each of these Mountains and Ice are and how they work. All of our Mountains and Ice are calculated using the same algorithm but with varying sources, lengths and multipliers. We are essentially calculating differences in movement and then sending those differences into an EMA for the Mountain Base and SMA for the mountain Ice. The values we use for the Predictive are much lower and therefore occur much quicker as they aren’t averaged out on longer lengths/time frames; this helps to make it more of a leading Indicator which may predict momentum changes. Our Regular is over a medium length and multipliers that result in a smooth but generally also gradual movement that helps reliability; this helps it act as more of an ‘in the now’ Indication of momentum changes. Our Confirming uses lengths and multipliers that are of a higher value and longer span; this makes it more difficult to use for determining entry / exit locations as it's more of a lagging indicator, but it helps to add confirmation as to whether the momentum change has occurred and wasn't a false signal.
Tutorial:
YinYang Momentum may look like a lot is going on.. And well that’s cause there is.. But that doesn’t mean it's confusing or hard to read once you know what you’re looking for!
To make this tutorial a little easier to understand, let's turn off a few settings and dissect this indicator one thing at a time. YinYang Momentum features Price and Volume mountains. Currently in the photo above we have 2 Price Mountains and 1 Volume Mountain turned on (this is how it's set by default and how we recommend using it), however there are 3 Mountains available for both Price and Volume:
Predictive
Regular
Confirming
We are going to deactivate everything so it's the Regular Price Mountain + Ice enabled.
Now that it is just the Regular Price Mountain and Ice it is much easier to teach and understand. As you can see there are two different colors on the mountain. The dark blue is the Mountain and the light blue is the Ice.
The Ice moves before the mountain does and when the momentum happens it is larger than it (below or above). When the momentum starts to change however, the Ice curves inside of the mountain. As you can see here, where the BUY signal (red cross) is, the Ice curves into the mountain; also where the SELL signal (red circle) is, the Ice curves into the mountain. The Ice curving into the mountain is a very important leading indication that momentum is changing and the Signals (crosses and diamonds) help solidify this momentum change.
The Index levels for YinYang Momentum is a little different than most oscillators that range from 0-100. Instead YinYang Momentum’s neutral level is 0 and it ranges from -100 to 100. For these reasons, the Viable Range for Buying is -40 to -70 and the Optimal Range for Buying is -70 to -100. For Selling, the Viable Range is 40 to 70 and the Optimal Range is 70 to 100.
If you look at the example above, you can see whenever it has been in the optimal range and the signal occurred, it may potentially be an amazing time to buy or sell. However, when it is within the Viable Range it can be hit or miss. The reason for this is because we are only looking at the Regular Price Mountain and Ice. Once we turn on the Predictive Price and Regular Volume we will have a much clearer idea as to what is noise and what is a true purchase signal. Why don’t we turn on Predictive Price Mountains and Ice so you can see what we’re talking about:
So there are 2 big things that changed when we added the predictive price mountains + ice.
We can see that where the orange circle is, is just noise, it isn’t a viable buy signal.
We can see that where the red circle is, is actually a better spot to sell than the previous marked white circle slightly to the right of it.
We will explain why both above are true, but first let's explain how we were able to deduce this information.
There are 5 rules when deciphering if the signal is a true signal or just noise.
You want the predictive mountain to be decently spaced out from the regular mountain. Refer to the example above how that should look. Remember it's predictive so with parabolic movements it will get quite spaced out. If the price went up but slowly, it generally won’t be as spaced and isn’t as strong of a signal predictor.
You want the Ice to be of a decent size and to curve in on both the Predictive and Regular Mountains. Both arrows (red and white circle arrows) are pointing to Ice that does just that. The Predictive mountain is of decent size and spaced out and the Ice curves in sharply on the Predictive, before curving in sharply on the Regular and then we get both Predictive and Regular Support Cross on the Same Bar.
When you get the Signals (Predictive and Regular) the amount of bars between them matters a lot! On the same Bar is ideal, however 1-2, max 3 bars between them is acceptable. Any more than 3 bars spacing and it's too risky of a signal because that means momentum change was happening but then stopped before picking back up. This doesn’t mean it can’t be a good signal, it just means it is much more risky and we don’t recommend it.
You don’t want Signal Clustering. You can see an example of this from the picture above. Signal Clustering is where signals are back to back over and over. During this time the momentum is in a consolidation phase and easily swaps back and forth between signals. These signals are not reliable and should not be traded on. We only want to act on clear momentum based signals.
Last but certainly not least, actually, the most important! Ensure that the Mountain + Ice for both the Predictive and Regular is at the bare minimum touching (preferably inside) the Viable Range. The Optimal range is best, but most mountains don’t make it that far. Viable Range is where you will make most of your trades from. Sometimes a great signal happens with all 5 of these rules but it is only touching the Viable Range right at 40 or -40. This CAN be okay, but is also much more risky than if it was at 50 to 60 or -50 to -60.
Based on the 5 rules mentioned, take a second and look back at the photo where we initially added the Predictive Price mountains and Ice, can you decipher why the orange circle is just noise, and can you see why the red circle is a better sell location than the white circle slightly to the right of it?
Let’s bring that photo back up now and let’s discuss this:
Let's start with the orange circle:
This orange circle, without the predictive, was hard to tell if it was a good location to buy or not, but the second we turned it on we could clearly see it was just noise.
The spacing between the Predictive mountains and the Regular is almost non-existent.
There was signal clustering shortly before this signal.
Remember, there doesn’t have to be many rules broken for a signal to be either too risky or not valid at all. The safest trades are ones where it meets the requirements of all 5 rules (6 once we talk about volume, but 5 price rules).
Now, let's discuss the red circle:
This red circle, although it could have been chosen with just the regular, was much more noticeable with the predictive added on top.
It has a perfect spacing between the Predictive and the Regular all the way to the peak.
The Ice is large and both curve in very nicely towards the mountains.
The signals are within 2 bars apart from each other.
There is no signal clustering.
The Predictive is within the Viable Range and the Regular is just touching it.
For these reasons, the red circle actually would have been where you sold and not the white circle beside it.
This pretty much covers the Price Mountains, but wait! The most important Cherry on Top to your decision making process is coming next!
We have just enabled our Regular Volume Mountains and Ice (which are the black mountains + ice). As you can see, we have circled what we call the ‘Perfect Combo’. This Perfect combo is when you have all 5 Price rules met COMBINED with a high volume mountain. The Volume Mountain and Ice act as strength. They aren’t biased towards bulls or bears, they simply show strength to whatever signal is present with it.
For example, if all 5 rules are met with Price on a Blood Diamond (Bear) Signal and there is a High Volume Mountain then this is also a ‘Perfect Combo’. That Blood Diamond signal will potentially have great strength behind it. The Viable and Optimal Ranges don’t apply to volume mountains. Any volume mountain, even close to the Viable Range, is considered to be a very high mountain. High volume is when the mountain is above 0 and low volume is when it's below 0. Any signal with low volume has less of a chance of being correct, regardless of whether it abides by all 5 price rules.
You can see here that the 5 Price rules are achieved but the volume mountain is low. It is at -25. Since the 5 Price rules are right, there is still a decent amount of accuracy to this signal and the price did plummet after, but not nearly as much as it would have if the volume mountain was high with it.
We have turned our Confirming Price Mountain on here so you can get an idea of what it looks like and how it’s used. If you refer to the Support Crosses and Blood Diamonds circled in white, you’ll see that although they both received their signals on the Predictive and Regular, neither of them received it on the Confirming. This shows that these signals lost momentum shortly after. However if you look at both the red and green circles, you’ll see that they both received their confirming signals and that it helped give those signals momentum. The Confirming Price Mountain is meant to help confirm if the momentum change is still on track and the max 3 bars from the regular signal rule still applies to it. However its height within the viable and optimal range is important, just not as relevant
Before we move on to our Information Tables we want to take a second just to discuss our Volume Mountains and Ice. We haven’t had a chance yet to discuss the Predictive or Confirming Volume. When it comes to our Volume Mountains + Ice, we don’t recommend having more than 1 on at a time. The reason we have included the Predictive and Confirming is in case you find they suit your Trading Style best, not necessarily to be used the same way the Price Mountains and Ice are. The main reason for this is due to the fact that the Volume Mountains are much smaller and when overlaid on top of each other can make a confusing blur that is hard to decipher.
In this example above we have enabled both Predictive and Regular Volume just so you can understand what we are talking about. The two together can be rather confusing and actually interfere with your decision making process. For this reason, we highly recommend finding the Volume Mountain that suits your trading style best and solely sticking to that.
Our Predictive Volume Mountains and Ice may help sense volume changes before they’ve even happened. This can be very useful if your Trading Style revolves around heavy volume changes.
Our Confirming Volume Mountains and Ice are much slower and smaller, but they help show the movement of volume that has occurred already. This can be used to help see the movement of volume without fearing it may or may not happen.
Our Information Tables are there to show you valuable information on whether it is in a state of Support Cross or Blood Diamond on 6 different Time Frames at the same time. The % it shows you displays how much of a price change has occurred since that signal has happened. It is important to note, if for instance you see it is in a state of Support Cross but the % is negative, this generally means it is going to switch to Blood Diamond soon and vice versa. Therefore if you are in a trade, especially on a lower Time Frame and you are watching the 1 Day or a higher Time Frame and notice that the % is getting less and less, it may be a good time to get out.
We will conclude our Tutorial here. If you have any Questions, Concerns, Suggestions or Comments please don’t hesitate to contact us.
Settings:
1. Show Predictive to Confirmed Trendline:
The Predictive to Confirmed Trendline is very useful for seeing when the predictive (Support Cross or Blood Diamond) has hit the confirmed (It’s a strong confirmation that the trend may be shifting). This trendline also features a Moving Average which helps give you a solid marker for when the Regular / Predictive mountains cross under or over it that a momentum swing may occur. Somewhat like when the RSI crosses above/below its Moving Average it dictates momentum change, that is likewise how to interpret when it happens with the mountains and this trendline.
2. Show Price Ice and Mountains based on:
The Price Ice and Mountains are very important when it comes to deciphering signal strength. For example, When the mountains are very low (regular and predictive) and are between the 2 red line (undervalued) or even possibly below the bottom red line, and the Ice on the mountains starts to curve into the mountains and then the Predictive and Regular Support Cross occur; this is a very strong Bullish Signal. But wait, that's not all, the cherry on top is when the volume mountain (black) is ALSO high while this occurs; the Volume Mountain adds Strength to the signal. When the volume mountain is high too during this ‘Perfect Combo’ this may potentially lead to very bullish price movement occurring soon. Here is an overview of each mountain:
2.1. Predictive: Are the least reliable, but they move first and nothing will move without the predictive moving first, and getting you ready.
2.2. Regular: Are the most accurate, they don't signify strength on its own, but they sure show some momentum.
2.3. Confirming: Are slightly behind when it comes to displaying data, and therefore shouldn't be used for entry / exit, but rather to show if the trend movement has truly been confirmed or not.
When the Ice starts to curve into the Mountain, (either upward or below) it signifies possible momentum change. There are Crosses (Bull), and Diamonds (Bear) to show when they've crossed. Cross' and Diamonds balance each other out and therefore there can never be more than 1 in a row (of the same type). When the Ice and Mountain size is very large (between 40 and 70), and the predictive Ice starts to curve into its mountain, and then the predictive curves into the Regular, and the Regular Ice is curving into its Mountain, then it may have some strong weight behind that signal. IMPORTANT: refer to Volume tooltip below for how to increase the signal strength even more.
3. Show Volume Ice and Mountains based on:
The Volume Ice and Mountains are for giving strength to the Price's signals and Size. When there is the perfect combo (described above) AND the Volume Ice + Mountain is high, then there may be a lot of strength to that Price signals (whether it is Cross (Bull), or Diamond (Bear)).
IMPORTANT: High volume mountains, unlike Price, don't mean good or bad. Volume shows strength to the Price, and therefore if there are high Volume mountains during a Diamond (Bearish), then there may be a lot of strength to that signal and vice versa.
4. Show Information Tables:
Information tables are used to display 6 different Time Frames and whether or not each time frame is in a state of Blood Diamond (red) or Support Cross (green). They also show how much % in price has changed since the current signal happened. These are very useful for seeing how the price is fairing on different Time Frames without having to constantly change your timeframe. For instance, maybe you base your entry off the 1 day time frame but then you swing trade on the 15 minute. Well, after you’ve confirmed your entry position and are sitting on the 15 minute, you can stay on the 15 minute and see how it is fairing on the 1 day, 5 minute or whatever time frame you choose. This way you aren’t distracted from the trade at hand. All of these Time Frames can be adjusted in the Settings (GUI) to whatever resolution you wish.
5. Res1 / Res2/ Res3 / Res4 / Res5 / Res6:
These represent the different resolutions (Time Frames) being used in your information tables and can be modified to display whatever resolution works best for your trading style. By default they are:
Res1: Current Timeframe
Res2: 15 Minute
Res3: 1 Hour
Res4: 4 Hour
Res5: 1 Day
Res6: 1 Week
Backup Res (not changeable): 5 Minute (this is only used if your Current Timeframe in Res1 is a duplicate of one of the other resolutions)
HAPPY TRADING!
YinYang VolumeOverview:
YinYang Volume is an Advanced Volume Indicator. Regular Volume can be deceiving. It can be hard to tell how much of the Volume bar is Buy vs Sell volume, especially since the bar is green or red simply based on if it closes at a greater price than it opened. With YinYang Volume you'll be able to see how much Buy AND Sell Volume there is on each bar. Being able to see both is very useful, but the cherry on top is the Buy and Sell Moving Average Lines. These lines (White is Buy and Orange is Sell) can show who is currently winning the fight, Bulls or Bears. When the lines cross it's a shift in momentum and when combined with other technical analysis you can better understand the direction the market is moving and make an informed and educated trading decision. YinYang Volume also has Information tables, these tables display the Buy vs Sell volume on different Timeframes. This way even if you're trading on a Low Timeframe (like 15 minutes) you can see how the Buy vs Sell volume is fairing on other Timeframes.
Tutorial:
Unlike most volume indicators, including standard volume, we can see both Buy AND Sell volume for each bar. You may be wondering, well what’s the importance of this? The answer is EVERYTHING! Volume is one of the most important indicators when it comes to trading. Nothing moves without volume. However, with standard volume, the bar is either red or green simply based on if it closes greater than it opens. Now, that is pretty silly if you ask us. Let’s get into depth as to why seeing both Buy and Sell volume is important, and examples for how you can make trades with it:
In this example above, we have 2 green bars and they both have high levels of volume. This bar on the right however, has more volume than the one on the left. The issue here is, the bar on the right has MORE Sell volume than it even does have Buy volume; meanwhile the bar on the left has way more buy volume than the bar on the right with little sell volume. Without separating them and by simply looking at the price bar and regular volume bar, we would never be able to deduce this. It is crucial to understand and see how much of each volume there is as it plays a huge role in the price movements.
The white line represents the Buy Volume Moving Average and the orange line represents the Sell Volume Moving Average. These moving averages are very useful as when they cross they represent strong Buy and Sell Signals.
We’ve enabled signals which plot circles onto the MA’s to display when they’ve crossed. The white circle represents a Buy Signal and the Orange circle represents a Sell Signal. These signals are very strong, but there is a catch that comes with it. The bar right after the signal has the highest chance of a reversal so it isn’t always advised to make the trade until confirmed that the reversal didn’t happen on the following bar. If you have enough data based on other technical analysis to know the first signal is true, then use it as a way to solidify the fact that it is a good entry/exit location.
You can change the length of which the MA’s are smoothed out over. For instance, in the previous examples and by default the length is 14. However, if we are to change it to 50 for instance, it makes them a longer lasting MA that has much fewer crosses. This can be useful based on your trading style and if you prefer to stay in trades for quite awhile. As you can see, all signals with the 50 length are quite accurate and would have produced profitable trades, likely more so than at 14, but since it moves slower there's fewer signals to trade on.
Our Information Tables are there to show you the amount of Buy vs Sell %’s on 6 different Time Frames at the same time. It can be very useful to know how people are feeling on different Time Frames without you having to change your own. This way you can stay on say the 15 minute Time Frame locked in your trade and can see if the momentum of your long trade is cooling down based on higher Time Frames Buy vs Sell volume %’s.
For example, let's say you got an alert from YinYang Volume for Buy Signal on the 1 Day. You then entered a trade which you deemed a good location on the 15 minutes (after doing your own technical analysis on the 15 minute too). The Buy vs Sell Volume %’s on the 1 Day was 55% Buy and 45% Sell when you entered the trade. You are still waiting for exit confirmation on the 15 minute but you notice the Buy vs Sell Volume % on the 1 Day goes down to 52% Buy and 48% Sell. You can see the momentum changing. Even though you haven’t received confirmation for exit on the 15 minute, it may still be a good time to get out as momentum is clearly changing on the 1 Day.
We will conclude this Tutorial here. We hope you’ll get some good use out of our Volume Indicator and its ability to display unique Volume Data. If you have any Questions, Comments, Suggestions or Concerns, please don’t hesitate to contact us.
Settings:
1. Show Signals:
Toggling this setting shows when the Buy and Sell Volume MA’s cross each other. It produces a white circle when the Buy Volume Crosses over the Sell Volume (BULLISH) and an orange circle when the Sell Volume Crosses over the Buy Volume (BEARISH).
2. Length:
How far back should we average the Buy and Sell Volume Moving Averages? 14 is default has been tested and proven to work well, however you can change it if there is a different value that suits your trading style better.
3. Type:
How is the Moving Averages calculated? VWMA (Volume Weighted Moving Average) is the default as it has been tested and worked best; afterall, we are calculating volume and therefore should use a volume weighted MA calculation. However, you can change it as your options are:
VWMA, EMA and SMA
4. Information Tables:
4.1. Show Information Tables:
Our Information tables display 6 different resolutions so you can see how much Buy vs Sell volume there is as a % in multiple different Time Frames without having to change your Time Frame.
4.2. Strength:
The Buy / Sell Volume %’s displayed within your Information Tables are based on Moving Averages. The length this moving average uses is based on the Strength you select. The strengths aren’t as simple as just a length amount but are a calculation involving multiple different lengths and averages. However, the stronger the strength, generally the farther the lookback length is as an average. Your options for strength are:
Unbreakable
Very Strong
Strong
Average
Weak
Very Weak
Glass
We recommend ‘Average’ Strength, however if you find you want to see the %’s change more or less frequently you can adjust to your trading style
4.3. Res1 / Res2/ Res3 / Res4 / Res5 / Res6:
These represent the different resolutions (Time Frames) being used in your information tables and can be modified to display whatever resolution works best for your trading style. By default they are:
Res1: Current Timeframe
Res2: 15 Minute
Res3: 1 Hour
Res4: 4 Hour
Res5: 1 Day
Res6: 1 Week
Backup Res (not changeable): 5 Minute (this is only used if your Current Timeframe in Res1 is a duplicate of one of the other resolutions)
HAPPY TRADING!
YinYang Fear and Greed Index (FGI)Overview:
YinYang Fear and Greed Index is used for seeing how people are feeling towards the current price. It works similar to an RSI, but fluctuates differently. Essentially you want to be Greedy when the Index displays Fear and Fearful when it displays Greed. Our Indicator displays a Green Circle (Greed Signal) on the YinYang Fear and Greed Index when there is a large amount of Greed at this price point. It displays a Red Circle (Fear Signal) when there is a large amount of Fear. The Fear and Greed Signals can happen at any Fear and Greed Index but generally they correlate with the Index level. The Fear and Greed Signals are much more important at dictating a swing in momentum than the actual Index itself. The Index is more of a guide and is useful for seeing when the Index level crosses the Ma (the yellow line) as you can see a shift in momentum. However for large swings in momentum, the Fear and Greed Signals should be used. Do NOT Ignore these signals, they are quite powerful at predicting momentum swings.
Tutorial:
As you can see, the Fear and Greed Index looks somewhat similar to an RSI, but it has the ability to gain drastic momentum when there are strong changes in Fear and Greed.
When it comes to identifying buy/sell locations you generally want to ensure 2 things:
For a buy, the Fear and Greed Index (FGI) is less than 30.
For a sell, the FGI is greater than 70.
A signal has occurred. For buy that is the red circle and for sell that is the green circle.
The reason we generally want to ensure these 2 rules is to ensure you have the highest chance of being right with the lowest risk of being wrong. The way you want to use this indicator is; Be Fearful when others are Greedy and Greedy when others are Fearful.
There will be times when a fear or greed signal appears when the index is between 30-70. When these occur, they are still generally strong signal locations that represent a high chance of momentum in the direction they signal, however they face a higher risk of being wrong and therefore shouldn’t be used on its own to make a trade.
In the photo above we can see that the FGI’s color changed from Red to Orange in the candle after the Fear Signal. This happened because there was high price movement right after it (which is normal) and caused the Fear level to drop.
The color the FGI displays is based not off the FGI but by the STATE it is currently in. When the color is Green it is in a state of HIGH GREED, when the color is Red it is in a state of HIGH FEAR. When the color is Teal it is in a state of SLIGHT GREED, when the color is Orange it is in a state of SLIGHT FEAR. These colors hold true for the Information Tables as well.
As we can also see from the example above, it is 100% possible to have a state of HIGH GREED when the FGI is low. For instance look at the Fear (BUY) signals circled. Right before the Fear Signals happened, it was in a state of HIGH GREED (Green). The opposite is also true with Fear. We can have a high state of Fear when the FGI is high. However, please do remember, the lowest risk and best time to make trades is still:
FGI is higher than 70 and there is a Greed Signal = SELL
FGI is lower than 30 and there is a Fear Signal = BUY
You may notice there are sometimes occurrences that we call ‘Oddballs’. These oddballs are quite rare but they do happen and when they do they’re generally in clusters (close together). These Oddballs are when a Greed Signal occurs when the FGI is very low or when a Fear Signal occurs when the FGI is very high. Basically, they are occurring in the opposite location that they are supposed to. These may not seem like they matter but they matter a lot. As you can see based on where the blue vertical lines are, the price moved in the direction the signal identified shortly after the signal.
You may be wondering, are Oddball’s stronger price influencers than the regular signal? The issue with Oddballs is they sometimes CAN BE. But generally they aren’t. They generally do signal price movement will occur in the direction they are influencing, but generally not as much movement as if it occurred properly (Fear signal under 30 or Greed signal above 70).
The takeaway from Oddballs is to acknowledge their existence and potentially use them as markers for smaller purchases or DCA locations. We don’t recommend treating them as a legitimate purchase signal as they generally are weaker and less predictable, but nevertheless don’t dismiss them.
Our Information Tables are there to show you the FGI on 6 different Time Frames at the same time. This can be very useful for knowing how the other Time Frames are fairing while you are trading without needing to constantly change the Time Frame you are on.
For example, you see a Fear Signal on the 1 Day Time Frame, you then swap to the 15 minute Time Frame to find your entry location. Well, once you’re locked into that trade, you’ll likely be fixated on the 15 minute Time Frame. There’s a chance while you’re still waiting for your exit that levels and states of the FGI could change on higher Time Frames. This could drastically influence when and where your exit on the lower Time Frame should be.
This concludes our Tutorial on how to use YinYang Fear and Greed Index (FGI). However, continue reading for a description and better understanding of the Settings available to you for customization within this Indicator.
Settings:
1. Information Tables:
1.1. Show Information Tables:
Our Information Tables display 6 different Time Frames (resolutions) so that you can see the current level of Fear and Greed (FGI) that is prevalent on each Time Frame. There are 4 different states the FGI can be in:
Fear (Red)
Minor Fear (Orange)
Greed (Green)
Minor Greed (Teal)
The color of each Time Frame Cell (on Oscillator and in the table) is based on the following:
Red: Red represents that it is currently in a state of Fear. When it is in a state of fear it means traders are being overly bearish and selling when they likely shouldn’t. While it is in a state of Fear, there is a high chance of BULLISH price movement occurring. Remember, Be Fearful when others are Greedy and Greedy when others are Fearful.
Orange: Orange represents that it is currently in a state of Minor Fear. Minor Fear means that the FGI is less than 50, but it’s not currently in a state of Fear or Greed. While it is in this state, there is a better chance for BULLISH price action than there is bearish but it's nowhere near as likely as when in a state of Fear.
Green: Green represents that it is currently in a state of Greed. When it is in a state of Greed, it means traders are being overly bullish and buying when they shouldn’t. While it is in a state of Greed, there is a high chance of BEARISH price movement occurring.
Teal: Teal represents that it is currently in a state of Minor Greed. Minor Greed means that the FGI is greater than 50, but it’s not currently in a state of Fear or Greed. While it is in this state, there is a better chance for BEARISH price actions than there is bullish; but it’s nowhere near as likely as when its in a state of Greed.
2. Res1 / Res2/ Res3 / Res4 / Res5 / Res6:
These represent the different resolutions (Time Frames) being used in your information tables and can be modified to display whatever resolution works best for your trading style. By default they are:
Res1: Current Timeframe
Res2: 15 Minute
Res3: 1 Hour
Res4: 4 Hour
Res5: 1 Day
Res6: 1 Week
Backup Res (not changeable): 5 Minute (this is only used if your Current Timeframe in Res1 is a duplicate of one of the other resolutions)
Our Fear and Greed Index can be very useful for understanding how people are feeling in the market and when large price swings will occur. Remember, Be Greedy when others are Fearful and Fearful when others are Greedy!
If you have any Questions or Concerns, don’t hesitate to contact us.
HAPPY TRADING!
ABC on Recursive Zigzag [Trendoscope]There are several implementations of ABC pattern in tradingview and pine script. However, we have made this indicator to provide users additional quantifiable information along with flexibility to experiment and develop their own strategy based on the patterns.
🎲 Highlights of this indicator over other ABC implementations are:
Implementation is based on recursive multi level zigzag allows bigger as well as smaller patterns to be identified
Allows users to set their trading rules with respect to entry, target and stop ratios, experiment and build their own strategy based on the ABC pattern.
Back test summary including win ratio and risk reward will help users understand the profitability based on different settings being used.
🎲 Concept of ABC Pattern
The ABC pattern, also known as the "Corrective Wave" or "Zigzag Pattern," is a fundamental concept in Elliott Wave Theory, which is widely used in technical analysis to identify and predict price movements in financial markets.
The ABC pattern is a three-wave corrective pattern that typically occurs within the context of a larger impulse or trending wave. It consists of two smaller waves in the opposite direction (A and C) separated by a corrective wave (B). These waves are labeled alphabetically and represent price movements.
Wave A (Impulse Wave): Wave A is the first leg of the ABC pattern and is characterized by a strong price move in the opposite direction of the prevailing trend. It is often driven by a fundamental or sentiment-driven event that temporarily disrupts the trend.
Wave B (Corrective Wave): Wave B is the corrective wave that follows Wave A. It represents a partial retracement of Wave A's price movement. Wave B can take various forms, such as a simple correction or a complex correction (e.g., a triangle or a flat correction). It typically doesn't retrace the entire length of Wave A.
Wave C (Impulse Wave): Wave C is the final leg of the ABC pattern and is characterized by a strong price move in the same direction as the prevailing trend. It often surpasses the starting point of Wave A and confirms the resumption of the larger trend.
🎲 Indicator Components
Upon loading the indicator on the chart, we can observe the following components on the chart.
Pattern Drawings is the graphical representation of present patterns. Please note that it is not necessary for patterns to be there on the chart all the time. Patterns will appear on the chart when price makes the patterns.
Trade Box is the box representing trade signals of the pattern. These trade levels are generated based on the user settings.
Summary Table is the back test summary containing details of historical pattern performance including Win Ratio and Risk Reward.
🎲 Indicator Settings
Details of each user settings are provided in the tooltips. Below is the snapshot of it.
🎲 Alerts
Basic level of alerts are built in the script using alert function to highlight the following conditions:
New ABC Pattern
Updates to existing Pattern
Both conditions will alert simple text messages. There is not much customization provided as part of this indicator. We will consider providing more options in future versions based on the interest and demand shown by users.
Auto Harmonic Pattern - Screener [Trendoscope]At Trendoscope, we take pride in offering a wide range of indicators on Harmonic Patterns, including both free and premium options. While we have successfully developed various advanced tools, we recognize that creating a Harmonic Pattern screener is an audacious endeavor that few have ventured into.
Creating a harmonic pattern screener presents a formidable challenge. The intricate nature of the algorithm, coupled with the limitations of cloud-based processing and platform memory, makes it exceedingly difficult to implement the screener functionality without encountering runtime errors.
Today marks a historic achievement as we overcome numerous challenges to unveil our groundbreaking harmonic pattern-based screener. This significant leap signifies our commitment to innovation in the field.
Without further delay, let's dive right into the new Auto Harmonic Pattern - Screener algorithm
🎲 Features Overview
🎯 Primary Functionality
We prefer not to categorize this as a traditional indicator, as it goes beyond that scope. Instead, it's a unique amalgamation of both a screener and an indicator, designed to achieve primarily two essential functions.
Firstly, it efficiently scans multiple tickers, up to 20, for harmonic pattern formations and presents them on a user-friendly dashboard
Secondly, it provides harmonic pattern drawings on the chart, but only if the current chart ticker is part of the screener and exhibits a harmonic pattern formation.
🎯 Secondary Features
In addition to its primary functionalities, our revolutionary algorithm offers an array of secondary features that cater to traders' diverse needs
Users have the privilege of accessing enhanced settings, providing limitless customization options for the zigzag and pattern detection algorithm
The platform empowers traders to effortlessly customize stop entry target ratios, facilitating automatic calculations and display of suggestions
The freedom to personalize the visualization and display of patterns and dashboard ensures a seamless and intuitive user experience
And finally, the algorithm leaves no stone unturned, keeping traders well-informed through timely alerts on every bar, highlighting tickers exhibiting Harmonic Pattern formations.
🎯 Limitations
Our innovative screener harnesses the power of the recursive zigzag algorithm to deliver efficient and accurate harmonic pattern detections. While the deep search algorithm, present in our other Harmonic Pattern algorithms, offers unparalleled precision, its resource-intensive nature makes it unsuitable for simultaneous scanning of 20 tickers. By focusing on the recursive zigzag approach, we strike the perfect balance between performance and functionality, ensuring seamless scanning across multiple tickers without compromising on accuracy. This strategic decision allows us to deliver a powerful and reliable screener that meets the diverse needs of traders and empowers them with real-time harmonic pattern insights.
🎲 Chart Components
Upon loading the indicator and configuring your tickers, our user-friendly interface offers two key components seamlessly integrated into the chart:
A color-coded screener dashboard : The dashboard presents a clear visualization of tickers with bullish and bearish harmonic patterns. This intuitive display allows you to quickly identify potential trading opportunities based on pattern formations.
Dynamic pattern display : As you interact with the chart, our algorithm dynamically highlights possible harmonic patterns based on the latest zigzag pivots. Please note that patterns may not always be visible on the chart, especially in cases where higher-level zigzags take time to form pivots. However, rest assured that our sophisticated algorithm ensures real-time updates, providing you with accurate and timely harmonic pattern insights.
🎯 Screener Dashboard
In our screener dashboard, you will find a wealth of information at your fingertips:
Bullish patterns : Tickers exhibiting bullish harmonic patterns are prominently highlighted with a refreshing green background
Bearish patterns : Similarly, tickers featuring bearish harmonic patterns stand out with a striking red background
Dual patterns : Tickers displaying both bullish and bearish patterns are cleverly highlighted in a captivating purple background, providing a comprehensive view of the harmonic pattern landscape.
Tickers without current patterns : Tickers lacking any current patterns are elegantly displayed with a silver background. These tickers do not trigger tooltips, streamlining your focus on actionable pattern-related data.
🎲 Settings in Detail
🎯 Tickers
Our platform currently allows users to select up to 20 tickers for the harmonic pattern screener. We understand the importance of flexibility and scalability, and while we are excited to accommodate more tickers in the future, our present focus is to ensure optimal performance within the CPU and memory limitations. Rest assured, we are continuously working on enhancing our capabilities to provide you with an even more comprehensive experience. Stay tuned for updates as we strive to meet your evolving needs.
🎯 Zigzag and Harmonic Pattern
In this section, we present a range of essential settings that play a pivotal role in the calculation of the zigzag and the scanning of patterns. These parameters share similarities with other premium indicators associated with Harmonic patterns. These settings serve as building blocks for our advanced algorithms' suite.
This include
Zigzag length and depth settings for calculation of the multi level recursive zigzag
Pattern scanning settings to filter patterns based on preferences of category, pattern name, accuracy of calculation, and other considerations.
User preference of pattern trading ratios that are used for calculating entry, stop and target prices.
🎯 Screener Dashboard and Alerts
In this section, we introduce the parameters that define the format and content of alerts and the screener dashboard, offering you maximum flexibility in customizing their display. These settings encompass the following key aspects:
Screener dashboard position, layout and size that influence the display of screener dashboard.
List of parameters that can be shown on dashboard tooltips as well as on alerts.
Format of alert and tooltip data
🎯 Pattern Display
These are the settings related to pattern display on the chart and to limit calculation to last n bars
Will soon make video tutorials on this soon.
Recursive Micro Zigzag🎲 Overview
Zigzag is basic building block for any pattern recognition algorithm. This indicator is a research-oriented tool that combines the concepts of Micro Zigzag and Recursive Zigzag to facilitate a comprehensive analysis of price patterns. This indicator focuses on deriving zigzag on multiple levels in more efficient and enhanced manner in order to support enhanced pattern recognition.
The Recursive Micro Zigzag Indicator utilises the Micro Zigzag as the foundation and applies the Recursive Zigzag technique to derive higher-level zigzags. By integrating these techniques, this indicator enables researchers to analyse price patterns at multiple levels and gain a deeper understanding of market behaviour.
🎲 Concept:
Micro Zigzag Base : The indicator utilises the Micro Zigzag concept to capture detailed price movements within each candle. It allows for the visualisation of the sequential price action within the candle, aiding in pattern recognition at a micro level.
Basic implementation of micro zigzag can be found in this link - Micro-Zigzag
Recursive Zigzag Expansion : Building upon the Micro Zigzag base, the indicator applies the Recursive Zigzag concept to derive higher-level zigzags. Through recursive analysis of the Micro Zigzag's pivots, the indicator uncovers intricate patterns and trends that may not be evident in single-level zigzags.
Earlier implementations of recursive zigzag can be found here:
Recursive Zigzag
Recursive Zigzag - Trendoscope
And the libraries
rZigzag
ZigzagMethods
The major differences in this implementation are
Micro Zigzag Base - Earlier implementation made use of standard zigzag as base whereas this implementation uses Micro Zigzag as base
Not cap on Pivot depth - Earlier implementation was limited by the depth of level 0 zigzag. In this implementation, we are trying to build the recursive algorithm progressively so that there is no cap on the depth of level 0 zigzag. But, if we go for higher levels, there is chance of program timing out due to pine limitations.
These algorithms are useful in automatically spotting patterns on the chart including Harmonic Patterns, Chart Patterns, Elliot Waves and many more.
@tk · fractal rsi levels█ OVERVIEW
This script is an indicator that helps traders to identify the RSI Levels for multiple fractals wherever the current timeframe is. This script was based on RSI Levels, 20-30 & 70-80 by abdomi indicator, that calculates the Relative Strenght Index levels based on the asset's price and plots it into the chart, creating a "wave" style indicator. The core feature of this indicator is the fractal rays, so trader can visualize each of the oversold and overbought levels of multiple timeframe on the current timeframe that he is on. The indicator will plots multiple rays after the chart bars. indicating where is the oversold and overbought levels for others fractals.
█ MOTIVATION
Since the RSI Levels, 20-30 & 70-80 by abdomi indicator helps a lot to identify the possible price levels when the asset is oversold or overbought, I saw myself drawing multiple horizontal lines on these levels in lower timeframes so, in an uptrend or downtrend, I can try to get a pullback of these trends when the asset reaches oversold or overboght levels. So, I get the idea to make those lines visible in multiple timeframes so I don't need to draw it myself manually anymore.
█ CONCEPT
The trading concept to use this indicator is the concept to make entries on uptrend or downtrend pullbacks when the asset price reaches oversold or overbought levels. But this strategy don't works alone. It needs to be aligned together with others indicators like Exponential Moving Averages, Chart Patterns, Support and Resistance, and so on... Even more confluences that you have, bigger are your chances to increase the probability for a successful trade. So, don't use this indicator alone. Compose a trading strategy and use it to improve your analysis.
█ CUSTOMIZATION
This indicator allows the trader to customize the following settings:
GENERAL
Text size
Changes the font size of the labels to improve accessibility.
Type: string
Options: `tiny`, `small`, `normal`, `large`.
Default: `small`
RSI LEVELS · SETTINGS
Pre-oversold Level
Changes the RSI Level to calculate the "pre-oversold" price level on the chart.
Type: int
Min: 1
Max: 49
Default: 33
Pre-overbought Level
Changes the RSI Level to calculate the "pre-overbought" price level on the chart.
Type: int
Min: 51
Max: 100
Default: 67
Show "Pre-over" Levels
Enables / Disables the pre-oversold and pre-overbought levels on the chart.
Type: bool
Default: true
FRACTAL RAYS · SETTINGS
Length
Changes the base length for the RSI calculation.
Type: int
Min: 1
Default: 14
Source
Changes the base source for the RSI calculation.
Type: float
Default: close
FRACTAL RAYS · STYLE
Ray Color
Changes the color of all fractal rays and its label.
Type: color
Default: color.rgb(187, 74, 207)
Ray Style
Changes the style of all fractal rays.
Type: string
Options: `line.style_solid`, `line.style_dashed`, `line.style_dotted`
Default: line.style_dotted
Ray Length
Changes the length of all fractal rays.
Type: int
Default: 15
FRACTAL RAYS · OVERSOLD
Oversold Level
Changes the base RSI Level for fractal rays calculation.
Type: int
Min: 1
Default: 30
Oversold Prefix
Customizes the fractal ray label with a prefix text.
Type: string
Default: 🚀
Oversold Suffix
Customizes the fractal ray label with a suffix text.
Type: string
Default: (empty)
FRACTAL RAYS · OVERBOUGHT
Overbought Level
Changes the base RSI Level for fractal rays calculation.
Type: int
Min: 1
Default: 70
Overbought Prefix
Customizes the fractal ray label with a prefix text.
Type: string
Default: 🐻
Overbought Suffix
Customizes the fractal ray label with a suffix text.
Type: string
Default: (empty)
FRACTAL RAYS · VISIBILITY RULES
These rules are applied for each of fractal rays so, the traders can choose what timeframes they wants to show the fractal rays for each of it. The rule will be applied as the following condition: `if timeframe != CURRENT_TIMEFRAME and timeframe <= CHOSEN_OPTION`. Actually, the fractal rays are on the chart but, isn't visible because it was applied a transparent color, so it is visually not on the chart to prevent chart's over polution.
LABELS
Show Labels on Price Scale
Shows labels on price scale.
Type: bool
Default: false
Show Price on Fractal Rays
Shows the RSI Level price on each of fractal rays respectively.
Type: bool
Default: false
█ EXTERNAL LIBRARIES
This script uses the `tk` library to calculate RSI Levels. It is a library that contains various functions that helps pine script developers to calculate RSI Levels.
█ FUNCTIONS
The library contains the following functions:
fn_fractalVisibilityRule(string visibilityRule)
Converts the fractal rays timeframe visibility rule label to timestamp int.
Parameters:
visibilityRule: (string) Fractal ray visibility rule label.
Returns: (int) Fractal ray visibility rule timestamp.
fn_requestFractal(string period, expression)
Converts the fractal rays timeframe visibility rule label to timestamp int.
Parameters:
period: (string) Timeframe period for the desired fractal.
expression: (mixed) Security expression that will be applied for calculation.
Returns: (mixed) A result determined by expression.
fn_plotRay(float y, string label, color color, int length)
Plots ray after chart bars for the current time.
Parameters:
period: (string) Timeframe period for the desired fractal.
expression: (mixed) Security expression that will be applied for calculation.
Returns: (void) This function only plots the elements into the chart
fn_plotRsiLevelRay(simple string period, simple int level, color color)
Plots RSI Levels ray after chart bars for the current time.
Parameters:
period: (simple string) Timeframe period.
level: (simple int) Relative Strength Index level.
color: (color) The color of both, ray and label text.
Returns: (void) This function only plots the elements into the chart
AL-Ghamdi Table Harmonic
AL-Ghamdi Table Harmonic
A simple note showing the proportions of the harmonic models
With correction, target and stop loss