NR4/NR7 + 2BarNR/3BarNR + Trend + Refined MACD + VWAP📜 Description:
NR4, NR7, 2-Bar NR, and 3-Bar NR Compression Scanner with Trend & Momentum Filters
This script identifies extreme price compressions (NR4, NR7, 2-Bar NR, 3-Bar NR) combined with strict trend and momentum conditions for higher-probability setups.
It’s not just about spotting contraction — it’s about ensuring the right environment for expansion.
The scanner conditions are:
NR4 and NR7 patterns: Today's range must be the narrowest compared to the last 4 or 7 days.
2-Bar and 3-Bar Narrow Ranges: The narrowest two or three day ranges compared to the last 20 sets of two/three days.
Trend filter:
Price must be above the 20 EMA.
The 10 EMA must be above the 20 EMA.
MACD proximity filter:
The MACD fast line must either be above the slow line or within 5% range below the slow line.
VWAP filter:
Price must be trading above VWAP.
Visuals:
Background colours highlight detected compression patterns aligned with trend.
Shape markers above or below bars for quick visual confirmation.
📈 Why Use This?
Some have said that trading is a waiting game. I won't say they're wrong.
This scanner doesn't just throw every tight-range day at you. It finds the coils in context — trending, gaining momentum, ready to spring.
If you chase trades like a fool in a brothel, you'll get taken for a ride.
If you wait for the right compression, at the right moment, with the right backing...
Well, let's just say, you might just start looking like you actually know what you're doing.
🛠️ Built for Traders Who:
Prefer strong trends over messy ranges.
Want systematic setups, not random guessing.
Like stacking probabilities rather than praying to the trading gods.
Enjoy catching breakouts when everyone else is still scratching their heads.
Trend Analysis
Quarterly Fundamentals Table by GauravThis Pine Script v3 overlay paints a compact, six‐column table in the top‐right of your chart that begins with your stock’s market capitalization and sector/industry, then lays out quarterly fundamentals—Sales, Sales QoQ%, PAT, PAT QoQ% and OPM%—across the most recent four fiscal quarters (dynamically labeled by month and year). It pulls data via request.financial(), formats large numbers into lakhs/crores, calculates quarter‐over‐quarter growth, and sizes text for clarity, giving swing traders an at‐a‐glance view of key fundamental trends alongside price action.
ICT Ultimate Checklist | MARKET MAVERISK MOHAMMAD ESMAILIIThis indicator serves as a checklist for ICT traders. It stays on the chart regularly because the ICT method has various components for confirmation needed to enter a trade, helping us not to get distracted and stay on our strategy.
Triple Confirmation Buy/Sell Engine VWAP + MACD + RSIDescription:
This custom-built indicator generates high-confidence Buy/Sell signals using a powerful combination of MACD momentum, RSI strength, and VWAP trend confirmation — designed for cleaner entries and fewer false signals.
Unlike traditional scripts that rely on only one indicator (and produce noisy or early signals), this system requires triple confirmation, greatly increasing signal quality and reducing false trades.
✅ Buy Signal Conditions:
MACD histogram turns green (momentum shift positive)
RSI crosses above 50 (bullish strength confirmation)
Price closes above VWAP (trend confirmation)
🔻 Sell Signal Conditions:
MACD histogram turns red (momentum shift negative)
RSI crosses below 50 (weakening trend)
Price closes below VWAP (bearish confirmation)
🛠 Best For:
Trend traders seeking higher probability entries
Swing traders who want to catch bigger moves
Crypto, stocks, forex traders looking for simple, effective signals
Machine Learning | Adaptive Trend Signals [Bitwardex]⚙️🧠Machine Learning | Adaptive Trend Signals
🔷Overview
Machine Learning | Adaptive Trend Signals is a Pine Script™ v6 indicator designed to visualize market trends and generate signals through a combination of volatility clustering, Gaussian smoothing, and adaptive trend calculations. Built as an overlay indicator, it integrates advanced techniques inspired by machine learning concepts, such as K-Means clustering, to adapt to changing market conditions. The script is highly customizable, includes a backtesting module, and supports alert conditions, making it suitable for traders exploring trend-based strategies and developers studying volatility-driven indicator design.
🔷Functionality
The indicator performs the following core functions:
• Volatility Clustering: Uses K-Means clustering to categorize market volatility into high, medium, and low states, adjusting trend sensitivity accordingly.
• Trend Calculation: Computes adaptive trend lines (SmartTrend) based on volatility-adjusted standard deviation, smoothed RSI, and ADX filters.
• Signal Generation: Identifies potential buy and sell points through trend line crossovers and directional confirmation.
• Backtesting Module: Tracks trade outcomes based on the SmartTrend3 value, displaying win rate and total trades.
• Visualization: Plots trend lines with gradient colors and optional signal markers (bullish 🐮 and bearish 🐻).
• Alerts: Provides configurable alerts for trend shifts and volatility state changes.
🔷Technical Methodology
Volatility Clustering with K-Means
The indicator employs a K-Means clustering algorithm to classify market volatility, measured via the Average True Range (ATR), into three distinct clusters:
• Data Collection: Gathers ATR values over a user-defined training period (default: 100 bars).
• Centroid Initialization: Sets initial centroids at the highest, lowest, and midpoint ATR values within the training period.
• Iterative Clustering: Assigns ATR data points to the nearest centroid, recalculates centroid means, and repeats until convergence.
• Dynamic Adjustment: Assigns a volatility state (high, medium, or low) based on the closest centroid, adjusting the trend factor (e.g., tighter for high volatility, wider for low volatility).
This approach allows the indicator to adapt its sensitivity to varying market conditions, providing a data-driven foundation for trend calculations.
🔷Gaussian Smoothing
To enhance signal clarity and reduce noise, the indicator applies Gaussian kernel smoothing to:
• RSI: Smooths the Relative Strength Index (calculated from OHLC4) to filter short-term fluctuations.
• SmartTrend: Smooths the primary trend line for a more stable output.
The Gaussian kernel uses a sigma value derived from the user-defined smoothing length, ensuring mathematically consistent noise reduction.
🔷SmartTrend Calculation
The pineSmartTrend function is the core of the indicator, producing three trend lines:
• SmartTrend: The primary trend line, calculated using a volatility-adjusted standard deviation, smoothed RSI, and ADX conditions.
• SmartTrend2: A secondary trend line with a wider factor (base factor * 1.382) for signal confirmation.
SmartTrend3: The average of SmartTrend and SmartTrend2, used for plotting and backtesting.
Key components of the calculation include:
• Dynamic Standard Deviation: Scales based on ATR relative to its 50-period smoothed average, with multipliers (1.0 to 1.4) applied according to volatility thresholds.
• RSI and ADX Filters: Requires RSI > 50 for bullish trends or < 50 for bearish trends, alongside ADX > 15 and rising to confirm trend strength.
Volatility-Adjusted Bands: Constructs upper and lower bands around price action, adjusted by the volatility cluster’s dynamic factor.
🔷Signal Generation
The generate_signals function generates signals as follows:
• Buy Signal: Triggered when SmartTrend crosses above SmartTrend2 and the price is above SmartTrend, with directional confirmation.
• Sell Signal: Triggered when SmartTrend crosses below SmartTrend2 and the price is below SmartTrend, with directional confirmation.
Directional Logic: Tracks trend direction to filter out conflicting signals, ensuring alignment with the broader market context.
Signals are visualized as small circles with bullish (🐮) or bearish (🐻) emojis, with an option to toggle visibility.
🔷Backtesting
The get_backtest function evaluates signal outcomes using the SmartTrend3 value (rather than closing prices) to align with the trend-based methodology.
It tracks:
• Total Trades: Counts completed long and short trades.
• Win Rate: Calculates the percentage of trades where SmartTrend3 moves favorably (higher for longs, lower for shorts).
Position Management: Closes opposite positions before opening new ones, simulating a single-position trading system.
Results are displayed in a table at the top-right of the chart, showing win rate and total trades. Note that backtest results reflect the indicator’s internal logic and should not be interpreted as predictive of real-world performance.
🔷Visualization and Alerts
• Trend Lines: SmartTrend3 is plotted with gradient colors reflecting trend direction and volatility cluster, accompanied by a secondary line for visual clarity.
• Signal Markers: Optional buy/sell signals are plotted as small circles with customizable colors.
• Alerts: Supports alerts for:
• Bullish and bearish trend shifts (confirmed on bar close).
Transitions to high, medium, or low volatility states.
🔷Input Parameters
• ATR Length (default: 14): Period for ATR calculation, used in volatility clustering.
• Period (default: 21): Common period for RSI, ADX, and standard deviation calculations.
• Base SmartTrend Factor (default: 2.0): Base multiplier for volatility-adjusted bands.
• SmartTrend Smoothing Length (default: 10): Length for Gaussian smoothing of the trend line.
• Show Buy/Sell Signals? (default: true): Enables/disables signal markers.
• Bullish/Bearish Color: Customizable colors for trend lines and signals.
🔷Usage Instructions
• Apply to Chart: Add the indicator to any TradingView chart.
• Configure Inputs: Adjust parameters to align with your trading style or market conditions (e.g., shorter ATR length for faster markets).
• Interpret Output:
• Trend Lines: Use SmartTrend3’s direction and color to gauge market bias.
• Signals: Monitor bullish (🐮) and bearish (🐻) markers for potential entry/exit points.
• Backtest Table: Review win rate and total trades to understand the indicator’s behavior in historical data.
• Set Alerts: Configure alerts for trend shifts or volatility changes to support manual or automated trading workflows.
• Combine with Analysis: Use the indicator alongside other tools or market context, as it is designed to complement, not replace, comprehensive analysis.
🔷Technical Notes
• Data Requirements: Requires at least 100 bars for accurate volatility clustering. Ensure sufficient historical data is loaded.
• Market Suitability: The indicator is designed for trend detection and may perform differently in ranging or volatile markets due to its reliance on RSI and ADX filters.
• Backtesting Scope: The backtest module uses SmartTrend3 values, which may differ from price-based outcomes. Results are for informational purposes only.
• Computational Intensity: The K-Means clustering and Gaussian smoothing may increase processing time on lower timeframes or with large datasets.
🔷For Developers
The script is modular, well-commented, encouraging reuse and modification with proper attribution.
Key functions include:
• gaussianSmooth: Applies Gaussian kernel smoothing to any data series.
• pineSmartTrend: Computes adaptive trend lines with volatility and momentum filters.
• getDynamicFactor: Adjusts trend sensitivity based on volatility clusters.
• get_backtest: Evaluates signal performance using SmartTrend3.
Developers can extend these functions for custom indicators or strategies, leveraging the volatility clustering and smoothing methodologies. The K-Means implementation is particularly useful for adaptive volatility analysis.
🔷Limitations
• The indicator is not predictive and should be used as part of a broader trading strategy.
• Performance varies by market, timeframe, and parameter settings, requiring user experimentation.
• Backtest results are based on historical data and internal logic, not real-world trading conditions.
• Volatility clustering assumes sufficient historical data; incomplete data may affect accuracy.
🔷Acknowledgments
Developed by Bitwardex, inspired by machine learning concepts and adaptive trading methodologies. Community feedback is welcome via TradingView’s platform.
🔷 Risk Disclaimer
Trading involves significant risks, and most traders may incur losses. Bitwardex AI Algo is provided for informational and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument . The signals, metrics, and features are tools for analysis and do not guarantee profits or specific outcomes. Past performance is not indicative of future results. Always conduct your own due diligence and consult a financial advisor before making trading decisions.
Trend Direction on 1 Hour Timeframe1 Hour timeframe indicator of trend direction using EMA 9/21. Chart as background color indicating trend.
Event-Based Multi MA v1.1📈 Event-Based Multi MA v1.1 — Smart Trading with Dynamic MA Updates
Overview
In a world where most moving averages blindly follow every candle, Event-Based Multi MA v1.1 introduces a smarter logic:
➡️ Update moving averages only when significant price movements occur.
Forget the noise. Focus on what's important.
This indicator recalculates your moving averages only after meaningful price shifts, allowing you to spot true trends and avoid market whipsaws.
Key Features
✅ Event-Driven Logic
Set events based on:
Points: Absolute price change
Percent: Relative price movement
ATR: Volatility-adjusted dynamic movement
✅ Seven Fully Customizable Moving Averages (MA1–MA7)
Each MA offers:
Custom timeframe
Selection of types (EMA, SMA, WMA, VWMA, HMA, LSMA, DEMA, TEMA, ALMA, RMA)
Adjustable lengths and colors
✅ Reduced Market Noise
MAs adjust only after important price actions — cutting down lag and false signals.
✅ Multi-Timeframe Analysis
You can blend moving averages from different timeframes (e.g., 15m, 1H, Daily) into a single chart — perfect for professional multi-frame strategy building.
Settings Explained
Event Trigger Type: Select Points, Percent, or ATR-based movement.
Event Threshold: The amount of price movement needed to trigger a new calculation.
ATR Length: If ATR mode is selected, this controls the sensitivity.
Each Moving Average (MA1 to MA7) has:
MA Type: Choose the smoothing method that suits your trading style.
Length: The number of bars used in the calculation.
Color: Customize visual styling.
Timeframe: Load MAs from different timeframes into your current chart.
How to Use It in Trading
🔹 Trend Confirmation
Wait for event-triggered updates. Fresh MAs after a significant move are much stronger signals than constantly refreshing MAs.
🔹 Momentum Breakouts
Combine short-term (e.g., MA1, MA2) and long-term (e.g., MA5, MA6) MAs. When short-term MAs cross above/below long-term after an event, it's a powerful breakout cue.
🔹 Dynamic Support/Resistance
Use slow-moving MAs like 100-200 length across different timeframes.
The event-based recalculation keeps them relevant to recent major price moves.
🔹 Volatility Filters
Switch to ATR-based events to adapt moving average updates during volatile periods and calm markets.
Why It Beats Traditional Moving Averages
🚀 No More Overfitting to Every Candle
You focus only on impactful price changes.
🚀 Multi-Timeframe Flexibility
Blend micro and macro views seamlessly in one chart.
🚀 Cleaner Signals, Less Noise
Event-triggered recalculations filter out useless minor price wobbles.
🚀 Customization Beyond Standard MAs
TEMA, HMA, ALMA, DEMA, VWMA — all included for ultra-fine-tuned strategies.
✨ Ready to Upgrade Your Trading?
Forget the old, slow MAs.
Use intelligence. Trade events, not noise.
→ Add Event-Based Multi MA v1.1 to your chart and experience true precision!
Multi-Timeframe Support & Resistance - KSKClean Multi-Timeframe Support & Resistance (S&R) Tool
This indicator automatically plots previous period Highs and Lows for:
🟢 Daily
🔵 Weekly
🟣 Monthly
It provides a clean visual reference for key market levels, which can act as areas of:
Support & Resistance
Breakout or Rejection zones
Entry/Exit decision points
Table Summary:
Compact 2-column table showing all major levels
Can be positioned manually (Top Left, Top Right, etc.)
Auto-refreshes every few bars for performance
GER MCB V2My version of Market Cipher B. V1
Combination of oscillator, vwap, rsi all in one.
Multi-timeframe.
Session-Based +/-% LinesSimple Script Just to Draw Lines Above 0.09 and Below 0.09 % based on Close Price
NR4/NR7 + Trend + MACD + VWAP FilterThe Ultimate Momentum-Compression Strategy
This strategy merges the power of price compression and trend confirmation, ensuring you're trading when the market is coiled and ready to move. By combining multiple filters—NR4/NR7, trend alignment, MACD momentum, and VWAP support—this setup identifies high-probability trade opportunities in dynamic, trending stocks. Here's how it works:
NR4/NR7 Patterns: These are narrow-range days where the current price range is smaller than the previous 4 or 7 days. This signals potential breakout or continuation setups, as the market is compressing before making a move.
Trend Confirmation: To ensure you're not trading against the current trend, the price must be above the 20 EMA, and the 10 EMA must be above the 20 EMA. This confirms a bullish structure, with the price trending in your favour.
MACD Momentum: The fast MACD line must be above the slow MACD line, confirming the trend is not only intact but also gaining momentum.
VWAP Filter: Price must be above the VWAP (Volume Weighted Average Price). This is the final confirmation that the market is in a strong, bullish phase, with buyers dominating the market.
By requiring all these conditions to align, this strategy takes the guesswork out of day trading. It ensures you're trading within a well-established trend, with compression patterns and momentum backing your trade. The result? You’re entering positions with confidence and clarity, poised to ride strong, sustained moves.
This strategy is for the trader who values both flexibility and discipline—able to capture dynamic moves while staying aligned with market structure and momentum. It’s a refined, systematic approach that makes decisions clear, without the emotional second-guessing.
Intraday Return vs IndexA relative strength indicator. Visualizes cumulative session return vs. the SPX or another chosen benchmark.
NR4/NR7 + Trend + MACD Filter📈 NR4/NR7 Breakout Scanner — with Trend & Momentum Filters
This script scans for NR4 and NR7 patterns—tight inside days that often precede explosive moves. But we don’t stop there. We filter for high-probability setups only, using:
✅ Trend Confirmation:
Price is above the 20 EMA
10 EMA is above the 20 EMA
(We’re not buying weakness. The structure must be bullish.)
✅ Momentum Confirmation (MACD Filter):
The MACD fast line is above the signal line
(Momentum must already be in gear—not catching a falling knife.)
This combo gives you a coiled spring setup—tight range, in a clear trend, with momentum pushing in your favour.
It’s ideal for breakout traders, swing traders, and anyone who wants to avoid false starts on the wrong side of the tape.
NR4 setups are marked orange,
NR7 setups are marked purple.
Stick to the right side of the trend, and let the squeeze do the rest.
NR4/NR7 + Refined Trend FilterThis version allows the candle to pull toward the 10 EMA without disqualifying the trend—but keeps things on a bullish leash.
NR4/NR7 + Strong Uptrend FilterNR4/NR7 Tight Range Breakout Scanner with Trend Confirmation
This script identifies explosive breakout candidates by scanning for NR4 (Narrowest Range in 4 days) and NR7 (Narrowest Range in 7 days) setups, only when the underlying stock is showing strong bullish alignment.
Why This Matters
Narrow range candles often precede volatility. When you combine that compression with a strong uptrend, you’re essentially spotting a coiled spring—just before the snap. Most traders chase moves. This one waits—quiet, deliberate, prepared.
Trend Filter Criteria
To ensure quality and avoid weak setups, the scanner only signals when:
The closing price is above the 10 EMA
The 10 EMA is above the 20 EMA
This confirms strong short-term momentum and trend alignment—what some call a “momentum staircase.” It keeps you on the frontside of the move and filters out chop, fakeouts, and death-by-a-thousand-wick scenarios.
Visuals
Orange Label → NR4 in a strong trend
Purple Label → NR7 in a strong trend
Background also highlights to give subtle visual cues
Best Use Case
Scan end-of-day or intraday on your watchlist. Combine it with:
MACD expansion
Low float + news catalysts
Volume surges
Breakout-ready chart structure
Result?
You don’t chase.
You don’t guess.
You stalk high-probability trades like a nobleman with a sniper rifle.
NR4/NR7 IndicatorWhat It Does:
Detects NR4 = today's range smaller than last 3
Detects NR7 = today's range smaller than last 6
Plots coloured labels + background so you can spot ‘em at a glance
NR4/NR7 + 10 EMA Trend Filter📝 Description:
This script spots NR4 and NR7 days—those deceptively quiet candles where price volatility contracts... right before a potential breakout.
But here’s the twist:
It only highlights setups when the stock is above the 10 EMA, filtering for bullish trends with real momentum behind them.
We’re not interested in weak sauce. We want spring-loaded coils in strong uptrends.
🧠 What It Does:
🔍 NR4 (Narrow Range 4): Today's range is the smallest of the last 4 days
🧨 NR7 (Narrow Range 7): Today's range is the smallest of the last 7 days
🧭 Trend Filter: Highlights only when price is above the 10-period EMA
🎯 Visual Cues: Orange background and label for NR4, purple for NR7
NR4/NR7 + Trend + Refined MACD + VWAP FilterRefined Trend-Following Strategy with NR4/NR7, MACD, and VWAP Filters
This trading strategy combines multiple technical filters to identify high-probability momentum setups, using a refined approach to the MACD for added precision. It’s designed for active traders looking to capitalise on strong trends while avoiding false signals.
Key Features:
Narrow Range Days (NR4/NR7): The strategy first looks for stocks with a narrow range, either NR4 (lowest range of the last four days) or NR7 (lowest range of the last seven days). This identifies stocks that have consolidated and may be preparing for a breakout or strong move.
Trend Analysis with EMAs: Price must be above the 20-period EMA, confirming a bullish trend. Additionally, the 10-period EMA must be above the 20-period EMA, ensuring that the short-term trend is aligned with the longer-term trend, adding to the setup’s strength.
Refined MACD Filter:
If the fast MACD line (12-period) is above the slow MACD line (26-period), the strategy accepts any difference, allowing for a full range of momentum opportunities.
If the fast MACD line is below the slow MACD line, the difference must be no more than 5%. This allows the strategy to capture tight price action setups without excluding potential trends due to a small discrepancy.
VWAP Confirmation: The strategy requires the price to be above the Volume Weighted Average Price (VWAP), adding a layer of volume-based confirmation to ensure that the stock is in a strong, positive trend relative to its average price.
Why This Works: This system is designed to take advantage of stocks that show consolidation (NR4/NR7) and then provide a clear, systematic approach for confirming their breakout potential through trend-following indicators like EMAs, MACD, and VWAP. The nuanced MACD filter adds a layer of flexibility, ensuring that no potential trend is overlooked while preventing false signals due to slight technical discrepancies.
By combining multiple layers of trend confirmation and dynamic filters for volatility, momentum, and volume, the strategy offers a refined approach to capturing high-probability setups, helping traders avoid overfitting to noise and focus on the most promising opportunities.
Divergence Detector - Free🔵Introduction
🟣Understanding Divergence
As mentioned, divergence occurs in technical analysis when a stock's price behaves contrary to indicators on the price chart. Divergence can signify either a reversal of the stock's trend or a continuation of the previous trend correction.
Divergences can act as reversal patterns or continuation patterns. Moreover, divergences can be utilized to identify potential support and resistance levels.
For instance, when an indicator is trending upwards and positive, but the price is declining and trending downwards, divergence occurs. Divergence in a stock indicates trader indecision in buying and selling and warns traders to reconsider their decisions regarding buying or holding the stock.
Divergence aids analysts in identifying critical price points. In indicator divergences, it serves as a potent signal in the realm of technical analysis.
🟣Types of Divergence
1.Regular Divergence
o Positive Regular Divergence (RD+)
o Negative Regular Divergence (RD-)
2.Hidden Divergence
o Positive Hidden Divergence (HD+)
o Negative Hidden Divergence (HD-)
3.Time Divergence
Key Note: This indicator is specifically designed to identify "Regular Divergence" only. Therefore, the following explanation pertains to this type of divergence.
🔵Regular Divergence/Convergence
Regular Divergence(Convergence) occurs due to conflicting behavior between the indicator and the price chart, typically at the end of a trend. Recognizing Regular Divergence suggests an anticipation of a trend reversal or a pattern resembling a reversal.
snapshot
🟣Positive Regular Divergence (RD+)
In contrast to negative divergence, positive Regular Divergence occurs at the end of a downtrend and between two price lows. It manifests when the price forms a new low on the price chart, but the indicator fails to recognize it.
Positive Regular Divergence indicates strong buying pressure and weak selling pressure. Following the identification of positive divergence on the chart, one can anticipate a price increase for the examined stock.
snapshot
🟣Negative Regular Divergence (RD-)
This type of Regular Divergence emerges between two price highs during an uptrend. A new high is formed on the price chart, but the indicator fails to acknowledge it. This scenario indicates negative Regular Divergence.
The likelihood of a subsequent market downturn is high. Negative divergence signifies strong selling pressure and weak buying pressure, suggesting an unfavorable future for the stock.
snapshot
🔵How to use
By utilizing the "Fractal Period" input, you can specify your desired periods for identifying divergences.
Additionally, through the "Divergence Detect Method" feature, you can choose which oscillators (MACD, RSI, or AO) to base divergence identification on.
Divergence in MACD Oscillator:
Divergence in the MACD indicator occurs when the price chart and the MACD line form a noticeable opposing pattern, meaning the price moves contrary to the MACD line. In this scenario, one expects a reversal in price direction.
snapshot
Divergence in RSI Oscillator:
If divergence occurs during a downtrend on the price chart (two consecutive lows, with the second low being lower) and on the corresponding RSI point (two consecutive lows, with the second low being higher), it signifies positive Regular Divergence and implies a buying signal.
Conversely, if divergence occurs during an uptrend on the price chart (two consecutive highs, with the second high being higher) and on the corresponding RSI point (two consecutive highs, with the second high being lower), it indicates negative Regular Divergence, signaling a selling opportunity.
snapshot
Divergence in AO Oscillator:
The AO indicator calculates histograms similar to the AO base. It calculates the difference between the simple moving averages of 5 and 34 periods based on the median of each bar. Then, it plots the bars based on the difference.
It then compares the histograms to detect peaks and troughs in the AO histograms and compares the identified peaks and troughs to the price. Whenever divergence is detected, it plots lines and arrows.
snapshot
🔵Table
The table contains information on the functional features of this oscillator that you can utilize. Four categories of information are presented in the table: "Exist," "Consecutive," "Divergence Quality," and "Change Phase Indicator."
Exist:
If divergence exists, you'll see "+" in this row.
Consecutive:
Divergences may occur consecutively. If same-type divergences form within short intervals, you can observe the count in this row.
snapshot
Divergence Quality: Based on the number of consecutive divergences, their quality can be evaluated. If one divergence exists, its quality is considered "Normal." If two divergences exist, the quality is "Good," and if three or more divergences exist, the quality is considered "Strong."
Change Phase Indicator: If a phase change occurs between two oscillation peaks formed based on divergence, this change is identified and displayed in this row.
snapshot
Volatility Breakout StrategyThis strategy captures volatility breakouts following periods of low ATR compression.
It waits for the ATR relative to price to drop below a threshold, then enters a long or short position once price breaks out by more than a multiple of the ATR.
Dynamic trailing stops based on ATR are used to protect profits.
Works best on volatile instruments (e.g., TSLA) on 15-minute charts or similar intraday timeframes.
Prime Trend ReactorIntroduction
Prime Trend Reactor is an advanced crypto trend-following strategy designed to deliver precision entries and exits based on a multi-factor trend consensus system.
It combines price action, adaptive moving averages, momentum oscillators, volume analysis, volatility signals, and higher timeframe trend confirmation into a non-repainting, fully systematic approach.
This strategy is original: it builds a unique trend detection matrix by blending multiple forms of price-derived signals through weighted scoring, rather than simply stacking indicators.
It is not a mashup of public indicators — it is engineered from the ground up using custom formulas and strict non-repainting design.
It is optimized for 1-hour crypto charts but can be used across any asset or timeframe.
⚙️ Core Components
Prime Trend Reactor integrates the following custom components:
1. Moving Averages System
Fast EMA (8), Medium EMA (21), Slow EMA (50), Trend EMA (200).
Detects short-term, medium-term, and long-term trend structures.
EMA alignment is scored as part of the trend consensus system.
2. Momentum Oscillators
RSI (Relative Strength Index) with Smoothing.
RMI (Relative Momentum Index) custom-calculated.
Confirms price momentum behavior aligned with trend.
3. Volume Analysis
CMF (Chaikin Money Flow) for accumulation/distribution pressure.
OBV (On Balance Volume) EMA Cross for volume flow confirmation.
4. Volatility and Price Structure
Vortex Indicator (VI+ and VI-) for trend strength and directional bias.
Mean-Extreme Price Engine blends closing price with extremes (high/low) based on user-defined ratio.
5. Structure Breakout Detection
Detects structure breaks based on highest high/lowest low pivots.
Adds weight to trend strength on fresh breakouts.
6. Higher Timeframe Confirmation (HTF)
Uses higher timeframe EMAs and close to confirm macro-trend direction.
Smartly pulls HTF data with barmerge.lookahead_off to avoid repainting.
🔥 Entry and Exit Logic
Long Entry: Triggered when multi-factor trend consensus turns strongly bullish.
Short Entry: Triggered when consensus flips strongly bearish.
Take Profits (TP1/TP2):
TP1: Partial 50% profit at small target.
TP2: Full 100% close at larger target.
Exit on Trend Reversal:
If trend consensus reverses before hitting TP2, the strategy exits early to protect capital.
TP Hits and Trend Reversals fire real-time webhook-compatible alerts.
🧩 Trend Consensus Matrix (Original Concept)
Instead of relying on a single indicator, Prime Trend Reactor calculates a weighted score using:
EMA Alignment
Momentum Oscillators (RSI + RMI)
Volume Analysis
Volatility (Vortex)
Higher Timeframe Bias
Each component adds a weighted contribution to the final trend strength score.
Only when the weighted score exceeds a user-defined threshold does the system allow entries.
This multi-dimensional scoring system is original and engineered specifically to avoid noisy or lagging traditional signals.
📈 Visualization and Dashboard
Custom EMA Clouds dynamically fill between Fast/Medium EMAs.
Colored Candles show real-time trend direction.
Dynamic Dashboard displays:
Current Position (Long/Short/Flat)
Entry Price
TP1 and TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Current Trend Signal
Consensus Score (%)
🛡️ Non-Repainting Design
All trend calculations are based on current and confirmed past data.
HTF confirmations use barmerge.lookahead_off.
No same-bar entries and exits — enforced logic prevents overlap.
No lookahead bias.
Strict variable handling ensures confirmed-only trend state transitions.
✅ 100% TradingView-approved non-repainting behavior.
📣 Alerts and Webhooks
This strategy includes full TradingView webhook support:
Long/Short Entries
TP1 Hit (Partial Exit)
TP2 Hit (Full Exit)
Exit on Trend Reversal
All alerts use constant-string JSON formatting compliant with TradingView multi-exchange bots:
📜 TradingView Mandatory Disclaimer
This strategy is a tool to assist in market analysis. It does not guarantee profitability. Trading financial markets involves risk. You are solely responsible for your trading decisions. Past performance does not guarantee future results.
Impulse Indicator New Capital FXThe Impulse Indicator is designed for traders who demand precision when identifying explosive market moves. This tool detects powerful short-term impulses by combining ATR-based volatility analysis with tactical price action patterns.
Key Features:
1. Dynamic Impulse Detection: Spots major price shifts based on a 5-bar momentum structure and ATR volatility filter.
2. Adaptive Volatility Filter: Filters out weak signals with a customizable ATR multiplier.
3. Cooling Period Logic: Reduces signal noise by enforcing a minimum bar spacing between impulses.
4. Clear Visual Signals: Plots "IMPULSE" labels directly on your chart for instant recognition.
How It Works:
The markets explode in a short-period of time, the indicator spots the move and plots a label, now if you're trading mean reversion pairs, you can look to go against the impulse, or if you want to catch trends you can use the indicator for potential continuation setups.
Customizable Settings:
ATR Multiplier (Best with 3,4,5)
Cooling Period (Standard is 5 bars, which is good)
ATR Length (The standard 14 period)
Anchored Moving Average by TradeSeekersThis script plots an SMA that resets based on the selected anchored timeframe, by default it is 1D.
There exists some other AMA scripts but I didn't find anything that plotted the non-anchored MA alongside the AMA and displayed the point of convergence.
The non-anchored MA presents slightly opaque as a circle plot until the anchored MA converges.
Until the anchored MA contains enough data an simple average is calculated of all source prices collected starting from the anchor.
For example, if the timeframe has reset and source is set to closing prices, then after the first bar the AMA is essentially the last closing price. After two bars have closed then the AMA is an average of the last two closing prices.
Future updates may add additional average types as time permits.