CryptoArch_

Auto Harmonic Pattern - PRO [AlgoScopes] V1

CryptoArch_ Güncellendi   
Harmonic Patterns is a powerful tool for identifying potential reversal areas in the financial markets. Auto Harmonic Pattern Pro it is based on the work of Scott Carney, a renowned trader and author who developed the concept of harmonic patterns.

Scott Carney's extensive research and contributions have greatly enhanced our understanding of market patterns and their application in trading. Auto Harmonic Pattern Pro is adapted from Scott Carney's original work on harmonic patterns, as well as other sources that have contributed to the recognition and understanding of harmonic patterns beyond Carney's initial research.

Auto Harmonic Pattern Pro offers traders a valuable tool for identifying potential reversal zones in the markets. We would like to express our gratitude to Scott Carney for his pioneering work in developing harmonic patterns, as well as to the various contributors and sources that have expanded our knowledge and understanding of harmonic patterns beyond Carney's original research.

Remember to always practice proper risk management and combine the indicator's signals with other technical analysis tools for a comprehensive trading approach.

For more information about Scott Carney and his work on harmonic patterns, you can find additional resources on his official website.

💠 ABOUT THE SCRIPT

💎 DISPLAY
󠀠󠀠⚬ The following things are displayed by default on the chart

🔸 Live patterns in trade with XABCD labels. (filled major triangle)
🔸 Entry, Stop and Target levels on chart for all live patterns. Target level are dimmed along with reducing size when they become irrelevant
🔸 Open Trades Stat table - Show patterns ID, patterns name, status for patterns, size&age, Entry, I.Stop, T.Stop and Targets (TP1 - TP4).
󠀠󠀠⚬ Highlighted present stop (and/or trailing stop if is enabled) and next target
󠀠󠀠⚬ When there are multiple patterns on chart, Entry, Stop, and Target labels & lines & PRZ* boxes are created with specific distance from each other to provide clarity to the users
*(potential reversal zone)

⬜ SETTINGS
󠀠󠀠⚬ Let's talk about some of the settings. Almost all of these settings have already been optimized and tested over time, but for some tickers it might be better to do a new test.

💎 ZIGZAG

🔸 Length - Default is set to 8. User can change settings but it is a good idea to keep with fibonacci (5, 13, 21, 34, 55 etc)
🔸 Depth - This setting is for how many pivots indicator scan to find harmonic pattern. By default it is set as 200
🔸 Recursive Algorithm - Enabled will use recursive instead standard zigzag

💎 HARMONIC PATTERN SETTINGS

🔸 Trade Direction - Default is set to show all (bearish and bullish) harmonic patterns. Can be filtered to bullish or bearish direction.
🔸 Error Percent - Default is 8. That is error percent tolerance from perfect pattern ratio.
🔸 Maximum patterns - Maximum patterns allowed on chart at any time
󠀠󠀠⚬ When it reaches the maximum patterns and the indicator finds a new one, the old patterns will be removed
- (important for algo traders because alerts for those removed patterns will no longer be a trigger)
🔸 Pattern size
󠀠󠀠⚬ Without filter will show all patterns (regardless of size)
⚬ Show only patterns for user preference size (no more two patterns because is smaller of 280 bars)

🔸 External Filter - It can be used to filter harmonic patterns. You can build your own custom trend based scripts and use it with AHP to filter trades.
󠀠󠀠⚬ The structure of the external script must be
1 for Long/Bullish patterns
-1 for Short/Bearish patterns
2 for all (Long and Short patterns)
0 Trade is not allowed
🔸 Filter Pattern Starts
󠀠󠀠⚬ When Filter starts is enabled pattern will start for logical pivot (see example)
⚬ Disabled filter will show more patterns (still can be very profitable)

💎 STOP & ENTRY & TRAILING STOP

🔸 Trail Entry Price - If Entry is still not reached and the price is still in PRZ zone, at the new high/low will adjust Entry.
󠀠󠀠⚬ Open Stats table will show the first Entry (when patterns were found) as well as the last corrected Entry (when patterns reached Entry level).
󠀠󠀠⚬ Disable this option Entry will remain at the level when patterns are found.

