Adaptive Z-Momentum (AZM) [Blk0ut]Adaptive Z-Momentum (AZM) is a momentum indicator that expresses the normalized deviation of price from a dynamic anchor (VWAP or EMA) in standard-score (z-score) terms, with adaptive “extreme” thresholds, trend sensitivity, and optional regime filtering. The line color, background shading, and labels help you visually discern when momentum is mild, building, or overextended.
---
## Features & Concept
* Computes **z = (price – anchor) / σ**, where the anchor is either Session VWAP (intraday) or EMA (non-intraday).
* Uses exponential moving averages (EWMA) to adaptively estimate the running mean and variance, making the indicator responsive to regime changes.
* Defines an **adaptive extreme threshold** (±z threshold) based on the chosen percentile of |z| over a lookback window (e.g. 90th percentile) — dynamically adjusting to volatility environment.
* Colors the main z-line **differently when inside vs. outside the extreme thresholds**, giving immediate visual feedback.
* Optionally shades the background when momentum is over the extremes (bullish or bearish).
* Supports a **self-tuning mode** (ADX-aware) that tightens or relaxes lookback/smoothing in strong trend vs. chop regimes.
* Regime filtering options (EMA slope or ADX threshold) let you filter signals in trend vs. non-trend markets.
* Plots Δz (the change in z) in various styles to help detect acceleration or deceleration in momentum.
* Adds optional thrust/fade labels to highlight when z crosses ±extreme zones, or when momentum stalls.
---
## How to Use
* Look for **z crossing** above zero (bullish momentum) or below zero (bearish momentum).
* When **z enters the extreme band**, it suggests strong momentum; when it exits, that may indicate exhaustion or reversal.
* Watch **Δz** (momentum acceleration) for clues of weakening or strengthening momentum before z itself reacts.
* Use the **regime filter** to enforce that signals only count in favorable directional markets.
* Customize inputs: lookback window, smoothing length, extreme percentile, ADX/auto settings, colors, etc., to match your trading style and timeframe.
*Use VWAP as the anchor on intraday/session charts — because it resets each session, it highlights deviations from session “fair value” and captures volume-flow bias.
*Use EMA on swing or multi-day charts — it doesn’t reset, so it preserves trend structure and gives a smoother momentum baseline across sessions.
*In trending markets, EMA tends to deliver more reliable momentum extremes; in range or mean-reversion regimes, VWAP often gives more intuitive reversal zones.
---
## Limitations & Disclaimers
* Like all indicators, AZM is **lagging** (though adaptive) and should not be used as a standalone entry/exit trigger — always combine with price action, structure, or confirmation.
* The extreme thresholds are **percentile-based**, meaning in very quiet or very noisy periods, “extreme” may shift rapidly; use your eyes alongside the indicator.
* Because the script uses historical data and smoothing, earlier bars may differ from real-time behavior.
* Past behavior is no guarantee of future performance. Use proper risk management and test ideas on historical data before trading live.
---
## Inputs & Customization
* **Anchor** mode: Session VWAP (intraday) or EMA
* **Lookback window** and **smoothing EMA** for computing z
* **Extreme percentile** (e.g. 90) to define ±z thresholds
* **Auto / ADX-based tuning** to allow dynamic parameter changes in trending vs chop markets
* **Regime filter** (EMA slope or ADX) to restrict signals to trending conditions
* **Color settings** for inside vs outside extremes, background shading, zero line, Δz style, labels, etc.
* **Show/hide labels**, choose Δz style (columns, histogram, line, etc.)
---
## Why It’s Useful
By combining standard-score normalization with adaptive thresholds and regime sensitivity, AZM helps you see **relative momentum extremes** in a way that adjusts to market regime shifts. The dual visual cues (line color + background) reduce ambiguity at a glance.
---
Поиск скриптов по запросу "momentum"
Triple EMA Momentum Oscillator (TEMO) HistogramThis Pine Script code replicates the Python indicator you provided, calculating the Triple EMA Momentum Oscillator (TEMO) and generating signals based on its value and momentum.
Explanation of the Code:
User Inputs:
Allows you to adjust the periods for the short, mid, and long EMAs.
Calculate EMAs:
Computes the Exponential Moving Averages for the specified periods.
Calculate EMA Spreads (Distances):
Finds the differences between the EMAs to understand the spread between them.
Calculate Spread Velocities:
Determines the change in spreads from the previous period, indicating momentum.
Composite Strength Score:
Weighted calculation of the spreads normalized by the EMA values.
Velocity Accelerator:
Weighted calculation of the velocities normalized by the EMA values.
Final TEMO Oscillator:
Combines the spread strength and velocity accelerator to create the TEMO.
Generate Signals:
Signals are generated when TEMO is positive and increasing (buy), or negative and decreasing (sell).
Plotting:
Zero Line: Helps visualize when TEMO crosses from positive to negative.
TEMO Oscillator: Plotted with green for positive values and red for negative values.
Signals: Displayed as a histogram to indicate buy (1) and sell (-1) signals.
Usage:
Buy Signal: When TEMO is above zero and increasing.
Sell Signal: When TEMO is below zero and decreasing.
Note: This oscillator helps identify momentum changes based on EMAs of different periods. It's useful for detecting trends and potential reversal points in the market.
Clenow MomentumClenow Momentum Method
The Clenow Momentum Method, developed by Andreas Clenow, is a systematic, quantitative trading strategy focused on capturing medium- to long-term price trends in financial markets. Popularized through Clenow’s book, Stocks on the Move: Beating the Market with Hedge Fund Momentum Strategies, the method leverages momentum—an empirically observed phenomenon where assets that have performed well in the recent past tend to continue performing well in the near future.
Theoretical Foundation
Momentum investing is grounded in behavioral finance and market inefficiencies. Investors often exhibit herding behavior, underreact to new information, or chase trends, causing prices to trend beyond fundamental values. Clenow’s method builds on academic research, such as Jegadeesh and Titman (1993), which demonstrated that stocks with high returns over 3–12 months outperform those with low returns over similar periods.
Clenow’s approach specifically uses **annualized momentum**, calculated as the rate of return over a lookback period (typically 90 days), annualized to reflect a yearly percentage. The formula is:
Momentum=(((Close N periods agoCurrent Close)^N252)−1)×100
- Current Close: The most recent closing price.
- Close N periods ago: The closing price N periods back (e.g., 90 days).
- N: Lookback period (commonly 90 days).
- 252: Approximate trading days in a year for annualization.
This metric ranks stocks by their momentum, prioritizing those with the strongest upward trends. Clenow’s method also incorporates risk management, diversification, and volatility adjustments to enhance robustness.
Methodology
The Clenow Momentum Method involves the following steps:
1. Universe Selection:
- A broad universe of liquid stocks is chosen, often from major indices (e.g., S&P 500, Nasdaq 100) or global exchanges.
- Filters should exclude illiquid stocks (e.g., low average daily volume) or those with extreme volatility.
2. Momentum Calculation:
- Stocks are ranked based on their annualized momentum over a lookback period (typically 90 days, though 60–120 days can be common tests).
- The top-ranked stocks (e.g., top 10–20%) are selected for the portfolio.
3. Volatility Adjustment (Optional):
- Clenow sometimes adjusts momentum scores by volatility (e.g., dividing by the standard deviation of returns) to favor stocks with smoother trends.
- This reduces exposure to erratic price movements.
4. Portfolio Construction:
- A diversified portfolio of 10–25 stocks is constructed, with equal or volatility-weighted allocations.
- Position sizes are often adjusted based on risk (e.g., 1% of capital per position).
5. Rebalancing:
- The portfolio is rebalanced periodically (e.g., weekly or monthly) to maintain exposure to high-momentum stocks.
- Stocks falling below a momentum threshold are replaced with higher-ranked candidates.
6. Risk Management:
- Stop-losses or trailing stops may be applied to limit downside risk.
- Diversification across sectors reduces concentration risk.
Implementation in TradingView
Key features include:
- Customizable Lookback: Users can adjust the lookback period in pinescript (e.g., 90 days) to align with Clenow’s methodology.
- Visual Cues: Background colors (green for positive, red for negative momentum) and a zero line help identify trend strength.
- Integration with Screeners: TradingView’s stock screener can filter high-momentum stocks, which can then be analyzed with the custom indicator.
Strengths
1. Simplicity: The method is straightforward, relying on a single metric (momentum) that’s easy to calculate and interpret.
2. Empirical Support: Backed by decades of academic research and real-world hedge fund performance.
3. Adaptability: Applicable to stocks, ETFs, or other asset classes, with flexible lookback periods.
4. Risk Management: Diversification and periodic rebalancing reduce idiosyncratic risk.
5. TradingView Integration: Pine Script implementation enables real-time visualization, enhancing decision-making for stocks like NVDA or SPY.
Limitations
1. Mean Reversion Risk: Momentum can reverse sharply in bear markets or during sector rotations, leading to drawdowns.
2. Transaction Costs: Frequent rebalancing increases trading costs, especially for retail traders with high commissions. This is not as prevalent with commission free trading becoming more available.
3. Overfitting Risk: Over-optimizing lookback periods or filters can reduce out-of-sample performance.
4. Market Conditions: Underperforms in low-momentum or highly volatile markets.
Practical Applications
The Clenow Momentum Method is ideal for:
Retail Traders: Use TradingView’s screener to identify high-momentum stocks, then apply the Pine Script indicator to confirm trends.
Portfolio Managers: Build diversified momentum portfolios, rebalancing monthly to capture trends.
Swing Traders: Combine with volume filters to target short-term breakouts in high-momentum stocks.
Cross-Platform Workflow: Integrate with Python scanners to rank stocks, then visualize on TradingView for trade execution.
Comparison to Other Strategies
Vs. Minervini’s VCP: Clenow’s method is purely quantitative, while Minervini’s Volatility Contraction Pattern (your April 11, 2025 query) combines momentum with chart patterns. Clenow is more systematic but less discretionary.
Vs. Mean Reversion: Momentum bets on trend continuation, unlike mean reversion strategies that target oversold conditions.
Vs. Value Investing: Momentum outperforms in bull markets but may lag value strategies in recovery phases.
Conclusion
The Clenow Momentum Method is a robust, evidence-based strategy that capitalizes on price trends while managing risk through diversification and rebalancing. Its simplicity and adaptability make it accessible to retail traders, especially when implemented on platforms like TradingView with custom Pine Script indicators. Traders must be mindful of transaction costs, mean reversion risks, and market conditions. By combining Clenow’s momentum with volume filters and alerts, you can optimize its application for swing or position trading.
Long Short MomentumThis indicator is designed to visualize short-term and long-term momentum trends.The indicator calculates two momentum lines based on customizable lengths: a short momentum (Short Momentum) over a smaller period and a long momentum (Long Momentum) over a longer period. These lines are plotted relative to the chosen price source, typically the closing price.
The histogram, colored dynamically based on momentum direction, gives visual cues:
Green: Both short and long momentum are positive, indicating an upward trend.
Red: Both are negative, indicating a downward trend.
Gray: Mixed momentum, suggesting potential trend indecision.
Polychromatic Momentum IndicatorPolychromatic Momentum is a generalized Momentum study considering a number of Momentum values controlled by the length input. The greatest weight is given to the most recent Momentum value, while the precedent values are given lesser weight. Each Momentum value is assigned weight equal to inverse square root of Momentum distance (number of bars prior to the current bar). Then the sum of the weighted Momentum values is divided by the sum of the square roots.
Multiple Standard MomentumMultiple Standard Momentum
The momentum indicator is a technical indicator that measures the speed and strength of the price movement of a financial asset. This indicator is used to identify the underlying strength of a trend and predict potential changes in price direction.
The calculation of the momentum indicator is based on the difference between the current price and the price of a previous period. The result is displayed on a chart, which can be positive or negative, depending on whether the current price is higher or lower than the price of the previous period. The indicator can be used on any time frame, but is generally used on short-term charts.
To use the momentum indicator , you look for two types of signals:
🔹 Crossover Signal – When the indicator crosses the zero line, it can signal a change of direction in the price trend.
🔹 Divergence – When the asset price moves in one direction and the indicator moves in the opposite direction, a divergence can be identified. This divergence may indicate a possible trend reversal.
COMPOSITION AND MODE OF USE OF THE INDICATOR
🔹 This indicator displays multiple Momentum levels on a single chart, allowing you to view multiple Momentum lines. Each level is represented on the chart where it can be hidden or shown as desired for better market analysis.
🔹 In addition, a zero trend line (also known as a horizontal trend line) has been added. The zero trend line is a horizontal line that indicates the point at which the current price equals the opening price, which allows users to draw a custom zero trend line on the chart using different colors and time periods of calculation.
* Highest performing custom setup for the Zero Trend Line. For Operations of:
- One Minute: Trend Line Time Frame = Five Minutes.
- Three Minutes: Trend Line Time Frame = Fifteen Minutes.
- Five Minutes: Trend Line Time Frame = Thirty Minutes.
- Fifteen Minutes: Trend Line Time Frame = Sixty Minutes.
Rules For Trading
🔹 Bullish:
* The Zero Trend Line must be in Green Color.
* When the Momentum Line Crosses the Zero Line from Bottom to Top.
🔹 Bearish:
* The Zero Trend Line must be in Red Color.
* When the Momentum Line Crosses the Zero Line from Top to Bottom.
In addition, parameters were defined to activate or deactivate the graphic signal taking into account the previous requirement (Bullish and Bearish):
🔹 Long or Buy = ▲
🔹 Short or Sell = ▼
This script can be used in different markets such as forex, indices, and cryptocurrencies for analysis and trading. However, it is important to note that no trading strategy is guaranteed to be profitable, and traders should always conduct their own research and risk management.
SQUEEZE MOMENTUM PRO - JBMCredits
I am not the author of the original script from which this indicator was based, the script was based on the Squeeze Momentum Indicator by the author LazzyBear
Description
The squeeze momentum PRO is a modification of an existing script that allows you to see the market movements in the form of waves, this indicator allows you to use two squeezes in a chart, the first corresponding to the current timeframe and the second to a greater timeframe. In this way it allows to operate in the direction of the greater temporality but with the impulse of the current movement of the graph.
Its main characteristic is that it provides a signal to the trader in the form of a symbol on the starter, when the indicator shows a green alert it means that both indicators are in a bullish direction so there is a probability that the price will rise, while a red symbol indicates that both temporalities show a bearish direction, so a bearish movement is more likely
The greater temporality is calculated by multiplying the current temporality, for example 1 hour, multiplied by 4, then the greater squeeze temporality will give the momentum of the 4-hour temporality, that the greater momentum will always be four times greater than the current temporality, although this can be changed in the settings.
The signals are not completely reliable so it must be used in conjunction with other indicators or analysis that allows the trader to filter the signals in a better way.
matrix momentum packageThis indicator gives a score to the momentum of a market in a percentage term based on a combination of measurements, this can be used on any time frame, on any instrument to identify if the current trend has enough momentum to see it carry on further this will help eliminate fomo and also help you to identify reversals in the chart at the right time so you can eliminate exposure to a market about to reverse, there is 4 levels to this indicator you have a strong bullish trend denote by green bars the weaker bullish trend denoted by the olive coloured bars, a weak bearish trend which is given in maroon bars and a strong bearish trend which gives red bars you will also note the 2 horizontal boundary lines these are not overbought and oversold bounds like in most indicators but actually indicate whether there is sufficient momentum in the market as the idea is that in strong momentum you want it to be above or below this line to give you confidence there is momentum available to ride
Prometheus' Momentum SMAThis is a price momentum indicator that calculates the change in price momentum over time with a simple moving average to use as a potential profit taking mechanism.
The lookback period is for calculating the momentum plot on the chart. It measures the closing price between the current candle and the candle X periods ago. (orange line)
The indicator also has a simple moving average of the momentum plotted on the chart. (gray line with background fill)
Future versions will include multitimeframe signals and alertconditions.
[SC]Rainbow - MOMENTUMThis indicator calculates and displays 31 momentum lines between "min period" and "max period".
Positive momentum is calculated using the high value.
negative momentum is calculated using the low value.
smooth factor is used for smoothing values.
"ema(ema(momentum value, momentum period*smooth factor), momentum period*smooth factor)"
EMA Ribbon + ADX MomentumHere's a description for your TradingView indicator publication:
The EMA Ribbon + ADX Momentum indicator combines exponential moving averages (EMA) with the Average Directional Index (ADX) to identify strong trends and potential trading opportunities. This powerful tool offers:
🎯 Key Features:
EMA Ribbon (10, 21, 34, 55) for trend direction
ADX integration for trend strength confirmation
Clear visual signals with color-coded backgrounds
Real-time trend status display
Strength metrics with exact percentage values
📊 How It Works:
EMA Ribbon: Four EMAs form a ribbon pattern that shows trend direction through their stacking order
ADX Integration: Confirms trend strength when above the threshold (default 25)
Visual Signals:
Green background: Strong bullish trend
Red background: Strong bearish trend
Gray background: Neutral or weak trend
📈 Trading Signals:
STRONG BULL: EMAs properly stacked bullish + high ADX + DI+ > DI-
STRONG BEAR: EMAs properly stacked bearish + high ADX + DI- > DI+
BULL/BEAR TREND: Shows regular trend conditions without strength confirmation
NEUTRAL: No clear trend structure
🔧 Customizable Parameters:
ADX Length: Adjust trend calculation period
ADX Threshold: Modify strength confirmation level
ADX Panel Toggle: Show/hide the ADX indicator panel
💡 Best Uses:
Trend following strategies
Entry/exit timing
Trade confirmation
Market structure analysis
Risk management tool
This indicator helps traders identify not just trend direction, but also trend strength, making it particularly useful for both position entry timing and risk management. The clear visual signals and real-time metrics make it suitable for traders of all experience levels.
Note: As with all technical indicators, best results are achieved when used in conjunction with other forms of analysis and proper risk management.
Basic Polychromatic Momentum IndicatorBasic Polychromatic Momentum Indicator with alerts
PMI involves taking the difference between the current price and the price n periods ago, and then subtracting from it the difference between the current price and the price n periods ago, divided by n. This gives a smoothed version of the momentum indicator.
The user can also specify a smoothing factor using the "smoothing" input, which applies a simple moving average to the PMI. The resulting smoothed PMI is plotted on the chart in blue, with a dotted gray line at the zero level.
SG MomentumHello All,
I have made a momentum indicator based on the distance from exponential moving average. This captures both buy and sell cycles effectively. The logic is to calculate the distance of closing price from an exponential moving average ( I use 13 period - You are free to choose any other period) - this is the dim grey line which you can toggle off too. Then I smoothen this by calculating a 9-period EMA of the same (the green line). I further slow it down by another 9-period EMA of the same ( the red line). Now when the green lines crosses the red line from below 0 it signifies a new bull cycle and vice versa for bear cycle. This works across all timeframes. I have marked few signals in the below chart for your reference.
Inside Bar Momentum Alerts v1Alerts for Inside Bar Momentum Strategy
Purple Diamonds show IBs
triangles at top show long alerts
triangles at bot show short alerts
Directional Momentum VisualizerDescription
This script provides a color-coded column visualization of a classic momentum oscillator that measures relative strength and weakness. Instead of a single line, it uses conditional coloring to make directional changes easier to identify at a glance.
The tool is designed for clarity and adaptability, offering both column and line displays, with optional overbought, oversold, and midpoint guides.
How It Works
The script evaluates the oscillator’s value relative to a midpoint and its previous reading.
Depending on whether it’s above or below the midpoint — and whether it’s rising or falling — each column changes color:
Strong upward momentum (above midpoint and rising) → bright green
Fading upward momentum (above midpoint but falling) → pale green
Strong downward momentum (below midpoint and falling) → bright red
Fading downward momentum (below midpoint but rising) → pale red
Unchanged from the previous value → gray
This structure makes momentum shifts instantly visible without relying on line crossings or alerts.
Key Features
Color-coded momentum columns for instant visual interpretation
Adjustable midpoint, overbought, and oversold levels
Optional line overlay for smoother reference
Dynamic background highlighting in extreme zones
Works on any symbol or timeframe
Inputs Overview
Length: Controls the sensitivity of the oscillator calculation.
Source: Selects the price source (Close, HL2, etc.).
Midpoint Level: Defines the central reference level separating bullish and bearish momentum.
Show Line: Toggles visibility of the traditional line overlay.
Overbought / Oversold Levels: Define upper and lower boundaries for potential exhaustion zones.
How to Use
Add the script to your chart from the Indicators tab.
Adjust the midpoint and level settings to fit your preferred configuration.
Observe how column colors shift to reflect strength or weakness in momentum.
Use these transitions as visual context, not as trade signals.
How it Helps
This visual approach offers a clearer perspective on momentum dynamics by replacing the traditional single-line display with color-coded columns. The conditional coloring instantly reveals whether momentum is strengthening or weakening around a chosen midpoint, making trend shifts and fading pressure easier to interpret at a glance. It helps reduce visual noise and allows for quicker, more intuitive analysis of market behavior.
This tool is intended purely as a visual aid to help identify changing momentum conditions at a glance. It is not a buy or sell signal generator and should be used in combination with other forms of analysis and sound risk management.
⚠️ Disclaimer:
This script is provided for educational and informational purposes only. It is not financial advice and should not be considered a recommendation to buy, sell, or hold any financial instrument. Trading involves significant risk of loss and is not suitable for every investor. Users should perform their own due diligence and consult with a licensed financial advisor before making any trading decisions. The author does not guarantee any profits or results from using this script, and assumes no liability for any losses incurred. Use this script at your own risk.
Ollie_allcaps Momentum IndicatorMomentum is created when a security makes a large move on higher-than-average volume. Momentum shows the rate of change in price movement over a period of time to help investors determine the strength of a trend.
This indicator will create a green spike once price advances 4% and is trading above the 50-day average trading volume. However, if the stock begins to breakdown (-4% or greater on above average volume), a red spike will be created.
These green and red spikes represent a change in momentum that occurs in the selected security.
This indictor should be used in 2 ways:
1: What are the charecteristics of this stock? Does it breakdown shortly after a momentum spike? or does the security trend in orderly manner after a momentum spike?
2: Investers should use this indicator to determine the strength of a momentum breakout in real time. Has the stock made a large move, but with no significant volume?
Customization:
The Percentage move, and average daily volume can be changed as well as colors.
Alerts:
If you wish to set an alert, this indicator allows you to create an alert when the selected stock meets your desired criteria.
Price action Momentum Level/Zone (Expo) Price action Momentum Levels/Zones (Expo) indicator identifies relatively stronger Up and Down Momentum. This is visualized by a Zone, or Levels or with Barcolors depending on which settings are used.
When the market has relatively stronger momentum it can be a sign that the sellers or buyers are exhausted and the market has to pause, make a pullback, or make a trend shift.
HOW TO USE
1. Use the indicator to identify relatively stronger momentum.
2. Use the indicator to identify pullbacks or trend shifts.
3. Use the indicator to buy/short-sell breakouts of the zones.
4. Use the indicator to buy/short-sell when the price re-test the zones.
INDICATOR IN ACTION
4 hour chart
I hope you find this indicator useful , and please comment or contact me if you like the script or have any questions/suggestions for future improvements. Thanks!
I will continually work on this indicator, so please share your experience and feedback as it will enable me to make even better improvements. Thanks to everyone that has already contacted me regarding my scripts. Your feedback is valuable for future developments!
ACCESS THE INDICATOR
• Contact me on TradingView or use the links below
-----------------
Disclaimer
Copyright by Zeiierman.
The information contained in my scripts/indicators/ideas 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, 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 are only for educational purposes!
Momentum Phases📌 Overview
The Momentum Phases indicator helps traders quickly identify periods of strong bullish or bearish momentum based on the relationship between a short‑term and a long‑term Moving Average (SMA).
It helps traders visually distinguish between Positive 🟢 , Negative 🔴 , and Neutral ⚪ phases by plotting a dynamically colored state line and generating optional alerts when a phase change occurs.
🧠 How It Works
⦿ SMA Calculation
The indicator calculates two SMAs:
Short SMA (default: 7 periods)
Long SMA (default: 65 periods)
Both SMA lengths can be adjusted by the user.
// SMA calculations
smaShort = ta.sma(close, shortLen)
smaLong = ta.sma(close, longLen)
⦿ Momentum Ratio
A ratio is calculated:
ratio = smaShort / smaLong
This ratio measures how far the short‑term trend has diverged from the long‑term trend.
⦿ Threshold Levels
Positive Threshold (default: 1.05) — indicates short SMA is at least 5% above the long SMA.
Negative Threshold (default: 0.95) — indicates short SMA is at least 5% below the long SMA.
These thresholds are user‑adjustable.
⦿ Momentum States
Positive Momentum: Ratio ≥ Positive Threshold (default: 1.05) → Short SMA is at least 5% above Long SMA.
Negative Momentum: Ratio ≤ Negative Threshold (default: 0.95) → Short SMA is at least 5% below Long SMA.
Neutral: Ratio between the two thresholds.
⦿ State Line Plot
The indicator plots a flat state line at 1.0 when in positive or negative momentum, and 0.0 when in neutral.
The state line’s color changes dynamically:
Green 🟢 Positive Momentum: Ratio ≥ Positive Threshold (default: 1.05) – Short SMA is at least 5% above Long SMA.
Red 🔴 Negative Momentum: Ratio ≤ Negative Threshold (default: 0.95) – Short SMA is at least 5% below Long SMA.
Gray ⚪ Neutral: Ratio between the two thresholds.
📈 How to Use
Trend Confirmation: Use the state line color to quickly confirm the prevailing momentum.
Green 🟢: Consider focusing on long setups
Red 🔴: Consider focusing on short setups
Gray ⚪: Consider staying neutral or waiting for stronger signals
Trade Filtering: Filter trades in your existing strategy so they only align with the detected momentum phase.
Early Warnings: Enable phase change alerts to get notified when market conditions shift.
⚙️ Customization
SMA Periods: Adjust short and long SMA lengths to suit your trading timeframe.
Thresholds: Tighten (closer to 1.00) for more frequent signals, or widen for fewer but stronger signals.
🔔 Alerts
🟢 Positive Momentum START – Stock/Security shifts into positive momentum.
⚪ Positive Momentum END – Positive momentum ends (neutral state).
🔴 Negative Momentum START – Market shifts into negative momentum.
⚪ Negative Momentum END – Negative momentum ends (neutral state).
Momentum Phase Change – Any shift between Positive, Negative, or Neutral.
🎯 Add this indicator to your chart to track momentum phases like a pro — know exactly when trends start, end, or stall.
Relative Strength and MomentumRelative Strength and Momentum Indicator
Unlock deeper market insights with the Relative Strength and Momentum Indicator—a powerful tool designed to help traders and investors identify the strongest stocks and sectors based on relative performance. This custom indicator displays essential information on relative strength and momentum for up to 15 different symbols, compared against a benchmark index, all within a clear and organized table format.
Key Features:
1. Customizable Inputs: Choose up to 15 symbols to compare, along with a benchmark index, allowing you to tailor the indicator to your trading strategy. The 'Lookback Period' input defines how many weeks of data are analyzed for relative strength and momentum.
2. Relative Strength Calculation: For each selected symbol, the indicator calculates the Relative Strength (RS) against the chosen benchmark. This RS is further refined using an exponential moving average (EMA) to smooth the results, providing a more stable trend overview.
3. Momentum Analysis: Momentum is determined by analyzing the rate of change in relative strength. The indicator calculates a momentum rank for each symbol, based on its relative strength’s improvement or deterioration.
4. Percentile Ranking System: Each symbol is assigned a percentile rank (from 1 to 100) based on its relative strength compared to the others. Similarly, momentum rankings are also assigned from 1 to 100, offering a clear understanding of which assets are outperforming or underperforming.
5. Visual Indicators:
a. Green: Signals improving or stable relative strength and momentum.
b. Red: Indicates declining relative strength or momentum.
c. Aqua: Highlights symbols performing well on both relative strength and momentum—ideal candidates for further analysis.
6. Two Clear Tables:
a. Relative Strength Rank Table: Displays weekly rankings of relative strength for each symbol.
b. Momentum Table: Shows momentum trends, helping you identify which symbols are gaining or losing strength.
7. Color-Coded for Easy Analysis: The tables are color-coded to make analysis quick and straightforward. A green color means the symbol is performing well in terms of relative strength or momentum, while red indicates weaker performance. Aqua marks symbols that are excelling in both areas.
Use Case:
a. Sector Comparison: Identify which sectors or indexes are showing both relative strength and momentum to pick high-potential stocks. This allows you to align with broader market trends for improved trade entries.
b. Stock Selection: Quickly compare symbols within the same sector to find the stronger performers.
Momentum Memory Indicator
The Momentum Memory Indicator (MMI) is a custom tool designed to predict future price movements based on the historical momentum of an asset. By calculating the Rate of Change (ROC) and then averaging it over a specified "memory" period, the MMI provides a prediction that reflects both recent and slightly older momentum data. The prediction is visualized as a histogram, with colors indicating the direction of the momentum.
**Parameters:**
1. **Rate of Change Period (ROC Period):** This parameter sets the period for the Rate of Change calculation, which measures the momentum of the asset. The default value is 14.
2. **Memory Period:** This parameter determines the period over which the average momentum is calculated. By considering momentum over this "memory" period, the indicator aims to provide a more stable and reliable prediction. The default value is 5.
**Logic:**
1. **Rate of Change (Momentum):** The ROC is calculated based on the asset's closing prices over the specified ROC period. It provides a measure of how much the price has changed over that period, indicating momentum.
2. **Average Momentum:** The average momentum is calculated by taking a simple moving average (SMA) of the ROC values over the memory period. This smoothens out the momentum data and provides a more stable value for prediction.
3. **Prediction:** The prediction is calculated by adjusting the current closing price based on the average momentum. This gives an estimate of where the price might be in the next period, assuming the momentum continues.
4. **Prediction Color:** The color of the prediction histogram is determined by the direction of the average momentum. A positive momentum results in a green histogram, while a negative momentum results in a red histogram.
**Plots:**
1. **Prediction (Histogram):** Represents the predicted price movement based on the average momentum. The direction and magnitude of the histogram bars provide insights into the expected price change. The color of the bars (green or red) indicates the direction of the momentum.
Momentum Bias Index [AlgoAlpha]Description:
The Momentum Bias Index by AlgoAlpha is designed to provide traders with a powerful tool for assessing market momentum bias. The indicator calculates the positive and negative bias of momentum to gauge which one is greater to determine the trend.
Key Features:
Comprehensive Momentum Analysis: The script aims to detect momentum-trend bias, typically when in an uptrend, the momentum oscillator will oscillate around the zero line but will have stronger positive values than negative values, similarly for a downtrend the momentum will have stronger negative values. This script aims to quantify this phenomenon.
Overlay Mode: Traders can choose to overlay the indicator on the price chart for a clear visual representation of market momentum.
Take-profit Signals: The indicator includes signals to lock in profits, they appear as labels in overlay mode and as crosses when overlay mode is off.
Impulse Boundary: The script includes an impulse boundary, the impulse boundary is a threshold to visualize significant spikes in momentum.
Standard Deviation Multiplier: Users can adjust the standard deviation multiplier to increase the noise tolerance of the impulse boundary.
Bias Length Control: Traders can customize the length for evaluating bias, enabling them to fine-tune the indicator according to their trading preferences. A higher length will give a longer-term bias in trend.