Tailored-Custom Hamonic Patterns█ OVERVIEW
We have included by default 3 known Patterns. The Bat, the Butterfly and the Gartley. But have you ever wondered how effective other,
not yet known models could be? Don't ask yourself the question anymore, it's time to find out for yourself! You have the option to customize
your own Patterns with the Backtesting tool and set Retracement Ratios and Targets for your own Patterns. In addition to this, in order to determine
the Trend at a glance and make Pattern detection more efficient, we have linked the calculation of Patterns to Bands of several types to choose
from (Bollinger, Keltner, Donchian) that you can select from a drop-down menu in the settings and play with the Multiplier
and the Adaptive Length of the Patterns to see how it affects the success rate in the Backtesting table.
█ HOW DOES IT WORK?
- Harmonic Patterns
-Pattern Names, Colors, Style etc… Everything is customizable.
-Dynamic Adaptative Length with Min/Max Length.
- XAB/ABC Ratio
-Min/Max XAB/ABC Configurable Ratio for each Pattern to create your own Patterns.
(This is really the particular option of this Indicator, because it allows you to be able to Backtest in real time
after having played at configuring your own Ratios)
- Bands
-Contrary to the original logic of the HeWhoMustNotBeNamed script, here when the price breaks out of the upper Bands
(example, Bollinger band, Keltner Channel or Donchian Channel) , with a predetermined Minimum and Maximum Length and Multiplier, we can consider
the Trend to be Bearish (and not Bullish) and similarly when the price breaks down in the lower band, we can consider the Trend
to be Bullish (not Bearish) . We have also added the middle line of the Channels (which can be useful for 'Scalper' type Traders.
-The Length of the Bands Filter is directly related to the Dynamic Length of the Patterns.
-You can use a drop-down menu to select from the following Bands Filters :
SMA, EMA, HMA, RMA, WMA, VWMA, HIGH/LOW, LINREG, MEDIAN.
-Sticky and Adaptive Bands options has been included.
- Projections
-BD/CD Projection Ratio configurable for each Pattern.
(Projections are visible as Dotted Lines which we can choose to Extend or not)
- Targets
-Target, PRZ and Stop Levels are set to optimal values based on individual Patterns. (The PRZ Level corresponds to point D
of the detected Pattern so its value should always be 0) but you can change the Targets value (defined in %) as you wish.
Again here, you have the option to fully configure the Style and Extend the Lines or not.
- Backtesting Table
-As said previously, with the possibility of testing the Success Rate of each of the 3 Customizable Patterns,
this option is part of the logic of this Indicator.
- Alerts
-We originally believe that this Indicator does not even need Alerts. But we still decided to include at least one Alert
that you can set for when a new Pattern is detected.
█ NOTES
Thanks to HeWhoMustNotBeNamed for his permission to reuse some part of his zigzag scripts.
Remember to only make a decision once you are sure of your analysis. Good trading sessions to everyone and don't forget,
risk management remains the most important!
Гармонические паттерны
DEMO - FxCanli Harmonic SniperEN - TradingView FxCanli HARMONIC SNIPER indicator can draw 9 different patterns on your charts and also give alerts when any pattern triggered, hit Stop and TP levels.
DEMO VERSION of Harmonic Sniper works on only GBPNZD and XRPUSDT charts
TR - TradingView FxCanlı HARMONIC SNIPER İndikatörü , grafiklerinizde 9 ayrı formasyonu çizer ve Formasyon aktif olduğunda ve Hedef / Stop seviyelerine ulaştığında alarm verir.
Harmonic Sniper DEMO VERSİYONU sadece GBPNZD ve XRPUSDT grafiklerinde çalışır
PATTERNS / FORMASYONLAR
* Gartley
* Bat
* Butterfly
* Crab
* Cypher
* AB=CD
* Libra
* PRJ
* 2618
FEATURES & EXAMPLES / ÖZELLİKLER & ÖRNEKLER
**************************************************************
Multi Language / Çok Dil
EN - You can get alerts in English or Turkish language
TR - Alarmları İngilizce veya Türkçe olarak alabilirsiniz.
Wave Type / Dalga Tipi
EN - You can choose the wave types, Small or Medium or Small+Medium
TR- Dalga tipini seçebilirsiniz. Small veya Medium veya Small+Medium
Pattern Number / Formasyon Sayısı
EN - As a default it shows one Bullish and one Bearish pattern , you can set it 2 or more and also you may just want it to show just Bullish or Bearish Patterns
TR - Varsayılan olarak bir Boğa ve bir Ayı formasyonu gösterir, 2 veya daha fazla olarak da ayarlayabilirsiniz ve ayrıca sadece Boğa veya Ayı Formasyonu göstermesini isteyebilirsiniz.
Pattern and Trade Levels Settings / Formasyon ve İşlem Seviyeleri Ayarları
EN - You can set size, color, line type of any trade levels. Also you can choose to show the name and price of the patterns and trade levels.
TR - Herhangi bir işlem seviyesinin boyutunu, rengini, çizgi türünü belirleyebilirsiniz. Ayrıca Formasyonların ve işlem seviyelerinin adını ve fiyatını göstermeyi seçebilirsiniz.
Backtest / Geriye Dönük Test
EN - You can make backtest of any pattern
TR - Herhangi bir formasyonun geriye dönük testini yapabilirsiniz
Gartley Pattern/Formasyonu
Bat Pattern/Formasyonu
Butterfly Pattern/Formasyonu
Cypher Pattern/Formasyonu
Crab Pattern/Formasyonu
AB=CD Pattern/Formasyonu
PRJ Pattern/Formasyonu
2618 Pattern/Formasyonu
Libra Pattern/Formasyonu
PZ Session SplitterSplit any 24-hour session into 3 segments to determine range statistics and midpoints. Ideal for futures traders to analyze the overnight sessions (Asia and Europe). Also great for splitting the day session into different parts (initial balance, mid-day, closing power-hour). Customize colors and names of sessions along with 50% and 25% midpoints.
Harmonic Patterns Based SupertrendExtending the earlier implemented concept of Harmonic-Patterns-Based-Trend-Follower , in this script, lets make it work as supertrend so that it is more easier to operate.
🎲 Process
🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots
🎯 If a pattern is found, bullish and bearish zones are calculated based on parameter Base
🎯 These bullish and bearish zones act as supertrend based on current trade in progress.
🎯 When in bullish mode, bearish zone will only go up irrespective of new pattern forming new low. Similarly when in bearish mode, bullish zones will only come down - this is done to imitate the standard supertrend behaviour.
🎲 Note
Patterns are not created on latest pivot as last pivot will be unconfirmed and moving. Due to this, patterns appear after certain delay - patterns will not be real time. But, this is expected and does not impact the overall process.
Here are few chart captures to demonstrate how it works.
🎲 Settings
Settings are explained in the screenshot below.
Harmonic Patterns Based Trend FollowerEarlier this week, published an idea on how harmonic patterns can be used for trend following. This script is an attempt to implement the same.
🎲 Process
🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots
🎯 If a pattern is found, highest point of pattern will become the bullish zone and lower point of the pattern will become bearish zone.
🎯 Since it is trend following method, when price reaches bullish zone, then the trend is considered as bullish and when price reaches bearish zone, the trend is considered as bearish.
🎯 If price does not touch both regions, then trend remains unchanged.
🎯 Bullish and bearish zone will change as and when new patterns are formed.
🎲 Note
Patterns are not created on latest pivot as last pivot will be unconfirmed and moving. Due to this, patterns appear after certain delay - patterns will not be real time. But, this is expected and does not impact the overall process.
When new pattern formed
When price breaks over the zones
🎲 Output
🎯 Patterns formed are drawn in blue coloured lines. Due to pine limitation of max 500 lines, older patterns automatically get deleted when new ones come.
🎯 Bullish Zone and Bearish Zone are plotted in green and red colours and the zone will change whenever new pattern comes along.
🎯 Bar colors are changed according to calculated trend. Trend value can be 1 or -1 based on the current trend. You can also find the value in data window.
🎯 For simplicity purpose, input option for selection of specific patterns are not provided and also pattern names are not displayed on the chart.
Auto Harmonic Pattern - Backtester [Trendoscope]We are finally here with the implementation of backtesting tool for Auto-Harmonic-Pattern-UltimateX .
CAUTION: THIS IS NOT A STRATEGY AND SHOULD NOT BE FOLLOWED BLINDLY. WE ENCOURAGE USERS TO UTILISE THIS AS BACKTESTING TOOL FOR BUILDING THEIR STRATEGY BASED ON HARMONIC PATTERNS
This script is based on our premium indicator - Auto-Harmonic-Pattern-UltimateX . In this script, along with implementation of scanning harmonic patterns, we provide various options via settings which enables users to build their own strategy based on harmonic patterns, use them with custom coded filters, backtest them on various tickers and timeframes.
Harmonic Patterns is concept and we can trade harmonic pattern in many ways. While general interest around harmonic patterns is to find reversal zones and use them for short term swing trades. But, using it along trend following strategies can also be very rewarding. Here is one of the educational idea I shared about using harmonic patterns for trend following. These are just few possibilities where users can explore further on how they want to trade this. The settings of this script are crafted in such a way that it enables users to explore all these possibilities.
🎲 Components
Chart components of this script is lighter compared to Auto Harmonic Pattern - UltimateX. This is because we want to keep lighter interface in order to support seamless execution of emulator. Since pine strategy framework does most of the things such as calculating profitability, keeping track of trades and results etc, display with respect to - "Closed Trade Stats" are removed from this script and "Open Trade Stats" are made lighter.
🎲 Settings
🎯 Trade Settings : Few important settings under this section are
Due to pine limitations, we will not be able to support both long and short in a same setup. Hence, users need to chose either long or short trade setup.
Entry/Base/Target play important role in defining your strategy.
Confluence is another important factor which lets users use multiple patterns at once as confirmation.
🎯 Zigzag Settings : Zigzag settings determine the size of patterns being formed.
Please note that smaller patterns may not yield very good results and larger patterns may take time to complete trade. Similarly higher depth can cause runtime issues. Recursive zigzag option is alternative to deep search algorithm.
🎯 Filters :
Filters enable users to select trades based on specific conditions. Ability to use external filter even allows writing and using custom filters to be used with this algorithm. Here is a video which explains how this can be done. HOW-TO-Use-external-filters
Pattern filters allow users to pick and chose patterns they want to trade. This can be done either individually or based on category
🎯 Alerts :
Apart from strategy specific alerts, the script also implements customisable alerts via pine alert() function. Alerts can be configured to send upon three conditions
When new pattern is created
When an existing pattern updates entry/stop/target due to safe repaint of D (Only happens when Trail Entry Price is selected)
When a pattern in trade closes either due to hitting stop or target
Important Note: Alerts fired via this method may not match the trades shown on chart as trades which are controlled via pine strategy emulator depends on various other factors such as pyramiding.
Alert template is customisable and users can make use of available placeholders to get dynamic data in alerts. Valid placeholders are
{alertType} - Alert type - New/Update/Close
{id} - Pattern Id
{ticker} - Ticker
{timeframe} - Chart timeframe
{price} - Current price
{patterns} - Identified pattern names
{direction} - Direction - Long/Short
{entry} - Entry Price
{stop} - Stop Price
{target} - Target Price
{orderType} - Limit/Stop - applicable for only New and Update types
{status} - Trade status. Valid values are Pending/Cancelled/Stopped/Success
Template is common for all custom alert types. Hence, updating the template will impact all custom alerts - New/Update/Close
{
"alert" : "{alertType}",
"id" : {id},
"ticker" : "{ticker}",
"timeframe" : "{timeframe}",
"price" : {price},
"patterns" : "{patterns}",
"direction" : "{direction}",
"entry" : {entry},
"stop" : {stop},
"target" : {target},
"orderType" : {orderType}
"status" : {status}
}
Here is a video on how to customise the alerts using templates and placeholders - HOW-TO-Customize-Alerts-With-Placeholders
🎯 Miscellaneous :
These are simple settings to control display and backtest bars. If you are running alerts, we suggest turning of Open Trades and Drawings and limit backtest to minimal value in order to improve efficiency of
🎯 Backtest Engine Parameters :
Default settings are optimised for trend following. Users are encouraged to play around with settings and filters to build strategy out of this tool.
Position sizing is not leveraged. Margin settings makes sure that trades cannot exceed capital.
All measures are taken to avoid repainting. Script does not use request.security and real time bars. This drastically reduces the risk of repainting in scripts.
If you are premium user, please select "Bar Magnifier".
30MIN CYCLE█ HOW DOES IT WORK?
The known 90 min cycle is used as one killzone. But actually all 18 min are relevant to search for a trade. All 18 min when a new box starts only then is the placement of an order valid. If the entry candle isn't in a box then it will probably fail. The boxes should only be used in the M1 or M5 timeframe. The best hitrate is in the M1 timeframe. Included are the last 48 "Mini-Killzones" für intraday trading and backtesting. These "Mini-Killzones" can be used with the "Liquidity Inducement Strategy".
█ WHAT MAKES IT UNIQUE?
This is the first indicator on tradingview that shows all mini-killzones for trading and backtesting a whole tradingday. The well-known killzones of ICT are from 08:00-11:00 and 14:00 - 17:00 (UTC+1) but with this indicator there is finally a refinement of the ICT Smart Money Concept killzones.
█ HOW TO USE IT?
For a proper use of this indicator we suggest to know already at least SMC or better Liquidity Indcuement Trading. This indicator is a further confluence before placing an order. After you made your setup you will have these mini-killzones as a confluence. We don't suggest to open a trade only according to this indicator.
█ ADDITIONAL INFO
This indicator is free to use for all tradingview users.
█ DISCLAIMER
This is not financial advice.
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
Multi-timeframe Harmonic PatternsHello friends. In recent months I have been busy with my academic research and haven't had much time to publish new scripts. To fill the gap of these months, I decided to publish the indicator Multi-timeframe Harmonic Patterns . Harmonic technical chart patterns can predict the next price trend and provide traders with clues to the price direction, which is one of the indicators widely used by professional traders.
(1) Indicator description
This indicator is built on ZigZag Multi Time Frame with Fibonacci Retracement@LonesomeTheBlue . Thanks to LonesomeTheBlue for contributing the awesome indicator
The indicator supports 6 different timeframes , and 25 different harmonic patterns
This indicator supports indicating key indicator prices: entry price, stop loss price, and two take profit prices
(2) Key parameters
timeframe resolution: The timeframe of the harmonic pattern
pivot high/low source: Calculation method of high/low pivot points
timeframe pivot period: Minimum period of high/low pivot points
delay for confirmations: Wait for N candles to confirm the chart pattern
bullish/bearish colors: Bullish/bearish pattern colors
enable harmonic patterns: Enable current harmonic patterns
show harmonic patterns: Show harmonic patterns found
show trading prices of patterns: Show key prices of harmonic patterns
(3) Supported Patterns:
Gartlay
Cypher
Bat
Deepcrab
Crab
Butterfly
Shark
0-5
AB=CD
3-Drives
Anti-Gartlay
Anti-Cypher
Anti-Bat
Anti-Crab
Anti-Butterfly
Anti-Shark
Black-Swan
White-Swan
Descending-Triangle
Ascending-Triangle
Symmetrical-Triangle
Headers&Shoulders
Inverse-Headers&Shoulders
Double-Top
Double-Bottom
————————————————————————————————————————
各位朋友大家好。最近几个月我忙于自己的学术研究没有过多时间更新脚本。为弥补这几个月的空缺,我决定发布该 多时间周期的谐波指标 。谐波技术图表形态在一定程度上可以预测下一个价格走势,为交易者提供价格方向的线索,是广大专业交易人员广泛使用的指标之一。
(1) 指标说明
该指标建立于 ZigZag Multi Time Frame with Fibonacci Retracement@LonesomeTheBlue ,感谢LonesomeTheBlue贡献的出色指标
该指标支持 6种不同的时间周期 ,以及 25种不同的谐波形态
该指标支持指示关键的指标价格:入场价格、止损价格、以及两种止盈价格
(2) 关键参数
timeframe resolution: 谐波形态的时间周期
pivot high/low source: 高/低枢纽点的计算方式
timeframe pivot period: 高/低枢纽点的最小周期
delay for confirmations: 等待N个蜡烛以确认图表形态
bullish/bearish colors: 看涨/看跌的形态颜色
enable harmonic patterns: 使能当前的谐波形态
show harmonic patterns: 显示被发现的谐波形态
show trading prices of patterns: 显示谐波形态的关键价格
(3) 支持形态:
Gartlay
Cypher
Bat
Deepcrab
Crab
Butterfly
Shark
0-5
AB=CD
3-Drives
Anti-Gartlay
Anti-Cypher
Anti-Bat
Anti-Crab
Anti-Butterfly
Anti-Shark
Black-Swan
White-Swan
Descending-Triangle
Ascending-Triangle
Symmetrical-Triangle
Headers&Shoulders
Inverse-Headers&Shoulders
Double-Top
Double-Bottom
Wolfe Strategy [Trendoscope]Hello Everyone,
Wish you all Merry X-Mas and happy new year. Lets start 2023 with fresh new strategy built on Wolfe Indicator. Details of the indicator can be found here
🎲 Wolfe Concept
Wolfe concept is simple. Whenever a wedge is formed, draw a line joining pivot 1 and 4 as shown in the chart below:
For simplicity, we will only consider static value for Target and Stop. But, entry is done based on breaking the triangle. Revised strategy looks something like this:
🎲 Settings
Settings are simple and details of each are provided via tooltips.
Out of these, the most important one is minimum risk reward ratio. If you set lower risk reward threshold then losing few trades may generate more losses than more winning trades. Similarly higher value will filter out most of the trades and may not work efficiently. Default value set to 1 to make sure optimal risk reward is present before placing trade. Also make note that since the entry bar is always moving towards stop, as and when pattern progress, the RR will also increase. Hence, a pattern which is below RR threshold may become good to trade at certain point of time in future.
🎲 Strategy Parameters
Default strategy parameters are initialised via definition. Margins are set to 100 to disable leveraged trades. Appropriate values are chosen for other parameters. These can be altered based on individual strategy and trading plan.
As the strategy concentrates on the single pattern, number of trades generated are comparatively less. But, there is chance to increase the algorithm further to catch more such patterns on larger scale. Will try to work on them in next versions.
🎲 Pine Strategy limitations
Backtest can only be done on one direction as pine strategy cannot have both long and short open trades together. Hence, it is mandatory to chose either long/short trades in settings.
Since pyramiding is limited to 1, there is possibility of a pattern not generating trade even though the entry conditions are met. They are just based on pine limitations and not necessarily mean patterns are not good for placing trades.
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.
Conditional Chart Pattern Signals: Part 2CCPS uses exclusive method to finalize pivot points and has more options to refine chart patterns.
Pattern List:
• Shark Bearish
• Shark Bullish
• Cypher Bearish
• Cypher Bullish
• Three Drives Bearish
• Three Drives Bullish
• 5-0 Bearish
• 5-0 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.
Conditional Chart Pattern Signals: Part 1CCPS uses exclusive method to finalize pivot points and has more options to refine chart patterns.
Pattern List:
• Bat Bearish
• Bat Bullish
• Butterfly Bearish
• Butterfly Bullish
• Crab Bearish
• Crab Bullish
• Gartley Bearish
• Gartley 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.
Strategy Myth-Busting #20 - HalfTrend+HullButterfly - [MYN]#20 on the Myth-Busting bench, we are automating the " I Found Super Easy 1 Minute Scalping System And Backtest It 100 Times " strategy from " Jessy Trading " who claims 30.58% net profit over 100 trades in a couple of weeks with a 51% win rate and profit factor of 1.56 on EURUSD .
This one surprised us quite a bit. Despite the title of this strategy indicating this is on the 1 min timeframe, the author demonstrates the backtesting manually on the 5 minute timeframe. Given the simplicity of this strategy only incorporating a couple of indicators, it's robustness being able to be profitable in both low and high timeframes and on multiple symbols was quite refreshing.
The 3 settings which we need to pay most attention to here is the Hull Butterfly length, HalfTrend amplitude and the Max Number Of Bars Between Hull and HalfTrend Trigger. Depending on the timeframe and symbol, these settings greatly impact the performance outcomes of the strategy. I've listed a couple of these below.
And as always, If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 3 open-source public indicators:
Hull Butterfly Oscillator by LuxAlgo
HalfTrend by Everget
Trading Rules
5 min candles but higher / lower candles work too.
Stop loss at swing high/low
Take Profit 1.5x the risk
Long
Hull Butterfly gives us green column, Wait for HalfTrend to present an up arrow and enter trade.
Short
Hull Butterfly gives us a red column , Wait for HalfTrend to present a down arrow and enter trade.
Alternative Trading Settings for different time frames
1 Minute Timeframe
Move the Hull Butterfly length from the default 11 to 9
Move the HalfTrend Amplitude from the default 2 to 1
Enabling ADX Filter with a 25 threshold
2 Hour Timeframe
Move the HalfTrend Amplitude from the default 2 to 1
Laddered Take Profits from 14.5% to 19% with an 8% SL
Custom XABCD Validation and Backtesting ToolOverview:
We hear a lot about Gartleys, bats, crabs and the rest of the barnyard crew, but have you ever wondered what other creatures might be lurking out there yet to be discovered? Well wonder no longer, it's time to find out for yourself! The Custom XABCD Validation and Backtesting Tool allows you to define retracement ratios and targets for your very own patterns.
Tips:
(1) Adjust the patterns entry/stop/target configuration and see how it affects the pattern's backtesting results.
(2) Adjust the weights of pattern score components (% error, PRZ confluence, Point D/PRZ confluence), along with the entry minimum score requirements ('If score is above'), and see how it affects the patterns' results.
Pattern Scoring:
The pattern's score is an attempt to represent the quality of a pattern with a single metric. This is one of the most powerful aspects of the tool because it can quickly tell you whether a trade is worth entering. The score is based on 3 components:
(1) Retracement % Accuracy - this measures how closely a pattern's retracement ratios match your defined theoretical values. You can change the "Allowed ratio error %" in Settings to be more or less inclusive.
(2) PRZ Level Confluence - Potential Reversal Zone levels are retracements of the XA, BC, and/or XC legs. These levels indicate where a potential reversal might occur (i.e. pivot point D). The PRZ Level Confluence component measures the closeness of the two closest PRZ levels, relative to the height of the of the XA leg.
(3) Point D / PRZ Confluence - this measures the closeness of point D to either of the two closest PRZ levels (identified in the PRZ Level Confluence component above), relative to the height of the XA leg. In theory, the closer together these levels are, the higher the probability of a reversal.
While the score is percentage-based, it should not be confused with a probability. A score of 96% does not imply a 96% chance of success. It simply represents the average of the three components mentioned above, weighted according to the defined weight parameters. A score of 100% would mean that (1) all leg retracements match the defined theoretical retracement ratios exactly, (2) all PRZ retracement levels are exactly the same value, and (3) pivot point D occurred exactly at the confluent PRZ level.
Pattern scoring research has been ongoing since I introduced the concept with my Harmonic Pattern Detection, Prediction and Backtesting Tool (see below). So the way that the score is calculated is subject to change based on the results of that research.
Zig Zag Ratio Simplified█ OVERVIEW
This indicator was to show ratio between zig zag. Ideally to find Fibonacci Retracement / Projection, Harmonic Patterns, ABCD, Elliot Wave and etc.
█ CREDITS
LonesomeTheBlue
█ FEATURES
Table can positioned by any position and font size can be resized.
█ USAGE / TIPS EXAMPLES (Description explained in each image)
Auto Harmonic Pattern - Extreme [Trendoscope]Publishing free to use scripts always brought me more value - be it in terms of more followers, or helped me to engage with people having right ideas. This has helped me immensely over past few years of my presence in tradingview. To all the coders out there who is starting to work on pinescript - my suggestion is to publish as many open source/free to use scripts as possible. It will always be rewarding experience and help you grow in a way you can never imagine.
Today, I realised that I have accumulated 10,000+ followers in tradingview just by learning and publishing what I learn. As token of gratitude to all our followers and supporters, we would like to gift this indicator. This is also tribute to all the people who have positively influenced our presence in tradingview and encouraged us to reach this level. Unfortunately cannot publish it as open source due to having proprietary code in it and fear of being misused.
I will not talk about the subject harmonic patterns as it is very generic and information is available online in many places. You can also refer to my open source libraries and scripts related to harmonic patterns. Some of them are here:
Libraries
eHarmonicpatternsExtended
eHarmonicpatterns
harmonicpatterns
Indicators
Harmonic-Patterns-Custom-Candles
Manual-Harmonic-Patterns-With-interactive-inputs
Manual-Harmonic-Projections-With-interactive-inputs
Auto-Harmonic-Patterns-V2
There are few more among open source and free scripts. But, will not mention them here as they are deprecated.
Now coming to the present indicator.
Setting are made simpler to enhance usability. This can also help new traders learning harmonic patterns. Snapshot of the settings can be found here:
Components of the script are as below
Please note, I may not be able to make any further update to this script. But, I promise never to degrade or reduce the quality of any free to use or open source script I ever published.
Harmonic Pattern Detection, Prediction, and Backtesting ToolOverview:
The ultimate harmonic XABCD pattern identification, prediction, and backtesting system.
Harmonic patterns are among the most accurate of trading signals, yet they're widely underutilized because they can be difficult to spot and tedious to validate. If you've ever come across a pattern and struggled with questions like "are these retracement ratios close enough to the harmonic ratios?" or "what are the Potential Reversal levels and are they confluent with point D?", then this tool is your new best friend. Or, if you've never traded harmonic patterns before, maybe it's time to start. Put away your drawing tools and calculators, relax, and let this indicator do the heavy lifting for you.
- Identification -
An exhaustive search across multiple pivot lengths ensures that even the sneakiest harmonic patterns are identified. Each pattern is evaluated and assigned a score, making it easy to differentiate weak patterns from strong ones. Tooltips under the pattern labels show a detailed breakdown of the pattern's score and retracement ratios (see the Scoring section below for details).
- Prediction -
After a pattern is identified, paths to potential targets are drawn, and Potential Reversal Zone (PRZ) levels are plotted based on the retracement ratios of the harmonic pattern. Targets are customizable by pattern type (e.g. you can specify one set of targets for a Gartley and another for a Bat, etc).
- Backtesting -
A table shows the results of all the patterns found in the chart. Change your target, stop-loss, and % error inputs and observe how it affects your success rate.
//------------------------------------------------------
// Scoring
//------------------------------------------------------
A percentage-based score is calculated from four components:
(1) Retracement % Accuracy - this measures how closely the pattern's retracement ratios match the theoretical values (fibs) defined for a given harmonic pattern. You can change the "Allowed fib ratio error %" in Settings to be more or less inclusive.
(2) PRZ Level Confluence - Potential Reversal Zone levels are projected from retracements of the XA and BC legs. The PRZ Level Confluence component measures the closeness of the closest XA and BC retracement levels, relative to the total height of the PRZ.
(3) Point D / PRZ Confluence - this measures the closeness of point D to either of the closest two PRZ levels (identified in the PRZ Level Confluence component above), relative to the total height of the PRZ. In theory, the closer together these levels are, the higher the probability of a reversal.
(4) Leg Length Symmetry - this measures the ΔX symmetry of each leg. You can change the "Allowed leg length asymmetry %" in settings to be more or less inclusive.
So, a score of 100% would mean that (1) all leg retracements match the theoretical fib ratios exactly (to 16 decimal places), (2) the closest XA and BC PRZ levels are exactly the same, (3) point D is exactly at the confluent PRZ level, and (4) all legs are exactly the same number of bars. While this is theoretically possible, you have better odds of getting struck by lightning twice on a sunny day.
Calculation weights of all four components can be changed in Settings.
//------------------------------------------------------
// Targets
//------------------------------------------------------
A hard-coded set of targets are available to choose from, and can be applied to each pattern type individually:
(1) .618 XA = .618 retracement of leg XA, measured from point D
(2) 1.272 XA = 1.272 retracement of leg XA, measured from point D
(3) 1.618 XA = 1.618 retracement of leg XA, measured from point D
(4) .618 CD = .618 retracement of leg CD, measured from point D
(5) 1.272 CD = 1.272 retracement of leg CD, measured from point D
(6) 1.618 CD = 1.618 retracement of leg CD, measured from point D
(7) A = point A
(8) B = point B
(9) C = point C
//------------------------------------------------------
// Stops
//------------------------------------------------------
Stop-loss levels are also user-defined, in one of three ways:
(1) % beyond the furthest PRZ level (below the PRZ level for bullish patterns, and above for bearish)
(2) % beyond point D
(3) % of distance to Target 1, beyond point D. This method allows for a proper Risk:Reward approach by defining your potential losses as a percentage of the potential gains. This is the default.
//------------------------------------------------------
// Results Table / Backtesting Statistics
//------------------------------------------------------
To properly assess the effectiveness of a specific pattern type, a time limit is enforced for a completed pattern to reach the targets or the stop level. When this time limit expires, the pattern has "timed out", and is no longer considered in the Success Rate statistics. During the time limit period, if price reaches Target 1 before reaching the Stop level, the pattern is considered successful. Conversely, if price reaches the Stop level before reaching Target 1, the pattern is considered a failure. The time limit can be changed in Settings, and is defined in terms of the total pattern length (point X to point D). It is set to 1.5 by default.
Increasing the time limit value will give you more realistic Success Rate values, but will less accurately represent the success rate of the harmonic patterns (i.e. the more time that elapses after a pattern completes, the less likely it is that the price action is related to that pattern).
//------------------------------------------------------
// Coming soon...
//------------------------------------------------------
I have a handful of other features in development, including:
(1) Drawing incomplete patterns as they develop. This will allow you more time to plan entries and stops, or potentially trade reversals from point C to point D PRZ levels.
(2) Support for the Shark and Cypher patterns
(3) Alerts
Please report any bugs, runtime errors, other issues or enhancement suggestions.
I also welcome any feedback from experienced harmonic pattern traders, especially regarding your strategy for setting targets and stop-losses.
@reees
ABC 123 Harmonic Ratio Custom Range Interactive█ OVERVIEW
This indicator was designed based on Harmonic Trading : Volume One written by Scott Carney.
This is about harmonic ratios which expanded through retracement and projection.
Derivation is pretty much explained here such as Primary, Primary Derivation, Secondary Derivation and Secondary Derivation Extreme.
Derivation value depends on minimum retracement or maximum projection.
This derivation value utilize Fibonacci value which later expand to Harmonic Ratio.
█ INSPIRATION
Inspired by design, code and usage of CAGR . Basic usage of custom range / interactive, pretty much explained here . Credits to TradingView.
This build is based and visualized upon Harmonic Trading Ratios.
This build also was stripped down from XABCD Harmonic Pattern Custom Range Interactive .
█ CREDITS
Scott Carney, Harmonic Trading : Volume One (Page 18)
█ FEATURES
Table can positioned by any position and font size can be resized.
Labels can be either changed to alphabets or numbers.
█ HOW TO USE
Draw points from Point A to Point C.
Dont worry about magnet, point will attached depends on High or Low of the candle.
█ USAGE / TIPS EXAMPLES (Description explained in each image)
Astro | Angular Distance | θAstro | Angular Distance | θ
Also known as Angular Separation , Apparent Distance , or Apparent Separation is the angle between the two sightlines, or between two point objects as viewed from an observer, in our case we can use it as Geocentric/Heliocentric prospective calculated from a combination of some trigonometry functions
We can use it to calculate the Angular Distance between two planets.
How to use it:
- 1st Ascension : The Right Ascension of the first object expressed in degrees.
- 1st Declination : The Declination of the first object expressed in degrees.
- 2nd Ascension : The Right Ascension of the second object expressed in degrees.
- 2nd Declination : The Declination of the second object expressed in degrees.
The result ll'be returned near the table "Angulare Distance" and all the values entered will be plotted on the table in top-right position of the screen.
FxCanli Harmonic SniperEN - TradingView FxCanli HARMONIC SNIPER indicator can draw 9 different patterns on your charts and also give alerts when any pattern triggered, hit Stop and TP levels.
TR - TradingView FxCanlı HARMONIC SNIPER İndikatörü , grafiklerinizde 9 ayrı formasyonu çizer ve Formasyon aktif olduğunda ve Hedef / Stop seviyelerine ulaştığında alarm verir.
PATTERNS / FORMASYONLAR
* Gartley
* Bat
* Butterfly
* Crab
* Cypher
* AB=CD
* Libra
* PRJ
* 2618
FEATURES & EXAMPLES / ÖZELLİKLER & ÖRNEKLER
**************************************************************
Multi Language / Çok Dil
EN - You can get alerts in English or Turkish language
TR - Alarmları İngilizce veya Türkçe olarak alabilirsiniz.
Wave Type / Dalga Tipi
EN - You can choose the wave types, Small or Medium or Small+Medium
TR- Dalga tipini seçebilirsiniz. Small veya Medium veya Small+Medium
Pattern Number / Formasyon Sayısı
EN - As a default it shows one Bullish and one Bearish pattern, you can set it 2 or more and also you may just want it to show just Bullish or Bearish Patterns
TR - Varsayılan olarak bir Boğa ve bir Ayı formasyonu gösterir, 2 veya daha fazla olarak da ayarlayabilirsiniz ve ayrıca sadece Boğa veya Ayı Formasyonu göstermesini isteyebilirsiniz.
Pattern and Trade Levels Settings / Formasyon ve İşlem Seviyeleri Ayarları
EN - You can set size, color, line type of any trade levels. Also you can choose to show the name and price of the patterns and trade levels.
TR - Herhangi bir işlem seviyesinin boyutunu, rengini, çizgi türünü belirleyebilirsiniz. Ayrıca Formasyonların ve işlem seviyelerinin adını ve fiyatını göstermeyi seçebilirsiniz.
Backtest / Geriye Dönük Test
EN - You can make backtest of any pattern
TR - Herhangi bir formasyonun geriye dönük testini yapabilirsiniz
mess JBI have made an all in one powerful script. It contains all meme lines(Moving average, Ema, Dema, Vwma, Hma)
In general, orange color means negative and white means positive. But you can very easily customize the colors according to your need and enable and disable any meme line.
Dots represent change of price action, although it works on every time frame but I have got best results on 15minute and 4hour Time Frame.
Cross represent change in volume. Now that's the most powerful thing, I have picked time segmented oscillator and changed the cod to represent Volume change. To take a better note of market, Start from Bigger Time frames. This indicator predicted every move Perfectly.
Enjoy
Cup & HandleHi, here is my take on 'Cup & Handle'
Pivot Points - ph (highest points in a certain period) are stored in an array
When there is a new ph , previous ph's are compared to the latest one.
A temporary test line is drawn between these 2 points.
The script checks if a close (between these 2 points) doesn't break above this test line.
(test line is deleted afterwards)
If it doesn't, and the '% max breaks' are not breached, 2 circle shaped lines are drawn
(Top & Bottom line of the cup) which forms the Cup, together with the Handle.
The red box (Handle) is the maximum 33-50% retracement (% of cup height)
-> Only the latest pattern is shown, enabling 'Show Cup labels' shows the position of cup patterns in history.
They can be visualised by using 'Bar Replay'
'% max breaks' -> 'maximum highs/lows breaking through the Top/Bottom line
(% of bars between left & right extreme points of the Cup)
Settings:
- 'Left', 'Right' -> regulates Pivot Point values
- 'PP back' -> max lookback for Pivot High
More explanation can be found in following print screens,
or by checking the tooltips in the settings
Cheers!