Linear Regression Intensity [AlgoAlpha]Introducing the Linear Regression Intensity indicator by AlgoAlpha, a sophisticated tool designed to measure and visualize the strength of market trends using linear regression analysis. This indicator not only identifies bullish and bearish trends with precision but also quantifies their intensity, providing traders with deeper insights into market dynamics. Whether you’re a novice trader seeking clearer trend signals or an experienced analyst looking for nuanced trend strength indicators, Linear Regression Intensity offers the clarity and detail you need to make informed trading decisions.
Key Features:
📊 Comprehensive Trend Analysis: Utilizes linear regression over customizable periods to assess and quantify trend strength.
🎨 Customizable Appearance: Choose your preferred colors for bullish and bearish trends to align with your trading style.
🔧 Flexible Parameters: Adjust the lookback period, range tolerance, and regression length to tailor the indicator to your specific strategy.
📉 Dynamic Bar Coloring: Instantly visualize trend states with color-coded bars—green for bullish, red for bearish, and gray for neutral.
🏷️ Intensity Labels: Displays dynamic labels that represent the intensity of the current trend, helping you gauge market momentum at a glance.
🔔 Alert Conditions: Set up alerts for strong bullish or bearish trends and trend neutrality to stay ahead of market movements without constant monitoring.
Quick Guide to Using Linear Regression Intensity:
🛠 Add the Indicator: Simply add Linear Regression Intensity to your TradingView chart from your favorites. Customize the settings such as lookback period, range tolerance, and regression length to fit your trading approach.
📈 Market Analysis: Observe the color-coded bars to quickly identify the current trend state. Use the intensity labels to understand the strength behind each trend, allowing for more strategic entry and exit points.
🔔 Set Up Alerts: Enable alerts for when strong bullish or bearish trends are detected or when the trend reaches a neutral zone. This ensures you never miss critical market movements, even when you’re away from the chart.
How It Works:
The Linear Regression Intensity indicator leverages linear regression to calculate the underlying trend of a selected price source over a specified length. By analyzing the consistency of the regression values within a defined lookback period, it determines the trend’s intensity based on a percentage tolerance. The indicator aggregates pairwise comparisons of regression values to assess whether the trend is predominantly upward or downward, assigning a state of bullish, bearish, or neutral accordingly. This state is then visually represented through dynamic bar colors and intensity labels, offering a clear and immediate understanding of market conditions. Additionally, the inclusion of Average True Range (ATR) ensures that the intensity visualization accounts for market volatility, providing a more robust and reliable trend assessment. With customizable settings and alert conditions, Linear Regression Intensity empowers traders to fine-tune their strategies and respond swiftly to evolving market trends.
Elevate your trading strategy with Linear Regression Intensity and gain unparalleled insights into market trends! 🌟📊
Trendstrength
Triple Smoothed Signals [AlgoAlpha]Introducing the Triple Smoothed Signals indicator by AlgoAlpha, a powerful tool designed to help traders identify trend direction and market momentum with greater accuracy. By applying triple smoothing techniques to your chosen data source, this indicator filters out market noise, allowing you to focus on significant price movements. Perfect for traders looking to enhance their technical analysis and gain an edge in the markets.
Key Features
🎨 Customizable Moving Averages : Choose between EMA, SMA, RMA, or WMA for both the triple smoothing and the signal line to tailor the indicator to your trading style.
🛠 Adjustable Smoothing Lengths : Configure the main smoothing length and signal length to fit different timeframes and market conditions.
🌈 Dynamic Color Fills : Visual gradients and fills highlight trend strength and direction, making chart analysis more intuitive.
🔔 Alerts : Set alerts for bullish and bearish crossover signals to stay ahead of market moves without constant chart monitoring.
📈 Clear Signal Visualization : Bullish and bearish signals are plotted directly on your chart for easy interpretation and timely decision-making.
Quick Guide to Using the Triple Smoothed Signals Indicator
🛠 Add the Indicator : Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites. Customize the settings such as the main smoothing length, signal length, data source, and moving average types to match your trading strategy.
📊 Market Analysis : Monitor the crossovers between the triple smoothed moving average and the signal line. A bullish signal is generated when the signal line crosses under the triple smoothed MA, indicating a potential upward trend. Conversely, a bearish signal occurs when the signal line crosses over the triple smoothed MA, suggesting a possible downward trend.
🔔 Alerts : Enable notifications for reversal signals and trend shifts to stay informed about market movements without constantly monitoring the chart.
How It Works
The Triple Smoothed Signals indicator enhances trend detection by applying a triple smoothing process to your selected data source using the moving average type of your choice (EMA, SMA, RMA, or WMA). This triple smoothed moving average (v1) effectively reduces short-term fluctuations and noise, revealing the underlying market trend. A signal line (v2) is then calculated by smoothing the triple smoothed MA with a separate moving average, further refining the signal. The indicator calculates the normalized distance between the triple smoothed MA and the signal line over a specified period, which is used to create dynamic color gradients and fills on the chart. These visual elements provide immediate insight into trend strength and direction. Bullish and bearish signals are generated based on the crossovers between the signal line and the triple smoothed MA, and are plotted directly on the chart along with customizable alerts to assist traders in making timely decisions.
Volatility Gaussian Bands [BigBeluga]The Volatility Gaussian Bands indicator is a cutting-edge tool designed to analyze market trends and volatility with high precision. By applying a Gaussian filter to smooth price data and implementing dynamic bands based on market volatility, this indicator provides clear signals for trend direction, strength, and potential reversals. With updated volatility calculations, it enhances the accuracy of trend detection, making it a powerful addition to any trader's toolkit.
⮁ KEY FEATURES & USAGE
● Gaussian Filter Trend Bands:
The Gaussian Filter forms the foundation of this indicator by smoothing price data to reveal the underlying trend. The trend is visualized through upper and lower bands that adjust dynamically based on market volatility. These bands provide clear visual cues for traders: a crossover above the upper band indicates a potential uptrend, while a cross below the lower band signals a potential downtrend. This feature allows traders to identify trends with greater accuracy and act accordingly.
● Dynamic Trend Strength Gauges:
The indicator includes trend strength gauges positioned at the top and bottom of the chart. These gauges dynamically measure the strength of the uptrend and downtrend, based on the middle Gaussian line. Even if the trend is downward, a rising midline will cause the upward trend strength gauge to show an increase, offering a nuanced view of the market’s momentum.
Weakening of the trend:
● Fast Trend Change Indicators:
Triangles with a "+" symbol appear on the chart to signal rapid changes in trend direction. These indicators are particularly useful when the trend changes swiftly while the midline continues to grow in its previous direction. For instance, during a downtrend, if the trend suddenly shifts upward while the midline is still declining, a triangle with a "+" will indicate this quick reversal. This feature is crucial for traders looking to capitalize on rapid market movements.
● Retest Signals:
Retest signals, displayed as triangles, highlight potential areas where the price may retest the Gaussian line during a trend. These signals provide an additional layer of analysis, helping traders confirm trend continuations or identify possible reversals. The retest signals can be customized based on the trader’s preferences.
⮁ CUSTOMIZATION
● Length Adjustment:
The length of the Gaussian filter can be customized to control the sensitivity of trend detection. Shorter lengths make the indicator more responsive, while longer lengths offer a smoother, more stable trend line.
● Volatility Calculation Mode:
Traders can select from different modes (AVG, MEDIAN, MODE) to calculate the Gaussian filter, allowing for flexibility in how trends are detected and analyzed.
● Retest Signals Toggle:
Enable or disable the retest signals based on your trading strategy. This toggle allows traders to choose whether they want these additional signals to appear on the chart, providing more control over the information displayed during their analysis.
⮁ CONCLUSION
The Volatility Gaussian Bands indicator is a versatile and powerful tool for traders focused on trend and volatility analysis. By combining Gaussian-filtered trend lines with dynamic volatility bands, trend strength gauges, and rapid trend change indicators, this tool provides a comprehensive view of market conditions. Whether you are following established trends or looking to catch early reversals, the Volatility Gaussian Bands offers the precision and adaptability needed to enhance your trading strategy.
Half Trend HeikinAshi [BigBeluga]This indicator is a cool combo of the half-trend methodology and Heikin Ashi candles. The main idea is to help spot where the market is trending and where it might be reversing by using a mix of moving averages and the highest and lowest price data values. What’s nice is that it doesn’t just give you trend lines but also converts them into Heikin Ashi candles, so you can visually gauge the strength of a trend based on candle sizes.
NIFTY50:
NVIDIA:
🔵 IDEA
The thinking behind this Half Trend HeikinAshi indicator is pretty straightforward: it’s designed to give you a flexible way to detect trends and trend reversals, but with an added bonus—measuring trend strength via Heikin Ashi candles. The core idea is based on the classic half-trend strategy, where it adjusts to the highest and lowest price values within a certain period. The Heikin Ashi transformation smooths out half-trend line, making it easier to spot solid trends and potential reversals.
🔵 KEY FEATURES & USAGE
◉ Half Trend Calculation with Reversal Signals:
The main feature here is spotting trends based on a moving average of the close price and the highest/lowest price data.
//#region ———————————————————— Calculations
// Calculate moving average of close prices
series float closeMA = ta.sma(close, amplitude)
// Calculate highest high and lowest low
series float highestHigh = ta.highest(amplitude)
series float lowestLow = ta.lowest(amplitude)
// Initialize hl_t on the first bar
if barstate.isfirst
hl_t := close
// Update hl_t based on conditions
switch
closeMA < hl_t and highestHigh < hl_t => hl_t := highestHigh
closeMA > hl_t and lowestLow > hl_t => hl_t := lowestLow
=> hl_t := hl_t
When the trend flips, you’ll see arrows on your chart—either pointing up or down—marking the exact price where that reversal occurred. This makes it easy to see where the market might turn, which is helpful for timing entries and exits.
◉ Heikin Ashi Candlestick Transformation:
There’s a Heikin Ashi mode that transforms the half-trend line into Heikin Ashi candles.
These smooth out market noise and make the overall trend much clearer.
◉ Trend Strength Calculation:
The indicator doesn’t just stop at showing trends. It also calculates trend strength based on the size of the Heikin Ashi candles. Bigger candles mean stronger trends, and smaller ones indicate weaker momentum. You can see this displayed on the dashboard, so you know exactly how strong the current trend is at any moment.
◉ Graphical Dashboard Display:
You’ve got a small dashboard right on the chart that shows key info like the ticker, timeframe, and whether the trend is up or down. If you’re in Heikin Ashi mode, it shows trend strength instead. So, no need to dig through the data—you can just glance at the dashboard for a quick market read.
🔵 CUSTOMIZATION
Amplitude Input: You can tweak the amplitude to control how sensitive the half-trend line is. A lower setting makes it more reactive to small price moves, while a higher setting smooths it out for longer-term trends.
Heikin Ashi Toggle: You can easily switch between standard half-trend lines and Heikin Ashi candle mode, depending on how you prefer to see the market.
Trend Colors: You’ve got control over the colors for up and down trends, so you can adjust the appearance to fit your charting style.
Signal Labels size: Change Labels signal sizes for your preference
🔵 CONCLUSION
The Half Trend HeikinAshi indicator is a solid tool for tracking trends and measuring their strength. By combining the usual half-trend signals with Heikin Ashi candles, you get a clearer picture of what’s happening in the market. Whether you're looking to spot potential reversals or just want to measure the strength of a current trend, this indicator gives you plenty of flexibility to do both.
Curved Price Channels (Zeiierman)█ Overview
The Curved Price Channels (Zeiierman) is designed to plot dynamic channels around price movements, much like the traditional Donchian Channels, but with a key difference: the channels are curved instead of straight. This curvature allows the channels to adapt more fluidly to price action, providing a smoother representation of the highest high and lowest low levels.
Just like Donchian Channels, the Curved Price Channels help identify potential breakout points and areas of trend reversal. However, the curvature offers a more refined approach to visualizing price boundaries, making it potentially more effective in capturing price trends and reversals in markets that exhibit significant volatility or price swings.
The included trend strength calculation further enhances the indicator by offering insight into the strength of the current trend.
█ How It Works
The Curved Price Channels are calculated based on the asset's average true range (ATR), scaled by the chosen length and multiplier settings. This adaptive size allows the channels to expand and contract based on recent market volatility. The central trendline is calculated as the average of the upper and lower curved bands, providing a smoothed representation of the overall price trend.
Key Calculations:
Adaptive Size: The ATR is used to dynamically adjust the width of the channels, making them responsive to changes in market volatility.
Upper and Lower Bands: The upper band is calculated by taking the maximum close value and adjusting it downward by a factor proportional to the ATR and the multiplier. Similarly, the lower band is calculated by adjusting the minimum close value upward.
Trendline: The trendline is the average of the upper and lower bands, representing the central tendency of the price action.
Trend Strength
The Trend Strength feature in the Curved Price Channels is a powerful feature designed to help traders gauge the strength of the current trend. It calculates the strength of a trend by analyzing the relationship between the price's position within the curved channels and the overall range of the channels themselves.
Range Calculation:
The indicator first determines the distance between the upper and lower curved channels, known as the range. This range represents the overall volatility of the price within the given period.
Range = Upper Band - Lower Band
Relative Position:
The next step involves calculating the relative position of the closing price within this range. This value indicates where the current price sits in relation to the overall range.
RelativePosition = (Close - Trendline) / Range
Normalization:
To assess the trend strength over time, the current range is normalized against the maximum and minimum ranges observed over a specified look-back period.
NormalizedRange = (Range - Min Range) / (Max Range - Min Range)
Trend Strength Calculation:
The final Trend Strength is calculated by multiplying the relative position by the normalized range and then scaling it to a percentage.
TrendStrength = Relative Position * Normalized Range * 100
This approach ensures that the Trend Strength not only reflects the direction of the trend but also its intensity, providing a more comprehensive view of market conditions.
█ Comparison with Donchian Channels
Curved Price Channels offer several advantages over Donchian Channels, particularly in their ability to adapt to changing market conditions.
⚪ Adaptability vs. Fixed Structure
Donchian Channels: Use a fixed period to plot straight lines based on the highest high and lowest low. This can be limiting because the channels do not adjust to volatility; they remain the same width regardless of how much or how little the price is moving.
Curved Price Channels: Adapt dynamically to market conditions using the Average True Range (ATR) as a measure of volatility. The channels expand and contract based on recent price movements, providing a more accurate reflection of the market's current state. This adaptability allows traders to capture both large trends and smaller fluctuations more effectively.
⚪ Sensitivity to Market Movements
Donchian Channels: Are less sensitive to recent price action because they rely on a fixed look-back period. This can result in late signals during fast-moving markets, as the channels may not adjust quickly enough to capture new trends.
Curved Price Channels: Respond more quickly to changes in market volatility, making them more sensitive to recent price action. The multiplier setting further allows traders to adjust the channel's sensitivity, making it possible to capture smaller price movements during periods of low volatility or filter out noise during high volatility.
⚪ Enhanced Trend Strength Analysis
Donchian Channels: Do not provide direct insight into the strength of a trend. Traders must rely on additional indicators or their judgment to gauge whether a trend is strong or weak.
Curved Price Channels: Includes a built-in trend strength calculation that takes into account the distance between the upper and lower channels relative to the trendline. A broader range between the channels typically indicates a stronger trend, while a narrower range suggests a weaker trend. This feature helps traders not only identify the direction of the trend but also assess its potential longevity and strength.
⚪ Dynamic Support and Resistance
Donchian Channels: Offer static support and resistance levels that may not accurately reflect changing market dynamics. These levels can quickly become outdated in volatile markets.
Curved Price Channels: Offer dynamic support and resistance levels that adjust in real-time, providing more relevant and actionable trading signals. As the channels curve to reflect price movements, they can help identify areas where the price is likely to encounter support or resistance, making them more useful in volatile or trending markets.
█ How to Use
Traders can use the Curved Price Channels in similar ways to Donchian Channels but with the added benefits of the adaptive, curved structure:
Breakout Identification:
Just like Donchian Channels, when the price breaks above the upper curved band, it may signal the start of a bullish trend, while a break below the lower curved band could indicate a bearish trend. The curved nature of the channels helps in capturing these breakouts more precisely by adjusting to recent volatility.
Volatility:
The width of the price channels in the Curved Price Channels indicator serves as a clear indicator of current market volatility. A wider channel indicates that the market is experiencing higher volatility, as prices are fluctuating more dramatically within the period. Conversely, a narrower channel suggests that the market is in a lower volatility state, with price movements being more subdued.
Typically, higher volatility is observed during negative trends, where market uncertainty or fear drives larger price swings. In contrast, lower volatility is often associated with positive trends, where prices tend to move more steadily and predictably. The adaptive nature of the Curved Price Channels reflects these volatility conditions in real time, allowing traders to assess the market environment quickly and adjust their strategies accordingly.
Support and Resistance:
The trend line act as dynamic support and resistance levels. Due to it's adaptive nature, this level is more reflective of the current market environment than the fixed level of Donchian Channels.
Trend Direction and Strength:
The trend direction and strength are highlighted by the trendline and the directional candle within the Curved Price Channels indicator. If the price is above the trendline, it indicates a positive trend, while a price below the trendline signals a negative trend. This directional bias is visually represented by the color of the directional candle, making it easy for traders to quickly identify the current market trend.
In addition to the trendline, the indicator also displays Max and Min values. These represent the highest and lowest trend strength values within the lookback period, providing a reference point for understanding the current trend strength relative to historical levels.
Max Value: Indicates the highest recorded trend strength during the lookback period. If the Max value is greater than the Min value, it suggests that the market has generally experienced more positive (bullish) conditions during this time frame.
Min Value: Represents the lowest recorded trend strength within the same period. If the Min value is greater than the Max value, it indicates that the market has been predominantly negative (bearish) over the lookback period.
By assessing these Max and Min values, traders gain an immediate understanding of the underlying trend. If the current trend strength is close to the Max value, it indicates a strong bullish trend. Conversely, if the trend strength is near the Min value, it suggests a strong bearish trend.
█ Settings
Trend Length: Defines the number of bars used to calculate the core trendline and adaptive size. A length of 200 will create a smooth, long-term trendline that reacts slowly to price changes, while a length of 20 will create a more responsive trendline that tracks short-term movements.
Multiplier: Adjusts the width of the curved price channels. A higher value tightens the channels, making them more sensitive to price movements, while a lower value widens the channels. A multiplier of 10 will create tighter channels that are more sensitive to minor price fluctuations, which is useful in low-volatility markets. A multiplier of 2 will create wider channels that capture larger trends and are better suited for high-volatility markets.
Trend Strength Length: Defines the period over which the maximum and minimum ranges are calculated to normalize the trend strength. A length of 200 will smooth out the trend strength readings, providing a stable indication of trend health, whereas a length of 50 will make the readings more reactive to recent price changes.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Bias Finder [UAlgo]The "Bias Finder " indicator is a tool designed to help traders identify market bias and trends effectively. This indicator leverages smoothed Heikin Ashi candles and oscillators to provide a clear visual representation of market trends and potential reversals. By utilizing higher timeframes and smoothing techniques, the indicator aims to filter out market noise and offer a more reliable signal for trading decisions.
🔶 Key Features
Heikin Ashi Candles: The indicator uses Heikin Ashi candles, a special type of candlestick that incorporates information from the previous candle to potentially provide smoother visuals and highlight potential trend direction.
Oscillator: The indicator calculates an oscillator based on the difference between the smoothed opening and closing prices of a higher timeframe. This oscillator helps visualize the strength of the bias.
Light Teal: Strong bullish trend.
Dark Teal: Weakening bullish trend.
Light Red: Strong bearish trend.
Dark Red: Weakening bearish trend.
Standard Deviation: The indicator can optionally display upper and lower standard deviation bands based on the Heikin Ashi high and low prices. These bands can help identify potential breakout areas.
Oscillator Period: Adjust the sensitivity of the oscillator.
Higher Timeframe: Select a timeframe for the Heikin Ashi candles and oscillator calculations (must be equal to or greater than the chart's timeframe).
Display Options: Choose whether to display Heikin Ashi candles, market bias fill, standard deviation bands, and HA candle colors based on the bias.
Alerts: Enable/disable specific alerts and customize their messages.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Trend Strength | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Trend Strength indicator! Latest trends and their strengths play an important role for traders. This indicator aims to make trend and strength detection much easier by coloring candlesticks based on the current strength of trend. More info about the process in the "How Does It Work" section.
Features of the new Trend Strength Indicator :
3 Trend Detection Algorithms Combined (RSI, Supertrend & EMA Cross)
Fully Customizable Algorithm
Strength Labels
Customizable Colors For Bullish, Neutral & Bearish Trends
📌 HOW DOES IT WORK ?
This indicator uses three different methods of trend detection and combines them all into one value. First, the RSI is calculated. The RSI outputs a value between 0 & 100, which this indicator maps into -100 <-> 100. Let this value be named RSI. Then, the Supertrend is calculated. Let SPR be -1 if the calculated Supertrend is bearish, and 1 if it's bullish. After that, latest EMA Cross is calculated. This is done by checking the distance between the two EMA's adjusted by the user. Let EMADiff = EMA1 - EMA2. Then EMADiff is mapped from -ATR * 2 <-> ATR * 2 to -100 <-> 100.
Then a Total Strength (TS) is calculated by given formula : RSI * 0.5 + SPR * 0.2 + EMADiff * 0.3
The TS value is between -100 <-> 100, -100 being fully bearish, 0 being true neutral and 100 being fully bullish.
Then the Total Strength is converted into a color adjusted by the user. The candlesticks in the chart will be presented with the calculated color.
If the Labels setting is enabled, each time the trend changes direction a label will appear indicating the new direction. The latest candlestick will always show the current trend with a label.
EMA = Exponential Moving Average
RSI = Relative Strength Index
ATR = Average True Range
🚩 UNIQUENESS
The main point that differentiates this indicator from others is it's simplicity and customization options. The indicator interprets trend and strength detection in it's own way, combining 3 different well-known trend detection methods: RSI, Supertrend & EMA Cross into one simple method. The algorithm is fully customizable and all styling options are adjustable for the user's liking.
⚙️ SETTINGS
1. General Configuration
Detection Length -> This setting determines the amount of candlesticks the indicator will look for trend detection. Higher settings may help the indicator find longer trends, while lower settings will help with finding smaller trends.
Smoothing -> Higher settings will result in longer periods of time required for trend to change direction from bullish to bearish and vice versa.
EMA Lengths -> You can enter two EMA Lengths here, the second one must be longer than the first one. When the shorter one crosses under the longer one, this will be a bearish sign, and if it crosses above it will be a bullish sign for the indicator.
Labels -> Enables / Disables trend strength labels.
Filtered MACD with Backtest [UAlgo]The "Filtered MACD with Backtest " indicator is an advanced trading tool designed for the TradingView platform. It combines the Moving Average Convergence Divergence (MACD) with additional filters such as Moving Average (MA) and Average Directional Index (ADX) to enhance trading signals. This indicator aims to provide more reliable entry and exit points by filtering out noise and confirming trends. Additionally, it includes a comprehensive backtesting module to simulate trading strategies and assess their performance based on historical data. The visual backtest module allows traders to see potential trades directly on the chart, making it easier to evaluate the effectiveness of the strategy.
🔶 Customizable Parameters :
Price Source Selection: Users can choose their preferred price source for calculations, providing flexibility in analysis.
Filter Parameters:
MA Filter: Option to use a Moving Average filter with types such as EMA, SMA, WMA, RMA, and VWMA, and a customizable length.
ADX Filter: Option to use an ADX filter with adjustable length and threshold to determine trend strength.
MACD Parameters: Customizable fast length, slow length, and signal smoothing for the MACD indicator.
Backtest Module:
Entry Type: Supports "Buy and Sell", "Buy", and "Sell" strategies.
Stop Loss Types: Choose from ATR-based, fixed point, or X bar high/low stop loss methods.
Reward to Risk Ratio: Set the desired take profit level relative to the stop loss.
Backtest Visuals: Display entry, stop loss, and take profit levels directly on the chart with
colored backgrounds.
Alerts: Configurable alerts for buy and sell signals.
🔶 Filtered MACD : Understanding How Filters Work with ADX and MA
ADX Filter:
The Average Directional Index (ADX) measures the strength of a trend. The script calculates ADX using the user-defined length and applies a threshold value.
Trading Signals with ADX Filter:
Buy Signal: A regular MACD buy signal (crossover of MACD line above the signal line) is only considered valid if the ADX is above the set threshold. This suggests a stronger uptrend to potentially capitalize on.
Sell Signal: Conversely, a regular MACD sell signal (crossunder of MACD line below the signal line) is only considered valid if the ADX is above the threshold, indicating a stronger downtrend for potential shorting opportunities.
Benefits: The ADX filter helps avoid whipsaws or false signals that might occur during choppy market conditions with weak trends.
MA Filter:
You can choose from various Moving Average (MA) types (EMA, SMA, WMA, RMA, VWMA) for the filter. The script calculates the chosen MA based on the user-defined length.
Trading Signals with MA Filter:
Buy Signal: A regular MACD buy signal is only considered valid if the closing price is above the MA value. This suggests a potential uptrend confirmed by the price action staying above the moving average.
Sell Signal: Conversely, a regular MACD sell signal is only considered valid if the closing price is below the MA value. This suggests a potential downtrend confirmed by the price action staying below the moving average.
Benefits: The MA filter helps identify potential trend continuation opportunities by ensuring the price aligns with the chosen moving average direction.
Combining Filters:
You can choose to use either the ADX filter, the MA filter, or both depending on your strategy preference. Using both filters adds an extra layer of confirmation for your signals.
🔶 Backtesting Module
The backtesting module in this script allows you to visually assess how the filtered MACD strategy would have performed on historical data. Here's a deeper dive into its features:
Backtesting Type: You can choose to backtest for buy signals only, sell signals only, or both. This allows you to analyze the strategy's effectiveness in different market conditions.
Stop-Loss Types: You can define how stop-loss orders are placed:
ATR (Average True Range): This uses a volatility measure (ATR) multiplied by a user-defined factor to set the stop-loss level.
Fixed Point: This allows you to specify a fixed dollar amount or percentage value as the stop-loss.
X bar High/Low: This sets the stop-loss at a certain number of bars (defined by the user) above/below the bar's high (for long positions) or low (for short positions).
Reward-to-Risk Ratio: Define the desired ratio between your potential profit and potential loss on each trade. The backtesting module will calculate take-profit levels based on this ratio and the stop-loss placement.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Persistent Homology Based Trend Strength OscillatorPersistent Homology Based Trend Strength Oscillator
The Persistent Homology Based Trend Strength Oscillator is a unique and powerful tool designed to measure the persistence of market trends over a specified rolling window. By applying the principles of persistent homology, this indicator provides traders with valuable insights into the strength and stability of uptrends and downtrends, helping to inform better trading decisions.
What Makes This Indicator Original?
This indicator's originality lies in its application of persistent homology , a method from topological data analysis, to financial markets. Persistent homology examines the shape and features of data across multiple scales, identifying patterns that persist as the scale changes. By adapting this concept, the oscillator tracks the persistence of uptrends and downtrends in price data, offering a novel approach to trend analysis.
Concepts Underlying the Calculations:
Persistent Homology: This method identifies features such as clusters, holes, and voids that persist as the scale changes. In the context of this indicator, it tracks the duration and stability of price trends.
Rolling Window Analysis: The oscillator uses a specified window size to calculate the average length of uptrends and downtrends, providing a dynamic view of trend persistence over time.
Threshold-Based Trend Identification: It differentiates between uptrends and downtrends based on specified thresholds for price changes, ensuring precision in trend detection.
How It Works:
The oscillator monitors consecutive changes in closing prices to identify uptrends and downtrends.
An uptrend is detected when the closing price increase exceeds a specified positive threshold.
A downtrend is detected when the closing price decrease exceeds a specified negative threshold.
The lengths of these trends are recorded and averaged over the chosen window size.
The Trend Persistence Index is calculated as the difference between the average uptrend length and the average downtrend length, providing a measure of trend persistence.
How Traders Can Use It:
Identify Trend Strength: The Trend Persistence Index offers a clear measure of the strength and stability of uptrends and downtrends. A higher value indicates stronger and more persistent uptrends, while a lower value suggests stronger and more persistent downtrends.
Spot Trend Reversals: Significant shifts in the Trend Persistence Index can signal potential trend reversals. For instance, a transition from positive to negative values might indicate a shift from an uptrend to a downtrend.
Confirm Trends: Use the Trend Persistence Index alongside other technical indicators to confirm the strength and duration of trends, enhancing the accuracy of your trading signals.
Manage Risk: Understanding trend persistence can help traders manage risk by identifying periods of high trend stability versus periods of potential volatility. This can be crucial for timing entries and exits.
Example Usage:
Default Settings: Start with the default settings to get a feel for the oscillator’s behavior. Observe how the Trend Persistence Index reacts to different market conditions.
Adjust Thresholds: Fine-tune the positive and negative thresholds based on the asset's volatility to improve trend detection accuracy.
Combine with Other Indicators: Use the Persistent Homology Based Trend Strength Oscillator in conjunction with other technical indicators such as moving averages, RSI, or MACD for a comprehensive analysis.
Backtesting: Conduct backtesting to see how the oscillator would have performed in past market conditions, helping you to refine your trading strategy.
Trend Strength Signals [AlgoAlpha]🌟Introducing the Trend and Strength Signals indicator by AlgoAlpha ! This tool is designed to help you identify trends and gauge market strength with precision and ease. 📈🚀
🛠 Customizable Parameters : Adjust the period, standard deviation multiplier, gauge size, and colors to fit your trading style.
📊 Trend Detection : Visualize trends with clear color-coded signals for uptrends and downtrends.
📈 Strength Gauge : Assess market strength with a dynamic gauge that adapts to the current price action.
🔔 Alerts : Set alerts for bullish and bearish trend crossovers and take profit points to stay ahead of the market.
🎨 Visual Enhancements : Enjoy a clutter-free chart with the integration of plot shapes, color fills, and gradient gauges.
🚀 Quick Guide to Using the Trend and Strength Signals Indicator
Maximize your trading with the Trend and Strength Signals indicator by following these streamlined steps! 🎯✨
🛠 Add the Indicator : Add the indicator to your favorites. Customize settings like period, standard deviation multiplier, and colors to fit your trading style.
📊 Market Analysis : Observe the color-coded candles and gauge to understand market trend direction and strength. Use the alerts for key trading signals.
🔔 Alerts : Enable notifications for trend crossovers and take profit points to catch trading opportunities without constantly monitoring the chart.
⚙️ How it works
This indicator calculates the moving average and standard deviation of the closing price over a customizable period to identify the upper and lower bounds. When the price crosses these bounds, it signals an uptrend or downtrend. The gauge measures market strength by comparing the price to the moving average and scaling it over a customizable range, while the underlying logic uses concepts from the Bollinger Bands, this indicator gives a unique perspective on price behavior through added features and signals derived from it.
Unleash the power of trend and strength analysis with this comprehensive indicator! Happy trading! 🚀📈✨
Discovery IndexThe Discovery Index is an original technical indicator which attempts to display directional market pressure and momentum based on accumulated candle-over-candle measurements.
Discovery , in this context, is the act of finding (discovering) New Highs and Lows.
> What is 'Discovery'
Not to be confused with "Price Discovery", the term for setting the spot price of an asset.
The term 'Discovery' in Discovery Index is used based on the literal definition of 'Discovery', such as, the action of finding what was previously unknown.
Given this definition,
Discovery is the difference between highs or lows only when the current high is higher than the previous high or the current low is lower than the previous low.
Below is a visual example of exactly where Discovery is seen from each candle.
Since discovery is only based on points of the candle, and not specifically the direction of the candle; it is possible for discovery to occur in both directions from the same candle.
It is also possible for no discovery to occur from a candle.
> Calculation
The Discovery Index is the Net Total of discovery data over a specified length of bars.
Discovery Index = Sum of Upwards Discovery + Sum of Downwards Discovery
Note: Upwards Discovery is always Positive, and Downwards Discovery is always Negative. By adding both together, their Net Total is produced. This value is the "Discovery Index".
Wick Calculation Example
> Volume Discovery
Using Volume for the Discovery Index Calculation allows for a different dimension to be added to the data for new analysis opportunities.
While volume data is only a single value, by accumulating this data over time, we are able to fabricate a candle body from the data by accounting for the direction of the chart candles.
This allows for the Calculation of the Discovery Index based on volume data.
Volume Example
> Display
The display uses a "Candlestick histogram" display. The bodies and wicks from the display represent the discovery data from the respective points in each candle. (Wick Discovery & Candle Body Discovery).
This style of histogram allows for the display of both data sources, preserving the accuracy and distinction between each type, while also providing a clean display.
> Considerations
Discovery index is not an Oscillator, since there are no upper or lower boundaries to its rotations.
There are not (at this time) any "Over-bought" or "Over-sold" Areas, this is partially due to the previous consideration since any levels for these could potentially change from chart to chart. Additionally, it would generally be better to read the data based on the context of the current market.
Non-directional movements effect the Discovery Index as well. Since Discovery does not occur from every bar, the Index reflects hesitations as well as movements in market direction.
With the option to input a symbol, the Discovery Index Indicator is not constrained to one chart ticker for its calculation and could help to see shifts between different symbols, making it easier to compare different assets.
With the separation of wicks and candle body data, a stronger move may be observed by its full-bodied movements, while a potentially more speculative move may be seen from large wick movements. Since wicks are often interpreted as either, Rejection for reversal OR as Testing for continuation, the interpretation for Wick Discovery generally varies based on context.
Discovery Index ⇾ Divergences! Due to its calculation, price (and/or volume) data is displayed in such a way that makes it useful as a tool for identifying divergence opportunities.
Remember, this indicator is lookback based. An immediate significant change from the data source (if not offset by a similar opposite change) will be represented for multiple bars after its occurrence. Due to this, data is likely to be skewed or biased from these occurrences for a period of time after.
Throughout development, "Discovery" has been shortened to just "Disco", therefore, this indicator is also an attempt to bring Disco Back.
Enjoy!
Candlestick Trend Strength [AlgoAlpha]🚀🎉 Introducing the Candlestick Trend Strength by AlgoAlpha, a dynamic TradingView indicator designed to visually communicate the strength and direction of market trends right on your charts! 🕯️💪
Key Features:
🌈 Visual gauge for trend strength, color-coded for intuitive insights.
⏳ Customizable trend detection and normalization periods to match your trading strategy.
🎨 Flexible color settings for both uptrend (green) and downtrend (red).
🔔 Real-time alerts for trend reversals, helping you stay ahead of market moves.
How to Use:
🛠 Add the Indicator: Add the indicator to favorites and customize it to suit your needs.
🔍 Analyze the Trends: Monitor the color changes in the gauge and bar color to identify strengthening or weakening trends.
🔔 Set Alerts: Configure alerts to notify you of trend changes, allowing you to react swiftly to trading opportunities without constant monitoring.
Basic Logic Explained:
The "Candlestick Trend Strength" indicator calculates the trend strength score by analyzing the ratio of the candle's wick to its body, alongside the direction of the candle (up or down). It uses a normalization period to adjust the sum of the trend score into a scale from -1 to 1, which is then plotted as a color gradient gauge from red (downtrend) to green (uptrend) on the chart. This representation helps traders quickly assess whether a trend is gaining or losing strength, and it updates in real-time with each new bar, providing a highly responsive tool for technical analysis.
Embrace the power of visual trend analysis with the "Candlestick Trend Strength" by AlgoAlpha and transform your trading experience today! 🌟📈
TrendGuard Pullback Trader Indicators [Quantigenics]The 'TrendGuard Pullback Trader Indicators' offers a synergistic representation of Trend Wave, Trend Pulse, and Trend Strength, each interrelated to provide intuitive and comprehensive market analysis—combining momentum, trend fluctuation insights, and trend strength in one cohesive tool.
The "TrendGuard Pullback Trader Indicators " utilize a novel approach in market trend analysis, distinctly combining multiple Exponential Moving Averages (EMA) layers for enhanced momentum tracking. This script employs a triple-layered EMA system for the Trend Wave component, adeptly filtering market noise and providing a refined view of underlying momentum. In parallel, the Trend Pulse feature contrasts current prices against a double-EMA of modified averages, offering granular insights into short-term market dynamics. This synergy is further enriched by the Trend Strength Identifier, which leverages the differential between fast and slow EMAs. This element is key in distinguishing significant market trends from minor fluctuations, thus offering a comprehensive gauge of market sentiment. These components, while advanced in their individual functionalities, are integrated to provide a holistic market analysis tool, far surpassing the capabilities of standard trend-following indicators. This sophisticated integration, underpinned by complex mathematical modeling, ensures that the "TrendGuard Pullback Indicators" script is not just a collection of indicators but a refined, cohesive system for strategic trading.
Integrated Analysis System: Trend Wave, Trend Pulse, and Trend Strength Identifier:
Trend Wave : Advanced Momentum Analysis
Calculation : Implements an advanced smoothing technique using a triple-layered Exponential Moving Average (EMA). This complex approach reduces market noise by refining the momentum tracking algorithm, thereby enhancing trend line smoothness.
Output : The output is visualized as a color-changing histogram, pivoting from green to red to indicate bullish and bearish momentum. This histogram is based on a scaled and adjusted Trend Wave value, providing a nuanced understanding of market momentum shifts.
Trend Pulse : Precision in Short-term Market Dynamics
Design : Contrasts a unique combination of high and low prices with their double EMA, diverging from standard closing price analysis. This results in a dynamic indicator sensitive to immediate market shifts.
Function : Acts as a vital complement to Trend Wave, offering fine-grained insights into short-term market behavior. It enhances the overall system by adding depth to the trend context set by the Trend Wave
Trend Strength Identifier: In-Depth Trend Viability Assessment Mechanism
Mechanism : Utilizes a sophisticated differential EMA strategy, comparing fast and slow EMA outputs. The script’s complexity extends beyond basic EMA differences, incorporating advanced trend/noise ratio calculations and trend quality assessments.
Indicator Dynamics : Generates a histogram that colors and positions itself based on the strength and direction of market trends, further informed by calculated trend quality metrics. It crucially differentiates between major trends and minor market noise.
System Synergy :
The three components are designed to operate in unison, forming an integrated trading system. Their interrelation is not merely additive but synergistic, where each element informs and enhances the others, making them indispensable to one another.
This interconnected functionality blends the indicators, as each component is tailored to contribute to a unified decision-making process, rather than functioning as standalone entities. The system's unique construction and its reliance on the interplay between its components underscore its distinctiveness and necessity for combined usage.
How to Trade with the "TrendGuard Pullback Trader Indicators"
Integration with "TrendGuard Pullback Signals" script :
The "TrendGuard Pullback Trader Indicators" script is an integral part of the "TrendGuard Pullback Trader" system, designed to operate in tandem with the "TrendGuard Pullback Trader Signals" script. This script amalgamates three sophisticated indicators, each contributing a unique perspective to market analysis.
This script, while useful as a standalone trading method, is one part of a two-part system. The “TrendGuard Pullback Trader Signals” script can be found below:
Integrated Trend Analysis: Aligning Wave, Pulse, and Strength :
Trend Wave & Trend Pulse Alignment : Look for moments when both the Trend Wave and Trend Pulse indicate a similar direction (both turning green for bullish or red for bearish). This alignment often marks the beginning of a new primary trend.
Confirmation with Trend Strength : Ensure that the Trend Strength histogram supports the new trend. A rising histogram above the lower threshold (white line) indicates growing trend strength.
Assessing Trend Strength and Potential Exhaustion :
Monitoring Threshold Lines : The upper (blue) and lower (white) threshold lines are crucial. When the Trend Strength histogram crosses these lines, it signals significant market conditions:
Above the Upper Threshold (Blue Line): Indicates a very strong trend but be cautious of potential trend exhaustion. A peak above this line may signal that the trend is overstretched.
Below the Lower Threshold (White Line): Suggests a weak or emerging trend, potentially signaling a trend reversal or consolidation phase.
Determining Trending or Ranging Market :
Above Lower Threshold : If the Trend Strength histogram consistently stays above the lower threshold, it suggests a trending market. Use this phase for trend-following strategies.
Below Lower Threshold : When the histogram frequently falls below this line, it may indicate a ranging or choppy market. In such conditions, consider adopting range-bound strategies or tightening stop losses.
Practical Application :
Entry Points : Trades can be initiated when there’s an alignment in Trend Wave and Pulse, coupled with supportive readings in Trend Strength. For instance, long positions during a green Trend Wave and Pulse, with the Trend Strength histogram rising above the lower threshold and vice versa for short entries.
Exit Points and Profit Taking : Consider exiting or taking profits when the Trend Strength crosses above the upper threshold, indicating potential trend exhaustion, especially if the trend strength histogram suddenly drops. Also, look for changes in the Trend Wave and Pulse for additional exit signals.
Alerts Setup : Utilize the provided alert features for key changes in the indicators, especially when the Trend Strength crosses threshold lines, to stay updated on significant market shifts.
Interpreting Indicator Interactions :
Refer to the accompanying images for visual examples of how these indicators interact and signal various market conditions. Understanding their synergy will enhance your ability to recognize key market phases and adjust your trading strategy accordingly.
The "TrendGuard Pullback Trader Indicators" script is intricately designed to be used in conjunction with the "TrendGuard Pullback Trader Signals" script, offering a cohesive and comprehensive trading strategy. Use both scripts together for a more robust trading method.
Adjustable Input Parameters
Each component in the script features customizable settings, designed to offer traders comprehensive control over the indicators. This flexibility allows for tailoring to specific trading styles, market conditions, and time frames. With options for adjusting visibility, selecting price types, modifying calculation lengths, and setting thresholds, these parameters ensure that the tool can be fine-tuned for a high degree of customization and precision, making it adaptable and effective for nearly all markets/symbols and time frames.
Important Usage Guidance: For seamless integration with its counterpart, the "TrendGuard Pullback Trader Signals" script, it's crucial to align the input parameter settings across both scripts. When adjusting values from their defaults, ensure that corresponding parameters in both scripts are identically set. This synchronization is key to achieving a cohesive and accurate representation on your charts.
Show Indicator Name (ShowName):
This parameter controls the display of the indicator's name on the chart. When enabled (`true`), it visually labels the indicator for ease of identification. Disabling (`false`) this feature offers a cleaner visual by removing the label.
Show Trend Wave Indicator (ShowTrendWave):
Activates or deactivates the Trend Wave indicator. When active (`true`), it displays a histogram based on the triple-layered exponential moving average (EMA) of the selected price type, providing a visual representation of market momentum trends. Deactivating (`false`) simplifies the chart by removing this histogram.
Trend Wave Price (TrendWavePrice):
Specifies the price data (close, open, high, low) used in calculating the Trend Wave. This choice affects how the Trend Wave responds to market movements, with each price type offering a different perspective on market momentum.
Trend Wave Length (TrendWaveLength):
Determines the overall calculation period for the triple-layered EMA in the Trend Wave, influencing its sensitivity. A higher value leads to a smoother, less volatile wave, focusing on longer-term market trends, whereas a lower value makes it more responsive to recent price actions.
Show Trend Pulse Indicator (ShowTrendPulse):
This parameter toggles the display of the Trend Pulse indicator, which analyzes the divergence between the current closing price and a double-EMA of a modified price average, providing insight into immediate market dynamics. Enabling (`true`) it adds this analysis to the chart, while disabling (`false`) removes it for focus on other trends.
Trend Pulse Length (TrendPulseLength):
Sets the length for the main double-EMA calculation in the Trend Pulse. A higher number smoothens the indicator, reducing sensitivity to minor price changes and highlighting more significant short-term trends.
Show Trend Strength Indicator (ShowTrendStrength):
Controls whether the Trend Strength indicator is displayed. This indicator uses a differential approach between fast and slow EMAs to assess the market's trend strength. Enabling it (`true`) provides a histogram view of the trend’s robustness, whereas disabling (`false`) omits this analysis.
Fast Average Length (FastAvgLen):
Specifies the period for the fast EMA in the Trend Strength indicator. Shorter periods make the EMA more sensitive to recent price changes, ideal for identifying new trend formations.
Slow Average Length (SlowAvgLen):
Determines the period for the slow EMA in the Trend Strength indicator. A longer period smoothens the EMA, useful for identifying sustained trend directions.
Threshold High (ThresholdHi):
This value sets a high threshold for the Trend Strength indicator. Values exceeding this threshold indicate a strong and established market trend, which can be critical for strategies focusing on trend continuity.
Threshold Low (ThresholdLow):
Defines a low threshold for the Trend Strength indicator. Values below this threshold suggest weak or emerging trends, signaling potential trend reversals or consolidations.
Threshold Trend (ThreshTrend):
Establishes a specific threshold within the Trend Strength indicator for identifying significant trends. Exceeding this threshold often suggests a trend with potential trading relevance.
Enable Threshold Low (ThresholdLowOnOff):
This option enables or disables the low threshold in the Trend Strength calculation. It allows traders to customize the indicator’s sensitivity to weaker trends.
Average Line (AvgLine):
Adjusts the period for an additional EMA line in the Trend Strength indicator. This line acts as a smoothing reference for the Trend Strength. This can also act as a threshold reference as when its below the ‘Threshold Low’ line this could identify sideways/choppy conditions.
Conclusion:
The "TrendGuard Pullback Trader Indicators" script provides a multidimensional analysis platform, combining in-depth momentum tracking, immediate market movement insights, and robust trend evaluation.
Remember, trading involves risk, and past performance is not indicative of future results.
You can see the “Author’s instructions" below to get immediate access to TrendGuard Pullback Trader Indicators & the rest of the “Quantigenics Premium Indicator Suite”.
Quantum VRSIThe VRSI indicator is another in the suite of volume indicators we have developed and one that complements our volume price analysis methodology perfectly. and was developed out of a desire to build further on our cornerstone of VPA by peeling back the layers of volume and considering the relative aspect of volume. Hence, the acronym of Volume Relative Strength Index indicator encapsulates what the indicator is all about.
By analyzing relative volume, we are able to see a visual representation of the pressure in a trend, or indeed the lack of pressure, and in doing so, present in a clear, intuitive, and colorful way whether the trend we are trading or considering joining is being driven with constant or rising pressure as it develops. If so, the indicator gives us that all-important ingredient: confidence—namely, the confidence to continue maintaining the position for as long as possible. However, equally important is when we see a trend that is tiring, with falling pressure, sending a strong signal it is time to close out. Alternatively, when there is little or no pressure in the trend, this is a signal to wait and be patient.
These signals are delivered in a variety of ways, primarily through a color change sequence of brighter or darker colors, but equally importantly, based on the height of each pressure bar and its relationship to its neighbor or groups of bars. And herein lies the close relationship to the volume price analysis methodology since the interpretation of both is about judging bars against one in terms of confirmation of trends, such as rising volume and rising pressure bars, or alternatively falling volume and falling pressure bars signaling that the trend is weakening.
The Volume Relative Strength Index indicator, or VRSI, embodies the core concept of volume-price analysis. It blends trading volume data with price to create an indicator for all the various markets and instruments, whether stocks, ETFs, futures, forex, or cryptocurrencies. The result is an intuitive visual representation of the market’s underlying bullish and bearish pressure in the form of an oscillating histogram with varying colors, with the central fulcrum at zero giving a clear indication when sentiment is shifting from bullish to bearish, or vice versa.
Now, for the first time, you can see the strength of the trend represented visually and clearly based on our two leading indicators of relative volume and price, giving you that essential ingredient we all seek: confidence. And just as with all our other indicators, we urge you to use it in multiple timeframes.
Multi Timeframe Trend StrengthThis code is an advancement of my previous percentile-based trend strength. It follows the same concept, except this code display the trend and trend strength in multiple timeframe (1 min, 5 min, 15 min, 1hr and 4hr).
This gives an indication of the trend is evolving and allows to see how short-term trend matches with the long-term trend.
How it works:
The script assesses trend strength through percentile values derived from high and low prices across various time periods. It categorizes the current trend as either Bullish, Bearish, or N/A (No Trend) with the following steps:
Percentile Calculations: The code calculates the 75th percentile of high prices (e.g., percentile_13H) and the 25th percentile of low prices (e.g., percentile_13L) for specified Fibonacci-based periods (13, 21, 34, 55, 89, and 144). These percentiles serve as thresholds for identifying strong trends.
Calculate Highest High and Lowest Low: It computes the highest high (75th percentile high price of the longest period) and lowest low (25th percentile low price of the longest period), referred to as highest_high and lowest_low. These values establish critical price levels.
Trend Strength Conditions: For each percentile and period, the code checks if the percentile exceeds the highest high (trendBull) or falls below the lowest low (trendBear). These conditions gauge the strength of bullish and bearish trends.
Count Bull and Count Bear: Variables countBull and countBear tally the number of bullish and bearish conditions met, helping assess trend strength.
Weak Bull and Weak Bear Count: The code calculates weak bullish and bearish conditions, occurring when percentiles fall within the range defined by highest_high and lowest_low but don't meet strong trend criteria.
Bull Strength and Bear Strength: bullStrength and bearStrength are calculated based on counts of bullish, bearish, weak bullish, and weak bearish conditions, representing overall trend strength.
Strong Bull and Bear Conditions: These conditions arise when the 75th percentile of high prices (bull conditions) or the 25th percentile of low prices (bear conditions) surpass or dip below the highest high or lowest low, respectively, for the specified period. Strong conditions indicate robust trends with significant price movements.
Weak Bull and Bear Conditions: Weak conditions occur when percentiles fall within the range between highest_high and lowest_low, suggesting some bullish or bearish tendencies without reaching extreme levels. These imply less decisive trends.
Current Trend Identification: The current trend is determined by comparing bullStrength and bearStrength. A greater bullStrength indicates a Bull trend, greater bearStrength implies a Bear trend, and equal values denote No Trend (N/A).
Percentile Based Trend StrengthThe "Percentile Based Trend Strength" (PBTS) calculates trend strength based on percentile values of high and low prices for various length periods and then identifies the current trend as either Bullish, Bearish, or N/A (No Trend). Here's a step-by-step explanation of the code:
Percentile Calculations:
For each specified length period (13, 21, 34, 55, 89, and 144 - Fibonacci numbers), the code calculates the 75th percentile of high prices (e.g., percentile_13H) and the 25th percentile of low prices (e.g., percentile_13L). These percentiles represent levels that prices need to exceed or fall below to indicate a strong trend.
Calculate Highest High and Lowest Low:
The highest high (75th percentile high price of longest length) and lowest low (25th percentile low price of longest length) for the longest length period (144) are calculated as highest_high and lowest_low. These values represent threshold price levels .
Trend Strength Conditions:
The code calculates various conditions to determine trend strength. For each percentile value and each length period, it checks if the percentile value is greater than the highest high (trendBull) or less than the lowest low (trendBear). These conditions are used to assess the strength of the bullish and bearish trends.
Count Bull and Count Bear:
The countBull and countBear variables count the number of bullish and bearish conditions met, respectively. These counts help evaluate trend strength.
Weak Bull and Weak Bear Count:
The code calculates the number of weak bullish and bearish conditions. Weak conditions occur when a percentile value falls within the range defined by the highest high and lowest low but doesn't meet the strong trend criteria.
Bull Strength and Bear Strength:
bullStrength and bearStrength are calculated based on the counts of bullish, bearish, weak bullish, and weak bearish conditions. These values represent the overall strength of the bullish and bearish trends.
Strong Bull and Bear Conditions:
These conditions occur when the 75th percentile of high prices (for bull conditions) or the 25th percentile of low prices (for bear conditions) exceeds or falls below the highest high or lowest low, respectively, for the specified length period.
Strong bull conditions indicate a strong upward trend, while strong bear conditions indicate a strong downward trend.
Strong conditions are indicative of more significant price movements and are considered as primary signals of trend strength.
Weak Bull and Bear Conditions:
Weak bull and bear conditions are more nuanced. They occur when the 75th percentile of high prices (for weak bull conditions) or the 25th percentile of low prices (for weak bear conditions) falls within the range defined by the highest high and lowest low for the specified length period.
In other words, prices are not strong enough to reach the extreme levels represented by the highest high or lowest low, but they still exhibit some bullish or bearish tendencies within that range.
Weak conditions suggest a less robust trend. They may indicate that while there is some bias toward a bullish or bearish trend, it is not as strong or decisive as in the case of strong conditions.
Current Trend Identification:
The current trend is determined by comparing bullStrength and bearStrength. If bullStrength is greater, it's considered a Bull trend; if bearStrength is greater, it's a Bear trend. If they are equal, the trend is identified as N/A (No Trend).
Displaying Trend Information:
The code creates a table to display the current trend, reversal probability (strength), count of bullish and bearish conditions, weak bullish and weak bearish counts, and colors the text accordingly.
Plotting Percentiles:
Finally, the code plots the percentile lines for visualization, with 20% transparency. It also plots the highest high and lowest low lines (75th and 25th percentile of the longest length 144) using their original colors.
In summary, this indicator calculates trend strength based on percentile levels of high and low prices for different length periods. It then counts the number of bullish and bearish conditions, factors in weak conditions, and compares the strengths to identify the current trend as Bullish, Bearish, or No Trend. It provides a table with trend information and visualizes percentile lines on the chart.
Market Scanner Pro - NAS100/S&P500 [FxScripts]***** OVERVIEW *****
Market Scanner Pro is both a multi-functional indicator and market scanner combined. The combination allows you to have multiple eyes across the market, all from a single chart.
The scanner is comprised of an intuitively designed 3-in-1 tool that tracks the key metrics that drive markets. Each use advanced algorithms to gather information from multiple data points, distilled into one simplified view.
***** TREND SCANNER *****
The first indicator featured on the chart is the Trend Scanner, this allows you to track price action across the wider market. Instantly see pattern shifts and emerging trends; when the market moves, you move with it.
***** MOMENTUM SCANNER *****
The second is the Momentum Scanner which offers a realtime representation of momentum shifts as they occur. This allows you to monitor false breakouts and catch the moves that matter.
***** VOLUME SCANNER *****
The third is the Volume Scanner which provides unique insight into where buy and sell volume is being placed across the market. It offers a further way of determining entry and exit points or simply confirmation that a trend is underway.
***** HOW IT WORKS *****
1. The scanner surveys the market looking for strengths and weaknesses in Trend, Momentum or Volume.
2. It displays the underlying strength or weakness as a series of dots with up to 10 green dots showing strength and up to 10 red dots showing weakness.
3. Lighter colored dots are displayed where the strength of the trend, momentum or volume is lesser; if a dot is missing this is a sign of market neutrality.
4. All scanners have a sensitivity setting plus a volatility filter which can be adjusted according to your style of trading and the underlying instrument (full details below).
5. The background can be set to color-fill when the majority of dots are coloured either red or green, with higher values denoting greater strength or greater weakness.
6. Alerts can be configured in the same way as the background to provide both entry and exit signals (further details below).
***** INSTRUMENTS *****
Market Scanner Pro is made up of both a European and US indices scanner, both forming part of the same package.
European features the DAX40 and FTSE100; US (this scanner) features the NAS100 plus S&P500. The US scanner works on futures and options such as ES, NQ, QQQ, SPX and SPY.
***** SETTINGS OVERVIEW *****
The scanner features the following customizable settings:
~~ Trend Settings ~~
▶ Trend Filter - adjusting this will allow you to focus on short term trends (most suitable for scalping), medium or long term (best for swing trading).
▶ Countertrend Strength - increases the sensitivity of weaker vs stronger countertrends. As countertrends are trends that run against the main trend, this will assist in detecting the strength of a pullback or reversal and allow you to either hold, exit or reverse the trade with confidence.
~~ Momentum Settings ~~
▶ Momentum Filter - increase or decrease the sensitivity of the momentum scanner. Increase to avoid periods of low or weak momentum, decrease to highlight stronger surges in momentum.
~~ Volume Settings ~~
▶ Volume Filter - increase or decrease the sensitivity of the volume scanner. Increase to avoid periods where buy and sell volume can potentially cancel each other out.
~~ Volatility Settings ~~
▶ Volatility Offset - use this to fine tune the volatility filter. A higher value generally delays the volatility filter allowing for confirmation of stronger trends, a lower value will detect trend, momentum or volume movement sooner but may be less accurate.
▶ Each scanner has its own setting allowing you to adjust how you monitor the underlying volatility for each.
▶ As with all settings, we recommend adjusting this to your style of trading, instrument and timeframe.
~~ Alerts ~~
Alerts can be configured to send notifications when anything from 6-10 bullish or bearish dots are showing. Exit markers can be configured when anything from 2+ dots are revealed. This adds an extra layer of sensitivity for traders who appreciate complete control over their trade.
~~ Display Settings ~~
You have the ability to hide all colored dots and only show the background or, alternatively, hide the background and only show colored dots.
***** TRIAL PERIOD *****
We offer a FREE, no questions asked, 7-day trial with every new registration. Visit the link below to register.
Market Scanner Pro - DAX/FTSE [FxScripts]***** OVERVIEW *****
Market Scanner Pro is both a multi-functional indicator and market scanner combined. The combination allows you to have multiple eyes across the market, all from a single chart.
The scanner is comprised of an intuitively designed 3-in-1 tool that tracks the key metrics that drive markets. Each use advanced algorithms to gather information from multiple data points, distilled into one simplified view.
***** TREND SCANNER *****
The first indicator featured on the chart is the Trend Scanner, this allows you to track price action across the wider market. Instantly see pattern shifts and emerging trends; when the market moves, you move with it.
***** MOMENTUM SCANNER *****
The second is the Momentum Scanner which offers a realtime representation of momentum shifts as they occur. This allows you to monitor false breakouts and catch the moves that matter.
***** VOLUME SCANNER *****
The third is the Volume Scanner which provides unique insight into where buy and sell volume is being placed across the market. It offers a further way of determining entry and exit points or simply confirmation that a trend is underway.
***** HOW IT WORKS *****
1. The scanner surveys the market looking for strengths and weaknesses in Trend, Momentum or Volume.
2. It displays the underlying strength or weakness as a series of dots with up to 10 green dots showing strength and up to 10 red dots showing weakness.
3. Lighter colored dots are displayed where the strength of the trend, momentum or volume is lesser; if a dot is missing this is a sign of market neutrality.
4. All scanners have a sensitivity setting plus a volatility filter which can be adjusted according to your style of trading and the underlying instrument (full details below).
5. The background can be set to color-fill when the majority of dots are coloured either red or green, with higher values denoting greater strength or greater weakness.
6. Alerts can be configured in the same way as the background to provide both entry and exit signals (further details below).
***** INSTRUMENTS *****
Market Scanner Pro is made up of both a European and US indices scanner, both forming part of the same package.
European (this scanner) features the DAX40 and FTSE100; US features the NAS100 plus S&P500. The US scanner works on futures and options such as ES, NQ, QQQ, SPX and SPY.
***** SETTINGS OVERVIEW *****
The scanner features the following customizable settings:
~~ Trend Settings ~~
▶ Trend Filter - adjusting this will allow you to focus on short term trends (most suitable for scalping), medium or long term (best for swing trading).
▶ Countertrend Strength - increases the sensitivity of weaker vs stronger countertrends. As countertrends are trends that run against the main trend, this will assist in detecting the strength of a pullback or reversal and allow you to either hold, exit or reverse the trade with confidence.
~~ Momentum Settings ~~
▶ Momentum Filter - increase or decrease the sensitivity of the momentum scanner. Increase to avoid periods of low or weak momentum, decrease to highlight stronger surges in momentum.
~~ Volume Settings ~~
▶ Volume Filter - increase or decrease the sensitivity of the volume scanner. Increase to avoid periods where buy and sell volume can potentially cancel each other out.
~~ Volatility Settings ~~
▶ Volatility Offset - use this to fine tune the volatility filter. A higher value generally delays the volatility filter allowing for confirmation of stronger trends, a lower value will detect trend, momentum or volume movement sooner but may be less accurate.
▶ Each scanner has its own setting allowing you to adjust how you monitor the underlying volatility for each.
▶ As with all settings, we recommend adjusting this to your style of trading, instrument and timeframe.
~~ Alerts ~~
Alerts can be configured to send notifications when anything from 6-10 bullish or bearish dots are showing. Exit markers can be configured when anything from 2+ dots are revealed. This adds an extra layer of sensitivity for traders who appreciate complete control over their trade.
~~ Display Settings ~~
You have the ability to hide all colored dots and only show the background or, alternatively, hide the background and only show colored dots.
***** TRIAL PERIOD *****
We offer a FREE, no questions asked, 7-day trial with every new registration. Visit the link below to register.
Gold & Silver Scanner Pro [FxScripts]***** FEATURES *****
Gold & Silver Scanner Pro is both a multi-functional indicator and market scanner combined. The combination allows you to have multiple eyes across the market, all from a single chart.
The scanner is comprised of an intuitively designed 3-in-1 tool that tracks the key metrics that drive markets. Each use advanced algorithms to gather information from multiple data points, distilled into one simplified view.
***** TREND SCANNER *****
The first indicator featured on the chart is the Trend Scanner, this allows you to track price action across the wider market. Instantly see pattern shifts and emerging trends; when the market moves, you move with it.
***** MOMENTUM SCANNER *****
The second is the Momentum Scanner which offers a realtime representation of momentum shifts as they occur. This allows you to monitor false breakouts and catch the moves that matter.
***** VOLUME SCANNER *****
The third is the Volume Scanner which provides unique insight into where buy and sell volume is being placed across the market. It offers a further way of determining entry and exit points or simply confirmation that a trend is underway.
***** HOW IT WORKS *****
1. The scanner surveys the market looking for strengths and weaknesses in Trend, Momentum or Volume.
2. It displays the underlying strength or weakness as a series of dots with up to nine green dots showing strength and up to nine red dots showing weakness (nine data points in total).
3. Lighter colored dots are displayed where the strength of the trend, momentum or volume is lesser; if a dot is missing this is a sign of market neutrality.
4. All scanners have a sensitivity setting plus a volatility filter which can be adjusted according to your style of trading and the underlying instrument (full details below).
5. The background can be set to color-fill when the majority of dots are coloured either red or green, with higher values denoting greater strength or greater weakness.
6. Alerts can be configured in the same way as the background to provide both entry and exit signals (further details below).
***** INSTRUMENTS *****
Gold & Silver Scanner Pro works effortlessly with any of the XAG and XAU major or minor crosses:
XAGAUD, XAGCHF, XAGEUR, XAGGBP, XAGJPY, XAGUSD, XAUAUD, XAUCHF, XAUEUR, XAUGBP, XAUJPY, XAUUSD
Plus the following gold and silver futures:
GC, SI
***** SETTINGS OVERVIEW *****
The scanner features the following customizable settings:
~~ Trend Settings ~~
▶ Trend Filter - adjusting this will allow you to focus on short term trends (most suitable for scalping), medium or long term (best for swing trading).
▶ Countertrend Strength - increases the sensitivity of weaker vs stronger countertrends. As countertrends are trends that run against the main trend, this will assist in detecting the strength of a pullback or reversal and allow you to either hold, exit or reverse the trade with confidence.
~~ Momentum Settings ~~
▶ Momentum Filter - increase or decrease the sensitivity of the momentum scanner. Increase to avoid periods of low or weak momentum, decrease to highlight stronger surges in momentum.
~~ Volume Settings ~~
▶ Volume Filter - increase or decrease the sensitivity of the volume scanner. Increase to avoid periods where buy and sell volume can potentially cancel each other out.
~~ Volatility Settings ~~
▶ Volatility Offset - use this to fine tune the volatility filter. A higher value generally delays the volatility filter allowing for confirmation of stronger trends, a lower value will detect trend, momentum or volume movement sooner but may be less accurate.
▶ Each scanner has its own setting allowing you to adjust how you monitor the underlying volatility for each.
▶ As with all settings, we recommend adjusting this to your style of trading, instrument and timeframe.
~~ Alerts ~~
Alerts can be configured to send notifications when anything from 5-9 bullish or bearish dots are showing. Exit markers can be configured when anything from 2+ dots are revealed. This adds an extra layer of sensitivity for traders who appreciate complete control over their trade.
~~ Display Settings ~~
You have the ability to hide all colored dots and only show the background or, alternatively, hide the background and only show colored dots.
***** TRIAL PERIOD *****
We offer a FREE, no questions asked, 7-day trial with every new registration. Visit the link below to register.
Crypto Scanner Pro [FxScripts]***** FEATURES *****
Crypto Scanner Pro is both an indicator and market scanner combined. The combination allows you to have multiple eyes across the market, all from a single chart.
Each scanner is comprised of an intuitively designed 3-in-1 tool that tracks the key metrics that drive markets.
They each use advanced algorithms to gather information from multiple data points, distilled into one simplified view.
***** TREND SCANNER *****
The Trend Scanner allows you to track price action across the wider market. Instantly see pattern shifts and emerging trends; when the market moves, you can move with it.
***** MOMENTUM SCANNER *****
The Momentum Scanner offers realtime insights into momentum shifts as they occur. This allows you to monitor false breakouts and catch the moves that matter.
***** VOLUME SCANNER *****
The Volume Scanner provides unique indications into where buy and sell volume is being placed. It offers a further way of determining entry and exit points or simply confirmation that a trend is underway.
***** INSTRUMENTS *****
Crypto Scanner Pro works effortlessly with the following large cap coins:
Avalanche, Bitcoin Cash, Bitcoin, BITO, BNB, Cardano, Chainlink, Dogecoin, Ethereum, Litecoin, Polkadot, Polygon, Shiba Inu, Solana, Stellar, Toncoin, XRP (Ripple) *
***** SETTINGS OVERVIEW *****
The scanner features the following customizable settings:
~~ Trend Settings ~~
Trend Filter - adjusting this will allow you to focus on short term trends (most suitable for scalping), medium or long term (best for swing trading).
Countertrend Strength - increases the sensitivity of weaker vs stronger countertrends. As countertrends are trends that run against the main trend, this will assist in detecting the strength of a pullback or reversal and allow you to either hold, exit or reverse the trade with confidence.
~~ Momentum Settings ~~
Momentum Filter - increase or decrease the sensitivity of the momentum scanner. Increase to avoid periods of low or weak momentum, decrease to highlight stronger surges in momentum.
~~ Volume Settings ~~
Volume Filter - increase or decrease the sensitivity of the volume scanner. Increase to avoid periods where buy and sell volume can potentially cancel each other out.
~~ Volatility Settings ~~
Volatility Offset - use this to fine tune the volatility filter. A higher value generally delays the volatility filter allowing for confirmation of stronger trends, a lower value will detect trend, momentum or volume movement sooner but may be less accurate.
Each scanner has its own setting allowing you to adjust how you monitor the underlying volatility for each.
As with all settings, we recommend adjusting this to your style of trading, instrument and timeframe.
~~ Alerts ~~
Alerts can be configured to send notifications when anything from 6-10 bullish or bearish dots are showing. Exit markers can be configured when anything from 2+ dots are revealed. This adds an extra layer of sensitivity for traders who appreciate complete control over their trade.
~~ Display Settings ~~
You have the ability to hide all colored dots and only show the background or, alternatively, hide the background and only show colored dots.
***** TRIAL PERIOD *****
We offer a FREE, no questions asked, 7-day trial with every new registration. Visit the link below to register.
* list subject to change as coins increase or decrease in popularity
Speed RailsCentered around a Variable Moving Average (Rail Line). The Variable Moving Average (VMA) is a study that uses an Exponential Moving Average being able to automatically adjust its smoothing factor according to the market volatility. Adjusted the settings of the VMA to move closer to price(quicker). This gives the user the ability to catch moves at support/resistance levels for added confluence.
In addition to the Rail Line or VMA, the indicator makes use of Bollinger Bands in two ways. First, it displays when the Bollinger Bands are in a squeeze and the potential direction of the breakout. The "squeeze" is the central concept of Bollinger Bands. When the bands come close together, constricting the moving average, it is called a squeeze. A squeeze signals a period of low volatility and is considered by traders to be a potential sign of future increased volatility and possible trading opportunities. The Bollinger Bands are also utilized to highlight when price action might reverse. This signals when price closes outside of the bands, quickly reverts and closes within the bands
Dots = Short Term Trend
Rails Bar Color = Medium Term Trend
Rail Line (VMA) = Long Term Trend
Squeeze = Shaded Orange Cloud
Combined with traditional support/resistance levels:
Chop and Trend Index (CTI)The Chop and Trend Index (CTI) is a unique indicator that provides a different perspective on market conditions compared to traditional oscillators. It is designed to identify periods of market chop and strong trends, and it does so by combining two key components: the number of halfback taps and the strength of the trend.
The CTI is calculated by first determining the number of halfback taps over a user-defined length of time. A halfback tap occurs when the high or low of a bar reaches the midpoint (halfback level) of the previous bar. This is a measure of market chop: the more halfback taps, the choppier the market. The fewer halfback taps, the stronger the trend.
The strength of the trend is determined using the Average Directional Index (ADX), a popular trend strength indicator. The ADX is calculated based on the directional movement of the market, with higher values indicating stronger trends.
The CTI combines these two components by multiplying the normalized number of halfback taps by the ADX value. This results in an indicator that rises during strong trends with few halfback taps (either up or down) and falls during periods of market chop.
The CTI is not a directional indicator. Unlike the Relative Strength Index (RSI) or other oscillators, high values do not indicate overbought conditions, and low values do not indicate oversold conditions. Instead, high values indicate a strong trend (and possibly trend exhaustion), while low values indicate strong chop (and possibly an impending breakout in either direction).
The CTI can be used on any market and any timeframe, but it may be particularly useful on longer timeframes where periods of chop and trend are more pronounced.
The CTI includes several user inputs :
Length : This determines the number of bars over which the number of halfback taps is calculated. Increasing this value will make the CTI less sensitive to recent market conditions, while decreasing it will make the CTI more sensitive.
Normalization Window Length : This determines the number of bars over which the CTI is normalized. The CTI is normalized to a scale of 0 to 100 to make it easier to compare across different markets and timeframes.
Chop Threshold : This is the CTI value below which an alert will be triggered indicating a period of severe chop. This could signal an impending breakout and potential upcoming volatility.
Trend Exhaustion Threshold : This is the CTI value above which an alert will be triggered indicating potential trend exhaustion. This could signal a possible mean reversion.
The CTI also includes four colored threshold lines at 10, 25, 75, and 90. These thresholds can be used as a guide to identify periods of chop and trend. For example, CTI values below 10 or above 90 could indicate extreme conditions.
The CTI provides two alert conditions :
Low Threshold Crossed : This alert is triggered when the CTI falls below the user-defined Chop Threshold. This could signal a period of severe chop and the potential for upcoming volatility.
High Threshold Crossed : This alert is triggered when the CTI rises above the user-defined Trend Exhaustion Threshold. This could signal potential trend exhaustion and the possibility of mean reversion.
In conclusion, the CTI is a unique and versatile indicator that can provide valuable insights into market conditions. By identifying periods of chop and trend, it can help traders anticipate potential breakouts and reversals, and adjust their strategies accordingly.
Bars Since EMA Touch (BSET)// Description:
Welcome to the "Bars since EMA touch" indicator, designed and developed by StockJustice. This script provides a unique approach to analyzing price movements relative to the Exponential Moving Average (EMA). It offers valuable insights into trend strength and trend duration, allowing traders to make informed decisions.
// How it Works:
The indicator calculates the EMA based on the chosen length, which is customizable through the input settings. Additionally, it calculates the MACD (Moving Average Convergence Divergence) and its signal line to further enhance the analysis.
The script tracks the number of bars since the price touches or crosses the EMA. It provides a histogram plot that represents this count. Positive values indicate bars since the price crossed above the EMA, while negative values indicate bars since the price crossed below the EMA.
The color of the histogram bars adjusts dynamically based on the relationship between the current close price and the EMA. If the close is above the EMA and the bars since EMA touch is greater than zero, the histogram will be colored red if the signal line is above the MACD. If the close is below the EMA and the bars since EMA touch is greater than zero, the histogram will be colored green if the signal line is below the MACD. Otherwise, the histogram bars will be colored blue or white, depending on the direction of the crossover.
The script also calculates percentiles for bullish and bearish trends. These percentiles indicate the proportion of trend durations that exceed a certain threshold, which is set at 20% by default. The percentile plots help identify significant trend durations and gauge their strength relative to the entire trend history.
// Usage:
This indicator can be applied to various markets and timeframes, accommodating different trading strategies. It is suitable for both intraday and swing trading. Traders can use it in conjunction with other technical analysis tools to confirm trade entries, identify trend reversals, or determine potential price targets.
// Input Parameters:
Length of EMA: This parameter allows you to define the length of the Exponential Moving Average used in the calculations. The default value is 9, but feel free to adjust it according to your preferences and trading style.
// Notes on Uniqueness:
The "Bars since EMA touch" indicator stands out from other published scripts due to its comprehensive analysis of trend durations, the use of MACD and its signal line, and the dynamic coloring of the histogram bars based on various conditions. The incorporation of percentiles provides further insights into trend strength. This unique combination of features makes the indicator a powerful tool for traders seeking a deeper understanding of price action.
// Relevance for Technical Analysis and Trading
The "Bars since EMA touch" indicator can be utilized for various aspects of technical analysis, including trend continuation, trend reversal, and identifying potential entry and exit points. Here's how you can apply it in different scenarios:
Trend Continuation:
When the histogram bars show positive values (indicating bars since the price crossed above the EMA), it suggests the presence of an ongoing uptrend. Traders can use this information to confirm the strength of the prevailing trend. If the histogram bars remain positive and the trend continues to unfold, it signals a potential opportunity to stay in the trade or consider adding to existing positions.
Trend Reversal:
Conversely, when the histogram bars show negative values (indicating bars since the price crossed below the EMA), it indicates a potential trend reversal or the beginning of a downtrend. Traders can watch for the histogram bars to transition from positive to negative values, signaling a possible trend reversal. This information can be used as an early indication to exit long positions or consider initiating short positions.
Entry and Exit Points:
Traders can incorporate the "Bars since EMA touch" indicator with other technical analysis tools to identify optimal entry and exit points. For example, when the histogram bars are positive, indicating an ongoing uptrend, traders might consider entering long positions when the price retraces and touches the EMA. This strategy aims to capitalize on potential pullbacks within the overall upward trend.
Conversely, when the histogram bars are negative, indicating a potential downtrend, traders might wait for the price to rally and touch the EMA before considering short positions. This approach seeks to enter short positions during temporary bounces within the overall downward trend.
Confirmation with MACD:
The script also incorporates the MACD and its signal line. Traders can analyze the relationship between the MACD and the signal line to confirm trend signals provided by the histogram bars. When the MACD crosses above the signal line and the histogram bars are positive, it adds further strength to the bullish indication. Similarly, when the MACD crosses below the signal line and the histogram bars are negative, it reinforces the bearish signal.
Responsive Histogram Color Scheme:
The color change of the histogram in the "Bars since EMA touch" indicator is specifically designed to alert traders to potential trend weakness or a shift in market dynamics. When the histogram bars turn red (for uptrends) or green (for downtrends), it signifies a weakening trend as the price approaches or hovers around the EMA. This color change acts as a visual cue, indicating that the trend may be losing momentum or facing resistance. It prompts traders to exercise caution, reassess the market conditions, and consider adjusting their trading strategies accordingly, such as tightening stops, taking partial profits, or preparing for a potential trend reversal.
// Red and Green Horizontal Lines:
The plotted percentile values in the "Bars since EMA touch" indicator hold significant importance as they provide insights into the strength and duration of trends. The percentile lines represent the proportion of trend durations that exceed a certain threshold, which is set at 20% by default.
The "Bull 15% Percentile" plot indicates the percentage of bullish trends that have lasted longer than 20% of the entire trend history. A higher value suggests that a significant portion of bullish trends has surpassed the threshold, indicating the presence of relatively strong and sustained uptrends.
On the other hand, the "Bear 15% Percentile" plot represents the percentage of bearish trends that have persisted beyond 20% of the total bearish trend history. A higher value suggests that a notable proportion of bearish trends has extended beyond the threshold, signifying the presence of pronounced and enduring downtrends.
These percentile lines serve as valuable reference points for traders, as they highlight significant trend durations compared to the overall trend history. They offer insights into the relative strength and duration of the prevailing trends, enabling traders to assess the potential continuation or reversal of the current trend. Additionally, observing changes in the percentile values over time can provide further indications of shifts in market dynamics and trend strength.
By incorporating these percentile lines into their analysis, traders can gain a better understanding of the market's trend characteristics and make more informed trading decisions.
Remember, as with any technical analysis tool, it's essential to consider other factors such as support and resistance levels, volume patterns, and broader market conditions to increase the accuracy of your trading decisions. It's recommended to backtest and validate the indicator's performance before using it in live trading.
NOTE: The 9ema is plotted on the chart simply to visually show how, once contact is made, the histogram stops plotting new bars. This visualization is needed to confirm how the script works.