TechniTrend: Strong Candles DetectorTechniTrend: Strong Candles Detector
Description:
The TechniTrend: Strong Candles Detector indicator is designed to identify strong candlestick patterns based on customizable thresholds of candle strength, volume, and price volatility. By detecting significant candles that have a high proportion of body relative to total range, the indicator helps traders identify potential shifts in market direction, making it a useful tool for trend analysis and reversal spotting.
Key Features:
Candle Strength Detection: The indicator calculates the strength of a candle based on the ratio of its body (difference between open and close) to its total range (high minus low). If the body size exceeds a user-defined threshold, the candle is flagged as strong. This helps traders quickly identify key candles that may signal market movements.
Volume Confirmation (Optional): An optional volume confirmation allows the indicator to only flag candles as "strong" if the trading volume during the candle exceeds the average volume over a customizable period. This can help validate that a candle’s movement is backed by significant market participation.
Volatility Body Confirmation (Optional): Users can further refine the detection by requiring that the body of a strong candle exceed the average body size (volatility) of previous candles. This ensures that candles with greater price movement are prioritized.
Customizable Inputs:
Strength Threshold: Defines the minimum ratio of body to total range for a candle to be considered strong.
Moving Average Type: Choose from SMA, EMA, or WMA for calculating the moving average of volume or body volatility.
Volume and Body Confirmation: Adjust the percentage thresholds for the difference between the current volume/body size and their average values.
Visual Alerts: The indicator marks strong bullish candles with green upward labels below the candle, and strong bearish candles with red downward labels above the candle. Additionally, strong candles can be highlighted with a customizable background color for easier visualization.
How It Works:
Strength Ratio:
The core of this indicator is the calculation of the strength ratio, which is defined as the body size (open-close) divided by the total range (high-low). If the body size is larger relative to the total range and exceeds the user-defined threshold, the candle is flagged as strong.
Volume and Volatility Confirmation:
For traders seeking additional confirmation, the indicator can be configured to only mark candles if the current volume or body volatility exceeds the average by a user-defined percentage. These confirmations can be toggled on or off to suit different trading strategies.
Customization Options:
Strength Threshold (0-1):
Sets the minimum strength required for a candle to be flagged. A higher value will result in fewer but more significant candles being marked.
Volume Confirmation:
Toggle on to require a higher volume compared to the average volume for a candle to be confirmed as strong.
Volatility Body Confirmation:
Toggle on to require a larger candle body compared to the average body size for further confirmation.
Candle Color:
Choose the background color used to highlight strong candles.
Recommended Settings:
Strength Threshold: 0.7 (for a good balance between body and range)
Volume Difference: 0.05 (5% above the average volume)
Body Volatility Difference: 0.05 (5% above the average body size)
Length: 14 (for volume and volatility moving averages)
Conclusion: The TechniTrend: Strong Candles Detector is an easy-to-use yet powerful tool for traders who want to identify key candles that signal potential market trends. Its customizable settings allow for fine-tuning to fit different trading styles, whether looking for high-volume breakouts or significant price movements. The indicator offers both a visual and configurable alert system to help traders make more informed decisions.
Trenddetector
Trend Dominance Multi Timeframe [Misu]█ This indicator shows the repartition of bullish and bearish trends over a certain period in multiple timeframes. It's also showing the trending direction at the time.
█ Usages:
Trend dominance is expressed with two percentages: left is downtrend and right is uptrend. Cell colors turn green if dominance is up and red if it is down.
Knowing the trend dominance allows you to have a better overview of the market conditions.
You can use it to your advantage to favor long or short trades, reversal or breakout strategies, etc.
█ Features:
> Table colors
> Instant Trend Multitimeframe
> Trend Dominance Multitimeframe
█ Parameters:
> Length: Length is used to calculate ATR.
> Atr Multiplier: A factor used to balance the impact of the ATR on the Trend Bands calculation.
> UI Settings
Zigzag Trend/Divergence DetectorPullbacks are always hardest part of the trade and when it happen, we struggle to make decision on whether to continue the trade and wait for recovery or cut losses. Similarly, when an instrument is trending well, it is often difficult decision to make if we want to take some profit off the table. This indicator is aimed to make these decisions easier by providing a combined opinion of sentiment based on trend and possible divergence.
⬜ Process
▶ Use any indicator to find trend bias. Here we are using simple supertrend
▶ Use any oscillator. I have added few inbuilt oscillators as option. Default used is RSI.
▶ Find divergence by using zigzag to detect pivot high/low of price and observing indicator movement difference between subsequent pivots in the same direction.
▶ Combine divregence type, divergence bias and trend bias to derive overall sentiment.
Complete details of all the possible combinations are present here along with table legend
⬜Chart Legend
C - Continuation
D - Divergence
H - Hidden Divergence
I - Indeterminate
⬜ Settings
▶ Zigzag parameters : These let you chose zigzag properties. If you check "Use confirmed pivots", then unconfirmed pivot will be ignored in the table and in the chart
▶ Oscillator parameters : Lets you select different oscillators and settings. Available oscillators involve
CCI - Commodity Channel Index
CMO - Chande Momentum Oscillator
COG - Center Of Gravity
DMI - Directional Movement Index (Only ADX is used here)
MACD - Moving average convergence divergence (Can chose either histogram or MACD line)
MFI - Money Flow Index
MOM - Momentum oscillator
ROC - Rate Of Change
RSI - Relative Strength Index
TSI - Total Strength Index
WPR - William Percent R
BB - Bollinger Percent B
KC - Keltner Channel Percent K
DC - Donchian Channel Percent D
ADC - Adoptive Donchian Channel Percent D ( Adoptive-Donchian-Channel )
▶ Trend bias : Supertrend is used for trend bias. Coloring option color candles in the direction of supertrend. More option for trend bias can be added in future.
▶ Stats : Enables you to display history in tabular format.
Overview of settings present here:
⬜ Notes
Trend detection is done only with respect to previous pivot in the same direction. Hence, if chart has too many zigzags in short period, try increasing the zigzag length or chart timeframe. Similarly, if there is a steep trend, use lower timeframe charts to dig further.
Oscillators does not always make pivots at same bar as price. Due to this some the divergence calculation may not be correct. Hence visual inspection is always recommended.
⬜ Possible future enhancements
More options for trend bias
Enhance divergence calculation. Possible options include using oscillator based zigzag as primary or using close prices based zigzag instead of high/low.
Multi level zigzag option - Can be messy to include more than one zigzag. Option can be added to chose either Level1 or Level2 zigzags.
Alerts - Alerts can only be added for confirmed pivots - otherwise it will generate too many unwanted alerts. Will think about it :)
If I get time, I will try to make a video.
Ichimoku Trend DirectionThis script will help you detect the current trend of market use Ichimoku trading system. We use the default parameters.
To reduce risk, ONLY trade follow the trend of high time frame!
Very simple to use:
- Green background when market Up trend
- Red background when market Down trend
Have a nice trade! :P
[blackcat] L2 Ehlers Early Onset TrendLevel: 2
Background
John F. Ehlers introuced Early Onset Trend Indicator in Aug, 2014.
Function
In “The Quotient Transform” in Aug, 2014, John Ehlers described an early trend detection method, the idea of the quotient transform, that was designed to reduce the lag often found in other trend indicators. I provided a script with pine v4 code here for the early-onset trend-detection indicator and also describes an approach for creating a strategy based on this indicator as an example.
The entry points displayed in blue on the price chart are defined by the top Onset Trend Detector upper quotient crossing above a threshold value e.g zero or 0.25/-0.25 here in this script. In the article, Ehlers suggested using a different K value for the exit, so the exit points are determined by the lower Onset Trend Detector quotient crossing below a threshold e.g. zero or -0.25/0.25 here in this script.
Key Signal
Quotient1 --> upper quotient in yellow which determines long entry
Quotient2 --> lower quotient in fuchsia which determines short entry
long ---> long entry signal
short ---> short entry signal
Pros and Cons
100% John F. Ehlers definition translation, even variable names are the same. This help readers who would like to use pine to read his book.
Remarks
The 82th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Motion Smoothness Index Introduction
Its holiday time for me, i have been working here a lot. But no leaving before publishing. Telling when market price is smooth or rough is not the easiest task, so today i present a trend metric indicator that allow you to give you this kind of information.
The Indicator
The indicator is in an approximate range of (0,1) with mean x̄ decaying for higher length's, when the indicator is below 0.5 the market is smooth, else rough, this is the simple interpretation. The indicator is simply the ratio of the price residual standard deviation and the price standard deviation.
Higher value of length will make the indicator less accurate when it comes to detect rough market price, you can still use the indicator direction or its running mean to give you insights but 0.5 is still the recommended detection threshold.
In More Depth
Even tho market is random by nature there can still be structures in the price (cycles and trends), the fractional BM model will tell you that market price is sometimes auto-correlated (trending) or non auto-correlated (ranging), knowing what is the current market state is therefore important, when price is rough it can means an excess in noise thus exhibiting an uncorrelated market at the contrary of a smoother price that can allow for auto-correlation.
Now, market is infected by noise, and thats really unfortunate but the noise posses various properties that can allow for all the structures we see in market price. So thinking about the market allowing for possible profits during auto-correlated states is encouraging.
Conclusion
Although the indicator measure smoothness/roughness it can still be interpreted as a trend/range state detector. I hope it provide to be useful.
I wish you all good holidays and see you next time ! Thanks for reading !