🔸 Enable Targets (awaiting entry) - enabled will show potential Targets for "awaiting entry" patterns (not active patterns because they have not yet reached Entry).
󠀠󠀠⚬ The Open stats table will show all other information, risk %, R:R etc).
⚬ Risky trade but with very good R:R (not recommended for inexperienced traders, very high risk of trading hitting Stop before reaching a Target)

🔸 Stop Distance - By default is set to 5. That is percent from the last low/high when the pattern reaches Entry. Stop trail from price till pattern reached Entry level.
🔸 Entry Distance - By default is set to 16. Same for SL that is percent distance from live price. You can increase/decrease percent but remember you have to give space between live price and the entry.
⚬ If entry is close to price, trade will become active too quickly
⚬ Remember if you change Stop Distance as well as Entry Distance to check Risk : Reward (recommended R:R for the first target is about 1:1)
🔸 Trailing Type - Options for trailing type, Continuous, Stepped, Breakeven and Disabled.
󠀠󠀠⚬ Continuous - When the price reaches "Trailing Active" (initial level for activating the trailing stop), T.Stop will start from Entry or Initial Stop (based on "Trailing Starts") and follow the price by Distance or Percent (based on "Trailing by").
󠀠󠀠- example one (trailing starts from Initial Stop when TP1 reached by distance/price on picture 1 and by percent on picture 2)

- example two (trailing starts from Entry when TP1 reached by distance/price on picture 1 and by percent on picture 2)

⚬ Stepped - when price reaches Trailing Active (initial level for activating the trailing stop), T.Stop will move to the previous level
󠀠󠀠- (If "Trailing Active" is set to Target2, then T.Stop will move to Target1 when price reached TP2)

⚬ Breakeven - when price reaches Trailing Active (initial level for activating the trailing stop), T.Stop will move to Entry and stay there the entire time for that harmonic trade
󠀠󠀠- (till reached all targets or reached T.Stop)

🔸 Trailing Active - When will the Trailing Stop be activated ("Trailing Type" must be enabled)
🔸 Trailing by - Distance or Percent
󠀠󠀠⚬ Distance - T.Stop will follow live price by initial distance
󠀠󠀠⚬ Percent - T.Stop will follow live price by initial percent
🔸 Trailing Starts - Entry or Initial Stop
󠀠󠀠⚬ Entry - T.Stop will start trailing from Entry level
󠀠󠀠⚬ I.Stop - T.Stop will start trailing from initial Stop level
󠀠󠀠- (Check Continuous picture for information)

💎 TARGET

🔸 Base - The level from which the calculation for Targets is made.
🔸 Target 1/Target 4 dropdown - Targets are set by default and set in the dropdown most often used for those targets.
🔸 Target 1/Target 4 custom - If the desired ratio is not in the dropdown, then it is possible to manually enter the desired ratio.
󠀠󠀠⚬ (If you want to change some of the targets, maybe to confluence with support/resistance)

💎 PATTERNS

