Trend continuation factor, by M.H. PeeTrend continuation factor, by M.H. Pee
The related article is copyrighted material from Stocks & Commodities.
Cari dalam skrip untuk "trend"
Trend Quality IndicatorDescription
This indicator is my interpretation in Pinescript of the "Trend-Quality Indicator" by David Sepiashvili.
The Trend Quality indicator (Q-indicator) is an attempt to estimate trend in relation to noise. It answers the long-standing question of whether a trend change qualifies as significant and promising, or insignificant and better ignored. In terms of noise, trend estimation not only determines whether the trend is reliable, but also allows you to measure its strength gradually. Thus, regardless of their prices, trends of various securities can easily be compared to each other or against any index.
The Trend Quality indicator (or Q-indicator) is a trend detection and estimation tool that is based on a two-step filtering technique. It measures cumulative price changes over term-oriented semi-cycles and relates them to “noise.” The approach reveals congestion and trending periods of the price movement and focuses on the most important trends, evaluating their strength in the process. The indicator is presented in a centered oscillator and banded oscillator format.
Calculation and Logic
To estimate the price dynamics, the cumulative price change (CPC) indicator is used, which measures the amount that the price has changed from a fixed starting point within a given semi-cycle. The CPC indicator is calculated as a cumulative sum of differences between the current and previous prices over the period from the fixed starting point t0. The trend within the given semi cycle can be found by calculating the moving average of the cumulative price change:
Trend = MA (CPC, m, t => t0)
Segmenting the price time series and constructing trends within the extracted semi-cycles offers the smallest average gap between actual and averaged data points. This results in a better fit of the real price dynamics.
Estimating Trend Performance
A basic criterion for estimating trend performance is the amount the trend changes over up or down semi-cycles. If there is little or no visible progress in the trend, it may be considered as nonefficient. Further, significant changes in trend may be considered as promising trading opportunities, but the term “significant” is relative and subject to interpretation.
The Q-indicator is calculated by dividing trend by noise with an appropriate correction factor.
The denominator of the Q-indicator — noise — can be defined as the average deviation of the cumulative price change from the trend. To determine linear noise, first we calculate
the absolute value of the difference between CPC and trend, and then smooth it over the n-point period:
Noise1 = MA(I CPC Trend I,n)
High positive values suggest strong uptrend, low negative values signify strong downtrend, and values fluctuating around the zero level indicate that trend and noise are in equilibrium, i.e., non-trending conditions might be present.
The root mean square noise, similar to the conventional standard deviation, can be derived by summing the squares of the difference between CPC and trend over each of the preceding n-point periods, dividing the sum by n, and calculating the square root of the result.
The Q-indicator is intended to measure trend activity. Some benchmarks can be used to determine the strength of a trend. In the range of Q-indicator values from -1 to +1, the trend is buried beneath noise. It is preferable to stay out of this zone. The greater the Q, the less the risk of trading exceeds this level (absolute value of Q>2), it can be qualified as promising.
Readings in the range from +2 to +5, or from -2 to -5, can indicate moderate trending, and readings above Q=+5 or below Q=-5 indicate strong trending. Strong upward trending often leads to the security’s overvaluing, and strong downward trending often results in the security’s undervaluing. Readings exceeding strong trending benchmarks can indicate overbought or oversold conditions and signal that price action should be monitored closely.
Input Parameters’ Description
Fast Length - the number of bars used in calculation of fast SMA of Trending Periods.
Slow Length - the number of bars used in calculation of slow SMA of Trending Periods.
Trend Length - the number of bars upon which the trend is defined.
Noise Type - defines mechanism of defining noise: linear or root mean square.
Noise Length - the number of bars upon which noise is determined.
Correction Factor - multiplier used in noise calculation.
Threshold Value - In the range of Q-indicator values from -1 to +1, the trend is buried beneath noise. It is preferable to stay out of this zone. The greater the threshold Value of Q-Indicator, the less the risk of trading exceeds this level, it can be qualified as promising. Readings in the range from +2 to +5, or from -2 to -5, can indicate moderate trending, and readings above Q=+5 or below Q=-5 indicate strong trending.
Plots
• Green = buying pressure
• Red = selling pressure
• Yellow = sideways
• ZeroLine = the zero level
In the provided script, multi-timeframe analysis is achieved using the request.security function, which retrieves data from a different timeframe than the one on which the script is running.
Explanation of Multi-Timeframe Logic in Multi-Timeframe selection
• This option retrieves the Trend Quality (TQ) from a higher timeframe if the current chart is intraday.
• The higher timeframe is specified in minutes by the user and converted to a Pine Script timeframe string.
• If the current chart is not intraday or no higher timeframe is specified, the TQ is taken from the current timeframe
Summary:
• Trend Quality Indicator measures established TREND,
• can be used on different timeframes,
• works well on different timeframes,
• the threshold of 2 to 5 should be appropriate for most instruments. It can be modified in chart settings to adapt to your strategy.
The Trend Quality Indicator doesn't predict the future. It is intended to help traders assess the strength of the current trend, giving them a better understanding of the market conditions to make more informed trading choices.
Further Reading
1. "Trend-Quality Indicator" by David Sepiashvili. Technical Analysis of Stocks & Commodities, April 2004.
Trend Strength Momentum Indicator (TSMI)Introducing the Trend Strength Momentum Indicator (TSMI)
With over two decades of experience, I've found that no single indicator can consistently predict market movements. The key lies in combining multiple indicators to capture different market dimensions—trend, momentum, and volume. With this in mind, I present the Trend Strength Momentum Indicator (TSMI), a comprehensive tool designed to spot emerging uptrends and downtrends in cryptocurrency and other asset markets.
1. Overview of TSMI
The TSMI amalgamates three critical market aspects:
Trend Direction and Strength: Utilizing Moving Averages (MA) and the Average Directional Index (ADX).
Momentum: Incorporating the Moving Average Convergence Divergence (MACD) and the Relative Strength Index (RSI).
Volume Confirmation: Employing the On-Balance Volume (OBV) indicator.
By combining these elements, TSMI aims to provide a robust signal that not only indicates the direction of the trend but also confirms its strength and sustainability through momentum and volume analysis.
2. Components and Calculations
A. Trend Component
Exponential Moving Averages (EMA):
50-day EMA: Captures the short to medium-term trend.
200-day EMA: Reflects the long-term trend.
Average Directional Index (ADX):
Measures the strength of the trend regardless of its direction.
A value above 25 indicates a strong trend, while below 20 suggests a weak or non-trending market.
B. Momentum Component
Moving Average Convergence Divergence (MACD):
Calculated by subtracting the 26-day EMA from the 12-day EMA.
The MACD line crossing above the signal line (9-day EMA of MACD) indicates bullish momentum; crossing below suggests bearish momentum.
Relative Strength Index (RSI):
Oscillates between 0 and 100.
Readings above 70 indicate overbought conditions; below 30 suggest oversold conditions.
C. Volume Component
On-Balance Volume (OBV):
Cumulatively adds volume on up days and subtracts volume on down days.
A rising OBV alongside rising prices confirms an uptrend; divergence may signal a reversal.
3. TSMI Calculation Steps
Step 1: Trend Analysis
EMA Crossover:
Identify if the 50-day EMA crosses above the 200-day EMA (Golden Cross), indicating a potential uptrend.
Conversely, if the 50-day EMA crosses below the 200-day EMA (Death Cross), it may signal a downtrend.
ADX Confirmation:
Confirm the strength of the trend. An ADX value above 25 supports the EMA crossover signal.
Step 2: Momentum Assessment
MACD Evaluation:
Look for MACD crossing above its signal line for bullish momentum or below for bearish momentum.
RSI Check:
Ensure RSI is not in overbought (>70) or oversold (<30) territory to avoid potential reversals against the trend.
Step 3: Volume Verification
OBV Direction:
Confirm that OBV is moving in the same direction as the price trend.
Rising OBV with rising prices strengthens the bullish signal; falling OBV with falling prices strengthens the bearish signal.
Step 4: Composite Signal Generation
Bullish Signal:
50-day EMA crosses above 200-day EMA (Golden Cross).
ADX above 25, indicating a strong trend.
MACD crosses above its signal line.
RSI is between 30 and 70, avoiding overbought conditions.
OBV is rising.
Bearish Signal:
50-day EMA crosses below 200-day EMA (Death Cross).
ADX above 25.
MACD crosses below its signal line.
RSI is between 30 and 70, avoiding oversold conditions.
OBV is falling.
4. How to Use the TSMI
A. Entry Points
Buying into an Uptrend:
Wait for the bullish signal criteria to align.
Enter the position after the 50-day EMA crosses above the 200-day EMA, supported by positive momentum (MACD and RSI) and volume (OBV).
Selling or Shorting into a Downtrend:
Look for the bearish signal criteria.
Initiate the position after the 50-day EMA crosses below the 200-day EMA, with confirming momentum and volume indicators.
B. Exit Strategies
Protecting Profits:
Monitor RSI for overbought or oversold conditions, which may indicate potential reversals.
Watch for MACD divergences or crossovers against your position.
Use trailing stops based on the ATR (Average True Range) to allow profits to run while protecting against sharp reversals.
C. Risk Management
Position Sizing:
Use the ADX value to adjust position sizes. A stronger trend (higher ADX) may justify a larger position, whereas a weaker trend suggests caution.
Avoiding False Signals:
Be cautious during sideways markets where EMAs may whipsaw.
Confirm signals with multiple indicators before acting.
5. Examples
Example 1: Spotting an Emerging Uptrend in Bitcoin
Date: Let's assume on March 1st.
Observations:
EMA Crossover: The 50-day EMA crosses above the 200-day EMA.
ADX: Reading is 28, indicating a strong trend.
MACD: Crosses above the signal line and moves into positive territory.
RSI: Reading is 55, comfortably away from overbought levels.
OBV: Shows a rising trend, confirming increasing buying pressure.
Action:
Enter a long position in Bitcoin.
Set a stop-loss below recent swing lows.
Outcome:
Over the next few weeks, Bitcoin's price continues to rise, validating the TSMI signal.
Example 2: Identifying a Downtrend in Ethereum
Date: Let's assume on July 15th.
Observations:
EMA Crossover: The 50-day EMA crosses below the 200-day EMA.
ADX: Reading is 30, confirming a strong trend.
MACD: Crosses below the signal line into negative territory.
RSI: Reading is 45, not yet oversold.
OBV: Declining, indicating selling pressure.
Action:
Initiate a short position or exit long positions in Ethereum.
Place a stop-loss above recent resistance levels.
Outcome:
Ethereum's price declines over the following weeks, confirming the downtrend.
6. When to Use the TSMI
Trending Markets: TSMI is most effective in markets exhibiting clear trends, whether bullish or bearish.
Avoiding Sideways Markets: In range-bound markets, EMAs and momentum indicators may provide false signals. ADX readings below 20 suggest it's best to stay on the sidelines.
Volatile Assets: Particularly useful in cryptocurrency markets, which are known for their volatility and extended trends.
7. Limitations and Considerations
Lagging Indicators: Moving averages and ADX are lagging by nature. Rapid reversals may not be immediately captured.
False Signals: No indicator is foolproof. Always confirm signals with multiple components of TSMI.
Market Conditions: External factors like news events can significantly impact prices. Consider combining TSMI with fundamental analysis.
8. Enhancing TSMI
Customization: Adjust EMA periods (e.g., 20-day and 100-day) based on the asset's volatility and your trading timeframe.
Additional Indicators: Incorporate Bollinger Bands to gauge volatility or Fibonacci retracement levels to identify potential support and resistance.
Conclusion
The Trend Strength Momentum Indicator (TSMI) offers a holistic approach to spotting emerging trends by combining trend direction, momentum, and volume. By synthesizing the strengths of various traditional indicators while mitigating their individual limitations, TSMI provides traders with a powerful tool to navigate the complex landscape of cryptocurrency and other asset markets.
Key Benefits of TSMI:
Comprehensive Analysis: Integrates multiple market dimensions for well-rounded insights.
Early Trend Identification: Aims to spot trends early for optimal entry points.
Risk Management: Helps in making informed decisions, thereby reducing exposure to false signals.
By applying TSMI diligently and complementing it with sound risk management practices, traders can enhance their ability to capitalize on market trends and improve their overall trading performance.
TrendMaster ProTrendMaster Equilibrium X
TrendMaster Equilibrium X is a composite of TrendMaster, MokuMaster and KishokuMaster in one indicator. It is designed to be a drop-in replacement of our flagship indicator, TrendMaster, allowing the user to examine all three indicators on a single chart. The purpose of TrendMaster Equilibrium X is to provide a sentiment filter when assessing possible Trendmaster entries. When all three indicators align, we have equilibrium and can feel confident to take the trade. The indicator is optimised for weekly, daily and 4-hour candlesticks and can be used for all trending markets. It is exclusively available to our Pro tier members.
MokuMaster
MokuMaster is based on Ichimoku and its colours are derived from Ichimoku's depiction of trend conditions. When examining charts for directional bias you can simply check the colour of MokuMaster.
Bright Green - Resolutely Bullish
Green - Bullish
Blue - Neutral
Pink - Bearish
Red - Resolutely Bearish
These categories represent the interactions between Price, the Tenkan-sen, the Kijun-sen, the Kumo and the Chikou Span. This can be overwhelming if you are not an accomplished Ichimoku trader. MokuMaster allows you to view these interactions without the difficulty of interpreting what they mean.
KishokuMaster
KishokuMaster is a very simple indicator designed to provide an immediate representation of the ‘mood’ of the market. It provides an optimal balance of lag and smoothing to help traders establish a Bullish or Bearish bias. The underlying logic is based on Alan Hull's weighting techniques. KishokuMaster generally gives an early warning of a trend reversal.
Confluence
When assessing a TrendMaster entry, you can use TrendMaster Equilibrium as a simple checklist as shown in the annotated chart below. By taking entries that satisfy all criteria, you increase your likelihood of a successful outcome.
How to get it?
If you would like to use TrendMaster Equilibrium or any of our other Indicators, please visit my site. Here you can purchase one of our packages which include indicators, market scanner bots and a large Discord community. You will also find educational content and how to guides for our indicators.
Our Story
Founded in 2018 by IchimokuScholar and C00kie, TrendMaster is a team that produces technical analysis indicators with an emphasis on simplicity and noise reduction. We support a large community with educational content, automated market scanners and mentoring in our private chat rooms. We produce technical analysis indicators geared primarily towards the emerging Cryptocurrency asset class. We provide educational material to assist trader development and host a large online trend following community. All of our products are designed to help traders distinguish relevant information from background noise. Our indicators encourage disciplined trade management to maximise the opportunity captured while minimising losses.
IchimokuScholar
IchimokuScholar – In 2017 I retired from a career in higher education to focus on Trading. I like to trade long term trends, focusing primarily on continuation setups. I am dedicated to sharing my knowledge of trading and take great pleasure in simplifying technical analysis for newer traders.
C00kie
I started trading crypto in 2017 and immediately started coding a bunch of tools to improve my quality of life. Some definitely worked out better than others. Like to trade the higher timeframes and drawing horizontal lines on charts. I am also pretty much obligated to like cookies. Indicators. Here you can purchase one of our packages which include indicators, market scanner bots and a large Discord community. You will also find educational content and how to guides for our indicators.
Trend and Trendline DetectorTrend and Trendline Detector
Overview
The Trend and Trendline Detector indicator provides both major and minor trend analysis using Simple Moving Averages (SMA) and automatically plots dynamic support and resistance trendlines based on pivot highs and lows.
Key Features
Major Trend Detection: Uses a configurable SMA to determine primary market direction.
Minor Trend Visualization: Optional minor SMA with color-coded line segments to mark smaller trend fluctuations.
Dynamic Pivot Trendlines: Automatically detects pivot highs/lows and draws major (solid) and minor (dashed) trendlines, with user-controlled extension modes.
Customizable Inputs: User can adjust SMA lengths, pivot look back/look forward periods, line extend mode, and toggle features on/off.
Trend Detection with AlertsPurpose of the Script
The script identifies trends on a chart (uptrend, downtrend, or sideways trend) and provides both visual cues and alerts when a trend changes. It uses two methods for trend detection:
Moving Averages (MA): It compares a short-term moving average (fast) with a long-term moving average (slow).
An uptrend occurs when the short-term MA is above the long-term MA.
A downtrend occurs when the short-term MA is below the long-term MA.
Price Action:
Higher highs (HH) indicate bullish momentum.
Lower lows (LL) indicate bearish momentum.
When these methods align, the script determines the trend and notifies the user of any trend changes.
Key Features
Moving Average Calculation:
A short-term moving average and a long-term moving average are calculated to determine the overall trend direction.
Trend Determination:
An uptrend is detected when the short-term MA is above the long-term MA and higher highs are present.
A downtrend is detected when the short-term MA is below the long-term MA and lower lows are present.
Otherwise, the trend is classified as sideways.
Alerts for Trend Changes:
Alerts are triggered when the trend changes from one state to another (e.g., sideways to uptrend).
Custom messages indicate the type of trend detected.
Background Colors:
The script changes the chart’s background color based on the current trend:
Green for uptrends.
Red for downtrends.
Gray for sideways trends.
Visualization of Moving Averages:
The moving averages are plotted on the chart for visual reference.
How It Works
Inputs for Flexibility:
The user can configure the lengths of the short-term and long-term moving averages.
A lookback period is used to determine higher highs or lower lows for additional confirmation.
Trend Logic:
The script checks the relationship between the moving averages to identify general trends.
It also evaluates price action to confirm trend strength (e.g., whether a higher high or lower low occurred).
Alert System:
When the detected trend changes (e.g., from sideways to uptrend), an alert is triggered. This ensures the user is notified of important market movements.
Dynamic Background Coloring:
The background color of the chart changes to reflect the current trend, making it easy to interpret the trend visually.
Use Cases
Trend Identification: Helps traders quickly identify market trends for decision-making.
Alerts for Trend Changes: Notifies traders when a new trend begins, ensuring they don’t miss key opportunities.
Visual Assistance: Makes it easier to interpret trends through color-coded backgrounds and moving average overlays.
Customization Options
Adjust Moving Average Lengths: Users can modify the short-term and long-term moving averages to suit their trading strategies.
Change Lookback Period: The sensitivity of higher highs and lower lows can be adjusted.
Personalized Alerts: Alerts can be customized for different trading scenarios.
Summary
This script provides an intuitive way to detect and visualize market trends while offering real-time alerts for trend changes. It’s an excellent tool for traders who want to stay informed about market conditions and make data-driven decisions.
Trends and Peaks [AgJ]Trends and Peaks
The Trends and Peaks indicator is designed to identify and visualize trends and key peaks in the price series. It provides three main functions:
Trends
The indicator detects the formation of trends in the price series and marks uptrend periods in green on the chart. This helps identify where the market is trending in a particular direction.
Peaks
The indicator uses a combination of custom and standard indicators to identify significant peaks in the price action. It classifies these peaks into two categories:
Parabolic Stages : Where the price exhibits accelerated, parabolic growth or decline.
Localized Stages : Where smaller, local peaks occur within a broader trend.
Slowing Trend
In parabolic stages, local peaks can serve as a signal of a slowing trend . As the price begins to plateau, the indicator helps identify areas where the trend might be losing momentum.
NOTE : The default settings are calibrated for BTC. If you're using the indicator on other assets, you may need to adjust the parameters for optimal performance.
Configuration notes
Peaks Settings
Cutoff Limits : Adjusts the width of the area where peaks are detected, allowing you to narrow or widen the peak detection range.
Peak Limits : Offers finer control over the peak detection formula, enabling more precise calibration of what is considered a "peak."
Trends Settings
Algo Parameters : Adjust the algorithm settings to fine-tune trend detection based on your preferences.
Trendmaster - Crypto Miner Confidence MetricWhat it is:
The Crypto Miner Confidence Metric analyses a handful of highly utilized Crypto networks to gain insight into the potential sentiment amongst those securing them and more specifically Crypto miners.
What it does:
It takes into account the overall trend in the increase or decrease of current computational power securing the networks, otherwise known as the hashrate - as well as the overall network inflows/outflows and holdings of those miners.
How to use it:
Using this data we can conclude whether their stance is currently Bullish or Bearish, with a value of 100 indicating an extremely positive future outlook from miners and a value of 0 representing a severe lack of confidence. Changes or pivots in the direction of miner confidence can indicate a shift in their Bullish or Bearish stance.
Trendmaster - Collated Funding RatesCollated Funding Rates is a Crypto Specific Indicator that pulls Exchange Funding Rate Data from several exchanges for both Bitcoin and Ethereum.
By combining both the Funding Data for Bitcoin and Ethereum across several exchanges, a Trader can see the Collated Funding Rates from several Crypto Exchanges.
What are Funding Rates?
Funding rates are periodic payments either to traders that are long or short based on the difference between perpetual contract markets and spot prices.
Therefore, depending on open positions, traders will either pay or receive funding. Crypto funding rates prevent lasting divergence in the price of both markets
These Funding Rates also incentivize Liquidity Providers to take certain positions whether Long or Short based on the Funding Rate.
What are Liquidity Providers?
A Liquidity Provider, also known as a Market Maker, is someone who provides their crypto assets to a platform to help with the decentralization of trading.
In return, they are rewarded with fees generated by trades on that platform, which can be thought of as a form of passive income.
H ow to use Collated Funding Rates:
When the Funding Rate is positive, the price of the perpetual contract is usually higher than the market price.
Thus, traders who are long pay for short positions. Conversely, a negative Funding Rate means that short positions pay for longs.
As the funding rate increases from negative to positive Traders and Liquidity Providers are incentivized to take short positions.
This can be seen on the indicator as it moves from down to up and changes from red to green.
As the funding rate decreases from positive to negative Traders and Liquidity Providers are incentivized to take long positions.
This can be seen on the indicator as it moves from up to down and changes from green to red.
Funding Rates are used by Exchanges to manipulate the price.
Because of this fact, Collated Funding Rates can show trend changes based on when a specific up or down move in Price is incentivized by Exchange Funding Rates.
Trendline with bands .
Introduction
A trendline indicator that plots bands around a set trendline is a technical analysis tool used in financial markets to identify potential support and resistance levels. This indicator typically consists of a central trendline, which represents the general direction of the market (uptrend, downtrend, or sideways), and two bands plotted above and below this trendline. These bands are usually set at a fixed percentage or standard deviation from the trendline, creating a channel within which the price is expected to move
The bands help traders visualize the volatility of the asset and identify overbought or oversold conditions. When the price touches or moves outside the upper band, it may indicate that the asset is overbought and could be due for a correction. Conversely, when the price touches or moves outside the lower band, it may suggest that the asset is oversold and could be poised for a rebound.
Institutions might use similar but more sophisticated methods to buy and sell in a trend.
Settings
To set up your trendline indicator, follow these steps:
Begin by selecting two points on the chart. These points will serve as your coordinates, representing both time and price.
Choose your price source, which will be used to calculate the trendline.
Finally, configure the z-scores for your bands to determine their distance from the central trendline.
Trend Lines [AstroHub]1. Understand the basics of technical analysis: to fully utilize this system, you need to understand the fundamentals of technical analysis, such as identifying high and low prices, trendlines, etc. This will help you effectively use indicators and make more informed trading decisions.
2. Study the internal parameters: the system has input parameters, such as "Period," etc. Study their values and understand how they impact the indicator's performance. This will allow you to customize the system to fit your needs and trading strategies.
3. Pay attention to bars of different colors: the system marks bars with different colors depending on the price's position relative to trendlines. Pay close attention to these color changes as they can serve as entry or exit signals.
4. Be ready to adapt: the market is constantly changing, and the system may not always provide accurate signals. Be prepared to adapt and make decisions based on other factors, such as trading volume, news, etc.
5. Practice on historical data: before using this system in real-time, conduct some tests on historical data. This will help you understand how the system works and what results it can produce in different market conditions.
6. Be patient: the system may not always provide instant entry or exit signals. Be patient and wait for signal confirmation before entering or closing a trade.
7. Learn and discuss: trading knowledge and the use of this system are continuous learning processes. Be open to learning new strategies and discussing your experiences with other traders. This will help you improve your skills and better utilize this system.
Supertrend - Ladder ATRThis is a supertrend with slight twisted concept which can be very benefecial in strong trending markets to reduce stop loss distance and exit slightly quicker.
⬜ Concept
▶ When the instrument is trending up, regular ATR shows high values if there are big green candles. This affect the stoploss distance in regular supertrend which leads to wide stops or delayed lagging. When you are in long trade, what matters for stoploss is how much a negative candle can move within bar. Hence, using ATR derived only based on red candles is more beneficial for trailing stops on long signals. Same applies to short trades where using ATR derived from only green candles is more efficient than overall ATR.
▶ ATR will be minimal when the volatility is less and ATR will increase with volatility. That means, once you are in trade, the trailing of stoploss also will vary based on ATR (or volatility). With regular ATR and supertrend, chances of stop loss distance widening is high with increased volatility even though stoploss levels will not move down. This again poses the risk of higher drawdown during trade closure and also keeps in the trade during ranging market. To avoid this, the second trick we are using here is only to reduce the atr stoploss difference when in trade. That is, when in long trade and negative candles ATR is increasing, we will not consider that. We will consider the new ATR only if it is lesser than previous bar ATR.
Effect of these changes on the trending market is quite visual. Lets take example of USDTRY
Settings are quite simple and does not vary much from regular supertrend settings.
Cumulative Pivot HighLowThis indicator counts number of higher highs/lows and number of lower highs/lows and calculates trend based on that.
Indicator line shows (sum of higher highs/lows - sum of lower highs/lows) derived from last loopback periods. Indicator is green if last two consecutive highs/lows formed are on higher side. Red if on lower side. (Consecutive numbers can be controlled by parameter direction_threshold )
combineHighsAndLows if unselected shows not cumulative version but last consecutive highs and lows marked in red or green according to the trend.
TRENDSPOTTERHi Guys,
So TrendSpotter uses multiple indicators to catch trend moves as they happen. All you have to do it follow the entries when 2 green or red arrows appear, you enter the move.
Basically it has a few rules.
1.I trade the 1 min time-frame
2.The background turns Red ( Short ) or Green ( Long ) when the stock is going that direction.
3. Wait until the Psar is under for Long and over for Short.
4. Wait until the second Green for Long or Red for Short Arrow to appear. You are getting in on the end of the first one.
Here's my profile on Tradingview.com with all the explanations of how to use it. It can be used for FOREX and CRYPTO also.
www.tradingview.com
Check out my videos to see it's not that complicated.
If you have any questions please contact me.
Thanks,
Enda
Trendlines - JD This script draws trendlines from the pivot points in the price chart.
The input for the function that draws the trendlines is any calculation or function (eg. pivot points),
that most of the time and occasionally produces a 'non n/a' value.
The trendline function then connects the non n/a values and axtends the connections of those points in a trendline.
There is an option to draw the lines from the wicks or from the 'real bodies' of the candles.
The trendlines can either extend infinitely or only run for an adjustable amount of bars.
JD.
Trend Angle Indicator [Iridio Capital]Overview
The Trend Angle Indicator provides a clear and intuitive way to visualize market trends by calculating the inclination (in degrees) of a linear regression line over a set number of bars. Instead of relying on traditional trend indicators that can be difficult to interpret, this tool offers a straightforward angular representation of price movement, making it easy to gauge the strength and direction of a trend at a glance.
How It Works
Linear regression is a statistical method used to model the relationship between variables—in this case, price movement over time. It finds the best-fit line that minimizes deviations from actual price values, allowing us to determine the trend's slope. By converting this slope into degrees, the indicator provides a natural and intuitive way to assess market conditions :
0° → Sideways market (no clear trend)
+25° to +360° → Uptrend (higher inclination means stronger trend)
-25° to -360° → Downtrend (steeper negative angles indicate a stronger decline)
Key Features & Strengths
✅ Intuitive Trend Visualization – Instead of arbitrary values, the indicator expresses the trend in degrees, making it easy to understand how steep the market is moving.
✅ Identifies Consolidation & Strong Trends – The indicator highlights periods of market consolidation (when the angle stays between the green and red horizontal lines) and strong bullish or bearish trends when breaking above or below these thresholds.
✅ Color Highlighting for Trend Strength – Areas above +25° (strong uptrend) and below -25° (strong downtrend) are shaded, allowing for instant recognition of strong moves.
✅ Works on Any Timeframe & Asset – Whether trading stocks, forex, crypto, or futures, this tool helps detect meaningful trends across different markets.
How to Use It
Look at the trend angle line:
If it stays between +25° and -25° , the market is consolidating.
If it breaks above +25° , an uptrend is strengthening.
If it drops below -25° , a strong downtrend is forming.
Use the highlighted regions to confirm strong market momentum .
Combine it with other indicators (e.g., volume, moving averages) for additional confirmation.
Trend Structure Shift By BCB ElevateTrend Structure Shift by BCB Elevate
This indicator helps traders identify trend structure shifts by detecting Higher Highs (HH) and Lower Lows (LL) to determine bullish, bearish, or neutral market conditions. It provides real-time trend classification to help traders align with market direction.
How It Works:
📌 Bullish Trend: A new Higher High (HH) is detected, signaling potential uptrend continuation.
📌 Bearish Trend: A new Lower Low (LL) is detected, indicating potential downtrend continuation.
📌 Neutral: No significant trend shift is detected.
Key Features:
✅ Dynamic Trend Detection – Identifies key trend structure shifts using swing highs and lows.
✅ Customizable Settings – Adjust the swing length to fine-tune trend detection.
✅ Trend Table Display – Shows current trend as Bullish, Bearish, or Neutral in a convenient on-chart table.
✅ Table Position Selection – Choose where the trend table appears on the chart (Top/Bottom Left or Right).
✅ Works on All Markets & Timeframes – Use it for Crypto, Forex, Stocks, Commodities, and Indices.
How to Use:
1️⃣ Apply the indicator to your chart.
2️⃣ Observe the Trend Table to determine the market condition.
3️⃣ Use it with support/resistance, moving averages, or other indicators for better trade decisions.
Trend Signals with TP & SL [UAlgo]The "Trend Signals with TP & SL " indicator is a versatile tool designed to assist traders in identifying potential trend continuation opportunities within financial markets Utilizing a combination of technical indicators and user-defined parameters, this indicator aims to provide clear and actionable signals to aid traders in making informed trading decisions.
🔶 Features:
Trend Continuation Signals : The indicator generates signals to identify potential trend continuation points based on the input parameters such as sensitivity, ATR length, and cloud moving average length.
Take-Profit and Stop-Loss Levels: It calculates and plots three levels of take-profit (1R, 2R, 3R) and stop-loss levels based on the entry price of the trade.
Short Position Example:
Long Position Example:
Visualization: The script visualizes the trend signals, entry points, take-profit levels, and stop-loss levels on the price chart, making it easier for traders to interpret the signals.
Alert System: The indicator includes an alert system that notifies the user when there is a change in trend direction or when a buy/sell signal is generated. The alerts provide essential information such as entry price, take-profit levels, and stop-loss levels.
🔶 Calculations :
Trend Calculation: Trend signals are determined based on the comparison between the current closing price and the upper and lower bounds calculated using the Average True Range (ATR) multiplied by a sensitivity factor. A trend is considered bullish if the closing price is above the upper bound and bearish if it's below the lower bound.
Entry, Stop Loss, and Take Profit Calculation: Entry points for long and short positions are identified when there's a change in trend direction.
Stop-loss levels are calculated as a percentage of the entry price, where users can define the percentage based on their risk tolerance.
Take-profit levels are calculated as multiples of the stop-loss level (1R, 2R, 3R).
Cloud Moving Averages: Simple moving averages (SMAs) are calculated for high and low prices over a specified period to create a "cloud" visualization on the chart.
MACD Clouds: Moving Average Convergence Divergence (MACD) indicator is used to determine the market's momentum and trend direction. Positive and negative clouds are plotted based on the MACD line and its signal line, indicating potential bullish or bearish trends.
Signal Generation: Buy and sell signals are generated based on specific conditions such as RSI, CMO (Chande Momentum Oscillator), and pivot points.
Signals are triggered when certain criteria are met, indicating potential opportunities for entering or exiting trades.
🔶 Disclaimer:
Use at Your Own Risk: Trading involves significant risk, and this script is provided for educational and informational purposes only. It does not guarantee profitable trades, and users should exercise caution and perform their own analysis before making trading decisions.
Parameter Sensitivity: The effectiveness of the indicator may vary depending on the chosen parameters, market conditions, and timeframe. Users are encouraged to backtest the script thoroughly and adjust the parameters according to their trading preferences.
Not Financial Advice: The information provided by this script should not be considered as financial advice. Users are solely responsible for their trading decisions and should consult with a qualified financial advisor if needed.
Backtesting and Validation: Before implementing this indicator in live trading, users are strongly encouraged to conduct rigorous backtesting and validation to assess its performance under various market conditions. Past performance is not indicative of future results, and users should carefully evaluate the effectiveness of the indicator based on their individual trading preferences and risk tolerance.
Trend Bar Dow Theory V-1.0The indicator is designed to signal the presence of a trend bar with reduced profit-taking the following day. Below, I explain the logic that I have defined for this first version.
The guidelines I provided are as follows: We identify a trend bar, if it sets a market change, between opening and closing, equal to or greater than 50 pips . This first guideline is used to find a day with good liquidity , which usually leads to a trend bar.
If the first guideline is met, the indicator should change the bar color to white . This way, we can proceed to the second guideline, to detect the presence of reduced profit-taking.
The second guideline should indicate the presence of reduced profit-taking, as explained by Dow Theory, to find a trend context with potential to exploit. Therefore, the second guideline involves coloring the bars near the trend bars in grey, if they have a range equal to or less than 30 pips.
Dow Theory states that a market in trend measures reduced profit-taking, within 33%, up to a maximum of 50% compared to the previous trend bar, but I have not yet been able to make Pine Script calculate the percentage value. If you have any suggestions, I would be grateful.
Trend Volume Indicator by [VanHelsing]Trend Volume and Momentum based indicator
How it works:
The principle of the volume zone oscillator was used here,
but instead of closes > closes (price momentum) was used RSI,
if RSI > 50 it is a positive momentum and we get + volume value, otherwise - volume
Instead of ema's here is a Volume-Weighted Average Price (VWAP) which gives us such shape of TVI line that in general less sensitive to the pullbacks inside a trend.
This indicator is good for catching and following trends.
You can use alerts as well for take values of trend (-1,1) from 1-10D timeframes
Here how to read it
TrendsThe Trends indicator is created for trend trading and (Bitsgap) crypto bots of crypto assets over longer time periods.
Works best for 4h, Daily and Weekly candles (even Monthly), but unsuitable for hourly candles and day trading.
This indicator shows you if a crypto pair is in a Bear, Bull or Sideways market.
The idea is to simplify decision making when to sell or buy, or what pairs to use with trading bots.
Stick to the rule of not having bots in a Bear trend!
- Blue = Bull trend
- Red = Bear trend
- Green = Sideways trend - which can be profitable with trading bots
Divergence-Support/ResistenceAnother script based on zigzag, divergence, and to yield support and resistence levels.
This idea started with below two concepts:
▶ Support and resistence are simply levels where price has rejected to go further down or up. Usually, we can derive this based on pivots. But, if we start looking at every pivot, there will be many of them and may be confusing to understand which one to consider.
▶ Lot of people asked about one of my previous script on divergence detector on how to use it. I believe divergence should be considered as area of support and resistence because, they only amount to temporary weakness in momentum and nothing more. As per my understanding
Trend > Hidden Divergence > Divergence > Oscillator Levels of Overbought and Oversold
⬜ Process
▶ Now combining the above two concepts - what we are trying to do here is draw support resistence lines only on pivots which has observed either divergence or hidden divergence. Continuation and indecision pivots are ignored.
▶ Input requires only few parameters.
Zigzag lengths and oscillator to be used. Oscillator periods are automatically calculated based on zigzag length. Hence no other information required. You can also chose custom oscillator via external source.
▶ Display include horizontal lines of support/resistence which are drawn from the candle from where divergence or hidden divergence is detected.
▶ Support resistence lines are colored based on divergence. Green shades for bullish divergence and bullish hidden divergence whereas red shades for bearish divervence and bearish hidden divergence. Please note, red and green lines does not mean they only provide resistence or support. Any lines which are below the price should be treated as support and any line which are above the price should be treated as resistence.
▶ Divergence symbols are also printed on the bar from where divergence/hidden divergence is detected.
↗ - Bullish Hidden Divergence
↘ - Bearish Hidden Divergence
⤴ - Bullish Divergence
⤵ - Bearish Divergence
▶ Script also demonstrates usage of libraries effectively. I have used following libraries in this code.
import HeWhoMustNotBeNamed/ zigzag /2 as zg
import HeWhoMustNotBeNamed/enhanced_ta/8 as eta
import HeWhoMustNotBeNamed/ supertrend /4 as st
Can be good combination to use it with harmonic patterns.
Zigzag CandlesCan't deny that I am obsessed with zigzags. Been doing some crazy experiments with it and have many more in pipeline. I believe zigzag can be used to derive better trend following methods. Here is an attempt to visualize zigzag as candlesticks. Next steps probably to derive moving average, atr (although there was an attempt of AZR made earlier) and probably supertrend too ;)
Input parameters include ZigzagLength (to calculate zigzag) and CandleSize (number of zigzag pivots in each candle)
CandleSize can be 3 or more. Every time we collect pivots which are equal to CandleSize, we derive one candle. And when we derive a candle, we remove all old pivots except the last one. Becauase, the last pivot acts as open to the next bar and is required.
Body of the candle tells the start and end zigzag pivot in the range. And Wicks signify highest and lowest pivots in the range. High and Low wicks are placed at the pivot where high and lows are formed. Hence, you can see them at different positions each time.
Thanks to @RicardoSantos for suggesting boxes for candles - while I was trying to achieve this with plotbar