[VectorAlgo] Smart Momentum OscillatorThe Smart Momentum Oscillator (SMO) is a powerful indicator that combines RSI, MACD, and Volume to provide enhanced trend confirmation. This unique approach helps traders make better-informed decisions by filtering out false signals and increasing reliability in market momentum analysis.
- RSI Integration: Measures relative strength with a 50-centerline.
- MACD Histogram Influence: Identifies trend strength and direction.
- Volume Normalization: Adjusts momentum signals based on trading volume impact.
- Zero-Centered Oscillator: Easy-to-interpret trend shifts.
- Visual Enhancements: Color-coded bars and background for quick insights.
How It Works
RSI Component: Calculates RSI and centers it around 50 to measure momentum.
MACD Component: Uses the MACD histogram to gauge trend strength.
Volume Component: Normalizes volume against the highest of the last 50 bars.
Final Calculation: Combines the three components into a single oscillator with smoothing.
Color Coding: Green when momentum is positive, red when negative.
Usage
Buy Signal: When SMO crosses above 0, indicating bullish momentum.
Sell Signal: When SMO crosses below 0, signaling bearish momentum.
Divergences: Watch for SMO divergences against price action for early trend shifts.
Customization
- Adjustable RSI Length, MACD Settings, and Volume Weighting.
- Modify colors and smoothing settings for personal preference.
Momentumindicator
IDX - 5UPThe UDX-5UP is a custom indicator designed to assist traders in identifying trends, entry and exit signals, and market reversal moments with greater accuracy. It combines price analysis, volume, and momentum (RSI) to provide clear buy ("Buy") and sell ("Sell") signals across any asset and timeframe, whether you're a scalper on the 5M chart or a swing trader on the 4H chart. Inspired by robust technical analysis strategies, the UDX-5UP is ideal for traders seeking a reliable tool to operate in volatile markets such as cryptocurrencies, forex, stocks, and futures.
Components of the UDX-5UP
The UDX-5UP consists of three main panels that work together to provide a comprehensive view of the market:
Main Panel (Price):
Pivot Supertrend: A dynamic line that changes color to indicate the trend. Green for an uptrend (look for buys), red for a downtrend (look for sells).
SMAs (Simple Moving Averages): Two SMAs (8 and 21 periods) to confirm the trend direction. When the SMA 8 crosses above the SMA 21, it’s a bullish signal; when it crosses below, it’s a bearish signal.
Entry/Exit Signals: "Buy" (green) and "Sell" (red) labels are plotted on the chart when entry or exit conditions are met.
Volume Panel:
Colored Volume Bars: Green bars indicate dominant buying volume, while red bars indicate dominant selling volume.
Volume Moving Average (MA 20): A blue line that helps identify whether the current volume is above or below the average, confirming the strength of the movement.
RSI Panel:
RSI (Relative Strength Index): Calculated with a period of 14, with overbought (70) and oversold (30) lines to identify momentum extremes.
Divergences: The indicator detects divergences between the RSI and price, plotting signals for potential reversals.
How the UDX-5UP Works
The UDX-5UP uses a combination of rules to generate buy and sell signals:
Buy Signal ("Buy"):
The Pivot Supertrend changes from red to green.
The SMA 8 crosses above the SMA 21.
The volume is above the MA 20, with green bars (indicating buying pressure).
The RSI is rising and, ideally, below 70 (not overbought).
Example: On the 4H chart, the price of Tether (USDT) is at 0.05515. The Pivot Supertrend turns green, the SMA 8 crosses above the SMA 21, the volume shows green bars above the MA 20, and the RSI is at 46. The UDX-5UP plots a "Buy".
Sell Signal ("Sell"):
The Pivot Supertrend changes from green to red.
The SMA 8 crosses below the SMA 21.
The volume is above the MA 20, with red bars (indicating selling pressure).
The RSI is falling and, ideally, above 70 (overbought).
Example: On the 4H chart, the price of Tether rises to 0.05817. The Pivot Supertrend turns red, the SMA 8 crosses below the SMA 21, the volume shows red bars, and the RSI is above 70. The UDX-5UP plots a "Sell".
RSI Divergences:
The indicator identifies bullish divergences (price makes a lower low, but RSI makes a higher low) and bearish divergences (price makes a higher high, but RSI makes a lower high), plotting alerts for potential reversals.
Adjustable Settings
The UDX-5UP is highly customizable to suit your trading style:
Pivot Supertrend Period: Default is 2. Increase to 3 or 4 for more conservative signals (fewer false positives, but more lag).
SMA Periods: Default is 8 and 21. Adjust to 5 and 13 for smaller timeframes (e.g., 5M) or 13 and 34 for larger timeframes (e.g., 1D).
RSI Period: Default is 14. Reduce to 10 for greater sensitivity or increase to 20 for smoother signals.
Overbought/Oversold Levels: Default is 70/30. Adjust to 80/20 in volatile markets.
Display Panels: You can enable/disable the volume and RSI panels to simplify the chart.
How to Use the UDX-5UP
Identify the Trend:
Use the Pivot Supertrend and SMAs to determine the market direction. Uptrend: look for buys. Downtrend: look for sells.
Confirm with Volume and RSI:
For buys: Volume above the MA 20 with green bars, RSI rising and below 70.
For sells: Volume above the MA 20 with red bars, RSI falling and above 70.
Enter the Trade:
Enter a buy when the UDX-5UP plots a "Buy" and all conditions are aligned.
Enter a sell when the UDX-5UP plots a "Sell" and all conditions are aligned.
Plan the Exit:
Use Fibonacci levels or support/resistance on the price chart to set targets.
Exit the trade when the UDX-5UP plots an opposite signal ("Sell" after a buy, "Buy" after a sell).
Tips for Beginners
Start with Larger Timeframes: Use the 4H or 1D chart for more reliable signals and less noise.
Combine with Other Indicators: Use the UDX-5UP with tools like Fibonacci or the Candles RSI (another powerful indicator) to confirm signals.
Practice in Demo Mode: Test the indicator in a demo account before using real money.
Manage Risk: Always use a stop-loss and don’t risk more than 1-2% of your capital per trade.
Why Use the UDX-5UP?
Simplicity: Clear "Buy" and "Sell" signals make trading accessible even for beginners.
Versatility: Works on any asset (crypto, forex, stocks) and timeframe.
Multiple Confirmations: Combines price, volume, and momentum to reduce false signals.
Customizable: Adjust the settings to match your trading style.
Author’s Notes
The UDX-5UP was developed based on years of trading and technical analysis experience. It is an evolution of tested strategies, designed to help traders navigate volatile markets with confidence. However, no indicator is infallible. Always combine the UDX-5UP with proper risk management and fundamental analysis, especially in unpredictable markets. Feedback is welcome – leave a comment or reach out with suggestions for improvements!
Jigga-SectorTrendViewThe Jigga-SectorView script is indicator designed to analyze and visualize sector trends based on given input. Based on input of multiple sector indices, calculates key technical values, and presents a structured summary in a table.
Calculating Sector Strength & Momentum:
For each selected symbol
Step 1 - 52-week lowest low is fetched.
Step 2 - Daily closing price is retrieved.
Step 3 - A crossover between 50-day EMA and 200-day EMA determines trend shifts.
Step 4 - Percentage difference from the identified level is calculated.
Output:
A bottom-right table is created with sector-wise trend insights which shows Symbol name and how much its away from SL in percentage terms.
MLB Momentum IndicatorMLB Momentum Indicator is a no‐lookahead technical indicator designed to signal intraday trend shifts and potential reversal points. It combines several well‐known technical components—Moving Averages, MACD, RSI, and optional ADX & Volume filters—to deliver high‐probability buy/sell signals on your chart.
Below is an overview of how it works and what each part does:
1. Moving Average Trend Filter
The script uses two moving averages (fast and slow) to determine the primary trend:
isUpTrend if Fast MA > Slow MA
isDownTrend if Fast MA < Slow MA
You can select the MA method—SMA, EMA, or WMA—and customize lengths.
Why it matters: The indicator only gives bullish signals if the trend is up, and bearish signals if the trend is down, helping avoid trades that go against the bigger flow.
2. MACD Confirmation (Momentum)
Uses MACD (with user‐defined Fast, Slow, and Signal lengths) to check momentum:
macdBuySignal if the MACD line crosses above its signal line (bullish)
macdSellSignal if the MACD line crosses below its signal line (bearish)
Why it matters: MACD crossovers confirm an emerging momentum shift, aligning signals with actual price acceleration rather than random fluctuation.
3. RSI Overbought/Oversold Filter
RSI (Relative Strength Index) is calculated with a chosen length, plus Overbought & Oversold thresholds:
For long signals: the RSI must be below the Overbought threshold (e.g. 70).
For short signals: the RSI must be above the Oversold threshold (e.g. 30).
Why it matters: Prevents buying when price is already overbought or shorting when price is too oversold, filtering out possible poor‐risk trades.
4. Optional ADX Filter (Trend Strength)
If enabled, ADX must exceed a chosen threshold (e.g., 20) for a signal to be valid:
This ensures you’re only taking trades in markets that have sufficient directional momentum.
Why it matters: It weeds out choppy, sideways conditions where signals are unreliable.
5. Optional Volume Filter (High‐Participation Moves)
If enabled, the indicator checks whether current volume is above a certain multiple of its moving average (e.g., 1.5× average volume).
Why it matters: High volume often indicates stronger institutional interest, validating potential breakouts or reversals.
6. ATR & Chandelier (Visual Reference)
For reference only, the script can display ATR‐based stop levels or a Chandelier Exit line:
ATR (Average True Range) helps gauge volatility and can inform stop‐loss distances.
Chandelier Exit is a trailing stop technique that adjusts automatically as price moves.
Why it matters: Though this version of the script doesn’t execute trades, these lines help you see how far to place stops or how to ride a trend.
7. Final Bullish / Bearish Signal
When all conditions (trend, MACD, RSI, optional ADX, optional Volume) line up for a long, a green “Long” arrow appears.
When all conditions line up for a short, a red “Short” arrow appears.
Why it matters: You get a clear, on‐chart signal for each potential entry, rather than needing to check multiple indicators manually.
8. Session & Date Filtering
The script allows choosing a start/end date and an optional session window (e.g. 09:30–16:00).
Why it matters: Helps limit signals to a specific historical backtest range or trading hours, which can be crucial for day traders (e.g., stock market hours only).
Putting It All Together
Primary Trend → ensures you trade in line with the bigger direction.
MACD & RSI → confirm momentum and avoid overbought/oversold extremes.
ADX & Volume → optional filters for strong trend strength & genuine interest.
Arrows → each potential buy (Long) or sell (Short) signal is clearly shown on your chart.
Use Cases
5‐Minute Scalping: Shorter RSI/MACD lengths to catch small, frequent intraday moves.
Swing Trading: Larger MAs, bigger RSI thresholds, and using ADX to filter only major trends.
Cautious Approach: Enable volume & ADX filters to reduce false signals in choppy markets.
Benefits & Limitations
Benefits:
Consolidates multiple indicators into one overlay.
Clear buy/sell signals with optional dynamic volatility references.
Flexible user inputs adapt to different trading styles/timeframes.
Limitations:
Like all technical indicators, it can produce false signals in sideways or news‐driven markets.
Success depends heavily on user settings and the particular market’s behavior.
Summary
The MLB Momentum Indicator combines a trend filter (MAs), momentum check (MACD), overbought/oversold gating (RSI), and optional ADX/Volume filters to create clear buy/sell arrows on your chart. This approach encourages trading in sync with both trend and momentum, and helps avoid suboptimal entries when volume or trend strength is lacking. It can be tailored to scalp micro‐moves on lower timeframes or used for higher‐timeframe swing trading by adjusting the input settings.
Whale Activity Tracker Enhanced"Whale Activity Tracker Enhanced: Multi-Timeframe Adaptive Trading Signals"
Description:
The Whale Activity Tracker Enhanced (WAT+) is an innovative, multi-dimensional indicator designed to detect and visualize significant market moves likely driven by large players ("whales"). It combines volume analysis, price action, volatility, and momentum to provide traders with a comprehensive view of potential high-impact market events.
Key Features:
1. Adaptive Volume Spike Detection: Dynamically adjusts to market conditions, identifying unusual volume surges relative to recent activity.
2. Multi-Factor Confirmation: Combines volume spikes with price movements, RSI levels, and volatility measures for higher-probability signals.
3. Liquidity Grab Detection: Identifies potential stop-loss raids and liquidity sweeps through wick-to-body ratio analysis.
4. Customizable Signal Strength: Provides a visual representation of signal intensity, allowing traders to focus on the most significant events.
5. Flexible Timeframe Usage: Optimized settings for both scalp and swing trading, making it versatile across different trading styles.
How It Works:
- Volume Spike Analysis: Compares current volume to a user-defined multiple of the average volume.
- Price Move Threshold: Flags significant percentage price changes to filter out minor fluctuations.
- RSI Integration: Uses RSI to identify potential overbought/oversold conditions coinciding with other signals.
- Volatility Measurement: Incorporates ATR to detect periods of increased market volatility.
- Wick Analysis: Detects potential liquidity grabs by analyzing the ratio of candle wicks to bodies.
Originality:
Unlike standard volume or price action indicators, WAT+ synthesizes multiple market factors to provide a holistic view of potential whale activity. Its adaptive nature and customizable parameters allow it to work across various market conditions and trading styles.
Usage Guide:
1. Scalp Trading Setup:
- Use shorter lookback periods (12-15 bars) and tighter RSI levels (75/25).
- Focus on quick, high-probability trades triggered by volume spikes and price moves.
- Utilize the signal strength indicator for entry confirmation.
2. Swing Trading Setup:
- Extend lookback periods (20-30 bars) and use standard RSI levels (70/30).
- Look for sustained signals over multiple candles for trend confirmation.
- Combine with broader market trend analysis for higher-probability setups.
3. General Tips:
- Use the info panel to analyze the components of each signal.
- Adjust volume and price thresholds based on the specific asset's volatility.
- Combine with support/resistance levels for optimal entry and exit points.
By providing a multi-faceted approach to market analysis, the Whale Activity Tracker Enhanced empowers traders to identify and capitalize on significant market moves across various timeframes and trading styles.
Swing Trading Settings:
General Settings
Lookback Period: 20 to 30 bars. This provides a smoother signal and better context for swing trading.
Volume Spike Multiplier: 2.5 to 3.0. Higher thresholds ensure only significant volume spikes are considered.
Price Move % Threshold: 2.0 to 3.0%. Larger price move thresholds align with swing trading objectives.
RSI Period: 14 to 21. Longer periods smooth out short-term fluctuations.
RSI Overbought/Oversold Levels: 70/30. These levels work well for identifying potential reversals in swing trading.
Signal Detection
Enable Volume Spike Signal: True
Enable Price Move Signal: True
Enable Volatility Signal: True (important for identifying strong trends)
Enable Liquidity Grab Signal: True
Visualization
Show Volume Threshold Line: True
Show Signal Strength: True
Show Info Panel: True (useful for detailed analysis of swing setups)
Colors
Bullish Color: Green
Bearish Color: Red
Liquidity Color: Purple
Additional Parameters
ATR Period: 14 to 20. This helps identify volatility and set stop-loss levels.
Wick-to-Body Ratio: 2.0 or higher. This ensures only significant liquidity grabs are flagged.
Signal Strength Smoothing: 3 to 5 bars for steadier signals.
Scalp Trading:
General Settings
Lookback Period: 12 to 15 bars. This allows for a balance between responsiveness and noise reduction.
Volume Spike Multiplier: 2.0 to 2.2. This setting helps detect significant volume spikes without overreacting to minor fluctuations.
Price Move % Threshold: 1.0 to 1.2%. This captures substantial price movements suitable for scalp trading.
RSI Period: 7 to 9. Shorter periods provide quicker signals, ideal for scalp trading.
RSI Overbought/Oversold Levels: 75/25. Tighter levels help identify potential reversals sooner.
Signal Detection
Enable Volume Spike Signal: True
Enable Price Move Signal: True
Enable Volatility Signal: False (optional, depends on market conditions)
Enable Liquidity Grab Signal: True
Visualization
Show Volume Threshold Line: True
Show Signal Strength: True
Show Info Panel: False (optional, for cleaner charts)
Colors
Bullish Color: Green
Bearish Color: Red
Liquidity Color: Purple
Additional Tips
ATR Period: Keep it around 14 for volatility assessment.
Wick-to-Body Ratio: Adjust to 1.8 or higher for clearer liquidity grabs.
Signal Strength Smoothing: Use 2 to 3 bars for a responsive yet stable signal.
Logical Trading Indicator V.1Features of the Logical Trading Indicator V.1
ATR-Based Trailing Stop Loss
The Logical Trading Indicator V.1 utilizes the Average True Range (ATR) to implement a dynamic trailing stop loss. You can customize the sensitivity of your alerts by adjusting the ATR Multiple and ATR Period settings.
Higher ATR Multiple values create wider stops, while lower values result in tighter stops. This feature ensures that your trades are protected against adverse price movements. For best practice, use higher values on higher timeframes and lower values on lower term timeframes.
Bollinger Bands
The Logical Trading Indicator V.1 includes Bollinger Bands, which can be customized to use either a Simple Moving Average (SMA) or an Exponential Moving Average (EMA) as the basis.
You can adjust the length and standard deviation multiplier of the Bollinger Bands to fine-tune your strategy. The color of the basis line changes to green when price is above and red when price is below the line to represent the trend.
The bands show a range vs a single band that also represents when the price is in overbought and oversold ranges similar to an RSI. These bands also control the take profit signals.
You also have the ability to change the band colors as well as toggle them off, which only affects the view, they are still active which will still fire the take profit signals.
Momentum Indicator
Our indicator offers a momentum filter option that highlights market momentum directly on the candlesticks, identifying periods of bullish, bearish, or consolidation phases. You can enable or disable this filter as needed, providing valuable insights into market conditions.
By default, you will see the candlestick colors represent the momentum direction as green or red, and consolidation periods as white, but the filter on the BUY and SELL signals is not active. The view options and filter can be toggled on and off in the settings.
Buy and Sell Signals
The Logical Trading Indicator V.1 generates buy and sell signals based on a combination of ATR-based filtering, Bollinger Band basis crossover, and optional momentum conditions if selected in the settings. These signals help you make informed decisions about when to enter or exit a trade. You can also enable a consolidation filter to stay out of trades during tight ranges.
Basically a BUY signal fires when the price closes above the basis line, and the price meets or exceeds the ATR multiple from the previous candle length, which is also editable in the settings.
If the momentum filter is engaged, it will not fire BUY signals when in consolidation periods. It works just the opposite for SELL signals.
Take Profit Signals
We've integrated a Take Profit feature that helps you identify points to exit your trades with profits. The indicator marks Long Take Profit when prices close below the upper zone line of the Bollinger Bands after the previous candle closes inside the band, suggesting an optimal point to exit a long trade or consider a short position.
Conversely, Short Take Profit signals appear when prices close above the lower zone after the previous candle closes inside of it, indicating the right time to exit a short trade or contemplate a long position.
Alerts for Informed Trading
The Logical Trading Indicator V.1 comes equipped with alert conditions for buy signals, sell signals, take profit points, and more. Receive real-time notifications to your preferred devices or platforms to stay updated on market movements and trading opportunities.
Multi-Asset & TF RSI
Multi-Asset & TF RSI
This indicator allows you to compare the Relative Strength Index (RSI) values of two different assets across multiple timeframes in a single pane. It’s ideal for traders who wish to monitor momentum across different markets or instruments simultaneously.
Key Features:
Primary Asset RSI:
The indicator automatically calculates the RSI for the chart’s asset. You can adjust the timeframe for this asset using a dropdown that offers standard TradingView timeframes, a "Chart" option (which syncs with your current chart timeframe), or a "Custom" option where you can enter any timeframe.
Optional Second Asset RSI:
Enable the “Display Second Asset” option to compare another asset’s RSI. Simply select the symbol (default is “DXY”) and choose its timeframe from an identical dropdown. When enabled, the second asset’s RSI is computed and plotted for easy comparison.
RSI Settings:
Customize the RSI length and choose the data source (e.g., close price) to suit your trading strategy.
Visual Aids:
Overbought (70) and oversold (30) levels are clearly marked, along with a midline at 50. These visual cues help you quickly assess market conditions.
Asset Information Table:
A dynamic table at the top of the pane displays the symbols being analysed – the chart’s asset as the “1st” asset and, if enabled, the second asset as the “2nd.”
How to Use:
Apply the Indicator:
Add the indicator to your chart. By default, it will calculate the RSI for the chart’s current asset using your chart’s timeframe.
Adjust Primary Asset Settings:
Use the “Main Asset Timeframe” dropdown to choose the timeframe for the RSI calculation on the chart asset. Select “Chart” to automatically match your current chart’s timeframe or choose a preset/custom timeframe.
Enable and Configure the Second Asset:
Toggle the “Display Second Asset” option to enable the second asset’s RSI. Select the asset symbol and its desired timeframe using the provided dropdown. The RSI for the second asset will be plotted if enabled.
Monitor the RSI Values:
Observe the plotted RSI lines along with the overbought/oversold levels. Use the table at the top-centre of the pane to verify which asset symbols are being displayed.
This versatile tool is designed to support multi-asset analysis and can be a valuable addition to your technical analysis toolkit. Enjoy enhanced RSI comparison across markets and timeframes!
Happy Trading!
Pay Attention CandleThis is an attempt to detect the so called Pay Attention Candles from RexDog Trading System (RDTS). (They are not clearly defined by any specific set in stone rule, so this is just my interpretation)
You can turn on and off the bar highlight/triangles if chart gets too busy and you want only one of the indication types.
The way this is defined as evident in the code is - it looks at the candle size (without the wicks!!! only open to close) to decide whether it is larger than ATR mutlipied by a multiplier (1.5 by default here - you can adjust)
ATR period can also be adjusted but it's set to 9 by default.
Enjoy.
Tillson T3 Moving Average (improved)T3 Moving Average – Advanced Smoothing for Trend Analysis
Overview
The Tillson T3 Moving Average (T3 MA) is a superior smoothing moving average that reduces lag while maintaining responsiveness to price changes. Unlike traditional moving averages such as SMA, EMA, or WMA, the T3 applies multiple levels of smoothing, making it more adaptive to market conditions.
How It Works
The T3 MA is an exponentially smoothed moving average with a factor that controls the level of smoothing. This multi-layered smoothing process allows it to:
✅ React faster than a standard EMA while still filtering out market noise.
✅ Smooth out price fluctuations better than SMA or WMA, reducing false signals.
✅ Reduce lag compared to traditional moving averages, making it useful for both trend identification and entry/exit decisions.
How to Use This Script
🔹 Trend Identification – Use T3 MA as a dynamic trend filter. Price above T3 signals an uptrend, while price below signals a downtrend.
🔹 Direction Signal – The direction of the T3 MA (i.e. sloping upwards or downwards) can itself be used as a signal. The script allows the MA line to be colored, so it's easier to spot.
🔹 Crossover Signals – Combine T3 with another moving average (e.g., a shorter T3 or EMA, SMA, etc.) to generate trade signals when they cross.
🔹 Support & Resistance – The T3 can act as dynamic support and resistance in trending markets.
Features of This Script
✅ Custom Source Selection – Apply T3 not just to price, but also to any indicator (e.g., RSI, volume, etc.).
✅ Customizable Length & Smoothing – Adjust how smooth and responsive the T3 MA is.
✅ Optional Color Changes – The T3 MA can dynamically change color based on trend direction, making it easier to read.
✅ Versatile for Any Strategy – Works well in trend-following, mean-reversion, and breakout trading systems.
This script is ideal for traders looking for a smoother, more adaptive moving average that reduces noise while remaining reactive to price action. 🚀
Uptrick: Alpha TrendIntroduction
Uptrick: Alpha Trend is a comprehensive technical analysis indicator designed to provide traders with detailed insights into market trends, momentum, and risk metrics. It adapts to various trading styles—from quick scalps to longer-term positions—by dynamically adjusting its calculations and visual elements. By combining multiple smoothing techniques, advanced color schemes, and customizable data tables, the indicator offers a holistic view of market behavior.
Originality
The Alpha Trend indicator distinguishes itself by blending established technical concepts with innovative adaptations. It employs three different smoothing techniques tailored to specific trading modes (Scalp, Swing, and Position), and it dynamically adjusts its parameters to match the chosen mode. The indicator also offers a wide range of color palettes and multiple on-screen tables that display key metrics. This unique combination of features, along with its ability to adapt in real time, sets it apart as a versatile tool for both novice and experienced traders.
Features
1. Multi-Mode Trend Line
The indicator automatically selects a smoothing method based on the trading mode:
- Scalp Mode uses the Hull Moving Average (HMA) for rapid responsiveness.
- Swing Mode employs the Exponential Moving Average (EMA) for balanced reactivity.
- Position Mode applies the Weighted Moving Average (WMA) for smoother, long-term trends.
Each method is chosen to best capture the price action dynamics appropriate to the trader’s timeframe.
2. Adaptive Momentum Thresholds
It tracks bullish and bearish momentum with counters that increment as the trend confirms directional movement. When these counters exceed a user-defined threshold, the indicator generates optional buy or sell signals. This approach helps filter out minor fluctuations and highlights significant market moves.
3. Gradient Fills
Two types of fills enhance visual clarity:
- Standard Gradient Fill displays ATR-based zones above and below the trend line, indicating potential bullish and bearish areas.
- Fading Gradient Fill creates a smooth transition between the trend line and the price, visually emphasizing the distance between them.
4. Bar Coloring and Signal Markers
The indicator can color-code bars based on market conditions—bullish, bearish, or neutral—allowing for immediate visual assessment. Additionally, signal markers such as buy and sell arrows are plotted when momentum thresholds are breached.
5. Comprehensive Data Tables
Uptrick: Alpha Trend offers several optional tables for detailed analysis:
- Insider Info: Displays key metrics like the current trend value, bullish/bearish momentum counts, and ATR.
- Indicator Metrics: Lists input settings such as trend length, damping, signal threshold, and net momentum.
- Market Analysis: Summarizes overall trend direction, trend strength, Sortino ratio, return, and volatility.
- Price & Trend Dynamics: Details price deviation from the trend, trend slope, and ATR ratio.
- Momentum & Volatility Insights: Presents RSI, standard deviation (volatility), and net momentum.
- Performance & Acceleration Metrics: Focuses on the Sortino ratio, trend acceleration, return, and trend strength.
Each table can be positioned flexibly on the chart, allowing traders to customize the layout according to their needs.
Why It Combines Specific Smoothing Techniques
Smoothing techniques are essential for filtering out market noise and revealing underlying trends. The indicator combines three smoothing methods for the following reasons:
- The Hull Moving Average (HMA) in Scalp Mode minimizes lag and responds quickly to price changes, which is critical for short-term trading.
- The Exponential Moving Average (EMA) in Swing Mode gives more weight to recent data, striking a balance between speed and smoothness. This makes it suitable for mid-term trend analysis.
- The Weighted Moving Average (WMA) in Position Mode smooths out short-term fluctuations, offering a clear view of longer-term trends and reducing the impact of transient market volatility.
By using these specific methods in their respective trading modes, the indicator ensures that the trend line is appropriately responsive for the intended time frame, enhancing decision-making while maintaining clarity.
Inputs
1. Trend Length (Default: 30)
Defines the lookback period for the smoothing calculation. A shorter trend length results in a more responsive line, while a longer length produces a smoother, less volatile trend.
2. Trend Damping (Default: 0.75)
Controls the degree of smoothing applied to the trend line. Lower values lead to a smoother curve, whereas higher values increase sensitivity to price fluctuations.
3. Signal Strength Threshold (Default: 5)
Specifies the number of consecutive bullish or bearish bars required to trigger a signal. Higher thresholds reduce the frequency of signals, focusing on stronger moves.
4. Enable Bar Coloring (Default: True)
Toggles whether each price bar is colored to indicate bullish, bearish, or neutral conditions.
5. Enable Signals (Default: True)
When enabled, this option plots buy or sell arrows on the chart once the momentum thresholds are met.
6. Enable Standard Gradient Fill (Default: False)
Activates ATR-based gradient fills around the trend line to visualize potential support and resistance zones.
7. Enable Fading Gradient Fill (Default: True)
Draws a gradual color transition between the trend line and the current price, emphasizing their divergence.
8. Trading Mode (Options: Scalp, Swing, Position)
Determines which smoothing method and ATR period to use, adapting the indicator’s behavior to short-term, medium-term, or long-term trading.
9. Table Position Inputs
Allows users to select from nine possible chart positions (top, middle, bottom; left, center, right) for each data table.
10. Show Table Booleans
Separate toggles control the display of each table (Insider Info, Indicator Metrics, Market Analysis, and the three Deep Tables), enabling a customized view of the data.
Color Schemes
(Default) - The colors in the preview image of the indicator.
(Emerald)
(Sapphire)
(Golden Blaze)
(Mystic)
(Monochrome)
(Pastel)
(Vibrant)
(Earth)
(Neon)
Calculations
1. Trend Line Methods
- Scalp Mode: Utilizes the Hull Moving Average (HMA), which computes two weighted moving averages (one at half the length and one at full length), subtracts them, and then applies a final weighted average based on the square root of the length. This method minimizes lag and increases responsiveness.
- Swing Mode: Uses the Exponential Moving Average (EMA), which assigns greater weight to recent prices, thus balancing quick reaction with smoothness.
- Position Mode: Applies the Weighted Moving Average (WMA) to focus on longer-term trends by emphasizing the entire lookback period and reducing the impact of short-term volatility.
2. Momentum Tracking
The indicator maintains separate counters for bullish and bearish momentum. These counters increase as the trend confirms directional movement and reset when the trend reverses. When a counter exceeds the defined signal strength threshold, a corresponding signal (buy or sell) is triggered.
3. Volatility and ATR Zones
The Average True Range (ATR) is calculated using a period that adapts to the selected trading mode (shorter for Scalp, longer for Position). The ATR value is then used to define upper and lower zones around the trend line, highlighting the current level of market volatility.
4. Return and Trend Acceleration
- Return is calculated as the difference between the current and previous closing prices, providing a simple measure of price change.
- Trend Acceleration is derived from the change in the trend line’s movement (its first derivative) compared to the previous bar. This metric indicates whether the trend is gaining or losing momentum.
5. Sortino Ratio and Standard Deviation
- The Sortino Ratio measures risk-adjusted performance by comparing returns to downside volatility (only considering negative price changes).
- Standard Deviation is computed over the lookback period to assess the extent of price fluctuations, offering insights into market stability.
Usage
This indicator is suitable for various time frames and market instruments. Traders can enable or disable specific visual elements such as gradient fills, bar coloring, and signal markers based on their preference. For a minimalist approach, one might choose to display only the primary trend line. For a deeper analysis, enabling multiple tables can provide extensive data on momentum, volatility, trend dynamics, and risk metrics.
Important Note on Risk
Trading involves inherent risk, and no indicator can eliminate the uncertainty of the markets. Past performance is not indicative of future results. It is essential to use proper risk management, test any new tool thoroughly, and consult multiple sources or professional advice before making trading decisions.
Conclusion
Uptrick: Alpha Trend unifies a diverse set of calculations, adaptive smoothing techniques, and customizable visual elements into one powerful tool. By combining the Hull, Exponential, and Weighted Moving Averages, the indicator is able to provide a trend line that is both responsive and smooth, depending on the trading mode. Its advanced color schemes, gradient fills, and detailed data tables deliver a comprehensive analysis of market trends, momentum, and risk. Whether you are a short-term trader or a long-term investor, this indicator aims to clarify price action and assist you in making more informed trading decisions.
EMA/SMA Ribbon Pro (AUTO HTF + Labels)This indicator is a multi-timeframe (MTF) moving average ribbon that dynamically adjusts to the next highest timeframe. It provides a visual representation of market trends by stacking multiple EMAs and SMAs with customizable color fills and labels.
Features
✅ Multi-Timeframe (MTF) Support: Automatically detects the next highest time frame or allows for manual selection
✅ Customizable Moving Averages: Supports EMA and SMA with different lengths for flexible configuration
✅ Ribbon Visualization: Smooth color transitions between different moving averages for better trend identification
✅ Crossover Labels: Detects bullish and bearish EMA/SMA crossovers and marks them on the chart
✅ Price Labels & Timeframe Display: Displays moving average values to the right of the price axis with customizable label padding and colors
How It Works
Select the HTF mode: Manual or automatic
Choose EMA/SMA lengths to create different ribbons
Enable/disable price labels for each moving average
Customize colors and transparency for ribbons and labels
Crossover labels appear when faster moving averages cross slower ones and vice versa
Use Cases
📌 Trend Identification: Identify bullish and bearish trends using multiple EMAs and SMAs
📌 Support & Resistance Zones: MAs can act as dynamic support and resistance levels
📌 Reversal & Confirmation Signals: Watch for MTF crossovers to confirm trend changes
Customization
🔹 Standard EMA Lengths: 6, 8, 13, 21, 34, 48, 100, 200, 300, 400
🔹 SMA Lengths: 48, 100, 200
🔹 Color Adjustments: Set custom colors for bullish/bearish ribbons
🔹 Crossovers: Enable/disable custom crossover pairs (e.g., 100/200 EMA, 200 EMA/SMA).
This indicator is perfect for traders who rely on multi-timeframe confluence while seeking to enhance their market analysis and decision-making process.
As always, by combining EMA/SMA Ribbon with other tools, traders ensure that they are not relying on a single indicator. This layered approach can reduce the likelihood of false signals and improve overall trading accuracy.
As always, be sure to use any indicator with price action and volume indicators for better trade confirmation!
PrimeMomentum 1.1The PrimeMomentum indicator is not just an adaptation of classic tools like MA, BB, RSI, or WaveTrend. It is an innovative tool that combines several key elements and offers a unique methodology for market analysis. Its primary goal is to help traders avoid false entries and provide signals for making trading decisions.
What Makes PrimeMomentum Unique?
Integration of Multi-Timeframe Data with a Unique Signal Filtering Approach
PrimeMomentum processes data from four timeframes simultaneously, not merely to display trends but to assess the synchronization of momentum across each timeframe. This allows traders to receive signals only when all intervals confirm the direction. This approach minimizes the risk of false signals often encountered with standard tools.
PrimeMomentum analyzes the market across four timeframes:
TF1 (long-term): Displays the overall market direction.
TF2 (medium-term): Refines the current dynamics.
TF3 (short-term): Provides detailed analysis.
TF4 (very short-term): Confirms entry or exit points.
The combination of data from these timeframes allows traders to avoid frequent switching between intervals, simplifying analysis.
Innovative Reversal Logic
PrimeMomentum features a specialized algorithm for identifying trend reversals. Its uniqueness lies in the interaction between dynamic smoothing (EMA) and multi-level momentum assessment, enabling accurate identification of potential trend reversal points.
Dynamic Adaptation to Market Conditions
The indicator automatically adjusts smoothing parameters and threshold values based on market volatility. This enables it to adapt effectively to both calm and volatile markets.
Signals for entering Long or Short positions are generated only when the following conditions are met:
- Momentum shifts from negative to positive (for Long) or from positive to negative (for Short).
- Dynamic smoothing confirms the trend.
- Defined thresholds are reached.
Trend Strength Assessment
Unlike traditional indicators, PrimeMomentum evaluates not only the direction but also the strength of a trend by analyzing the relationship between momentum across each timeframe. This helps traders understand how stable the current market movement is.
The indicator analyzes price changes over a specific period, determining how much current prices deviate from previous ones. This data allows for assessing the strength of market movements.
Combination of Classic Elements with Proprietary Logic
While PrimeMomentum may utilize some widely known components like EMA, its algorithm is built on proprietary logic for evaluating market conditions. This sets it apart from standard solutions that merely display basic indicators without deeper analysis.
Added Value of PrimeMomentum
Trend Visualization with Concept Explanations
PrimeMomentum provides traders with clear visual signals, simplifying market analysis. Each element (color, line direction) is based on momentum and trend-smoothing concepts, enabling traders to make decisions quickly.
Results are displayed as color-coded lines:
- Dark violet: Long-term trend.
- Blue: Medium-term trend.
- Turquoise and light blue: Short-term trends.
If all momentum lines reach a peak and begin turning downward, it may indicate an approaching bearish trend.
If all lines reach a bottom and start turning upward, it may signal the beginning of a bullish trend.
Reversals can also serve as signals for exiting positions.
MoneyFlow
The PrimeMomentum indicator includes a visualization of MoneyFlow, allowing traders to assess capital flows within the selected timeframe. This functionality helps to analyze market trends more accurately and make well-informed decisions.
MoneyFlow Features:
Dynamic MoneyFlow Visualization:
MoneyFlow is displayed as an area that changes color based on its value:
- Green (with transparency) when MoneyFlow is above zero (positive flow).
- Red (with transparency) when MoneyFlow is below zero (negative flow).
Automatic Scaling:
MoneyFlow values automatically adjust to the chart’s scale to ensure visibility alongside the Momentum lines.
Double Smoothing:
To ensure a smoother and more representation, MoneyFlow uses double smoothing based on EMA.
Customizable Colors and Transparency:
Traders can customize the colors for positive and negative MoneyFlow and adjust the transparency level to fit their preferences.
How MoneyFlow Works:
- MoneyFlow calculations are based on the MFI (Money Flow Index), which considers both price and volume.
- MoneyFlow values are integrated into the overall PrimeMomentum chart and combined with other signals for deeper analysis.
Advantages of the New Functionality:
- Helps quickly identify capital flows into or out of the market.
- Complements Momentum analysis to provide a more comprehensive view of market conditions.
- Enhances decision-making efficiency through flexible visualization settings.
Note: MoneyFlow adapts to the selected timeframe and displays data corresponding to the current interval on the price chart.
Simplicity for Beginners and Depth for Professionals
The indicator is designed to be user-friendly for traders of all experience levels. Beginners benefit from intuitive signals, while experienced traders can leverage in-depth analysis for more complex strategies.
PrimeMomentum Usage Modes
PrimeMomentum adapts to various strategies and supports three modes:
Short-term: Recommended to use a 2H timeframe. Optimal for intraday trading with small TakeProfit levels.
Medium-term: Recommended to use a 1D timeframe for trades lasting several days.
Long-term: Use the 1W timeframe for analyzing global trends.
Support for Different Strategies
Thanks to its flexible settings and support for multiple timeframes, PrimeMomentum is suitable for both day trading and long-term analysis.
Why Is PrimeMomentum Worth Your Attention?
Unlike standard indicators, which often rely solely on basic mathematical models or publicly available components, PrimeMomentum offers a comprehensive approach to market analysis. It combines unique momentum assessment algorithms, multi-timeframe analysis, and volatility adaptation. This not only provides traders with signals but also helps them understand the underlying market processes, making it a truly innovative solution.
Disclaimer
The PrimeMomentum indicator is designed to assist traders in market analysis but does not guarantee future profitability. Its use should be combined with traders' own research and informed decision-making.
Momentum TrackerTo screen for momentum movers, one can filter for stocks that have made a noticeable move over a set period—this initial move defines the momentum or swing move. From this list of candidates, we can create a watchlist by selecting those showing a momentum pause, such as a pullback or consolidation, which later could set up for a continuation.
This Momentum Tracker Indicator serves as a study tool to visualize when stocks historically met these momentum conditions. It marks on the chart where a stock would have appeared on the screener, allowing us to review past momentum patterns and screener requirements.
Indicator Calculation
Bullish Momentum: Price is above the lowest point within the lookback period by the specified threshold percentage.
Bearish Momentum: Price is below the highest point within the lookback period by the specified threshold percentage.
The tool is customizable in terms of lookback period and percentage threshold to accommodate different trading styles and timeframes, allowing us to set criteria that align with specific hold times and momentum requirements.
Salman Indicator: Multi-Purpose Price ActionSalman Indicator: Multi-Purpose Price Action Tool for Pin Bars, Breakouts, and VWAP Anchoring
This indicator provides a comprehensive suite of price action insights, designed for active traders looking to identify key market structures and potential reversals. The script incorporates a Quarterly VWAP for trend bias, marks pin bars for possible reversal points, highlights outside bars for volatility signals, and indicates simple breakouts and pivot-level breaks. Customizable settings allow for flexibility in various trading styles, with default settings optimized for daily charts.
Outside Bars : Represented by an ⤬ symbol on the chart, these indicate bars where the current high is greater than the previous bar’s high, and the low is lower than the previous bar’s low, signaling high volatility and potential market reversals.
Pin Bars : Denoted by a small dot at the top or bottom of a candle’s wick, these are crucial signals of potential reversal areas. Pin bars are identified based on the percentage length of their shadows, with adjustable strictness in settings.
Quarterly VWAP : The light blue line on the chart represents the VWAP (Volume-Weighted Average Price), which is anchored to the Quarterly period by default. The VWAP acts as a directional bias filter, helping you to determine underlying market trends. This period, source, and offset are fully adjustable in the script’s settings.
Simple Breaks : Hollow candles on the chart indicate "simple breaks," defined when the current bar closes above the previous high or below the previous low. This is an effective way to highlight directional momentum in the market.
Bonus Pivot Breaks : The tilde symbol ~ appears when the price closes above or below prior pivot high/low levels, helping traders spot significant breakout or breakdown points relative to recent pivots.
Alerts
Simple Breaks : Alerts you when a breakout occurs beyond the previous bar’s high or low. Pin Bars : Notifies you of potential reversal points as indicated by bullish or bearish pin bars. Outside Bars : Triggers an alert whenever an outside bar is detected, indicating possible volatility changes.
How to Use
VWAP for Trend Bias : Use the Quarterly VWAP line to gauge overall market trend, with settings that allow adjustment to daily, weekly, monthly, or even larger time frames.
Pin Bars for Reversal Potential : Look for the dot markers on candle wicks, where the strictness of the pin bar detection can be adjusted via settings to match your trading preference.
Simple and Pivot Breaks for Momentum : Watch for hollow candles and the tilde symbol ~ as indicators of potential breakout momentum and pivot break levels, respectively.
This script can serve traders on multiple timeframes, from daily to weekly and beyond. The flexible configuration allows for adjustments in VWAP anchoring and pin bar criteria, providing a tailored fit for individual trading strategies.
CMF and Scaled EFI OverlayCMF and Scaled EFI Overlay Indicator
Overview
The CMF and Scaled EFI Overlay indicator combines the Chaikin Money Flow (CMF) and a scaled version of the Elder Force Index (EFI) into a single chart. This allows traders to analyze both indicators simultaneously, facilitating better insights into market momentum and volume dynamics , specifically focusing on buying/selling pressure and momentum , without compromising the integrity of either indicator.
Purpose
Chaikin Money Flow (CMF): Measures buying and selling pressure by evaluating price and volume over a specified period. It indicates accumulation (buying pressure) when values are positive and distribution (selling pressure) when values are negative.
Elder Force Index (EFI): Combines price changes and volume to assess the momentum behind market moves. Positive values indicate upward momentum (prices rising with strong volume), while negative values indicate downward momentum (prices falling with strong volume).
By scaling the EFI to match the amplitude of the CMF, this indicator enables a direct comparison between pressure and momentum , preserving their shapes and zero crossings. Traders can observe the relationship between price movements, volume, and momentum more effectively, aiding in decision-making.
Understanding Pressure vs. Momentum
Chaikin Money Flow (CMF):
- Indicates the level of demand (buying pressure) or supply (selling pressure) in the market based on volume and price movements.
- Accumulation: When institutional or large investors are buying significant amounts of an asset, leading to an increase in buying pressure.
- Distribution: When these investors are selling off their holdings, increasing selling pressure.
Elder Force Index (EFI):
- Measures the strength and speed of price movements, indicating how forceful the current trend is.
- Positive Momentum: Prices are rising quickly, indicating a strong uptrend.
- Negative Momentum: Prices are falling rapidly, indicating a strong downtrend.
Understanding the difference between pressure and momentum is crucial. For example, a market may exhibit strong buying pressure (positive CMF) but weak momentum (low EFI), suggesting accumulation without significant price movement yet.
Features
Overlay of CMF and Scaled EFI: Both indicators are plotted on the same chart for easy comparison of pressure and momentum dynamics.
Customizable Parameters: Adjust lengths for CMF and EFI calculations and fine-tune the scaling factor for optimal alignment.
Preserved Indicator Integrity: The scaling method preserves the shape and zero crossings of the EFI, ensuring accurate analysis.
How It Works
CMF Calculation:
- Calculates the Money Flow Multiplier (MFM) and Money Flow Volume (MFV) to assess buying and selling pressure.
- CMF is computed by summing the MFV over the specified length and dividing by the sum of volume over the same period:
CMF = (Sum of MFV over n periods) / (Sum of Volume over n periods)
EFI Calculation:
- Calculates the EFI using the Exponential Moving Average (EMA) of the price change multiplied by volume:
EFI = EMA(n, Change in Close * Volume)
Scaling the EFI:
- The EFI is scaled by multiplying it with a user-defined scaling factor to match the CMF's amplitude.
Plotting:
- Both the CMF and the scaled EFI are plotted on the same chart.
- A zero line is included for reference, aiding in identifying crossovers and divergences.
Indicator Settings
Inputs
CMF Length (`cmf_length`):
- Default: 20
- Description: The number of periods over which the CMF is calculated. A higher value smooths the indicator but may delay signals.
EFI Length (`efi_length`):
- Default: 13
- Description: The EMA length for the EFI calculation. Adjusting this value affects the sensitivity of the EFI to price changes.
EFI Scaling Factor (`efi_scaling_factor`):
- Default: 0.000001
- Description: A constant used to scale the EFI to match the CMF's amplitude. Fine-tuning this value ensures the indicators align visually.
How to Adjust the EFI Scaling Factor
Start with the Default Value:
- Begin with the default scaling factor of `0.000001`.
Visual Inspection:
- Observe the plotted indicators. If the EFI appears too large or small compared to the CMF, proceed to adjust the scaling factor.
Fine-Tune the Scaling Factor:
- Increase or decrease the scaling factor incrementally (e.g., `0.000005`, `0.00001`, `0.00005`) until the amplitudes of the CMF and EFI visually align.
- The optimal scaling factor may vary depending on the asset and timeframe.
Verify Alignment:
- Ensure that the scaled EFI preserves the shape and zero crossings of the original EFI.
- Overlay the original EFI (if desired) to confirm alignment.
How to Use the Indicator
Analyze Buying/Selling Pressure and Momentum:
- Positive CMF (>0): Indicates accumulation (buying pressure).
- Negative CMF (<0): Indicates distribution (selling pressure).
- Positive EFI: Indicates positive momentum (prices rising with strong volume).
- Negative EFI: Indicates negative momentum (prices falling with strong volume).
Look for Indicator Alignment:
- Both CMF and EFI Positive:
- Suggests strong bullish conditions with both buying pressure and upward momentum.
- Both CMF and EFI Negative:
- Indicates strong bearish conditions with selling pressure and downward momentum.
Identify Divergences:
- CMF Positive, EFI Negative:
- Buying pressure exists, but momentum is negative; potential for a bullish reversal if momentum shifts.
- CMF Negative, EFI Positive:
- Selling pressure exists despite rising prices; caution advised as it may indicate a potential bearish reversal.
Confirm Signals with Other Analysis:
- Use this indicator in conjunction with other technical analysis tools (e.g., trend lines, support/resistance levels) to confirm trading decisions.
Example Usage
Scenario 1: Bullish Alignment
- CMF Positive: Indicates accumulation (buying pressure).
- EFI Positive and Increasing: Shows strengthening upward momentum.
- Interpretation:
- Strong bullish signal suggesting that buyers are active, and the price is likely to continue rising.
- Action:
- Consider entering a long position or adding to existing ones.
Scenario 2: Bearish Divergence
- CMF Negative: Indicates distribution (selling pressure).
- EFI Positive but Decreasing: Momentum is positive but weakening.
- Interpretation:
- Potential bearish reversal; price may be rising but underlying selling pressure suggests caution.
- Action:
- Be cautious with long positions; consider tightening stop-losses or preparing for a possible trend reversal.
Tips
Adjust for Different Assets:
- The optimal scaling factor may differ across assets due to varying price and volume characteristics.
- Always adjust the scaling factor when analyzing a new asset.
Monitor Indicator Crossovers:
- Crossings above or below the zero line can signal potential trend changes.
Watch for Divergences:
- Divergences between the CMF and EFI can provide early warning signs of trend reversals.
Combine with Other Indicators:
- Enhance your analysis by combining this overlay with other indicators like moving averages, RSI, or Ichimoku Cloud.
Limitations
Scaling Factor Sensitivity:
- An incorrect scaling factor may misalign the indicators, leading to inaccurate interpretations.
- Regular adjustments may be necessary when switching between different assets or timeframes.
Not a Standalone Indicator:
- Should be used as part of a comprehensive trading strategy.
- Always consider other market factors and indicators before making trading decisions.
Disclaimer
No Guarantee of Performance:
- Past performance is not indicative of future results.
- Trading involves risk, and losses can exceed deposits.
Use at Your Own Risk:
- This indicator is provided for educational purposes.
- The author is not responsible for any financial losses incurred while using this indicator.
Code Summary
//@version=5
indicator(title="CMF and Scaled EFI Overlay", shorttitle="CMF & Scaled EFI", overlay=false)
cmf_length = input.int(20, minval=1, title="CMF Length")
efi_length = input.int(13, minval=1, title="EFI Length")
efi_scaling_factor = input.float(0.000001, title="EFI Scaling Factor", minval=0.0, step=0.000001)
// --- CMF Calculation ---
ad = high != low ? ((2 * close - low - high) / (high - low)) * volume : 0
mf = math.sum(ad, cmf_length) / math.sum(volume, cmf_length)
// --- EFI Calculation ---
efi_raw = ta.ema(ta.change(close) * volume, efi_length)
// --- Scale EFI ---
efi_scaled = efi_raw * efi_scaling_factor
// --- Plotting ---
plot(mf, color=color.green, title="CMF", linewidth=2)
plot(efi_scaled, color=color.red, title="EFI (Scaled)", linewidth=2)
hline(0, color=color.gray, title="Zero Line", linestyle=hline.style_dashed)
- Lines 4-6: Define input parameters for CMF length, EFI length, and EFI scaling factor.
- Lines 9-11: Calculate the CMF.
- Lines 14-16: Calculate the EFI.
- Line 19: Scale the EFI by the scaling factor.
- Lines 22-24: Plot the CMF, scaled EFI, and zero line.
Feedback and Support
Suggestions: If you have ideas for improvements or additional features, please share your feedback.
Support: For assistance or questions regarding this indicator, feel free to contact the author through TradingView.
---
By combining the CMF and scaled EFI into a single overlay, this indicator provides a powerful tool for traders to analyze market dynamics more comprehensively. Adjust the parameters to suit your trading style, and always practice sound risk management.
Advanced Stochastic ForLoopAdvanced Stochastic ForLoop
OVERVIEW
Advanced Stochastic ForLoop is an improved version of Stochastic it is designed to calculate an array of values 1 or -1 depending if soruce for calculations is above or below basis.
It takes avereage of values over a range of lengths, providing trend signals smothed based on various moving averages in order to get rid of noise.
It offers flexibility with different signal modes and visual customizations.
TYPE OF SIGNALS
-FAST (MA > MA or MA > 0.99)
-SLOW (MA > 0)
-THRESHOLD CROSSING (set by user treshold for both directions)
-FAST THRESHOLD (when theres an change in signal by set margin e.g 0.4 -> 0.2 means bearsih when FT is set to 0.1, when MA is > 0.99 it will signal bullish, when MA < -0.99 it will signal bearish)
Generaly Lime color of line indicates Bullish, Fuchsia indicates Bearish.
This colors are not set in stone so you can change them in settings.
Alerts included when line color is:
-Bullish Trend, line color is lime
-Bearish Trend, line color is fuchsia
Credit
Idea for this script was from one of indicators created by www.tradingview.com
Warning
This indicator can be really noisy depending on the settings, signal mode so it should be used preferably as a part of an strategy not as a stand alone indicator
Remember the lower the timeframe you use the more noise there is.
No single indicator should be used alone when making investment decisions.
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.
Intramarket Difference Index StrategyHi Traders !!
The IDI Strategy:
In layman’s terms this strategy compares two indicators across markets and exploits their differences.
note: it is best the two markets are correlated as then we know we are trading a short to long term deviation from both markets' general trend with the assumption both markets will trend again sometime in the future thereby exhausting our trading opportunity.
📍 Import Notes:
This Strategy calculates trade position size independently (i.e. risk per trade is controlled in the user inputs tab), this means that the ‘Order size’ input in the ‘Properties’ tab will have no effect on the strategy. Why ? because this allows us to define custom position size algorithms which we can use to improve our risk management and equity growth over time. Here we have the option to have fixed quantity or fixed percentage of equity ATR (Average True Range) based stops in addition to the turtle trading position size algorithm.
‘Pyramiding’ does not work for this strategy’, similar to the order size input togeling this input will have no effect on the strategy as the strategy explicitly defines the maximum order size to be 1.
This strategy is not perfect, and as of writing of this post I have not traded this algo.
Always take your time to backtests and debug the strategy.
🔷 The IDI Strategy:
By default this strategy pulls data from your current TV chart and then compares it to the base market, be default BINANCE:BTCUSD . The strategy pulls SMA and RSI data from either market (we call this the difference data), standardizes the data (solving the different unit problem across markets) such that it is comparable and then differentiates the data, calling the result of this transformation and difference the Intramarket Difference (ID). The formula for the the ID is
ID = market1_diff_data - market2_diff_data (1)
Where
market(i)_diff_data = diff_data / ATR(j)_market(i)^0.5,
where i = {1, 2} and j = the natural numbers excluding 0
Formula (1) interpretation is the following
When ID > 0: this means the current market outperforms the base market
When ID = 0: Markets are at long run equilibrium
When ID < 0: this means the current market underperforms the base market
To form the strategy we define one of two strategy type’s which are Trend and Mean Revesion respectively.
🔸 Trend Case:
Given the ‘‘Strategy Type’’ is equal to TREND we define a threshold for which if the ID crosses over we go long and if the ID crosses under the negative of the threshold we go short.
The motivating idea is that the ID is an indicator of the two symbols being out of sync, and given we know volatility clustering, momentum and mean reversion of anomalies to be a stylised fact of financial data we can construct a trading premise. Let's first talk more about this premise.
For some markets (cryptocurrency markets - synthetic symbols in TV) the stylised fact of momentum is true, this means that higher momentum is followed by higher momentum, and given we know momentum to be a vector quantity (with magnitude and direction) this momentum can be both positive and negative i.e. when the ID crosses above some threshold we make an assumption it will continue in that direction for some time before executing back to its long run equilibrium of 0 which is a reasonable assumption to make if the market are correlated. For example for the BTCUSD - ETHUSD pair, if the ID > +threshold (inputs for MA and RSI based ID thresholds are found under the ‘‘INTRAMARKET DIFFERENCE INDEX’’ group’), ETHUSD outperforms BTCUSD, we assume the momentum to continue so we go long ETHUSD.
In the standard case we would exit the market when the IDI returns to its long run equilibrium of 0 (for the positive case the ID may return to 0 because ETH’s difference data may have decreased or BTC’s difference data may have increased). However in this strategy we will not define this as our exit condition, why ?
This is because we want to ‘‘let our winners run’’, to achieve this we define a trailing Donchian Channel stop loss (along with a fixed ATR based stop as our volatility proxy). If we were too use the 0 exit the strategy may print a buy signal (ID > +threshold in the simple case, market regimes may be used), return to 0 and then print another buy signal, and this process can loop may times, this high trade frequency means we fail capture the entire market move lowering our profit, furthermore on lower time frames this high trade frequencies mean we pay more transaction costs (due to price slippage, commission and big-ask spread) which means less profit.
By capturing the sum of many momentum moves we are essentially following the trend hence the trend following strategy type.
Here we also print the IDI (with default strategy settings with the MA difference type), we can see that by letting our winners run we may catch many valid momentum moves, that results in a larger final pnl that if we would otherwise exit based on the equilibrium condition(Valid trades are denoted by solid green and red arrows respectively and all other valid trades which occur within the original signal are light green and red small arrows).
another example...
Note: if you would like to plot the IDI separately copy and paste the following code in a new Pine Script indicator template.
indicator("IDI")
// INTRAMARKET INDEX
var string g_idi = "intramarket diffirence index"
ui_index_1 = input.symbol("BINANCE:BTCUSD", title = "Base market", group = g_idi)
// ui_index_2 = input.symbol("BINANCE:ETHUSD", title = "Quote Market", group = g_idi)
type = input.string("MA", title = "Differrencing Series", options = , group = g_idi)
ui_ma_lkb = input.int(24, title = "lookback of ma and volatility scaling constant", group = g_idi)
ui_rsi_lkb = input.int(14, title = "Lookback of RSI", group = g_idi)
ui_atr_lkb = input.int(300, title = "ATR lookback - Normalising value", group = g_idi)
ui_ma_threshold = input.float(5, title = "Threshold of Upward/Downward Trend (MA)", group = g_idi)
ui_rsi_threshold = input.float(20, title = "Threshold of Upward/Downward Trend (RSI)", group = g_idi)
//>>+----------------------------------------------------------------+}
// CUSTOM FUNCTIONS |
//<<+----------------------------------------------------------------+{
// construct UDT (User defined type) containing the IDI (Intramarket Difference Index) source values
// UDT will hold many variables / functions grouped under the UDT
type functions
float Close // close price
float ma // ma of symbol
float rsi // rsi of the asset
float atr // atr of the asset
// the security data
getUDTdata(symbol, malookback, rsilookback, atrlookback) =>
indexHighTF = barstate.isrealtime ? 1 : 0
= request.security(symbol, timeframe = timeframe.period,
expression = [close , // Instentiate UDT variables
ta.sma(close, malookback) ,
ta.rsi(close, rsilookback) ,
ta.atr(atrlookback) ])
data = functions.new(close_, ma_, rsi_, atr_)
data
// Intramerket Difference Index
idi(type, symbol1, malookback, rsilookback, atrlookback, mathreshold, rsithreshold) =>
threshold = float(na)
index1 = getUDTdata(symbol1, malookback, rsilookback, atrlookback)
index2 = getUDTdata(syminfo.tickerid, malookback, rsilookback, atrlookback)
// declare difference variables for both base and quote symbols, conditional on which difference type is selected
var diffindex1 = 0.0, var diffindex2 = 0.0,
// declare Intramarket Difference Index based on series type, note
// if > 0, index 2 outpreforms index 1, buy index 2 (momentum based) until equalibrium
// if < 0, index 2 underpreforms index 1, sell index 1 (momentum based) until equalibrium
// for idi to be valid both series must be stationary and normalised so both series hae he same scale
intramarket_difference = 0.0
if type == "MA"
threshold := mathreshold
diffindex1 := (index1.Close - index1.ma) / math.pow(index1.atr*malookback, 0.5)
diffindex2 := (index2.Close - index2.ma) / math.pow(index2.atr*malookback, 0.5)
intramarket_difference := diffindex2 - diffindex1
else if type == "RSI"
threshold := rsilookback
diffindex1 := index1.rsi
diffindex2 := index2.rsi
intramarket_difference := diffindex2 - diffindex1
//>>+----------------------------------------------------------------+}
// STRATEGY FUNCTIONS CALLS |
//<<+----------------------------------------------------------------+{
// plot the intramarket difference
= idi(type,
ui_index_1,
ui_ma_lkb,
ui_rsi_lkb,
ui_atr_lkb,
ui_ma_threshold,
ui_rsi_threshold)
//>>+----------------------------------------------------------------+}
plot(intramarket_difference, color = color.orange)
hline(type == "MA" ? ui_ma_threshold : ui_rsi_threshold, color = color.green)
hline(type == "MA" ? -ui_ma_threshold : -ui_rsi_threshold, color = color.red)
hline(0)
Note it is possible that after printing a buy the strategy then prints many sell signals before returning to a buy, which again has the same implication (less profit. Potentially because we exit early only for price to continue upwards hence missing the larger "trend"). The image below showcases this cenario and again, by allowing our winner to run we may capture more profit (theoretically).
This should be clear...
🔸 Mean Reversion Case:
We stated prior that mean reversion of anomalies is an standerdies fact of financial data, how can we exploit this ?
We exploit this by normalizing the ID by applying the Ehlers fisher transformation. The transformed data is then assumed to be approximately normally distributed. To form the strategy we employ the same logic as for the z score, if the FT normalized ID > 2.5 (< -2.5) we buy (short). Our exit conditions remain unchanged (fixed ATR stop and trailing Donchian Trailing stop)
🔷 Position Sizing:
If ‘‘Fixed Risk From Initial Balance’’ is toggled true this means we risk a fixed percentage of our initial balance, if false we risk a fixed percentage of our equity (current balance).
Note we also employ a volatility adjusted position sizing formula, the turtle training method which is defined as follows.
Turtle position size = (1/ r * ATR * DV) * C
Where,
r = risk factor coefficient (default is 20)
ATR(j) = risk proxy, over j times steps
DV = Dollar Volatility, where DV = (1/Asset Price) * Capital at Risk
🔷 Risk Management:
Correct money management means we can limit risk and increase reward (theoretically). Here we employ
Max loss and gain per day
Max loss per trade
Max number of consecutive losing trades until trade skip
To read more see the tooltips (info circle).
🔷 Take Profit:
By defualt the script uses a Donchain Channel as a trailing stop and take profit, In addition to this the script defines a fixed ATR stop losses (by defualt, this covers cases where the DC range may be to wide making a fixed ATR stop usefull), ATR take profits however are defined but optional.
ATR SL and TP defined for all trades
🔷 Hurst Regime (Regime Filter):
The Hurst Exponent (H) aims to segment the market into three different states, Trending (H > 0.5), Random Geometric Brownian Motion (H = 0.5) and Mean Reverting / Contrarian (H < 0.5). In my interpretation this can be used as a trend filter that eliminates market noise.
We utilize the trending and mean reverting based states, as extra conditions required for valid trades for both strategy types respectively, in the process increasing our trade entry quality.
🔷 Example model Architecture:
Here is an example of one configuration of this strategy, combining all aspects discussed in this post.
Future Updates
- Automation integration (next update)
Relative Strength according to Oster (RSO)Overview:
Relative Strength according to Oster (RSO) is an innovative tool that redefines how traders assess an asset's market strength. Moving beyond traditional indicators, RSO offers a sophisticated and highly responsive measure of an asset's potential to continue performing well. By integrating groundbreaking methodologies, RSO equips traders with unparalleled insights into market dynamics, making it an essential tool for anyone looking to stay ahead in today's fast-paced trading environment.
Understanding RSL (Relative Strength according to Levy):
At its core, Relative Strength according to Levy (RSL) is a powerful concept rooted in the idea that an asset currently exhibiting strength is more likely to maintain or even enhance that strength in the future. RSL calculates this by comparing an asset's current price to its moving average, providing a clear picture of its relative performance over time. The further its value is above 1, the higher the market momentum and vice versa. This relationship to the moving average is crucial, as it indicates not just where the asset stands today but also its trajectory in the context of historical performance. The ability to identify assets that consistently outperform is a game-changer for traders, and RSL has long been a cornerstone in this pursuit.
RSO vs. Traditional RSL: A Leap Forward
The RSO takes the traditional RSL concept and propels it into new territory with its innovative correlation-based approach. This is where RSO truly shines, offering a unique and sophisticated analysis that goes far beyond the basics.
Why RSO is Revolutionary:
Correlation Adjustment: The RSO doesn’t just measure an asset’s strength in isolation. Instead, it adjusts its readings based on how closely the asset's price movements correlate with a chosen benchmark. This groundbreaking feature ensures that the RSO is not just reactive to past performance but also predictive of how the asset might behave relative to the broader market, adding a layer of precision that is unparalleled in traditional strength indicators.
Superior Strength Option: With the RSO, traders have the option to include superior strength factors, adding another dimension of insight. This feature allows for more stable and reliable long-term signals. On the flip side, those who prefer a more dynamic trading style can opt to exclude this factor for more frequent, shorter-term signals. This level of customization is rare and sets the RSO apart as a truly adaptable tool.
Enhanced Market Insights: RSO’s correlation-based approach doesn’t just show how strong an asset is—it reveals how that strength is likely to develop in relation to the benchmark's underlying trends. This isn’t merely about comparing performance; it’s about understanding the asset’s potential trajectory in a much broader market context. Such insight is invaluable for making informed, strategic trading decisions.
Practical Application:
The RSO isn’t just innovative in theory; it’s designed for practical, real-world trading. Traders can set customized alerts based on RSO’s readings, ensuring they’re always aware of key buy or sell signals as they occur. The flexibility to include or exclude superior strength factors means that RSO can be tailored to fit any trading style, whether focused on long-term investments or short-term opportunities.
Conclusion:
In conclusion, the Relative Strength according to Oster (RSO) is more than just an indicator; it’s a breakthrough in market analysis. By integrating correlation adjustments and offering unparalleled customization options, RSO provides traders with insights that are both deeper and more actionable than ever before. This innovative tool is designed to empower traders, giving them the edge they need to succeed in an increasingly complex market landscape. Whether you’re a seasoned trader or just starting out, the RSO is a must-have tool for navigating market trends with confidence and precision.
Aggressor Volume ImbalanceAggressor volume imbalance represents the ratio between market aggressor buy volume (market buy orders) and market aggressor sell volume (market sell orders). This ratio enables traders to evaluate the interest of market aggressors and whether aggressive market activity favours the price's direction.
Analysing aggressor volume is critical in understanding market sentiment and aids in identifying shifts in momentum and potential exhaustion points in the market. When the aggressor buy volume significantly exceeds the sell volume, it typically indicates strong buying interest, driving prices higher if the offer-side liquidity cannot contain it, and vice versa.
How it Works
The imbalance ratio is calculated as follows, according to the selected session timeframe (see settings):
imbalance := ((buyVolumeAccumulator - sellVolumeAccumulator)
/ (buyVolumeAccumulator + sellVolumeAccumulator)) * 100
Aggressive Volume Imbalance uses lower timeframe historical data to calculate Historical Aggressor Volume Imbalances, while live data is used for live aggressor volume imbalances.
How to Use It
You can set the indicator to use any historical data timeframe you prefer. However, it is highly recommended to use lower timeframes (e.g., 1 second), as the lower the timeframe, the more granular the data.
The indicator resets to 0% whenever a new session timeframe begins (e.g., a new day) and calculates new values for the rest of the session. This can be configured in the settings.
Trend Spotter v1Trend Spotter - Advanced Trend and Momentum Trading Strategy
Overview:
Trend Spotter is an advanced trading script designed to help traders identify high-probability buy and sell opportunities in the market. This closed-source script combines trend detection and momentum analysis to deliver reliable and actionable trading signals.
How It Works:
Trend Spotter integrates two powerful technical indicators: the Moving Average Convergence Divergence (MACD) and the Stochastic Relative Strength Index (StochRSI). These indicators are known for their effectiveness in identifying market trends and momentum shifts, respectively.
MACD Component: The MACD indicator is used to determine the strength and direction of a trend. By calculating the difference between a fast and a slow exponential moving average (EMA) of the asset’s price, the MACD helps to identify changes in the strength, direction, momentum, and duration of a trend. This script uses optimized settings for MACD to filter out market noise and focus on significant trends.
StochRSI Enhancement: The StochRSI is an oscillator that applies the Stochastic formula to the Relative Strength Index (RSI) values, making it a more sensitive indicator for detecting overbought and oversold conditions. StochRSI provides early signals of potential trend reversals, adding an extra layer of precision to the MACD signals.
Signal Generation Logic:
Trend Spotter generates buy and sell signals based on a combination of MACD crossovers and StochRSI levels:
Buy Signal: A buy signal is triggered when the MACD line crosses above the signal line, indicating a potential bullish trend, and the StochRSI confirms rising momentum.
Sell Signal: A sell signal occurs when the MACD line crosses below the signal line, indicating a potential bearish trend, and the StochRSI confirms falling momentum.
How to Use the Script:
Apply to Chart: Add Trend Spotter to any asset’s chart. It is best suited for time frames of 1-hour or higher.
Interpret Signals: Look for green arrows below the bars for buy signals and red arrows above the bars for sell signals.
Risk Management: Use stop-loss and take-profit levels to manage risk, ideally based on the asset’s volatility.
Unique Features:
Adaptive Settings: Trend Spotter adjusts its sensitivity based on historical volatility and market conditions, ensuring that the signals remain relevant across different market environments.
Visual and Audible Alerts: Traders receive clear visual signals on the chart and optional audible alerts when a buy or sell condition is met, ensuring that no trading opportunity is missed.
Conclusion:
Trend Spotter provides traders with a robust tool for trend and momentum analysis, combining the strengths of MACD and StochRSI to generate high-quality trading signals. This script is ideal for traders looking for a reliable method to identify entry and exit points in various market conditions.
Disclaimer:
While Trend Spotter has been backtested and optimized for performance, it is important to use it as part of a comprehensive trading strategy. Past performance is not indicative of future results, and traders should practice proper risk management when using this tool.
Simple Volatility MomentumOverview:
The Simple Volatility Momentum indicator calculates the mean and standard deviation of the changes of price (returns) using various types of moving averages (Incremental, Rolling, and Exponential). With quantifying the dispersion of price data around the mean, statistical insights are provided on the volatility and the movements of price and returns. The indicator also ranks the mean absolute value of the changes of price over a specified time period which helps you assess the strength of the "trend" and "momentum" regardless of the direction of returns.
Simple Volatility Momentum
This indicator can be used for mean reversion strategies and "momentum" or trend based strategies.
The indicator calculates the average return as the momentum metric and then gets the moving average of the average return and standard deviations from average return average. On the options you can determine if you want to use 1 or 2 standard deviation bands or have both of them enabled.
Settings:
Source: By default it's at close.
M Length: This is the length of the "momentum".
Rank Length: This is the length of the rank calculation of absolute value of the average return
MA Type: This is the different type of calculations for the mean and standard deviation. By default its at incremental.
Smoothing factor: (Only used if you choose the exponential MA type.)
The absolute value of the average return helps you see the strength of the "momentum" and trend. If there is a low ranking of the absolute value of the average return then you can eventually expect it to increase which means that the average return is trending, leading to trending price moves. If the Mean ABS rank value is at or near the maximum value 100 and the average return is at -2 standard deviation from the mean, you can see it as the negative momentum or trend being "finished". Similarly, if the Mean ABS value is near or at the maximum value 100 and the average return is at +2 standard deviation from the mean, you can view the uptrend, as "finished" and the Mean ABS rank can't really go higher than 100.
Moving Average Calculations type:
Incremental: Incremental moving averages use an incremental approach to update the moving average by adding the newest data point and subtracting the oldest one.
Exponential: The exponential moving average gives more weight to recent data points while still considering older ones. This is achieved by applying a smooth factor to the previous EMA value and the current data point. EMA's react more quickly to recent changes in the data compared to simple moving averages, making them useful for short term trends and momentum in financial markets.
Rolling: The moving average is calculated by taking the average of a fixed number of data points within a defined window. As new data becomes available, the window moves forward and the average is recalculated. Rolling Moving Averages are useful for smoothing out short-fluctuations and identifying trends over time.
Important thing to note about indicators involving bands and "momentum" or "trend" or prices:
For the explanation we will assume that stock returns follow a normal distribution and price follows a log normal distribution. Please note that in the live market this assumption isn't always true. Many people incorrectly use standard deviations on prices and trade them as mean reversion strategies or overbought or oversold levels which is not what standard deviations are meant for. Assuming you have applied the log transformation on the standard deviation bands (if your input is raw price then you should use a log transformation to remove the skewness of price), and you have a range of 2 standard deviations from the mean, under the empirical rule with enough occurrences 95% of the values will be within the 2 standard deviation range. This doesn't mean that if price falls to the bottom of the 2 standard deviation bound, there is a 95% chance it will revert back to mean, this is incorrect and not how standard deviations or mean reversion works.
"MOMENTUM"
In finance "momentum" refers to the rate of change of a time series data point. It shows the persistence or tendency for a data series to continue moving in its current direction. In finance, "momentum" based strategies capitalize on the observed tendency of assets that have performed well (or poorly) in the recent past to continue performing well (or poorly) in the near future. This persistence is often observed in various financial instruments including stocks, currencies and commodities.
"Momentum" is commonly calculated with the average return, and relies on the assumption that assets with positive "momentum" or a positive average return will likely continue to perform well in the short to medium term, while assets with a negative average return are expected to continue underperforming. This average return or expected value is derived from historical observations and statistical analysis of previous price movements. However, real markets are subject to levels of efficiencies, market fluctuations, randomness, and may not always produce consistent returns over time involving momentum based strategies.
Mean Reversion:
In finance, the average return is an important parameter in mean reversion strategies. Using statistical methodologies, mean reversion strategies aim to exploit the deviations from the historical average return by identifying instances where current prices and their changes diverge from their expected levels based on past performance. This approach involves statistical analysis and predictive modelling techniques to check where and when the average rate of change is likely to revert towards the mean. It's important to know that mean reversion is a temporary state and will not always be present in a specific timeseries.
Using the average return over price offers several advantages in finance and trading since it is less sensitive to extreme price movements or outliers compared to raw price data. Price itself contains a distribution that is usually positively-skewed and has no upper bound. Mean reversion typically occurs in distributions where extreme values are followed by a tendency for the variable to return towards its mean over time, however the probability distribution of price has no tendency for values to revert towards any specific level. Instead, values may continue to increase without a bound. Returns themself contain more stationary behavior than price levels. Mean reversion strategies rely on the assumption that deviations from the mean will eventually revert back to the mean. Returns, being more likely to exhibit stationary, are better suited for mean reversion based strategies.
The distribution of returns are often more symmetrically distributed around their mean compared to price distributions. This symmetry makes it easier to identify deviations from the mean and assess the likelihood of mean reversion occurrence. Returns are also less sensitive to trends and long-term price movements compared to price levels. Mean reversion strategies aim to exploit deviations from mean, which can be obscured when analyzing raw price data since raw price is almost always trending. Returns can filter out the trend component of price movements, making it easier to identify opportunities.
Stationary Process: Implication that properties like mean and variance remain relatively constant over time.
Dynamic Momentum GaugeOverview
The Dynamic Momentum Gauge is an indicator designed to provide information and insights into the trend and momentum of a financial asset. While this indicator is not directional , it helps you know when there will be a trend, big move, or when momentum will have a run, and when you should take profits.
How It Works
This indicator calculates momentum and then removes the negative values to focus instead on when the big trend could likely happen and when it could end, or when you should enter a trade based on momentum or exit. Traders can basically use this indicator to time their market entries or exits, and align their strategies with momentum dynamics.
How To Use
As previously mentioned, this is not a directional indicator but more like a timing indicator. This indicator helps you find when the trend moves, and big moves in the markets will occur and its possibly best to exit the trades. For example, if you decide to enter a long trade if the Dynamic Momentum Gauge value is at an extreme low and another momentum indicator that you use has conditions that you would consider to long with, then this indicator is basically telling you that there isn't more space for the momentum to squeeze any longer, can only really expand from that point or stay where it currently is, but this is also a mean reverting process so it does tend to go back up from the low point.
Settings:
Length: This is the length of the momentum, by default its at 100.
Normalization Length: Length of the Normalization which ensures the the values fall within a consistent range.
Bubble Risk IndicatorThe Bubble Risk Indicator is a sophisticated tool designed to assess the potential risk level of a trading instrument by measuring its deviation from a 20-week Simple Moving Average (SMA). This dynamic indicator visually represents the deviation with a color-changing line, indicating the degree of risk based on the distance from the SMA.
🔷 Calculation
The indicator calculates the deviation from the 20-week SMA and expresses it as a percentage extension:
20-Week SMA : Averages the closing prices over the past 20 periods, providing a consistent measure of the long-term trend.
Deviation Percentage : Measures the percentage difference between the current closing price and the 20-week SMA.
🔷 Color Coding
The line changes color based on the deviation level to represent different risk levels. Users can customize these colors as per their preferences. However, the following are the default recommended settings:
Extreme Low Risk (Below 0) : Blue
Low Risk (Below 0) : Light Blue
Low Risk (Above 0) : Light Purple
Medium Risk : Orange
High Risk : Red
Colors transition smoothly to reflect the increasing or decreasing risk based on the deviation from the SMA.
🔷 Customization
Users have the flexibility to change the colors representing each risk level through the indicator settings. While the default colors are recommended for a standard view, users comfortable with custom color schemes can adjust according to their preference.
🔷 Usage
This indicator is beneficial for gauging the relative risk associated with current price movements compared to a historical average. It's most effective when used in conjunction with other technical analysis tools and market knowledge.
🔷 Limitations
While the Bubble Risk Indicator provides valuable insights, it should form part of a broader trading strategy. It assesses risk levels based on historical data and does not predict future market directions.
🔷 Conclusion
The Bubble Risk Indicator offers a nuanced and visually intuitive way to understand market risk levels, providing traders with an additional tool for informed decision-making.
🔷 Risk Disclaimer
Trading involves significant risk and is not suitable for every investor. The value of investments can fluctuate. Past performance is not indicative of future results. Always consider your circumstances and seek independent advice before making financial decisions. This indicator is provided for informational purposes only and is not intended as financial advice.