🔸 Harmonic Patterns Type
󠀠󠀠⚬ Enable/Disable harmonic patterns by Type of patterns (for Classic and Anti patterns)
󠀠󠀠⚬ B󠀠󠀠y default all patterns are enabled (for standard patterns). Users can control and select/deselect all Classic, Anti or Non Standard patterns but also disable individual patterns.
󠀠󠀠⚬ For some patterns (like Shark and Navarro 200) we change PRZ or place in different Type groups. That is just cosmetic things.
🔸 Classic - This includes all and most popular Harmonic Patterns.
󠀠󠀠⚬ Gartley (Type I)
󠀠󠀠⚬ Bat (Type I)
󠀠󠀠⚬ Butterfly (Type II)
󠀠󠀠⚬ Crab (Type II)
󠀠󠀠⚬ Deep Crab (Type II)
󠀠󠀠⚬ Cypher (Type II)
󠀠󠀠⚬ Shark (Type III)
󠀠󠀠⚬ Nenstar (Type IV)
🔸 Anti Patterns
󠀠󠀠⚬ Anti Nenstar (Type I)
󠀠󠀠⚬ Anti Shark (Type II)
󠀠󠀠⚬ Anti Cypher (Type II)
󠀠󠀠⚬ Anti Crab (Type II)
󠀠󠀠⚬ Anti Butterfly (Type III)
󠀠󠀠⚬ Anti Bat (Type IV)
󠀠󠀠⚬ Anti Gartley (Type IV)
󠀠󠀠⚬ Navarro 200 (Type IV)
🔸 Non Standard -
󠀠󠀠⚬ White Swan
󠀠󠀠⚬ Black Swan
󠀠󠀠⚬ 3 Drive
󠀠󠀠⚬ Anti 3 Drive
󠀠󠀠⚬ Wolfe
󠀠󠀠⚬ Snorm
󠀠󠀠⚬ 121 Pattern
󠀠󠀠⚬ 5-0 Pattern
󠀠󠀠⚬ Sea Pony
󠀠󠀠⚬ Leonardo

💎 PATTERN DISPLAY OPTION

🔸 Pattern Lines Size - thickness for harmonic patterns
🔸 Pattern Lines Type - type for harmonic pattern lines (solid, dotted, dashed)
🔸 Fill XAB/BCD - major harmonic triangle
🔸 Fill ABC/XBD - minor harmonic triangle
🔸 Enable XABCD Label - labels for harmonic pattern
🔸 XABCD Label Size - size for harmonic xabcd labels
🔸 Enable Ratio Label & Line - lines and labels that connect harmonic patterns levels and that show the patterns ratio
🔸 Ratio Label Size - ratio labels size
󠀠󠀠⚬ Lines for pattern ratio are set by default dashed and can’t be changed.

💎 PRZ & ENTRY | STOP | TARGET SETTINGS

🔸 Entry & Stop & Target Labels - by default is set to small (opt small & normal)
🔸 Entry & Stop & Target Lines - by default is set to show lines & labels & price (opt lines & labels & price or lines & labels or disable all)

🔸 PRZ Box size - size in bars for PRZ box
󠀠󠀠⚬ Added option when it is not readable on chart pattern names or entry/stop/targets offset
󠀠󠀠⚬ Maximum (last pattern) can be drawn up to 500 bars in future or you will get error for script (use this option only when you need)
🔸 PRZ Box Type of Spacing - distance between PRZ boxes. "Auto" will make the maximum distance when there are more than 3 patterns on the chart for better visibility
󠀠󠀠- (the maximum can be projected up to 500 bars in the future)
🔸 PRZ Box Manual Spacing - manual distance between PRZ boxes if is “PRZ Box Type of Spacing” set to manual

💎 STATS AND DISPLAY
󠀠󠀠⚬ These settings can be used to manage display of open and close statistic tables

🔸 Open Trades - By default is enabled and set to the top right position.
🔸 Closed Trades - By default is disabled and set to bottom left position.
󠀠󠀠⚬ The size of the table can be changed (by default it is set to small)
🔸 Enable Tool Tip for Table - can be enabled/disabled. Shows important information for each section related to Open or Closed tables.
󠀠󠀠⚬ Recommended enabled until everything related to tables is understood, and later disabled (it starts to get annoying when you accidentally cross the tables with the mouse and tooltip box pop up)

💎 OPEN STATS
🔸 Percentage - show percentage for Targets and Stops
🔸 Risk/Reward - show patterns risk to reward for each Targets
🔸 Size/Age - show patterns size (from X to D in bars) and patterns age (distance in bars when patterns “In Trade”)
🔸 Live % & R:R - enabled will show live % and R:R if you take trade in that moment

💎 CLOSED STATS

