Fractal Basic Chart Patterns [MyTradingCoder]This script is something that I made a long time ago in my early days of learning Pine. It is not in development anymore but has some unique and impressive utility that will help the community. This script will fractally identify chart patterns(iH&S,H&S,W,M) on any chart and timeframe. Most scripts have limitations that make the user have to adjust various parameters to get the desired result to show up on the chart. Lower input values may show smaller patterns, whereas vise versa, higher input values may show larger patterns, but you never seem to get the best of both worlds with these types of scripts. Some users may appreciate the vast majority of input parameters that most scripts provide, but others like myself may find it restrictive and annoying, as you wont get large patterns AND small patterns simultaneously.
All details needed to understand how to use the script are listed below. I will be creating new and well written scripts in the near future moving forward to help the community as best as I can, and just wanted to make it clear that this particular script is just something that I had on the backburner from a very long time ago, before I was a "Pinescript Maven" :) Enjoy!
Available Patterns:
- W Pattern
- M Pattern
- Head and Shoulders Pattern
- Inverse Head and Shoulder Pattern
Customizable inputs:
- Option to specify minimum bars required to consider a pattern.(Can be helpful if you don't want to see lower timeframe patterns, as some may not look like patterns, but if you drop the timeframe and go to the same time, there will be a pattern there on a lower scale)
- Boolean Inputs to Enable/Disable Certain Patterns
Available Alert Options:
- W Pattern Alert
- M Pattern Alert
- H&S Pattern Alert
- iH&S Pattern Alert
User Manual:
- Patterns will be drawn/detected/finalized on the bar close when the neckline is broken
- Green/Red lines represent the historical structure used to identify each pattern
- Blue dashed lines represent the projected price action based on the pattern completing
- Alerts/Indicator will not repaint(Can use 'once per bar' or 'once per bar close' and behavior will be identical. Code is optimized.)
- May have trouble on assets with daily/weekend time gaps with the projected price action dashed line due to time being used as the xloc. If this becomes a problem, leave a comment below and I will consider bringing this back into development and convert to bar_index as xloc to fix the issue.
- Patterns can be all shapes and sizes, hence the beauty of this indicator
- Leave a comment below for any questions or requests and give the indicator a like if you find it useful
Harmonik Formasyonlar
FxCanli ZigZagEN - You can spot current trend and lots of patterns with FxCanli ZigZag indicator EASLY
TR - FxCanli ZigZag indikatörü mevcut trendi ve birçok formasyonu KOLAYCA bulmanızda size yardımcı olacaktır.
Harmonic Patterns / Harmonik Formasyonları
Elliott Wave / Elliott Dalgaları
AB=CD Pattern / AB=CD Formasyonu
EN - By activating the lower timeframe from the settings, you can see the lower timeframe waves.
TR - Ayarlardan alt zaman dilimini aktif ederek, alt zaman dilimi dalgalarını görebilirsiniz.
EN - By activating the higher timeframe from the settings, you can see the higher timeframe waves.
TR - Ayarlardan üst zaman dilimini aktif ederek, üst zaman dilimi dalgalarını görebilirsiniz.
Crab Range FinderFinds the "crab range" of current price action.
///////
The lines corresponds are follows:
Green line represents the average high price
Orange line represents the median price
Yellow line represents the average low price
///////
By default, the last 5 bars are used when calculating the price lines, this value can be changed in settings as needed to tune for accuracy.
Ratio For Harmonic Points█ OVERVIEW
This indicator was intended as educational purpose only based on Harmonic Pattern Table (Source Code) to show indication of ratio for each Harmonic points from Point B until Stop Loss.
█ CREDITS
Credit to Scott M Carney, Harmonic Trading Volume 3: Reaction vs. Reversal.
█ USAGE EXAMPLE
Auto Harmonic Patterns Indicator [Premium]
This indicator automatically detects and draws harmonic patterns.
For each Fibonacci ratio in Scott Carney's basic harmonic pattern, you can easily find it by Googling.
Here, we have added a certain allowable range to point b of the xabcd type patterns as shown below.
- Deep Crab : 0.886 + 5% (no minus range)
- Alternate Bat : 0.382 - 3% (no plus range)
- Gartley, Butterfly : +- 3%
- rest patterns : +- 5%
You can set up to 8 ranges per period. Depending on your strategy, you can set the period from short-term to medium-term and long-term as desired.
When an expected harmonic pattern is detected, a model is drawn up to point c, and the predicted position of the potential reversal zone (PRZ) with the possibility of point d in the future is marked.
Investors can see price movements to prz in advance and prepare to react.
If a completed pattern is detected up to point d, it draws a pattern and additionally draws the Fibonacci retracement ratio at point d.
Investors can look at the Fibonacci ratio to determine stop-loss and profit-loss points.
Other fixes
Reinforcement of PRZ(d) zone marking
Real-time position adjustment of the PRZ(d) zone according to the current trend
Fibonacci retracement displayed when zone PRZ(d) is achieved
Change settings panel UI
Error rate scoping
Keep past patterns setting
Added Fibonacci line length setting function
Set the error rate separately for each point : 1~10%
Total 18 Patterns
- Gartley
- Deep Gartley
- Crab
- Deep Crab
- Bat
- Alternate Bat
- Butterfly
- Shark
- Cypher
- Three Drives
- 5 - 0
- Nen Star
- Dragon
- White Swan
- Black Swan
- ABCD classic
- AB=CD
- ABCD extension
Auto Harmonic Pattern - UltimateX [Trendoscope]IMPORTANT NOTE: (Read this before looking at any other thing on this indicator)
This indicator is created to supersede existing Auto-Harmonic-Pattern-Ultimate-Trendoscope invite only script. The script deviates a lot from the original Auto Harmonic Patterns Ultimate script in terms of number of available patterns, trading type and few other things. Hence, instead of updating the existing script, we have just decided to release as new script. Few FAQs in this regard are as below
What it means for users of AHPU and new users?
▶ Subscription of this script is not sold separately, but will be offered along with existing AHPU script. Meaning, there will be single subscription for both scripts together.
▶ All existing subscribers of AHPU will also get access to this script for the duration of their subscription term. Will start adding access to users starting from lifetime subscribers first.
▶ Any new subscriptions to AHPU will also get access to both the scripts together. We will eventually look to phase out existing AHPU once users are accustomed to new script and any possible bugs are resolved.
▶ Any trial requests will also get access to both scripts. You can request trial even if you have recently requested trial for AHPU.
Why did we create new script instead of updating the existing one?
▶ As mentioned before, this script deviates a lot from the original AHPU. Hence, it is released as new version to make sure smoother transition of users. If anyone is not comfortable using the new version, they can continue using the existing AHPU script until things settle down.
▶ Since the script is new implementation, it may also have initial bugs. It will help us resolve it in more streamlined way.
What are the main differences between these scripts?
▶ Uses single zigzag instead of multi as algorithm is further improved to detect almost everything using single zigzag.
▶ More number of patterns added. But, new patterns are disabled by default as some of them have very wide PRZ. Users can enable it via settings.
▶ Trading type with trailing entry - With wide PRZs, we also had to implement different method for calculating entry/stop. This is explained later in the script.
▶ Matrix implementation and enhanced stats - Entire implementation is redesigned to use matrix data structure instead of arrays. This allows lots of possibilities including enhanced closed trade stats.
▶ Support/Resistance widget is removed as it is proving to be bit of overhead. Users can make use of Support Resistance widget script which is a free to use script instead.
Let's get to the details of indicator now.
🎲 Indicator Components
🎯 Patterns Covered
● Classic Patterns
Gartley
Bat
Butterfly
Crab
Deep Crab
Cypher
Shark
Nenstar
● Anti/Alternate Patterns
Anti Nenstar
Anti Shark
Anti Cypher
Anti Crab
Anti Butterfly
Anti Bat
Anti Gartley
Navarro200
● Non-Standard Patterns (Disabled by default)
Five Zero
Three Drives
White Swan
Black Swan
Sea Pony
Leonardo
121
Snorm
Total
Below is a quick snapshot of indicator components.
Now, lets look at some of the individual components:
🎯 Open trade stats helps recognise trades in motion.
Apart from regular stats, it also contain different types of risk reward ratios.
Regular RR : RR calculated from entry to reach target with initial stop for risk consideration
Trailing RR : This is RR calculated for price to reach from one target to next target considering trailing stop for calculating risk
Live RR : This is calculated based on current price as entry and with given targets and stop levels. Live RR will be blank for targets which are already reached.
Targets are calculated only when entry is made. Hence, target details are not shown for patterns where it is still awaiting entry.
🎯 Closed trade stats helps understand historical performance of patterns.
By default closed stats are displayed in Compact mode. Which means, only total stats are shown. But, users can change this to show detailed stats via settings. Detailed stats take up entire screen most of the time. So, keep them only if it is required.
Closed stats present average Risk Reward, Trailing Risk Reward, Average Win Rate, and Average Trailing Win Rate for all the possible levels. As discussed before.
Regular RR : RR calculated from entry to reach target with initial stop for risk consideration
Trailing RR : This is RR calculated for price to reach from one target to next target considering trailing stop for calculating risk
Win Rate : Simple win rate calculation based on number of patterns reached target and number of valid patterns.
Trailing Win Rate : This is win rate calculated based on previous target to current target.
For example, if there are 48 valid patterns and out of which 24 patterns reach target1 and 12 patterns out of 24 reach target 2
Target1 WR : 50% (24/48)
Target1 TWR : Not applicable as there is no target before Target1
Target2 WR : 25% (12/48)
Target2 TWR : 50% (12/24)
🎲 Settings
Tooltips are provided to help with each and every settings. And they are as below.
🎲 Fully Customisable Alerts - Placeholders
Alerts are created via alert() method of pine. Hence, users will not see message box for alert template on alert widget.
Instead alerts widget look something like this:
To overcome this issue, script provides alert template placeholders as part of settings. In settings, you can already see Alert section where you can enable/disable alerts for different events.
▶ New Pattern Detection
▶ Entry Reached
▶ Target1-4 Reached
▶ Stop price reached
▶ Trade Complete - either by stop or reaching target 4
You can use following placeholders in the given text boxes to create your own alert template.
🎯 Common placeholders which are applicable for all alerts
{type} - Alert Type
- New Harmonic Pattern
- Harmonic Pattern Status Update
- Harmonic Pattern Trade Closure
{id} - Pattern Id. This is not fully unique id. But, this will be unique for all open trades. Once trade is closed, Ids are reused whenever feasible.
{ticker} - Ticker information
{timeframe} - Timeframe information
{price} - Current close price
{patterns} - Possible patterns for the projections or PRZ.
{direction} - Trade direction - Bullish or bearish
{entry} - Calculated entry for pattern
{stop} - Calculated stop for pattern
{tstop} - Trailing stop for the pattern in trade
{target1} - Target1 for pattern in trade
{target2} - Target2 for pattern in trade
{target3} - Target3 for pattern in trade
{target4} - Target4 for pattern in trade
🎯 There are few specific placeholders, which are applicable for some alert types.
Harmonic Pattern Status Update
{status} - Status of the Pattern in trade
{laststatus} - Previous status of the Pattern in trade
Harmonic Pattern Trade Closure
{result} - Trade result upon closure
Auto Harmonic Pattern Projections (MTF)Hello traders, I am excited to introduce to you the Auto Harmonic Pattern Projections indicator!
How does it work?
This indicator identifies harmonic patterns by analyzing Zigzag pivot points on the chart and checking if the XABC points form the required Fibonacci retracements/extensions for each particular pattern type.
If the values are within their acceptable ranges after the C point is formed, then the indicator automatically projects the D point which is based on the required XA retracement/extension of that pattern and verifies it is also within the acceptable BC projection range.
Features:
Automatically identifies and draws potential harmonic patterns in real time as soon as price breaks the B point of the pattern.
- This early projection of a harmonic pattern gives you more time to analyze the chart before the price reaches the pattern’s completion point (D), to help you determine the probability of that pattern succeeding or failing.
Multi-time frame (MTF) functionality lets you modify the Zigzag time frame to display patterns across multiple time frames without needing to change the chart time frame.
Alerts can be added for each type of pattern which will trigger upon price breaking the B point.
Individually select which types of harmonic patterns you would like displayed on the chart.
Customizable options for each pattern (see below)
List of supported harmonic patterns:
Bat Pattern
Alt Bat Pattern
Crab Pattern
Deep Crab Pattern
Butterfly Pattern
Gartley Pattern
Shark Pattern
More will be added in the future! Check for updates below
Pattern options:
Manually change the allowable ranges for each leg of the pattern, with tooltips for each pattern that provides users with the rules and criteria.
Adjust stop loss level for each pattern.
Change the color of the pattern’s lines, fills, and labels.
Display the BC Projection level which is automatically determined based on the Fibonacci extension closest to the projected D point.
Display the AB=CD level, 1.272AB=CD Extension, and/or 1.618 AB=CD Extension.
Display the Stop Loss Level and Take Profit Levels
Example of a Butterfly Harmonic found, with the 1.272AB=CD level enabled
Preview of the indicator’s settings:
How to Set Up Alerts
Select which patterns you would like to receive alerts on, by checking them off in indicator settings.
Once you have made selections, click OK then save your chart.
Right click on a harmonic pattern on the chart or click the ellipsis (3 dots) next to indicator name at top of chart then click “Add alert on MTF Auto Harmonic Pattern Projection”
You may remove the default Alert Name if you’d like, as the alert message is already built in which informs user of the type of pattern found on a particular symbol.
If you change any settings after alert has been created, you will have to remove the existing alert then re-add it following the steps above.
To gain access to this indicator, please send me a direct message for details
Auto Chart Patterns - Ultimate [Trendoscope]Here is an attempt to gather and present stats and probabilities of different chart patterns. Here, we challenge few traditional biases such as rising wedge is bearish, falling wedge is bullish etc. All the chart patterns identified in this script are bi-directional. Meaning they offer opportunities to trade in either direction.
This indicator is built on the base of two free scripts
🎯 Wedge-and-Flag-Finder-Multi-zigzag
🎯 Trendline-Pairs-Deep-Search
🎲 Following are the major highlights/updates in the present script
▶ Uses the similar deep search algorithm for finding patterns. Pattern identification logic has been optimised to provide more accurate patterns.
▶ Provides suggestion on how to trade these patterns - along with entry, stop and target suggestions.
▶ Advanced options available in setting such as 'Safe Repaint' - which enables repaint only when trade has not started.
▶ Option to run algorithm within specified time window
▶ Comprehensive stats on historical patterns which include win ratio, risk reward, trailing win ratio and trailing risk reward.
▶ Open Trades Stats widget which can help tracking trades easily.
▶ Fully customisable alerts - which can be used to plugin into bots.
🎲 Chart Patterns Included
▶ Channel - Uptrend, Downtrend, Ranging
▶ Triangle - Expanding, Contracting
▶ Rising Wedge - Expanding, Contracting
▶ Falling Wedge - Expanding, Contracting
If unable to determine the type and yet pivots are inline to form two trend lines, then it goes to category - Indeterminate
🎲 Indicator Components
Below is a quick snapshot of indicator components.
Now, lets look at some of the individual components:
▶Open trade stats helps recognise trades in motion.
▶ Closed trade stats can either be shown with minimal stats or fully detailed stats.
🎲 Settings
▶ Generic Settings
▶ Zigzag and pattern selection
▶ Channel Settings
▶ Risk/Reward and Stats/Display Settings
🎲 Key Features
⬤ Safe Repaint :
This option allows redrawing pattern only if trade has not been taken. This increases accuracy of pattern detection. Example of impact of safe repaint is shows as below:
⬤ Trade Reversal or Breakout of Channels :
This option is useful to handle channels of different size. If the distance between channel trendlines are huge, then it is more advantageous to trade reversals. If the distance between trendlines of channel is small, it is more rewarding to trade the breakouts.
Here is an example of how this setting impacts the trade suggestions.
⬤ Detailed Closed Trade Stats :
Closed Stats settings give users option to see in depth details such as risk reward and win ratios for past patterns along with numbers.
⬤ Fully Customisable Alerts :
Alerts are implemented using alert method. Hence, users will not see text box in alert window where they can set alert format. To overcome this challenge, the indicator offers customisation of alerts through settings.
In the settings window, you notice below options for alerts
These settings allow users to enable/disable alerts for different status of patterns. The text box in the settings allows users to set customisable alert formats using specific placeholders.
Valid placeholders are:
{type} - Alert Type
{id} - Pattern id for which alert is generated
{ticker} - Ticker for which alert is generated
{timeframe} - Chart timeframe
{price} - Current close price
{pattern} - Name of the pattern
{longTrade} - Array containing stop, entry, target1 and target2 for long side of the trade for given pattern
{shortTrade} - Array containing stop, entry, target1 and target2 for short side of the trade for given pattern
{status} - Contains status of both long and short side of the trades as text
Default alert template set for all type of alerts is as below
{
"alert" : "{type}",
"id" : {id},
"ticker" : "{ticker}",
"timeframe" : "{timeframe}",
"price" : {price},
"pattern" : "{pattern}",
"long " : {longTrade},
"short " : {shortTrade},
"status" : "{status}"
}
An example alert looks like this:
If you just want to display pattern name and alert type, your alert message in the box should be something like this:
Type - {type}, Pattern - {pattern}
Will make a video on settings and usage when I get time :)
Auto Harmonic Patterns Indicator
Reinforcement of PRZ(d) zone marking
Current trend line
Real-time position adjustment of the PRZ(d) zone according to the current trend
Fibonacci retracement displayed when zone PRZ(d) is achieved
Code refactorings
Correction of previous highs and previous lows of the trend line finding PRZ
Separation of completed harmonic model and expected harmonic model logic
Add XAD ratio label
Error rate default of 1% applied
Carney Existing Formations v.1.5A harmonic formation pattern scanner based on the Harmonic Trading book series by Scott Carney.
Supported harmonic traiding formations:
Gartley
ButterFly
Bat
alt. Bat
Crab
Greate Crab
Shark
AB=CD
5-0
Cypher
Precise description and knowledge you can get from the Harmonic Trading book series by Scott Carney.
It's the oldest and not optimized version of harmonic formation scanner. Consider checking extensions more advanced versions:
Carney Potencial Formations - Predicting potencial harmonic formation patterns with projection of the target points (Extension to this one with the same old scanner code).
Extreme + XABCD - More advanced harmonic formation scanner that can detect both existing and potencial patterns. It provides also set of performence statistics for current stock.
Waves + XABCD - Move advanced harmonic formation scanner optimized for the Wave theory. Provides performace statistics and short feature waves estimations to notify you about formations as soon as possible.
Script settings:
| SCANNER |
Formation checkbox - Activate/deactive formation detection
Last bars to search - How far in the fast we should look to check formations.
max points distance - How big patterns we are looking for.
Inaccuracy - How large deviations from the "ideal pattern" we accept
Filter duplicates - Limit to one instance of formation type per final bar
Confirmation: precision - Defines how high/low should be the extreme X points in compare to XA value, to be valid.
Confirmation: 3 bars - X should be the extreme in a 3 bar wide neighborhood.
| SHOW |
Line color and width - To customize chart for your preferences
Labels:
H - Hidden
S - Short
F - Full
Show result dialog - You can pick format of formations labels.
| EXTENSIONS |
Carney Potencial Formations - Showing base information about Carney Potencial Formations script
Extreme + XABCD - Showing base information about Extreme + XABCD script
Waves + XABCD - Showing base information about Waves + XABCD script
Troubleshooting:
Result dialog error "Abandoned at ...." - Change "max points distance" to smaller value.
TraidingView (! character):
Loop takes too long to execute (>500ms) - Change "max points distance" to smaller value.
In case of any problems, please contact the author of the script.
Trendline Pairs (Deep Search)After getting good response on Wedge-and-Flag-Finder-Multi-zigzag , I thought I will build little bit further into the script.
Main differences
Uses deep search algorithm for patterns instead of just using last 5 pivots
Flag pattern is removed so that we can concentrate mainly on trend line pairs
More number of overall patterns.
Trend Patterns Included
Channel - Rising, Falling, Ranging
Wedge - Rising, Falling + Expanding, Contracting types
Triangle - Expanding, Contracting
Indeterminate - Happens in rare cases where angle calculation results in error. It may still belong to one of the above patterns.
Please note:
This is published as free to use but protected source code indicator. This is because the script contains deep search algorithm which isn't made public yet and is also been used in other invite only scripts.
Will not be adding alerts to this indicator.
ORB Moon Planetary Aspect
Moon is a very fascinating celestial body which is referred in Astrology as a planet.
The effect of the moon on earth is proven when we see it's affect on the tides.
The moon also represents the mind, which also makes it an interesting barometer of human thought.
The moon being the nearest and smallest 'planet', affects stock prices often causing short term trend changes. This indicator allows you to plot various aspects of the moon in relation to Nodes, Mercury, Venus, Mars, Jupiter and Saturn.
Of the various combinations, the Aspects of the Moon with the Lunar nodes(also called Rahu-Ketu) are used by Financial astrologers in trading in a big way. Lunar Nodes are one of the most versatile points in Zodiac which affect stock prices. In the short term trading space, Lunar Nodes in aspects with the Moon often indicated short term trend change and volatility (+/- 1 trading day).
A lunar node is either of the two orbital nodes of the Moon, that is, the two points at which the orbit of the Moon intersects the ecliptic. The ascending (or north) node is where the Moon moves into the northern ecliptic hemisphere, while the descending (or south) node is where the Moon enters the southern ecliptic hemisphere.
You can apply the indicator on the indexes or stocks to find out the best combination which works. Use the Daily TF.
This indicator also plots the Full moon and the New Moon on the charts.
You can also set alerts reminding you of upcoming combinations.
Due to TradingView restrictions plotting is possible only for the period 2020 to 2023 in this indicator.
Wedge and Flag Finder (Multi - zigzag)Here is a small attempt to automatically identify wedges and flags.
Tradingview standard wedge checks for only 4 pivots. In this version, I have considered 5 pivots instead - which can help reduce noise as 4 pivots forming wedge can be quite common. In future, will also try to add more pivots in pattern recognition to make the signal more accurate.
If wedge comes with a tail, then it is marked as flag :)
Settings are quite simple and they are as shown below
Liquidity_Zone by SebasVentuLiquidity_Zone by SebasVentu It is a strategy that shows the liquidity zones and also has a simulator
Es una estrategia que muestra las zonas de liquidez y ademas cuenta con un simulador
Trend Lines & TimeA simple but powerful script that allows you to set levels that, when a trendline (user set with 2 points) intersects those levels, will produce a vertical line to show the timing of that event
Useful not only for price action but also for use on indicators like a relative strength index (RSI)
Instructions: Plot the trendline down as you wish - choose the price levels & the margin of error for the particular market you are looking at
It's pretty simple
The script is not perfect:
1. Try to make sure when you are projecting a line that it is hitting the level you would like within 500 bars of the last bar on screen (this is a limit within Tradingview & although I've implemented some error checking and avoidance... it still gives errors sometimes when projected too far
Advice work with trend lines that project timing events that aren't so far in the future & use a steeper trendline generally (less horizontal)
2. You MUST use the "Margin of error" or "Orb" setting here - if your market is in a high price range (like 5 digits ..BTC, DJI, NIFTY ETC) then you would want to choose a high number like 100 or even 1000 ... if your price range is very small using smaller numbers or even decimals -- always try 1 first! -- experiment!
There ARE going to be some setups that cause the script to produce an error - I'll release an instructional video that shows the standard use of this tool, it will help you direct your use of it when trying to project to levels of interest in the future BUT generally it works as I think you would expect and is pretty intuitive
Enjoy!
CyclesTime based indicator attempting to show changes in a cycle based on the different time elapsed between new highs and new lows in a given time period. Useful when combined with elliott wave price structure. A drop above/below 0 suggests a wave 4 whilst new highs/lows of the indicator suggest whether a bullish or bearish trend is in place. You can change the time cycle as you like. Any Q's please post, i'll be happy to answer them. (If I can)
Waves + XABCD v.1.0Advanced harmonic patterns scanner optimazed for Wave theory for Low or Medium wave rules.
It finds on the candle chart:
- Existing pattern with realized target in historic data.
- Potencial patterns with realized and potencial targets.
- Estimated patterns that may become potencial with their potencial targets (it updates instantly with the price change (before closing the bar). Such estimation can be confirmed or invalidated in minutes, but can give an advantage and be usefull on higher intervals.
Supports modified traiding patterns:
B.38
B.50
B.618
B.786
B.886
Shark
Cypher
Formation 5-0
Script with limited access, contact author to get authorization
Existing patterns visualization:
Potencial pattern visualization:
On the chart we can see few potencial patterns ( Sharks & Cyphers ). First target of first formation was realized and trend was changed. Chances of reaching targets in each pattern kind we can check by moving mouse over the label. tooltip will show:
- how many patterns are in historical data on this chart
- targets with % of cases in historical data on this chart when target was reached.
WARNING !!!
For each scanner configration and "D point limit" we can get different values. Also numbers of bars (traidingView account type) will change results. You can contact us for details how to optimaze settings for better performance.
Estimated patterns visualization:
On the chart we can see 2 estimated patterns based on current up trend. We can see that trend was already confirmed and will not change in this bar, but "if he had changed" the patterns will be accepted as potencial giving more arguments for move down.
Patterns performance data:
Below we can see chart with stats params set to "%". In the table on right we can see how many patterns were detected on the chart for the current configuration and how many of them reached particular level within the current D limit.
For each scanner configration and "D point limit" we can get different values. Also numbers of bars (traidingView account type) will change results. You can contact us for details how to optimaze settings for better performance.
Script settings:
| XABCD Scanner |
XABC dist limit - Specifies the maximum distance between successive pattern vertex .
Trend type - Specify which wave type should be used.
precision ‰ - It determines the maximum deviations from the conditions that must be met by the patterns. It also causes enlarge / blur of targets.
B.38, B.50, B.618, B.786, B.886, Shark, Cypher, Formation 5-0 - Filter specifying which patterns should be detected and allowing to set pattern color.
| XABCD Scanner Visualization |
You can configure visualziation for each pattern type separatelu:
Existing - Patterns in the historic data
Potencial - Patterns with known XABC vertrex, but without confirmed D.
Estimated - Dynamic patterns with not confirmed C vertex . After extreme formed they can be confirmed or invalidated.
Shape - Check if you want to see pattern shape.
Target - Check if you want to see posibble targets (In case of high precision value, lines become diagonal).
Label - Decide what format should have label. You can pick from: Fullname, shortname, vertical, hidden.
Targets: Filled/Not filled - Allow to change colors used for targets visualization.
Fill: targets/shape - Transparency param of the drawings.
| XABCD Scanner Statistics |
D point limit - A treshold for filter that counts statistics. If D will be reach after passing treshold it will not count as success in the statistics.
over limit color - Color used for patterns line visualization if D is over limit set in previous point.
pattern filter checkbox - Showing dialog with list of potencial patterns.
pattern filter - Field allowing to pick potencial pattern to show.
stats - Shows/hides stats table.
| Trend visualization |
Type - Specify switch what kind of wave should be drawn.
Confirmation - Draw "C" label if wave was confirmed and will not change in this bar. If wave is changing on this bar shows distance from the treshold.
Shadow - Draws second trendline based on the wave extremes.
Low/Mid line width and color - Wave drawing configuration.
| Impuls visualization |
Impuls - Picking graphical reprezentation of first bullish arrow.
Impuls color - Color of the first bullish arrow.
Draw arrow - Drawing arrow on the end of impuls wave.
Troubleshooting:
In case of any problems, please contact the author of the script. To improve speed of solving problem first check if script is drawn, and if there is a "!" character after script params. If you can see "!" character, move cursor over it for detail. Send message with error details, ticker and interval to us. The more precise will be your description the faster we will be able to help you.
[Herif's] Harmonic Patterns ProjectionBullish and bearish 5-point patterns are based on various Fibonacci retracement levels and signify potential reversal zones (PRZ).
As they become 0%-80% complete, the dashed-line pattern will appear, displaying the PRZ and giving you time to prepare for a reversal.
Different combinations of specific fib retracements and extensions result in different patterns, and each is named for identification.
Bullish patterns signify a potential turn to the upside are colored green.
Bearish patterns signify a potential turn to the downside are colored red.
1- Live harmonic patterns which are still in trade with XABCD and ratio with labels.
2- Entry, Stop and Target levels on chart for all patterns.
in Settings:
Error Percent - This is error tollerance for matching pattern ratios. Cannot expect price ratios to be exactly as per books. Hence, adding few error tolerance will help identify patterns better. In this indicator defatult 1%
When there are multiple patterns on chart, Entry, Stop, and Target labels and lines are created with specific distance from each other to provide clarity to the users.
Trailing and Targets
1-Trailing Start Stage - Defines when to start trailing stop-loss. It is recommended to set this value to either Target 1 or Target 2. Disabling the trailing or setting too far away may lead to being in trade on ranging market for too long. This may also result in drawing errors related to distance from current bar.
2- Custom Target Levels - Target and stop levels are set to optimal values based on individual patterns. If you want to override these levels, use the available input option to override targets and chose your custom Target1, Target2, Target3 and Target4
All Pending Patterns you can enable or disable
Classic Patterns : Gartley , Bat, Butterfly , Crab , Deep Crab , Cypher , Shark , Nenstar
Anti Patterns: Anti Nenstar, Anti Shark , Anti Cypher , Anti Crab , Anti Butterfly , Anti Bat, Anti Gartley , Navarro 200
This is a Strategy version of indicator below
[Herif's] Harmonic Patterns ProjectionBullish and bearish 5-point patterns are based on various Fibonacci retracement levels and signify potential reversal zones (PRZ).
As they become 0%-80% complete, the dashed-line pattern will appear, displaying the PRZ and giving you time to prepare for a reversal.
Different combinations of specific fib retracements and extensions result in different patterns, and each is named for identification.
Bullish patterns signify a potential turn to the upside are colored green.
Bearish patterns signify a potential turn to the downside are colored red.
1- Live harmonic patterns which are still in trade with XABCD and ratio with labels.
2- Entry, Stop and Target levels on chart for all patterns.
in Settings:
Error Percent - This is error tollerance for matching pattern ratios. Cannot expect price ratios to be exactly as per books. Hence, adding few error tolerance will help identify patterns better. In this indicator defatult 1%
When there are multiple patterns on chart, Entry, Stop, and Target labels and lines are created with specific distance from each other to provide clarity to the users.
Trailing and Targets
1-Trailing Start Stage - Defines when to start trailing stop-loss. It is recommended to set this value to either Target 1 or Target 2. Disabling the trailing or setting too far away may lead to being in trade on ranging market for too long. This may also result in drawing errors related to distance from current bar.
2- Custom Target Levels - Target and stop levels are set to optimal values based on individual patterns. If you want to override these levels, use the available input option to override targets and chose your custom Target1, Target2, Target3 and Target4
All Pending Patterns you can enable or disable
Classic Patterns : Gartley , Bat, Butterfly , Crab , Deep Crab , Cypher , Shark , Nenstar
Anti Patterns: Anti Nenstar, Anti Shark , Anti Cypher , Anti Crab , Anti Butterfly , Anti Bat, Anti Gartley , Navarro 200
Pending Patterns example here
Auto Harmonic Projection - Ultimate [Trendoscope]Hello traders, Many who used Auto Harmonic Pattern - Ultimate had enquired with me about having option to project PRZ before patterns formed. We always replied that it is in pipeline but will not be part of existing script. Finally, we decided to utilise part of our Christmas and new year break to make it happen.
Lets get started..
⬜ Process
▶ Unlike Auto Harmonic Patterns Ultimate, instead of scanning whole XABCD for harmonic pattern, this script only collects XABC and projects PRZs (Possible D zones)
▶ Once possible patterns are found, lines are drawn to connect XABC and boxes to project PRZs. There can be more than 1 PRZs for XABC combination. If PRZs of multiple patterns overlap, they are joined and shown as single PRZ where all patterns are listed against it.
▶ If price crosses C, pattern is considered as failed. If price stays between C and PRZs for long time, patterns are timed out. In either case, patterns and projections are removed from chart.
▶ Pattern is considered to be active once price reach B. Until then Pattern is inactive.
▶ PRZs are tracked individually even if they belong to same pattern. PRZ is considered active only if price hits PRZ and completes the pattern. Till then PRZ is considered inactive.
▶ After activating, PRZs can either reach successful level if price moves in reversal direction. Or it can reach failure if price reaches stop.
▶ PRZs are removed from chart once it either reaches stop or success level. But, if more PRZs are present for pattern, pattern will still be there on chart.
▶ Pattern is kept active till all the PRZs are either hit stop or success or pattern itself is either failed or timed out.
Note:
Whenever we refer pattern - consider it as lines joining X, A, B, C and D if PRZ is active.
Wherever we refer PRZ - consider it as box representing potential reversal zones.
⬜ Screen components
▶ Inactive Patterns and PRZ - Patterns with inactive PRZs are represented as lines joining XABC. There will not be line connecting D and PRZs are shown with faded colour and smaller fonts.
▶ Active Patterns and PRZ - Patterns with active PRZ are represented with full pattern and line fills. PRZ will also show stop and success level. Note that success level is not target level - but a position used for validating the outcome.
▶ Stats table - Open stats table contains patterns and corresponding PRZ levels. Stats will have red background for bearish patterns/projections and green background for bullish patterns/projections. Content text colour is matched with that of PRZ and Pattern line colors so that users can identify the matching stats easily.
▶ Run timer - Tells how long the script backtest is running. Run timer will have red background for TRIAL access or if right access key is not used. Otherwise, it will have green background colour. This does not have much significance now as there are no closed stats available. It will be added in the future versions.
▶ Watermark - Watermark appears only if valid key is not used or TRIAL access key is used.
Bit more details about open stats table here
⬜ Settings
⚪ Alert Key
Alert key is given for active subscribers. This key is required in order to set alerts or in order to run the script for more than 30 bars on single instrument without interruption. Not having alert key will not stop users from using the indicator once they acquire access - but it will only limit few capabilities. Key is not given for trial access.
Key is prompted every time users add indicator to chart. If you are provided with key, please use it instead of the TRIAL access key.
If you are using valid key,
You will see run timer in green instead of red background
No TRIAL ACCESS watermark on the chart.
⚪ Zigzag and pattern detection settings
⚪ Pattern Selection settings
⚪ Stats and Display
⚪ Colors and themes
⚪ Backtest Settings
Not important for now as there are no closed pattern stats. Kept for future usage. Will impact the timer widget.
⚪ Alerts
▶ Types and settings
▶Setting alerts is simple. When indicator is loaded on chart (Make sure you are using the right alert key), goto alerts and select the AHProjection from Condition dropdown. Update other parameters such as alert name, webhook details as required and press create
▶ Examples of alerts
⬜ Status Tracking
Script tracks two types of statuses.
⚪ Harmonic Pattern Projection Status : Tracks projection as a whole for each combination of X, A, B, C. Different states available are
Awaiting Activation : Any pattern projection when formed by default goes into Inactive State and hence set to Awaiting Activation.
Projection Active : Once price reach B, then pattern projection is considered active
Entry Reached : Once price reach the nearest PRZ level, it is considered as Entry reached. Status will remain as entry reached even if PRZ is removed and next PRZ level is yet to be reached.
Projection Invalidated : If price goes beyond C level, then pattern projection is considered invalidated. It can happen at any stage and even after successful completion of few PRZ ranges.
Projection Timed Out : If price keeps between PRZ and C for considerable time, it will timed out and removed from chart.
⚪ Harmonic Pattern Projection PRZ Status Tracks individual PRZs separately which may or may not belong to same patterns. Different states available are
Awaiting Activation : Any PRZ is considered inactive before price reaching the PRZ level.
Active : Once price reaches PRZ, it will become active. Active PRZs are highlighted with line fill on chart. Active PRZ also display success and stop levels. PRZ is not removed unless price hits one of these levels or the entire pattern is timed out.
Successful : If an active PRZ price reaches success level, then PRZ projection is considered successful. Once successful, PRZ will removed from chart
Failed : If an active PRZ price reaches stop level, then PRZ projection is considered failure. Once failed PRZ will be removed from chart.
Manual Harmonic Projections - With interactive inputsThis is another script involving interactive inputs. This is similar to Manual-Harmonic-Patterns-With-interactive-inputs . But, instead of taking XABCD and verifying if it confirms to any pattern, here we only take XABC and project all PRZs.
Example, upon adding the script to chart, it will prompt to select 4 points on chart by clicking on it. if we select X, A, B, C as shown in the chart below, we can see the projection of multiple PRZs. Mid of nearest PRZ is considered as D and rest of the pattern is drawn based on this. However, the pattern can have multiple PRZs. All overlapping PRZs are combined together and shown as one along with merged pattern labels. But, if there is gap between PRZs, they are shown separately.
If no projections found, then patterns and projections are not drawn. However, you can still see XABC lines on the chart.
Manual Harmonic Patterns - With interactive inputsThis script is a drawing tool which allows users to draw XABCD on the chart and script will tell whether there is any harmonic patterns on the drawings made. The script is based on interactive inputs and requires users to chose XABCD points.
Please note
This is not a scanner and it will not scan historical bars for harmonic patterns. This needs to be used rather as drawing tool instead.
Script will not check if selected pivots are correct. It assumes users to know how to select the right XABCD based on pivot high/lows. Bullish pattern will have X, B and D as pivot lows and A,C as pivot highs. Similarly bearish patterns will have X, B, D as pivot highs and A, C as pivot lows.
Script will not check for overflow conditions. For example, if price crosses, XB or BD line, then pattern is considered to be invalid. But, this check cannot be made in this script and we require users to be aware of this condition and select input accordingly.
Order of inputs should be in ascending order. X pivot should come before A and then, B, C, D and F. This again is users responsibility to select pivots in right order.
What happens after selecting XABCD?
If selected pattern is valid harmonic pattern, it will
Draw XABCD lines and labels
Fill harmonic triangles
Show PRZ box which shoes the name of valid patterns.
If it is not valid harmonic pattern, then users will see blank XABCD line without any PRZ or filled harmonic triangles.
Example:
1. When it is valid pattern
2. When it is not valid pattern
OZGENCIntroduction
Pattern formations enable traders to predict future significant points to buy and sell stocks. This might due to the scale-free nature of stock prices, also reflecting many phenomena in the nature. OZGENC indicator utilizes this to predict future potential support and resistance points. By choosing two local peak and throughs, the indicator estimates these potential points by calculating some kind of ratio between the two selected points. The indicator calculates these future points without using the accustomed Fibonacci ratio.
How to use:
The user should select two local points, through and peak, respectively. Local through is defined as A, and peak is defined as B in this case. The user should click on each of them twice, first for determining price (y-axis), second for time/date (x-axis). The indicator then calculates C and D points, C as the support and D as the resistance point. These points will be shown in the chart as horizontal lines in addition to their predicted values.
Özgen Çatal
twitter: @Ozgencx