RunRox - Harmonic Patterns📐 RunRox - Harmonic Pattern indicator , we are pleased to present our new, built upon sophisticated logic for identifying and plotting harmonic formations directly on your charts. Significant effort and research have been invested into the development of this indicator, and now it is ready to be included in our premium indicator package.
In this post, we will provide a comprehensive overview of our indicator, describing all its key features, capabilities, and possible use cases. We strongly recommend reading the entire post thoroughly to fully understand the logic and operation behind our new Harmonic Pattern indicator.
📜 A BRIEF HISTORY
Harmonic patterns are specialized chart formations based on Fibonacci ratios, used by traders to identify potential reversal points in financial markets. Originally introduced by H.M. Gartley in the 1930s and later refined by Scott Carney, harmonic patterns became widely recognized for their effectiveness in forecasting precise turning points and market reversals. Over the years, these patterns have become an essential tool for traders employing technical analysis.
📌 INDICATOR FEATURES
Identification of 3 pattern sets:
✅ 5 Classic Chart Patterns:
Head and Shoulders, Triangle, Wedge, Flag, Double Top/Bottom
✅ 11 Harmonic Patterns:
Bat, Alternate Bat, Butterfly, Crab, Deep Crab, Gartley, Shark, Cypher, 5-0 Pattern, AB=CD, 3-Drive
✅ 10 Non-standard Harmonic Patterns:
Nen Star, White Swan, Black Swan, Anti-Bat, Anti-Butterfly, Anti-Crab, Anti-Gartley, Anti-Shark, Anti-Cypher, Anti-Nen Star
Additional features:
Built-in backtesting system
Pattern win-rate calculation
Flexible Stop Loss settings
Flexible Take Profit settings
Customizable pattern detection parameters
Advanced trailing stop functionality
Flexible notification system
And much more.
Below is a screenshot visually illustrating all the classic chart patterns that our indicator identifies on the chart.
This is how the 11 harmonic patterns visually appear on the chart.
10 Non-standard harmonic patterns visually represented on the chart.
🔸 XABCD are standard letters representing specific points used in forming harmonic patterns. The sequence always begins with the point X as the initial reference point, followed by points ABCD, which together complete the harmonic pattern.
These points are identified using a specialized method, scanning through thousands of potential points on the chart simultaneously. The indicator analyzes numerous potential formations, selecting and displaying only those patterns that meet specific validation criteria. This meticulous process ensures that only valid and accurate patterns appear on your chart, as illustrated in the screenshot below.
🔸 Ratio: Between the points XABCD, you’ll notice the “Ratio,” indicating the proportional relationships required between these points to correctly form harmonic patterns. The indicator displays a pattern on the chart only when these ratio conditions are precisely met, thereby maximizing accuracy and ensuring the validity of identified patterns. This aspect is clearly demonstrated in the screenshot below.
🔸 TP and SL levels: For each identified pattern, we also display recommended Take Profit (TP) and Stop Loss (SL) levels directly on the chart. Additionally, we provide a suggested entry price (Entry Level). It is important to note that entering a trade requires the price to retrace into the specified Entry Level zone. Therefore, you must wait until the price returns to this zone for the pattern to be considered fully formed and ready for entry.
Using the Butterfly pattern as an example, we’ve illustrated all the key components of a pattern. Our indicator offers extensive customization, allowing you to finely adjust everything from the acceptable Ratio ranges to Stop Loss and Take Profit levels, among many other parameters. Below, we’ll discuss the indicator’s capabilities and its customizable settings in detail.
📶 ACTIVE PATTERNS PANEL
In the screenshot above, you can see the panel displaying all active patterns currently formed on the chart, including the pattern direction, entry price, two take profit levels, and the stop loss level. This provides a quick and clear overview of the available patterns on your chart, significantly speeding up your trading process.
Additionally, you can fully customize this panel, adjusting its position, size, or even completely removing it if you prefer.
📊 PATTERN STATISTICS
The Pattern Statistics Panel displays historical performance results for all patterns. The indicator automatically performs backtesting for each pattern based on historical data, taking into account all user-defined settings. Results are conveniently presented in this panel.
This feature is highly practical as it allows you to quickly evaluate the effectiveness of each pattern directly on your chart. As a result, you can easily identify which patterns are performing best and which patterns might be less effective and therefore unsuitable for trading on the current instrument.
Furthermore, the panel organizes patterns into specific categories Classical, Harmonic, and Anti-Harmonic and separates results by trade direction (Long or Short). This helps you quickly determine the optimal trading direction for each pattern category.
⚙️ INDICATOR SETTINGS
Now, it’s time to discuss the indicator settings in detail and describe all the available options and features that you can customize according to your preferences.
🔶 Detection Settings
In the screenshot above, you see the first settings block with the following options:
FastMode – When activated, only patterns are displayed on the chart, without the results table. This significantly speeds up the pattern rendering process and makes the script run faster.
Error % – Allows you to specify a permissible deviation from the ideal XABCD parameters. By increasing this percentage, the indicator will detect more patterns, but they will deviate from the ideal ratio proportions by the percentage you’ve set.
Search Priority – Choose between “Large First” or “Small First” pattern prioritization. With “Large First,” the indicator prioritizes detecting larger patterns first; smaller patterns are only displayed if no suitable large patterns are available, and vice versa.
ZigZag Period – Determines the period for the ZigZag structure used as a foundation for pattern detection. It’s an essential parameter that directly affects the number and quality of detected patterns.
Pattern Size – Specify the desired size of patterns in terms of the number of bars on the chart.
Remove patterns older than, bars – Allows you to remove old patterns from the chart and prevent their display if they formed more than a set number of bars ago (default is 200 bars).
🔶 Entry / Target / StopLoss Settings
In the screenshot above, you can see the settings related to configuring your preferred entry points, target levels, and stop-loss strategies. Below is a detailed explanation of each option:
Trade Direction – Both / Long / Short - Choose the direction in which you want to trade. Selecting “Both” will search for patterns in both directions, while “Long” or “Short” will filter the patterns to show only those that align with the selected direction.
Entry % - This sets the entry level as a percentage of the pattern’s total size. It determines how far from the pattern’s starting point the entry will be placed.
Target 1 - Also defined as a percentage of the pattern size. This represents the distance from the entry point to the first take profit level.
Target 2 - Optionally, you can enable a second take profit level and set the percentage distance for it.
Stop-Loss Type - Choose from six different stop-loss types: Invalidation Price, Last Pivot, %, % of pattern size, Pips, or Risk/Reward ratio. Each provides flexibility depending on your trading style.
Stop-Loss SL Value - This is the specific value related to the chosen stop-loss type. For example, if you choose the “%” type, this setting will define the percentage used to place the Stop Loss level.
Using the Shark pattern as an example, let’s demonstrate how the entry, target, and stop-loss levels function. Based on the overall size of the pattern, you can input the desired percentage values for your trade entry, target, and stop-loss levels, and the indicator will automatically calculate their exact placement relative to the pattern’s structure.
You can also choose alternative stop-loss methods, such as Risk/Reward, in which case the stop-loss will be dynamically calculated based on the risk-to-reward ratio you define.
It’s also important to note that for harmonic patterns, the height of the pattern is calculated based on the segment from point C to point D. However, for the Black Swan pattern, the measurement is taken from point A to point D. This distinction should be kept in mind when configuring your stop-loss levels.
Additionally, classic patterns each have their own unique method for calculating pattern height, depending on the specific structure.
🔶 Trailing Stop Settings
These settings are designed to help improve your strategy’s results, especially if you use break-even stop-loss adjustments after reaching specific targets, which can help increase your win rate.
Move SL to Break-even after reaching Target 1 - Enabling this option will automatically move the stop-loss to the entry level (break-even) once the price hits the first target (Target 1).
Trailing Stop Type - Choose from three trailing stop types: Percentage (%), % of pattern size, Pips
Trailing Stop Value - Enter the desired value for the chosen trailing stop type. For example, if you selected %, the number entered will be treated as a percentage. If you chose Pips, it will be the number of pips for the trailing stop.
Enable Trailing Stop at reaching - This setting defines when the trailing stop should be activated. You can choose from four options: Target 1, %, % of pattern size, Pips
Trailing After Value - This works in combination with the previous setting. If you choose one of the three non-Target options, this field lets you enter the specific value that will trigger the trailing stop.
🔶 Display Settings
In the screenshot above, you can see the Display Settings section, which allows you to fully customize the visual appearance of patterns on your chart according to your preferences.
You can choose to show or hide pattern labels (XABCD), ratio values, entry/TP/SL levels, and pattern fill for better visual clarity.
Additionally, you can set the maximum number of active patterns displayed on the chart, as well as view the historical formations of any specific pattern to analyze how it appeared in past price action.
🔶 Dashboard | Pattern Table
In the screenshot above, you can see the settings for two tables: one displaying the results of each pattern , and the other showing active patterns currently on the chart. Both tables offer flexible customization options, allowing you to adjust their color schemes, sizes, and on-screen positions to best fit your workflow.
🔶 Patterns Setting
For each individual pattern, you can customize its appearance by selecting your preferred color , adjusting its transparency , or even hiding it entirely from the chart if you don’t wish to display it.
🔶 Notifications
You can easily configure notifications for various events, such as the appearance of a new pattern or when the price reaches the entry level of a trade.
Additionally, a dedicated panel allows you to use macros for advanced customization of your alerts, so you can tailor the notifications exactly to your needs and trading style.
List of Supported Placeholders:
{{event}} - Event name ('New Pattern', 'Target 1', etc.)
{{pattern}} - Pattern name ('Bat', 'Crab', etc.)
{{event_price}} - Event Price (entry price for entry event, sl price for sl event, etc.)
{{sl}} - Stop-loss price
{{entry}} - Entry Price
{{target1}}, {{target2}} - Target Prices
{{invalidation}} - Invalidation Price
{{exchange}} - Exchange ('Binance')
{{ticker}} - Ticker ('BTCUSD')
{{interval}} - Timeframe ('1s', '1', 'D')
{{open}}-{{close}}-{{high}}-{{low}} - Candle price values
{{volume}} - Candle volume
{{time}} - Candle open time in UTC timezone
{{timenow}} - Signal time in UTC timezone
{{syminfo.currency}} - 'USD' for BTCUSD pair
{{syminfo.basecurrency}} - 'BTC' for BTCUSD pair
✅ USAGE METHODS
The indicator and its patterns can be used as a standalone trading strategy, providing clear entry points, stop-loss levels, and take-profit targets - without the need for any additional tools or indicators.
However, for optimal results, we recommend integrating the indicator with your existing trading strategy. Using it as a confluence tool - alongside other technical indicators or as a complement to your fundamental analysis - can significantly enhance your decision-making and improve overall performance!
🟠 Disclaimer
Past performance is not indicative of future results. To trade successfully, it is crucial to have a thorough understanding of the market context and the specific situation at hand. Always conduct your own research and analysis before making any trading decisions.
蝙蝠
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
Harmonic Pattern Table UDT█ OVERVIEW
This table indicator was intended as helper / reference for using XABCD Pattern drawing tool.
The values shown in table was based on Harmonic Trading Volume 3: Reaction vs. Reversal written by Scott M Carney.
Code upgrade from Harmonic Pattern Table (Source Code) and based on latest User-Defined Type (UDT) .
As a result, code appeared more cleaner.
█ FEATURES
1. List Harmonic Patterns.
2. Font size small for mobile app and font size normal for desktop.
3. Options to show Animal name in text, emoji or both.
█ USAGE
Similar to Harmonic Pattern Table (Source Code).
█ CREDITS
Scott M Carney, Trading Volume 3: Reaction vs. Reversal
Conditional Chart Pattern Signals: Part 3CCPS uses exclusive method to finalize pivot points and has more options to refine chart patterns.
Pattern List:
• AB=CD Bearish
• AB=CD Bullish
• Deep Crab Bearish
• Deep Crab Bullish
• Alternate AB=CD Bearish
• Alternate AB=CD Bullish
• Alternate Bat Bearish
• Alternate Bat Bullish
Label Tooltip: Show more information of the signal.
Volume: Random/Up/Down is determined by linear regression. Show pattern if volume trend is not required/up/down.
Percentile %: Intraday: 60 (active). Day and above: set at your preference. Range 0-100. A value of 0 means that no filter is applied and all patterns satisfy the condition. A value of 100 means that no pattern satisfies the condition.
Confirm Time: 1-3 candles.
Candle: Random/Bullish/Bearish.
Specification:
tinyurl.com
Usage:
Enter at the open of the next bar after the signal or right when the signal appears (depending on your very own evaluation of the market at that time as sometimes price could reach targets within one bar). Adding caution, a little bit of experience will be needed to recognize if price actually reacts and follows the signals generated by CCPS.
Stop-loss suggested by the signal is generated as a quick analysis. In general, you need to place the stop-loss higher or have your own deeper analysis to have it. Take profit based on your preference of risk and/or other indicators of target/support/resistance.
Other Features:
• Non-repainting: show honest signals on the realtime bar, not on historical bars.
• Compact design.
• Support alerts.
Markets: All (Not designed and developed for a specific market). Test on: forex, index, commodity.
Timeframes: All (Not designed and developed for a specific timeframe). Test on: 30m, 1D, 1W, 1M.
Remark:
• Reversal patterns do not have magic. Indeed, they belong to counter-trend strategy and technical analysis of high-probability (potential) reversal zone. In case of more powerful fundamental factors, a trend could continue and break reversal patterns.
• We have tried to integrate multiple base periods in the indicator but the execution time limitation for one indicator does not allow us to do so. As a result, users need to manually add the indicator multiple times with different base periods in order to find more patterns. Some common base periods are 5, 10, 15 and 20. In the future, if the platform lifts the limitation, we will have a version in which the indicator would automatically scan different base periods for users.
• Because compiled script code limit is 65000, the indicator is separated into different parts. Each part contains different patterns and could be considered as an independent detector.
Harmonic Pattern Educational Volume 2 (Source Code)This indicator was intended as educational purpose only for Harmonic Patterns using XABCD Pattern Tool.
This indicator was build upon Harmonic Trading : Volume Two, which was continuation from Harmonic Trading : Volume One and The Harmonic Trader, written by Scott M Carney.
Explaination was similar to previous build, build 0 and build 1 .
Volume 2 introduce Harmonic Ratio Progression, which result new patterns such as 5-0 and Alternate Bat.
Indikator ini bertujuan sebagai pendidikan sahaja untuk Harmonic Pattern menggunakan XABCD Pattern Tool.
Indikator ini dibina berdasarkan buku Harmonic Trading : Volume Two, juga sambungan daripada Harmonic Trading : Volume One and The Harmonic Trader, ditulis oleh Scott M Carney.
Penerangan yang sama berdasarkan binaan lepas, build 0 and build 1 .
Volume 2 memperkenalkan Harmonic Ratio Progression, membolehkan pattern baru seperti 5-0 dan Alternate Bat.
Indicator features :
1. List XAB=CD patterns including ratio and reference page.
2. For desktop display only, not for mobile.
Kemampuan indikator :
1. Senarai XAB=CD pattern termasuk ratio and rujukan muka surat.
2. Untuk paparan desktop sahaja, bukan untuk mobile.
FAQ
1. Credits / Kredit
Scott M Carney, Harmonic Trading : Volume One
2. Pattern and Chapter involved / Pattern dan Bab terlibat
Bullish 5-0 - Page 79
Bearish 5-0 - Page 88
Bullish Alternate Bat - Page 103
Bearish Alternate Bat - Page 106
3. Code Usage / Penggunaan Kod
Free to use for personal usage but credits are most welcomed especially for credits to Scott M Carney.
Bebas untuk kegunaan peribadi tetapi kredit adalah amat dialu-alukan terutamanya kredit kepada Scott M Carney.
5-0
Alternate Bat
Ultimate Pattern Scanner ProChart Patterns and Harmonic Patterns using just ONE indicator!
This is a automatic scanner for well know patterns like Head and Shoulder to get started. I'm planning to add more patterns in the near future. It works as follows:
1. Is going to plot the pattern on the chart, lines in blue
2. Is going to show you when the pattern has finished to form, triangles and diamonds
3. It is possible to get an alert when the pattern has form
For example: is going to give a possible entry when the price has broken the trend line of the two shoulders if we take the Head and Shoulder pattern as an example.
Please let me know in the comments if you would like to have more patterns.
======================================================
This versions supports:
1. Head And Shoulder Pattern
- Show possible entries when the trend formed by the shoulders has been broken
2. Bat Harmonic Pattern
- Show Possible Reversals Zones in green or red boxes
- Alerts when any pattern has form
======================================================
======================================================
Next Versions:
- All the harmonic patterns
- Triangles
- Elliot Waves impulses
- Double Top and Bottom
- Triple top and bottom
- Rising and Falling Wedge
- The cup and the handle, etc
- ABCD pattern
Let me know in the comments if you are interested in something like this so I CAN GIVE YOU ACCESS. I'll appreciate your feedback.
thanks
Ultimate Pattern ScannerThis is a automatic scanner for well know patterns like Head and Shoulder to get started. I'm planning to add more patterns in the near future. It works as follows:
1. Is going to plot the pattern on the chart, lines in blue
2. Is going to show you the long entry or short entry bar, red or green triangles
3. It is possible to get an alert when there is a potential long or short entry depending on the pattern
For example: is going to give a possible entry when the price has broken the trend line of the two shoulders if we take the Head and Shoulder pattern as an example.
Please let me know in the comments if you would like to have more patterns.
======================================================
I have planned the release of a pro version with all the well know patterns for invite only users. Patterns like:
- All the harmonic patterns
- Triangles
- Elliot Waves impulses
- Double Top and Bottom
- Triple top and bottom
- Rising and Falling Wedge
- The cup and the handle, etc
- ABCD pattern
Let me know in the comments if you would be interested in something like this please. I'll appreciate your feedback.
thanks!
BatPattern_ULTRA V1 - draws Bat Pattern inclusive alertsHI BIG PLAYERS AROUND THE WORLD,
this script allow to draw automatically lines of Bat Pattern . The Bat Pattern is part of Harmonic Pattern .
Parallel to the automatic drawing, the indicator can give signals as soon as the typically Fibonacci extension immediately reached or has been reached. This allows the indicator BatPattern_ULTRA V1 to give early signals. In the default settings, the signals are displayed with a blue background on the chart.
BatPattern_ULTRA V1 is offered for sale. More information can be found below in the signature.
However, anyone can test this indicator for once without any registration in a 3 day trial. You can request access with a simple message to me.
Another trial of 7 days is included in the offer on my website - before the first payment will done.
In the settings it is possible to change the degree of details. This is sometimes necessary because TradingView limited only 55 lines per indicator in Pinescript Version 4.
In extreme cases it is therefore possible to change the settings that the Bat Pattern represent waves only with 2 lines. This allows the indicator to detect far more Bat Pattern on the same chart.
For more great indicators everyone is invited to follow me on TradingView.
Kind regards
NXT2017