🔸 Percentage - show stats by percent instead of numbers
🔸 Display Mode - Closed trade table have three display option, Compact, Detailed and Selective
󠀠󠀠⚬ Compact - show stats for Long/Bullish and Short/Bearish patterns
󠀠󠀠⚬ Selective - show stats just for active patterns

⚬ Detailed - show stats for each enabled patterns

- All stats is for “Backtest Bars” if enabled.
󠀠󠀠- I removed some things from the previous indicator (R:R as well as trailing R:R and win rate) because I think they are not relevant in Closed Table for trade or for statistics (Open Table have that)

💎 PATTERN | CHART COLOR THEME

⚬ By default it is set to Light color theme. Color theme will affect pattern lines, XABCD labels, ratio lines and label, entry/sl/targets labels and text in the open statistics table.
🔸 Dark Theme / Light Theme - Users can change any default individual color for dark or light theme (transparency too).

⚬ Light/Dark Theme suits dark or light chart background or user can change all color to preferred trade style.
⚬ Users have extra control to change all color to preferred trade style.

💎 ALERTS
󠀠󠀠⚬ Alerts - These settings help users to choose the type of alerts they want to receive.

🔸 New - New Harmonic Pattern is identified
🔸 Entry - Harmonic Pattern reached Entry level
🔸 Target 1/Target4 - Alert when patterns reached on of Target levels

🔸 Closure - Harmonic Pattern trade is closed. Reached all Targets or Stop or Trailing Stop (if is enabled)

🔸 Long & Short placeholders - Enabled will change for alerts Bullish/Bearish text for Long/Short text
󠀠󠀠⚬ example of custom alerts with some placeholders

💎 BACKTEST WINDOW
🔸 Backtest bars - Enabled will scan patterns for that bar range (default is set to 5000)

🔷 TOOL TIP

⚬ In setting you have help from tooltip to give you almost all this information for easy understanding. Hover mouse above tool tip and windows with info will appear.

⚬ On the chart, tool tip is added for each individual Harmonic pattern to show extra information (pattern ratio, type of harmonic and where often that pattern appears in Elliott wave fractal)

⚬ Tooltip for tables will also provide all the information related to Open and Closed tables. Disabled tooltip for tables will hide all information, but the tooltip for patterns will still remain.

🔴 Possible Errors
󠀠󠀠⚬ If a mistake is made in the settings and, for example, TP2 is set to 0.618 ratio and TP3 is changed to 0.5 ratio
- (the larger target is set to a smaller ratio than the smaller target), a red text will appear over most charts to indicate the error.

⚬ If Trailing Type is enabled and "Trailing Active" and "Trailing Starts" are set to the same level (Entry), a red text will appear on the charts to indicate an error
- (change "Trailing Active" to a higher level, TP1, or lower "Trailing Starts " to "I.Start")
Sürüm Notları:
Auto Harmonic Pattern - PRO
Sürüm Notları:
Correction for long/short bullish/bearish alert placeholders
Sürüm Notları:
Correct auto PRZ box distance, better clean tooltip and update for patterns
Sürüm Notları:
Small correction for tooltip and alert

Yalnızca davetli komut dosyası

Bu komut dosyasına erişim, yazar tarafından yetkilendirilen kullanıcılarla sınırlıdır ve genellikle ödeme gerektirir. Sık kullanılanlarınıza ekleyebilirsiniz, ancak bunu yalnızca izin talep edip yazarından bu izni aldıktan sonra kullanabileceksiniz. Daha fazla bilgi için CryptoArch_ ile iletişime geçin veya yazarın aşağıdaki talimatlarını izleyin.

TradingView, yazarına % 100 güvenip komut dosyasının nasıl çalıştığını anlayana kadar bir komut dosyası için ödeme yapmamanızı ve onu kullanmamanızı önerir. Çoğu durumda, Topluluk Kütüphanemizde ücretsiz olarak iyi bir açık kaynak alternatifi bulabilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Yazarın talimatları

For trial access please send message using Tradingview or Telegram @AlgoScopes

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Hatırlatma: erişim istemeden önce lütfen okuyun.