Moving Average Shift [ChartPrime]Moving Average Shift indicator combines multiple moving average (MA) types with a unique MA Shift Oscillator to help traders visualize trend direction, price deviations, and mean reversion states.
⯁ KEY FEATURES
Customizable Moving Averages: Choose from SMA, EMA, SMMA (RMA), WMA, or VWMA.
Trend-Based Coloring: Candles are dynamically colored based on price position relative to the MA.
MA Shift Oscillator: Identifies price deviations and potential mean reversion zones.
Threshold Filtering: Helps filter mean reversion signals using a user-defined threshold.
Diamond Signals for Mean Reversion: Plots diamonds on the chart when the oscillator crosses back above or below the threshold level.
Oscillator Color Coding: The oscillator has four color states:
Color 1: Above 0 and increasing.
Color 2: Above 0 and decreasing.
Color 3: Below 0 and increasing.
Color 4: Below 0 and decreasing.
⯁ HOW TO USE
Use the indicator to follow the trend based on MA direction and price relation to it.
The MA Shift Oscillator helps identify potential mean reversion points where price may revert toward the MA.
The threshold setting allows traders to filter out weak mean reversion signals and focus on significant shifts.
The four-color oscillator visually indicates trend momentum and potential trend shifts.
⯁ CONCLUSION
The Moving Average Shift indicator is a powerful tool that merges trend-following and mean reversion strategies into one comprehensive system. By allowing traders to select different types of moving averages, it provides flexibility in trend analysis while visually enhancing price action with dynamic candle coloring. The MA Shift Oscillator further strengthens decision-making by detecting deviations and highlighting potential mean reversion points.
Indicators and strategies
HTF Trend Tracker [BigBeluga]HTF Trend Tracker is a higher timeframe (HTF) trend tracking indicator designed to help traders identify significant trends, key levels, and market sentiment. The indicator dynamically adapts to the current price action, using HTF highs and lows to display trend direction and strength with detailed visuals.
🔵 Key Features:
Dynamic Trend Detection:
Uptrend is identified when the price closes above the HTF high.
Downtrend is detected when the price closes below the HTF low.
Midline changes color dynamically based on the trend direction:
Bullish Green: Indicates an uptrend.
Bearish Red: Indicates a downtrend.
Historical and Active HTF Levels:
Historic HTF highs and lows are displayed as dotted lines.
Current active HTF high and low levels are shown as solid lines.
Timeframe labels (e.g., "1D High" or "1D Low") mark the active levels for clarity.
Trend Change Signals:
A green checkmark (✓) is plotted when an uptrend starts.
A red cross (✕) appears when a downtrend begins.
Trend-Based Candle Coloring:
Candle colors change dynamically based on the trend and the price's distance from the midline:
Intense Bullish Green: Price is far above the midline during an uptrend.
Intense Bearish Red: Price is far below the midline during a downtrend.
Neutral Gray: Price is near the midline.
Users can customize the colors to suit their preferences.
🔵 Usage:
Identify uptrends and downtrends using the midline's color and the position of the close relative to the HTF levels.
Use solid lines and timeframe labels to track current HTF high and low levels.
Observe dotted lines for historical HTF levels to understand past price behavior.
Watch for checkmark (✓) and cross (✕) signals to spot trend changes and key market shifts.
Monitor candle colors to gauge trend intensity and proximity to the midline:
Intense colors signal strong trends, while neutral gray indicates consolidation near the midline.
HTF Trend Tracker is an essential tool for traders aiming to follow higher timeframe trends, identify key levels, and make data-driven decisions based on price dynamics and trend strength. Its customizable features allow for flexible integration into any trading strategy.
Air Gap MTFThis scripts automatically locate the EMA values on 30min/1hr/4hr for user specified EMA values.
On chart it will draw a line for each of the EMA, also labelling which MTF and timeframe, along with the current price.
The lines and price tag will update automatically in real-time so you don't have to keep adjusting the line!
MACD/RSI StrengthMACD/RSI Strength Indicator - A combination of the MACD and RSI indicators to show market strength and weakness.
ORB Candle Highlighter Opening Range Breakout candle highlighter - Designed to better help traders identify the bullish and bearish breakout/breakdown
Daily (Gann Pivot)Daily Gann Pivot Indicator - Description
The **Daily (Gann Pivot) Indicator** is a custom **Pine Script** tool designed to calculate and display **Gann-based pivot levels** on a price chart. It utilizes past **high, low, and close** values to determine key support and resistance levels that traders can use for potential price movement analysis.
**Features & Functionality**
1. **Customizable Inputs:**
- Select **source type** (default: `open` price).
- Adjust **lookback period** (`Days Back` setting).
- Choose from various **timeframes** (D, 2D, 3D, weekly, monthly, etc.).
2. **Pivot & Support/Resistance Levels:**
- **Main Pivot Level** (calculated as the average of previous period's HLC).
- **Standard Support & Resistance Levels (S1, S2, S3, S4, R1, R2, R3, R4)**.
- **Intermediate Levels** based on Gann calculations (`TR1`, `TS1`, `TR2`, `TS2`).
3. **Custom Display Settings:**
- Toggle visibility for **Pivot, Support, and Resistance Levels**.
- Enable **labels** for different pivot levels with adjustable text sizes.
- Choose **line style** (Solid, Dashed, Dotted) and extension direction (Left, Right, Both, None).
4. **Dynamic Updates & Auto-Plotting:**
- Automatically updates pivot levels **daily**.
- Adjusts lines when new trading periods begin.
- Labels key price levels with **Gann angles** (e.g., 90º, 180º, 270º, 360º).
---
### **How It Works**
- The script calculates the pivot point and price range from the **previous period**.
- It derives **support and resistance levels** using Gann’s pivot theory.
- If enabled, the script **plots lines and labels** for visual clarity.
- It updates dynamically with **new bars** and adjusts lines accordingly.
---
### **Who Can Use It?**
- **Day Traders & Swing Traders** looking for precise support/resistance levels.
- **Technical Analysts** applying Gann’s methodology.
- **Price Action Traders** who use pivots for trade setups.
---
This indicator helps traders **identify critical price levels** and potential turning points in the market based on **Gann’s pivot calculations**. 🚀
Wyckoff Event Detection [Alpha Extract]Wyckoff Event Detection
A powerful and intelligent indicator designed to detect key Wyckoff events in real time, helping traders analyze market structure and anticipate potential trend shifts. Using volume and price action, this script automatically identifies distribution and accumulation phases, providing traders with valuable insights into market behavior.
🔶 Phase-Based Detection
Utilizes a phase detection algorithm that evaluates price and volume conditions to identify accumulation (bullish) and distribution (bearish) events. This method ensures the script effectively captures major market turning points and avoids noise.
🔶 Multi-Factor Event Recognition
Incorporates multiple event conditions, including upthrusts, selling climaxes, and springs, to detect high-probability entry and exit points. Each event is filtered through customizable sensitivity settings, ensuring precise detection aligned with different trading styles.
🔶 Customizable Parameters
Fine-tune event detection with adjustable thresholds for volume, price movement, trend strength, and event spacing. These inputs allow traders to personalize the script to match their strategy and risk tolerance.
// === USER INPUTS ===
i_volLen = input.int(20, "Volume MA Length", minval=1)
i_priceLookback = input.int(20, "Price Pattern Lookback", minval=5)
i_lineLength = input.int(15, "Line Length", minval=5)
i_labelSpacing = input.int(5, "Minimum Label Spacing (bars)", minval=1, maxval=20)
❓How It Works
🔶 Event Identification
The script scans for key Wyckoff events by analyzing volume spikes, price deviations, and trend shifts within a user-defined lookback period. It categorizes events into bullish (accumulation) or bearish (distribution) structures and plots them directly on the chart.
// === EVENT DETECTION ===
volMA = ta.sma(volume, i_volLen)
highestHigh = ta.highest(high, i_priceLookback)
lowestLow = ta.lowest(low, i_priceLookback)
🔶 Automatic Filtering & Cleanup
Unconfirmed or weak signals are filtered out using customizable strength multipliers and volume thresholds. Events that do not meet the minimum conditions are discarded to keep the chart clean and informative.
🔶 Phase Strength Analysis
The script continuously tracks bullish and bearish event counts to determine whether the market is currently in an accumulation, distribution, or neutral phase. This allows traders to align their strategies accordingly.
🔶 Visual Alerts & Labels
Detects and labels key Wyckoff events directly on the chart, providing immediate insights into market conditions:
- PSY (Preliminary Supply) and UT (Upthrust) for distribution phases.
- PS (Preliminary Support) and SC (Selling Climax) for accumulation phases.
- Labels adjust dynamically to avoid chart clutter and improve readability.
🔶 Entry & Exit Optimization
By highlighting supply and demand imbalances, the script assists traders in identifying optimal entry and exit points. Wyckoff concepts such as springs and upthrusts provide clear trade signals based on market structure.
🔶 Trend Confirmation & Risk Management
Observing how price reacts to detected events helps confirm trend direction and potential reversals. Traders can place stop-loss and take-profit levels based on Wyckoff phase analysis, ensuring strategic trade execution.
🔶 Table-Based Market Analysis (Table)
A built-in table summarizes:
- Market Phase: Accumulation, Distribution, or Neutral.
- Strength of Phase: Weak, Moderate, or Strong.
- Price Positioning: Whether price is near support, resistance, or in a trading range.
- Supply/Demand State: Identifies whether the market is supply or demand dominant.
🔶 Why Choose Wyckoff Market Phases - Alpha Extract?
This indicator offers a systematic approach to understanding market mechanics through the lens of Wyckoff's time-tested principles. By providing clear and actionable insights into market phases, it empowers traders to make informed decisions, enhancing both confidence and performance in various trading environments.
1 Min Gold Indicator Heikin AshiThis mash up of previously published indicators reflects a very effective Gold 1 min Scalping Strategy. When utilised with two other Indicators that I cannot combine. These two other indicators are
- Future Trend Channel by Chart Prime
- Machine Learning: Lorentzian Classification: JDEHorty
The imbedded scripts within this indicator are
- Chandelier Exit by Everget
- STK a better MACD by Shayankm
- Supertrend by Everget
- EMA is the stock indicator provided by TradingView.
The settings should be a followed
Chandelier Exit
ATR Length: 1
ATR Multiplier: 1
Extremums: on
EMA: 150
STC
Length: 5
FastLength: 30
Slow: Length: 50
EMA and STC should be applied as filters.
Lorentzian the settings should be as standard. Confirmation of a Buy/Sell signal should be by the Future Trend Channel by ChartPrime if Bullish Market is being shown on the chart by Future Trend Channel then only Buys should be placed. The reverse should be applied for Sells. Final Confirmation should be from the Lorentzian Classification. Both in candle colour and the candle classification number. If the classification for Buys should be equal or greater than 6 and the candle colour is green then the trade can be placed. For Sells if the classification should be equal of less than -6 and the candle colour should be red then the Sell trade can be placed.
Oh the strategy also uses Heikin Ashi Candles to reduce ghost entry signals.
I have created a Strategy that can be backtested called 1 Gold Heikin Ashi Strategy.
Enhanced ROC - Savitzky–Golay [AIBitcoinTrend]👽 Adaptive ROC - Savitzky–Golay (AIBitcoinTrend)
The Adaptive ROC - Savitzky–Golay redefines traditional Rate of Change (ROC) analysis by integrating Savitzky–Golay smoothing with volatility-adaptive normalization, allowing it to dynamically adjust across different market conditions. Unlike the standard ROC, which reacts rigidly to price changes, this advanced version refines trend signals while maintaining responsiveness to volatility.
Additionally, this indicator features real-time divergence detection and an ATR-based trailing stop system, equipping traders with a powerful toolset for momentum analysis, reversals, and trend-following strategies.
👽 What Makes the Adaptive ROC - Savitzky–Golay Unique?
Unlike conventional ROC indicators, this enhanced version leverages volatility-adjusted scaling and Z-score normalization to improve signal consistency across different timeframes and assets.
✅ Savitzky–Golay Smoothing – Reduces noise while preserving trend structure for clearer signals.
✅ Volatility-Adaptive Normalization – Ensures that overbought and oversold thresholds remain consistent across different markets.
✅ Real-Time Divergence Detection – Identifies early bullish and bearish divergence signals for potential reversals.
✅ Crossovers & ATR-Based Trailing Stops – Implements intelligent trade management with dynamic stop levels.
👽 The Math Behind the Indicator
👾 Savitzky–Golay Smoothing
The indicator applies a Savitzky–Golay filter to the raw ROC data, creating a smoother curve while preserving key inflection points. This technique prevents excessive lag while maintaining the integrity of price movements.
sg_roc = (roc_raw + 3*roc_raw + 5*roc_raw + 7*roc_raw + 5*roc_raw + 3*roc_raw + roc_raw ) / 25
👾 Volatility-Adaptive Scaling
By dynamically adjusting the smoothed ROC using standard deviation, the indicator ensures that momentum readings remain relative to the market’s current volatility.
volatility = ta.stdev(close, rocLength)
dynamicFactor = 1 / (1 + volatility / 100)
advanced_sg_roc = sg_roc * dynamicFactor
👾 Z-Score Normalization
To maintain a stable Overbought/Oversold structure across different markets, the ROC is normalized using a Z-score transformation, ensuring its values remain statistically relevant.
rocMean = ta.wma(advanced_sg_roc, lenZ)
rocStdev = ta.stdev(advanced_sg_roc, lenZ)
zRoc = (advanced_sg_roc - rocMean) / rocStdev
👽 How Traders Can Use This Indicator
👾 Divergence Trading Strategy
Bullish Divergence Setup:
Price makes a lower low, while the ROC forms a higher low.
A buy signal is confirmed when the ROC starts rising.
Bearish Divergence Setup:
Price makes a higher high, while the ROC forms a lower high.
A sell signal is confirmed when the ROC starts declining.
👾 Buy & Sell Signals with Trailing Stop
Bullish Setup:
✅ ROC crosses above the bullish trigger level → Buy Signal.
✅ A bullish trailing stop is placed at Low - (ATR × Multiplier).
✅ Exit if price crosses below the stop.
Bearish Setup:
✅ ROC crosses below the bearish trigger level → Sell Signal.
✅ A bearish trailing stop is placed at High + (ATR × Multiplier).
✅ Exit if price crosses above the stop.
👽 Why It’s Useful for Traders
Savitzky–Golay Filtering – Retains essential trend details while eliminating excessive noise.
Volatility-Adjusted Normalization – Makes overbought/oversold levels universally reliable across markets.
Real-Time Divergence Alerts – Identifies early reversal signals for optimal entries and exits.
ATR-Based Risk Management – Ensures stops dynamically adapt to market conditions.
Works Across Markets & Timeframes - Suitable for stocks, forex, crypto, and futures trading.
👽 Indicator Settings
ROC Period – Defines the number of bars used for ROC calculation.
Smoothing Strength – Adjusts the degree of Savitzky–Golay filtering.
Volatility Scaling – Enables or disables the adaptive volatility factor.
Enable Divergence Analysis – Turns on real-time divergence detection.
Lookback Period – Specifies the pivot detection period for divergences.
Enable Crosses Signals – Activates trade signals based on ROC crossovers.
ATR Multiplier – Controls the sensitivity of the trailing stop.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
AI Adaptive Oscillator [PhenLabs]📊 Algorithmic Adaptive Oscillator
Version: PineScript™ v6
📌 Description
The AI Adaptive Oscillator is a sophisticated technical indicator that employs ensemble learning and adaptive weighting techniques to analyze market conditions. This innovative oscillator combines multiple traditional technical indicators through an AI-driven approach that continuously evaluates and adjusts component weights based on historical performance. By integrating statistical modeling with machine learning principles, the indicator adapts to changing market dynamics, providing traders with a responsive and reliable tool for market analysis.
🚀 Points of Innovation:
Ensemble learning framework with adaptive component weighting
Performance-based scoring system using directional accuracy
Dynamic volatility-adjusted smoothing mechanism
Intelligent signal filtering with cooldown and magnitude requirements
Signal confidence levels based on multi-factor analysis
🔧 Core Components
Ensemble Framework : Combines up to five technical indicators with performance-weighted integration
Adaptive Weighting : Continuous performance evaluation with automated weight adjustment
Volatility-Based Smoothing : Adapts sensitivity based on current market volatility
Pattern Recognition : Identifies potential reversal patterns with signal qualification criteria
Dynamic Visualization : Professional color schemes with gradient intensity representation
Signal Confidence : Three-tiered confidence assessment for trading signals
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-Component Ensemble : Integrates RSI, CCI, Stochastic, MACD, and Volume-weighted momentum
Performance Scoring : Evaluates each component based on directional prediction accuracy
Adaptive Smoothing : Automatically adjusts based on market volatility
Pattern Detection : Identifies potential reversal patterns in overbought/oversold conditions
Signal Filtering : Prevents excessive signals through cooldown periods and minimum change requirements
Confidence Assessment : Displays signal strength through intuitive confidence indicators (average, above average, excellent)
🎨 Visualization
Gradient-Filled Oscillator : Color intensity reflects strength of market movement
Clear Signal Markers : Distinct bullish and bearish pattern signals with confidence indicators
Range Visualization : Clean representation of oscillator values from -6 to 6
Zero Line : Clear demarcation between bullish and bearish territory
Customizable Colors : Color schemes that can be adjusted to match your chart style
Confidence Symbols : Intuitive display of signal confidence (no symbol, +, or ++) alongside direction markers
📖 Usage Guidelines
⚙️ Settings Guide
Color Settings
Bullish Color
Default: #2b62fa (Blue)
This setting controls the color representation for bullish movements in the oscillator. The color appears when the oscillator value is positive (above zero), with intensity indicating the strength of the bullish momentum. A brighter shade indicates stronger bullish pressure.
Bearish Color
Default: #ce9851 (Amber)
This setting determines the color representation for bearish movements in the oscillator. The color appears when the oscillator value is negative (below zero), with intensity reflecting the strength of the bearish momentum. A more saturated shade indicates stronger bearish pressure.
Signal Settings
Signal Cooldown (bars)
Default: 10
Range: 1-50
This parameter sets the minimum number of bars that must pass before a new signal of the same type can be generated. Higher values reduce signal frequency and help prevent overtrading during choppy market conditions. Lower values increase signal sensitivity but may generate more false positives.
Min Change For New Signal
Default: 1.5
Range: 0.5-3.0
This setting defines the minimum required change in oscillator value between consecutive signals of the same type. It ensures that new signals represent meaningful changes in market conditions rather than minor fluctuations. Higher values produce fewer but potentially higher-quality signals, while lower values increase signal frequency.
AI Core Settings
Base Length
Default: 14
Minimum: 2
This fundamental setting determines the primary calculation period for all technical components in the ensemble (RSI, CCI, Stochastic, etc.). It represents the lookback window for each component’s base calculation. Shorter periods create a more responsive but potentially noisier oscillator, while longer periods produce smoother signals with potential lag.
Adaptive Speed
Default: 0.1
Range: 0.01-0.3
Controls how quickly the oscillator adapts to new market conditions through its volatility-adjusted smoothing mechanism. Higher values make the oscillator more responsive to recent price action but potentially more erratic. Lower values create smoother transitions but may lag during rapid market changes. This parameter directly influences the indicator’s adaptiveness to market volatility.
Learning Lookback Period
Default: 150
Minimum: 10
Determines the historical data range used to evaluate each ensemble component’s performance and calculate adaptive weights. This setting controls how far back the AI “learns” from past performance to optimize current signals. Longer periods provide more stable weight distribution but may be slower to adapt to regime changes. Shorter periods adapt more quickly but may overreact to recent anomalies.
Ensemble Size
Default: 5
Range: 2-5
Specifies how many technical components to include in the ensemble calculation.
Understanding The Interaction Between Settings
Base Length and Learning Lookback : The base length determines the reactivity of individual components, while the lookback period determines how their weights are adjusted. These should be balanced according to your timeframe - shorter timeframes benefit from shorter base lengths, while the lookback should generally be 10-15 times the base length for optimal learning.
Adaptive Speed and Signal Cooldown : These settings control sensitivity from different angles. Increasing adaptive speed makes the oscillator more responsive, while reducing signal cooldown increases signal frequency. For conservative trading, keep adaptive speed low and cooldown high; for aggressive trading, do the opposite.
Ensemble Size and Min Change : Larger ensembles provide more stable signals, allowing for a lower minimum change threshold. Smaller ensembles might benefit from a higher threshold to filter out noise.
Understanding Signal Confidence Levels
The indicator provides three distinct confidence levels for both bullish and bearish signals:
Average Confidence (▲ or ▼) : Basic signal that meets the minimum pattern and filtering criteria. These signals indicate potential reversals but with moderate confidence in the prediction. Consider using these as initial alerts that may require additional confirmation.
Above Average Confidence (▲+ or ▼+) : Higher reliability signal with stronger underlying metrics. These signals demonstrate greater consensus among the ensemble components and/or stronger historical performance. They offer increased probability of successful reversals and can be traded with less additional confirmation.
Excellent Confidence (▲++ or ▼++) : Highest quality signals with exceptional underlying metrics. These signals show strong agreement across oscillator components, excellent historical performance, and optimal signal strength. These represent the indicator’s highest conviction trade opportunities and can be prioritized in your trading decisions.
Confidence assessment is calculated through a multi-factor analysis including:
Historical performance of ensemble components
Degree of agreement between different oscillator components
Relative strength of the signal compared to historical thresholds
✅ Best Use Cases:
Identify potential market reversals through oscillator extremes
Filter trade signals based on AI-evaluated component weights
Monitor changing market conditions through oscillator direction and intensity
Confirm trade signals from other indicators with adaptive ensemble validation
Detect early momentum shifts through pattern recognition
Prioritize trading opportunities based on signal confidence levels
Adjust position sizing according to signal confidence (larger for ++ signals, smaller for standard signals)
⚠️ Limitations
Requires sufficient historical data for accurate performance scoring
Ensemble weights may lag during dramatic market condition changes
Higher ensemble sizes require more computational resources
Performance evaluation quality depends on the learning lookback period length
Even high confidence signals should be considered within broader market context
💡 What Makes This Unique
Adaptive Intelligence : Continuously adjusts component weights based on actual performance
Ensemble Methodology : Combines strength of multiple indicators while minimizing individual weaknesses
Volatility-Adjusted Smoothing : Provides appropriate sensitivity across different market conditions
Performance-Based Learning : Utilizes historical accuracy to improve future predictions
Intelligent Signal Filtering : Reduces noise and false signals through sophisticated filtering criteria
Multi-Level Confidence Assessment : Delivers nuanced signal quality information for optimized trading decisions
🔬 How It Works
The indicator processes market data through five main components:
Ensemble Component Calculation :
Normalizes traditional indicators to consistent scale
Includes RSI, CCI, Stochastic, MACD, and volume components
Adapts based on the selected ensemble size
Performance Evaluation :
Analyzes directional accuracy of each component
Calculates continuous performance scores
Determines adaptive component weights
Oscillator Integration :
Combines weighted components into unified oscillator
Applies volatility-based adaptive smoothing
Scales final values to -6 to 6 range
Signal Generation :
Detects potential reversal patterns
Applies cooldown and magnitude filters
Generates clear visual markers for qualified signals
Confidence Assessment :
Evaluates component agreement, historical accuracy, and signal strength
Classifies signals into three confidence tiers (average, above average, excellent)
Displays intuitive confidence indicators (no symbol, +, ++) alongside direction markers
💡 Note:
The AI Adaptive Oscillator performs optimally when used with appropriate timeframe selection and complementary indicators. Its adaptive nature makes it particularly valuable during changing market conditions, where traditional fixed-weight indicators often lose effectiveness. The ensemble approach provides a more robust analysis by leveraging the collective intelligence of multiple technical methodologies. Pay special attention to the signal confidence indicators to optimize your trading decisions - excellent (++) signals often represent the most reliable trade opportunities.
IU Gap Fill StrategyThe IU Gap Fill Strategy is designed to capitalize on price gaps that occur between trading sessions. It identifies gaps based on a user-defined percentage threshold and executes trades when the price fills the gap within a day. This strategy is ideal for traders looking to take advantage of market inefficiencies that arise due to overnight or session-based price movements. An ATR-based trailing stop-loss is incorporated to dynamically manage risk and lock in profits.
USER INPUTS
Percentage Difference for Valid Gap - Defines the minimum gap size in percentage terms for a valid trade setup. ( Default is 0.2 )
ATR Length - Sets the lookback period for the Average True Range (ATR) calculation. (default is 14 )
ATR Factor - Determines the multiplier for the trailing stop-loss, helping in risk management. ( Default is 2.00 )
LONG CONDITION
A gap-up occurs, meaning the current session opens above the previous session’s close.
The price initially dips below the previous session's close but then recovers and closes above it.
The gap meets the valid percentage threshold set by the user.
The bar is not the first or last bar of the session to avoid false signals.
SHORT CONDITION
A gap-down occurs, meaning the current session opens below the previous session’s close.
The price initially moves above the previous session’s close but then closes below it.
The gap meets the valid percentage threshold set by the user.
The bar is not the first or last bar of the session to avoid false signals.
LONG EXIT
An ATR-based trailing stop-loss is set below the entry price and dynamically adjusts upwards as the price moves in favor of the trade.
The position is closed when the trailing stop-loss is hit.
SHORT EXIT
An ATR-based trailing stop-loss is set above the entry price and dynamically adjusts downwards as the price moves in favor of the trade.
The position is closed when the trailing stop-loss is hit.
WHY IT IS UNIQUE
Precision in Identifying Gaps - The strategy focuses on real price gaps rather than minor fluctuations.
Dynamic Risk Management - Uses ATR-based trailing stop-loss to secure profits while allowing the trade to run.
Versatility - Works on stocks, indices, forex, and any market that experiences session-based gaps.
Optimized Entry Conditions - Ensures entries are taken only when the price attempts to fill the gap, reducing false signals.
HOW USERS CAN BENEFIT FROM IT
Enhance Trade Timing - Captures high-probability trade setups based on market inefficiencies caused by gaps.
Minimize Risk - The ATR trailing stop-loss helps protect gains and limit losses.
Works in Different Market Conditions - Whether markets are trending or consolidating, the strategy adapts to potential gap fill opportunities.
Fully Customizable - Users can fine-tune gap percentage, ATR settings, and stop-loss parameters to match their trading style.
Advanced Session Profile Predictor with SR Boxes & ORAdvanced Session Profile Predictor with Momentum Arrows
Designed for intraday traders, this indicator analyzes price action across Asia, London, and New York sessions to predict market profiles and highlight key trading opportunities. By combining session-based profiling, Opening Range (OR) visualization, and momentum signals from Traders Dynamic Index (TDI), it offers a unique tool for anticipating trends, reversals, and breakouts. Ideal for forex, indices, and crypto on 15M–1H charts.
What Makes This Indicator Unique?
Unlike typical session indicators that only mark time zones or standard TDI scripts that focus on momentum, this tool:
Predicts market profiles (e.g., "Trend Continuation," "NY Manipulation") by analyzing session ranges and directional moves, offering actionable insights into how sessions interact.
Visualizes Opening Range (OR) boxes for the first 15 minutes of each session, helping traders spot early breakout levels.
Integrates TDI with momentum to generate precise bullish/bearish arrows, filtered by session context for improved reliability.
Simplifies decision-making with dynamic profile labels showing real-time long/short conditions based on price levels.
How Does It Work?
Session Tracking:
Asia (00:00–08:00 UTC, yellow), London (08:00–16:00 UTC, red), and New York (13:00–21:00 UTC, blue) sessions are highlighted with background colors and high/low lines (crosses).
OR boxes (first 15 minutes) are drawn for each session: yellow for Asia, red for London, blue for NY.
Profile Prediction:
Compares Asia and London session ranges and directions (e.g., trending if range > 1.5x 5-period SMA).
Examples:
Trend Continuation: Asia and London trend in the same direction—long above Asia high (uptrend) or short below Asia low (downtrend).
NY Manipulation: Asia trends, London consolidates—watch for NY breakouts at London high/low.
Displays the predicted profile and entry conditions in labels (e.g., "IF price hits 1.2000 LONG").
Momentum Arrows:
Uses TDI (RSI period 21, bands 34, fast MA 2) and 12-period momentum.
Green up arrow: Fast MA > upper band (>68) and momentum rising (bullish).
Red down arrow: Fast MA < lower band (<32) and momentum falling (bearish).
Support/Resistance (SR):
Plots dynamic SR boxes based on pivot highs/lows, filtered by volume (inspired by ChartPrime’s methodology, credited below).
How to Use It
Setup: Apply to a 15M–1H chart. Adjust time zone (default: UTC) and session times if needed. Customize TDI/momentum settings for sensitivity.
Trading:
Check the top-right labels for the current profile and entry conditions (e.g., "IF price hits LONG/SHORT").
Confirm entries with green up arrows (bullish) or red down arrows (bearish).
Use OR boxes and session high/low lines to identify breakout or reversal levels.
Example: In "NY Manipulation," wait for price to hit London high (long) or low (short) during NY session, confirmed by an arrow.
Best Markets: Forex (EUR/USD), indices (SPX500), crypto (BTC/USD) with sufficient intraday volatility.
Underlying Concepts
Session Profiling: Detects trends (range > SMA * threshold) and manipulation (e.g., London breaking Asia’s high/low) to predict NY behavior.
OR Boxes: Marks the first 15 minutes’ high/low as a breakout zone (time-based, 900,000 ms).
TDI + Momentum: Combines RSI-based bands with price change (close – close ) for momentum signals.
SR Boxes: Identifies pivots over a lookback period (default 20), scaled by ATR and filtered by volume thresholds.
Credits
The SR box logic is inspired by ChartPrime’s volume-filtered support/resistance methodology, adapted with custom breakout/hold detection. Original authors are credited for their foundational work.
Chart Setup
Displays session backgrounds, OR boxes, high/low lines, TDI arrows, and profile labels. Keep other indicators off for clarity.
BBVOL SwiftEdgeBBVOL SwiftEdge – Precision Scalping with Volume and Trend Filtering
Optimized for scalping and short-term trading on fast-moving markets (e.g., 1-minute charts), BBVOL SwiftEdge combines Bollinger Bands, Heikin Ashi smoothing, volume momentum, and EMA trend alignment to deliver actionable buy/sell signals with visual trend cues. Ideal for forex, crypto, and stocks.
What Makes BBVOL SwiftEdge Unique?
Unlike traditional Bollinger Bands scripts that focus solely on price volatility, BBVOL SwiftEdge enhances signal precision by:
Using Heikin Ashi to filter out noise and confirm trend direction, reducing false signals in choppy markets.
Incorporating volume analysis to ensure signals align with significant buying or selling pressure (customizable thresholds).
Adding an EMA overlay to keep trades in sync with the short-term trend.
Coloring candlesticks (green for bullish, red for bearish, purple for consolidation) to visually highlight market conditions at a glance.
How Does It Work?
Buy Signal: Triggers when price crosses above the lower Bollinger Band, Heikin Ashi shows bullish momentum (close > open), buy volume exceeds your set threshold (default 30%), and price is above the EMA. A green triangle appears below the candle.
Sell Signal: Triggers when price crosses below the upper Bollinger Band, Heikin Ashi turns bearish (close < open), sell volume exceeds the threshold (default 30%), and price is below the EMA. A red triangle appears above the candle.
Trend Visualization: Candles turn green when price is significantly above the Bollinger Bands’ basis (indicating a bullish trend), red when below (bearish trend), or purple when near the basis (consolidation), based on a customizable threshold (default 10% of BB width).
Risk Management: Each signal calculates a stop-loss (10% beyond the opposite band) and take-profit (opposite band), plotted for reference.
How to Use It
Timeframe: Best on 1-minute to 5-minute charts for scalping; test higher timeframes for swing trading.
Markets: Works well in volatile markets like forex pairs (e.g., EUR/USD), crypto (e.g., BTC/USD), or liquid stocks.
Customization: Adjust Bollinger Bands length (default 10), multiplier (default 1.2), volume thresholds (default 30%), EMA length (default 3), and consolidation threshold (default 0.1%) to match your strategy.
Interpretation: Look for green/red triangles as entry signals, confirmed by candle colors. Purple candles suggest caution—wait for a breakout. Use stop-loss/take-profit levels for trade management.
Underlying Concepts
Bollinger Bands: Measures volatility and identifies overbought/oversold zones.
Heikin Ashi: Smooths price action to emphasize trend direction.
Volume Momentum: Calculates cumulative buy/sell volume percentages to confirm market strength (e.g., buyVolPercent = buyVolume / totalVolume * 100).
EMA: A fast-moving average (default length 3) ensures signals align with the immediate trend.
Chart Setup
The chart displays Bollinger Bands (orange), Heikin Ashi close (green circles), EMA (purple), and volume-scaled lines (lime/red). Signals are marked with triangles, and candle colors reflect trend state. Keep the chart clean by focusing on these outputs for clarity.
MTF Fractals [RunRox]🔽 MTF Fractals is a powerful indicator designed to visualize fractals from multiple timeframes directly on your chart, highlight liquidity sweeps at these fractal levels, and provide several additional features we’ll cover in detail below.
We created this indicator because we couldn’t find a suitable tool that met our specific needs on TradingView. Therefore, we decided to develop a valuable indicator for the entire TradingView community, combining simplicity and versatility.
⁉️ WHAT IS A FRACTALS?
In trading, a fractal is a technical analysis pattern composed of five consecutive candles, typically highlighting local market turning points. Specifically, a fractal high is formed when a candle’s high is higher than the highs of the two candles on either side, whereas a fractal low occurs when a candle’s low is lower than the lows of the two adjacent candles on both sides.
Traders use fractals as reference points for identifying significant support and resistance levels, potential reversal areas, and liquidity zones within price action analysis. Below is a screenshot illustrating clearly formed fractals on the chart.
📙 FRACTAL FORMATION
Here’s how fractals form depending on your chosen setting (3, 5, 7, or 9):
▶️ 3-bar fractal – forms when the central candle is higher (for highs) or lower (for lows) than one candle on each side.
▶️ 5-bar fractal – forms when the central candle is higher or lower than two candles on both sides.
▶️ 7-bar fractal – forms when the central candle is higher or lower compared to the three candles on each side.
▶️ 9-bar fractal – forms similarly but requires four candles on each side, making the fractal significantly more reliable and robust.
A higher number of bars ensures stronger fractal levels, highlighting more significant potential reversal points on the chart.
Now that we’ve covered the theory behind fractal formation, let’s explore the indicator’s functionality in more detail.
Below, I’ll explain each feature clearly and illustrate how you can effectively utilize this indicator in your trading.
🕐 MULTI-TIMEFRAME FRACTALS
We realized that displaying fractals only from the current timeframe isn’t always convenient, so we’ve introduced Multi-Timeframe Fractals into this indicator.
Now you can easily display fractals from higher timeframes directly on your current chart, providing you with broader market context and clearer trading signals.
Fractals from Current Timeframe – Fractals identified directly on the chart’s current timeframe.
Fractals from Higher Timeframes – Fractals sourced from higher timeframes and displayed clearly on your current chart for enhanced market perspective.
📈 FRACTAL LINES
Since fractals represent areas of high liquidity, we’ve added an option to extend fractal levels horizontally as Fractal Lines across your chart.
This feature allows you to clearly visualize critical liquidity areas from higher timeframes, directly on your current timeframe chart, as demonstrated in the screenshot below.
With this approach, you can clearly visualize significant fractal levels from higher timeframes directly on your current chart - for example, projecting fractals from the 1-hour (1H) timeframe onto a 3-minute (3m) chart. ✅ This helps you easily identify critical liquidity areas and potential reversal zones without the need to switch between multiple timeframes.
💰 LIQUDITY SWEEP (LIQUDITY GRAB)
To enhance your trading experience, we’ve introduced a feature that clearly identifies liquidity sweeps of fractal levels.
A Liquidity Sweep occurs when a candle closes beyond a fractal line, leaving a wick that pierces through it, signaling that liquidity has been collected at this level.
Below, you’ll find two examples illustrating this functionality:
▶️ Fractal lines from the current timeframe
▶️ Fractal lines projected from higher timeframes
The first example illustrates liquidity being swept from fractals on the current timeframe .
Here, the candle clearly closes beyond the fractal line, leaving a wick through it. This indicates a liquidity sweep at the fractal level, visually highlighting a potential reversal or continuation opportunity directly on your chart.
In the second example, fractals from the higher timeframe are projected onto your current chart.
When a candle on your current timeframe closes beyond an HTF fractal line - leaving a wick through this level - the indicator highlights it clearly. This signals to traders a potential reversal zone, indicating that liquidity has been swept, and price may reverse or significantly react from this area.
You can also enable the display of additional labels on the chart. These labels clearly mark liquidity sweeps at fractal levels, making it easier to visually identify potential reversal points directly on your chart.
⚙️ SETTINGS
Below are the indicator settings with detailed explanations for each parameter.
🔷 Bars in Fractal – Number of candles to the right and left required to form a fractal.
🔷 Fractal Timeframe – Select the timeframe from which you want to display fractals on the current chart.
🔷 Max Age, bars – Number of bars during which the fractal will remain active.
🔷 Show Fractal Line – Display or hide fractal lines.
🔷 Line Style – Choose the style of the line displayed on the chart.
🔷 Line Width – Thickness of the fractal line.
🔷 High Fractal – Style and color of bearish fractals.
🔷 Low Fractal – Style and color of bullish fractals.
🔷 Fractal Label Size – Select the size of fractal labels.
🔷 Show Sweep Labels – Option to display labels when a liquidity sweep occurs.
🔷 Label Color – Color and transparency of the area marked on the chart during a sweep.
🔷 Shade Sweep Area – Show or hide the sweep area shading.
🔷 Area Color – Color and transparency settings for the sweep area.
🔶 We’d love to hear your feedback and any suggestions for additional features you’d like to see in this indicator. We’ll be happy to consider your ideas and continue improving the indicator!
Pure Price Action StrategyTest Price Action Strategy from Lux Pure Price Action Indicator
How This Strategy Works:
Recognizing Trends & Reversals:
Break of Structure (BOS): A bullish signal indicating a trend continuation.
Market Structure Shift (MSS): A bearish signal indicating a potential reversal.
Analyzing Market Momentum:
It uses recent highs and lows to confirm whether the price is making higher highs (bullish) or lower lows (bearish).
Customizing Visualization Styles:
Buy signals (BUY Signal) are plotted as green upward arrows.
Sell signals (SELL Signal) are plotted as red downward arrows.
Stop-Loss (SL) & Take-Profit (TP): Configurable via percentage input.
Harsha All IndicatorsHarsha All-In-One Indicator – 17 Indicator Signal Table
This All-In-One Indicator combines 17 powerful indicators into a single tabular display, providing clear Buy/Sell/Neutral signals for better decision-making. It is designed for traders who want a quick and efficient way to analyze multiple technical indicators in one place.
📌 Key Features:
✅ 17 Technical Indicators in One Table – Includes Supertrend, MACD, RSI, ADX, Stochastic, VWAP, Bollinger Bands, and more!
✅ Customizable Parameters – Easily adjust settings for each indicator to suit your strategy.
✅ Clear Buy/Sell Signals – The table uses green (Buy), red (Sell), and gray (Neutral) color codes for easy interpretation.
✅ No Chart Clutter – Instead of plotting multiple indicators, all signals are neatly displayed in a table.
✅ Works on All Timeframes – Suitable for scalping, intraday, and swing trading.
🛠️ Included Indicators:
1️⃣ Supertrend – Trend-following indicator for buy/sell signals
2️⃣ ADX (Average Directional Index) – Measures trend strength
3️⃣ HMA (Hull Moving Average) – Smooth moving average crossover signals
4️⃣ MACD (Moving Average Convergence Divergence) – Momentum-based trend analysis
5️⃣ RSI (Relative Strength Index) – Identifies overbought/oversold conditions
6️⃣ Divergence Detector – Highlights trend reversal signals
7️⃣ No Trade Zone (ADX Filter) – Filters weak market conditions
8️⃣ EMA (Exponential Moving Average) – 50-period trend crossover
9️⃣ WMA (Weighted Moving Average) – Smoothed price trend detection
🔟 SMA (Simple Moving Average) – Classic 50-period moving average crossover
1️⃣1️⃣ Bollinger Bands – Identifies volatility breakout opportunities
1️⃣2️⃣ HarPAI – Custom proprietary trend-following indicator
1️⃣3️⃣ VWAP (Volume Weighted Average Price) – Institutional price levels
1️⃣4️⃣ ATR (Average True Range) – Measures volatility levels
1️⃣5️⃣ Stochastic Oscillator – Confirms overbought/oversold conditions
1️⃣6️⃣ HARMACD (Hybrid RSI + MACD) – Combines RSI & Stochastic for refined signals
1️⃣7️⃣ TMMS-MACD (Custom MACD & Stochastic Filter) – Enhances MACD signals for stronger confirmations
🔧 Customizat Harsha All-In-One Indicator – 17 Indicator Signal Table
This All-In-One Indicator combines 17 powerful indicators into a single tabular display, providing clear Buy/Sell/Neutral signals for better decision-making. It is designed for traders who want a quick and efficient way to analyze multiple technical indicators in one place.
📌 Key Features:
✅ 17 Technical Indicators in One Table – Includes Supertrend, MACD, RSI, ADX, Stochastic, VWAP, Bollinger Bands, and more!
✅ Customizable Parameters – Easily adjust settings for each indicator to suit your strategy.
✅ Clear Buy/Sell Signals – The table uses green (Buy), red (Sell), and gray (Neutral) color codes for easy interpretation.
✅ No Chart Clutter – Instead of plotting multiple indicators, all signals are neatly displayed in a table.
✅ Works on All Timeframes – Suitable for scalping, intraday, and swing trading.
🛠️ Included Indicators:
1️⃣ Supertrend – Trend-following indicator for buy/sell signals
2️⃣ ADX (Average Directional Index) – Measures trend strength
3️⃣ HMA (Hull Moving Average) – Smooth moving average crossover signals
4️⃣ MACD (Moving Average Convergence Divergence) – Momentum-based trend analysis
5️⃣ RSI (Relative Strength Index) – Identifies overbought/oversold conditions
6️⃣ Divergence Detector – Highlights trend reversal signals
7️⃣ No Trade Zone (ADX Filter) – Filters weak market conditions
8️⃣ EMA (Exponential Moving Average) – 50-period trend crossover
9️⃣ WMA (Weighted Moving Average) – Smoothed price trend detection
🔟 SMA (Simple Moving Average) – Classic 50-period moving average crossover
1️⃣1️⃣ Bollinger Bands – Identifies volatility breakout opportunities
1️⃣2️⃣ HarPAI – Custom proprietary trend-following indicator
1️⃣3️⃣ VWAP (Volume Weighted Average Price) – Institutional price levels
1️⃣4️⃣ ATR (Average True Range) – Measures volatility levels
1️⃣5️⃣ Stochastic Oscillator – Confirms overbought/oversold conditions
1️⃣6️⃣ HARMACD (Hybrid RSI + MACD) – Combines RSI & Stochastic for refined signals
1️⃣7️⃣ TMMS-MACD (Custom MACD & Stochastic Filter) – Enhances MACD signals for stronger confirmations
🔧 Customization & Settings:
Each indicator comes with adjustable settings, allowing traders to fine-tune their strategy based on market conditions. Users can modify:
✅ MACD Lengths & Signal Smoothing
✅ RSI Overbought/Oversold Levels
✅ Supertrend Multiplier & ATR Period
✅ Moving Average Periods
✅ Bollinger Bands Standard Deviations
✅ ADX Sensitivity
... and more!
📈 How to Use:
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Customize the settings in the input panel as per your strategy.
3️⃣ Refer to the table for real-time Buy (🟢), Sell (🔴), or Neutral (⚫) signals.
4️⃣ Use this tool for trend confirmation, entry/exit signals, and market condition analysis.
📢 Disclaimer:
This indicator is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always backtest and use proper risk management.
🚀 Optimize your trades with the power of 17 indicators in one table! 🚀ion & Settings:
Each indicator comes with adjustable settings, allowing traders to fine-tune their strategy based on market conditions. Users can modify:
✅ MACD Lengths & Signal Smoothing
✅ RSI Overbought/Oversold Levels
✅ Supertrend Multiplier & ATR Period
✅ Moving Average Periods
✅ Bollinger Bands Standard Deviations
✅ ADX Sensitivity
... and more!
📈 How to Use:
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Customize the settings in the input panel as per your strategy.
3️⃣ Refer to the table for real-time Buy (🟢), Sell (🔴), or Neutral (⚫) signals.
4️⃣ Use this tool for trend confirmation, entry/exit signals, and market condition analysis.
📢 Disclaimer:
This indicator is for educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always backtest and use proper risk management.
🚀 Optimize your trades with the power of 17 indicators in one table! 🚀
B4100 - NW Trend Ribbon StrategyB4100 - NW Trend Ribbon Strategy: Adaptive Trend Following with Kernel Smoothing
This strategy is a sophisticated trend-following system designed to identify and capitalize on sustained market trends. It combines a ribbon of custom-built moving averages with multiple layers of filtering and confirmation to generate high-probability entry and exit signals. It's highly customizable, allowing you to fine-tune its sensitivity and responsiveness to adapt to various market conditions and timeframes.
What the Strategy Does:
The NW Trend Ribbon Strategy aims to:
Identify the prevailing trend: It uses a ribbon of five moving averages (MAs), each with configurable length and smoothing type, to visually represent and quantify the current market trend.
Filter out noise and false signals: It employs several filters, including an RSI filter, a trend strength filter (based on the RSI of a selected MA), and a trend confirmation period, to reduce the likelihood of entering trades based on short-term fluctuations.
Generate precise entry signals: Entry signals are triggered only when a specified number of MA crossovers occur, the RSI filter (optional) is satisfied, the trend strength filter (optional) is met, and the trend conditions have persisted for a user-defined confirmation period.
Manage risk and protect profits: The strategy includes multiple exit options:
Percentage Trailing Stop: A classic trailing stop that activates at a specified percentage profit and trails the price by a defined offset.
ATR Trailing Stop: A volatility-based trailing stop that uses the Average True Range (ATR) to dynamically adjust the stop level.
ATR Take Profit: A volatility-based take profit that uses the ATR to set a profit target.
Hard Stop Loss: A fixed stop loss, either percentage-based or ATR-based, for maximum risk control.
Control Trade Direction : Allow the user to decide whether they want to enter Long trades, short trades, or both.
How It Works:
The strategy's core logic revolves around these key components:
Kernel-Smoothed Moving Averages: Instead of standard moving averages (SMA, EMA, etc.), this strategy uses *kernel smoothing*. This allows for more flexible and adaptive smoothing than traditional MAs. You can choose from three kernel types:
Beta Kernel: This is the most versatile option. It allows you to control *positive* and *negative* lag independently using the `alpha` and `beta` parameters. This means you can make the MA react slower to price increases and faster to price decreases (or vice versa), which can be particularly useful in trending markets.
Gaussian Kernel: A classic smoothing kernel that creates a bell-shaped weighting. The `bandwidth` parameter controls the width of the bell curve; a smaller bandwidth makes the MA more responsive.
Epanechnikov Kernel: Similar to the Gaussian kernel, but with a slightly different shape. It also uses a `bandwidth` parameter.
MA Ribbon: The five MAs form a "ribbon" on the chart. The alignment and relative positions of the MAs provide a visual indication of trend strength and direction.
Crossover Detection: The strategy monitors the crossovers between consecutive MAs in the ribbon. You can specify how many crossovers are required to generate a potential signal.
RSI Filter (Optional): This filter helps avoid entries during overextended market conditions. For long entries, the RSI must be below the oversold level; for short entries, it must be above the overbought level.
Trend Strength Filter (Optional): This unique filter uses the RSI of one of the moving averages (you choose which one) to measure the *strength* of the trend. This helps to ensure that you're entering trades in the direction of a strong, established trend.
Trend Confirmation: To further reduce false signals, the strategy requires that the entry conditions (MA crossovers, RSI, and trend strength) be met for a specified number of consecutive bars before a trade is actually triggered.
Exit Logic: The strategy prioritizes exits in the following order: Hard Stop Loss, Trailing Stop (Percentage or ATR-based), and Take Profit (ATR-based). This ensures that losses are minimized and profits are protected.
What Makes It Unique:
This strategy stands out from other indicators and strategies due to several key features:
Highly Customizable Kernel Smoothing: The use of kernel smoothing, especially the Beta kernel, provides a level of control over MA responsiveness that is not available with standard MAs. This allows for a much more adaptive and nuanced approach to trend following.
Combined Trend Strength and Confirmation: The combination of the trend strength filter (using the RSI of an MA) and the trend confirmation period provides a robust filtering mechanism that goes beyond simple MA crossovers or RSI readings. This helps to filter out weak trends and whipsaws.
Multiple, Prioritized Exit Options: The strategy's exit logic is sophisticated, offering a combination of fixed and dynamic stops and take profit levels. The prioritization ensures that the most conservative exit (hard stop) is triggered first, followed by the trailing stops, and finally the take profit.
Comprehensive Input Grouping: All inputs have been sorted into groups that control certain aspects of the strategy. This allows users to easily and quickly locate and adjust inputs as they see fit.
Trade Direction Control : Unlike many strategies, this one lets you independently enable or disable long and short trades.
All-in-one trend system: This indicator combines multiple aspects needed for trading: entry signals, stop loss calculations, take profit calculations.
In summary, the NW Trend Ribbon Strategy is a powerful and flexible trend-following system that combines the visual clarity of a moving average ribbon with the advanced filtering and risk management capabilities of kernel smoothing, RSI, trend strength, and multiple exit options. It's designed for traders who want a customizable and robust tool for identifying and trading sustained market trends.
TestMA-STATEOverview:
This Pine Script (version 6) is designed to generate trading events based on moving average (MA) behavior and dynamically calculated percentiles. It leverages a custom state machine library (version 7) from decrypt_capital to track and manage state transitions related to MA conditions, and it triggers alerts (and optionally, chart labels) when specific state transitions occur.
Key Components:
License & Metadata:
The script is distributed under the Mozilla Public License 2.0.
It carries copyright by decrypt_capital.
The title ("TestMA-STATE") and short title ("MA-STATE") are defined, and the script runs on an overlay with extended backtracking and drawing limits.
State Machine Integration:
The script imports the lib_statemachine_modified library (version 7) using the alias modSM.
A persistent state machine instance (MovingAverageDirection_SM) is created to manage various MA-related states.
Several state constants are defined to represent different market conditions, such as:
MA_SHORT_ABOVE_OVERBOUGHT: When the short MA low is above the overbought threshold.
MA_SHORT_CROSSUNDER_MID & MA_SHORT_CROSSUNDER_BIG: Conditions for bearish crossunders.
MA_SHORT_BELOW_OVERSOLD: When the short MA high is below the oversold threshold.
MA_SHORT_CROSSOVER_MID & MA_SHORT_CROSSOVER_BIG: Conditions for bullish crossovers.
Inputs & MA Calculation:
Users can choose the type of moving average (EMA, SMA, WMA, VWMA) and adjust lengths for short, mid, and big MAs.
Additional inputs include lookback length for percentile calculations and percentile thresholds for determining overbought and oversold boundaries.
The script computes:
Short MA Low and High: Based on the low and high series.
Mid MA and Big MA: Based on the average price (ohlc4).
Dynamic Percentile Boundaries:
Two functions (f_getPercentile() and f_getPercentileArr()) calculate dynamic percentile values from the MA data.
These functions determine the oversold and overbought boundaries used in the state transition conditions.
Timestamp & Alert Header Formatting:
A helper function (f_formatTimestamp()) formats timestamps into a human-readable form (e.g., "Tue 12 Mar 16:30").
This formatted time, along with ticker information and other details, is used to build an alert header.
State Transitions & Alerts:
The script calls the state machine’s step() method multiple times with conditions based on the relationship between MA values and the percentile boundaries.
For example:
A bullish condition is triggered when the short MA low moves above the overbought threshold.
A bearish condition is triggered when the short MA high falls below the oversold boundary.
Transitions are further refined by checking if the MA is rising or falling.
When specific state transitions occur (e.g., MA_SHORT_CROSSOVER_MID after MA_SHORT_BELOW_OVERSOLD), the script:
Checks that the transition is recent (using the barsSinceState() method).
Optionally creates a label on the chart.
Triggers an alert with a descriptive message.
Chart Plotting:
The script plots the calculated moving averages (short, mid, and optionally big) on the chart.
It also plots the dynamic percentile boundaries for visual reference.
Purpose & Usage:
Trading Signal Generation:
The primary goal is to monitor key MA conditions and trigger alerts when significant crossovers or crossunders occur. These events—such as bullish crossovers when the market recovers from oversold conditions or bearish crossunders when the market retracts from overbought conditions—can be used as trading signals.
Visualization:
Users have options to display the various moving averages and percentile boundaries directly on the chart, as well as optional labels that mark when an alert is generated.
Alerting:
When specific state transitions are detected, the script constructs and sends an alert message with a timestamp, ticker, and descriptive text, aiding traders in making timely decisions.
2-Minute Trend and Power Scanner# 2-Minute Trend and Power Scanner: Functionality and Entry Signals
i.postimg.cc
The TradingView script "2-Minute Trend and Power Scanner" is based on the concept of PowerBar signals on 2-minute charts with 20 and 200 period SMAs, as explained in the video on Youtube ("How To Master the 2-min Chart" from
Oliver Velez Trading).
Here is a detailed description of how it works:
## Basics of the Script
The script uses two essential moving averages:
- 20-period simple moving average (SMA)
- 200-period simple moving average (SMA)
These two SMAs form the basis for trend identification, exactly as described in the video. The 20 SMA is considered the "child," while the 200 SMA functions as the "parent."
## Market Phase Detection
The script identifies three essential market phases:
- **Narrow**: When the distance between the 20 and 200 SMA is small
- **Trending**: When the 20 SMA separates from the 200 SMA and forms a trend
- **Wide**: When the distance between the two SMAs is particularly large
This phase detection corresponds exactly to the concept of three states (flat/narrow, trending, and wide) described in the video.
## PowerBar Definition
A key element for signals are "PowerBars":
- **Bullish PowerBar**: A green candle bar with above-average size (factor definable via powerFactor) that forms near the 20 SMA
- **Bearish PowerBar**: A red candle bar with above-average size that forms near the 20 SMA
The proximity to the 20 SMA is defined by the parameter "nearPerc," which sets the maximum percentage distance.
## Trend Determination
The trend is defined as follows:
- **Bull Trend**: When price > SMA20 > SMA200, and both SMAs have the correct angle which you can set in the input field
- **Bear Trend**: When price SMA20 > SMA200)
- The 20 SMA has the right angle (default: 45-90 degrees)
- The 200 SMA has the right angle (default: 2-90 degrees)
- A bullish PowerBar occurs near the 20 SMA
**Short Signal (Sell signal)**:
- A bear trend exists (price < SMA20 < SMA200), and both SMAs have the correct angle which you can set in the input field
- The 20 SMA has the right angle (default: -90 to -45 degrees)
- The 200 SMA has the right angle (default: -90 to -2 degrees)
- A bearish PowerBar occurs near the 20 SMA
## Trade Management
After a signal:
- Stop-Loss is automatically set based on a percentage
- Take-Profit is also set as a percentage
- Trades are automatically closed before US market close (15:55-16:00 ET)
## Visual Representation
The script offers extensive visual elements:
- Arrow symbols for long and short signals
- Color-coded marking of market phases in the background
- Display of stop-loss and take-profit levels
- Statistics tables for trading results
- Overview of the last 10 trades
## Conceptual Alignment with the Video
The implementation in the script exactly matches the concept presented in the video:
- Using the 2-minute chart as the ideal timeframe for trading experience
- Focus on the "Pictures of Power" when the 20 SMA begins to separate from the 200 SMA
- Buying strength bars (PowerBars) near the 20 SMA
- Trading in alignment with institutional money flow
The script automates the manual process described in the video through precise parameters and mathematical calculations for angles, proximity to SMA, and candle body size.
THE Bucknut test PARI (SPY)📌 THE Bucknut Test PARI – Market Momentum & Volatility Gauge
🔹 Description
THE Bucknut Test PARI Indicator is a momentum and volatility-based market gauge designed to provide clear, actionable insights on price movement. This indicator calculates a Price Action Relative Index (PARI) score to help traders evaluate risk and potential market reversals.
It utilizes exponential moving average (EMA)-based momentum, standard deviation volatility, and SPY correlation to generate a PARI score between 1-100. The score is then categorized into risk zones, helping traders identify when conditions are favorable for entries or caution is needed.
Ideal for intraday traders, options traders (including SPX 0DTE), and swing traders looking to gauge volatility-driven market shifts.
🔥 Features & Functionality
✅ Momentum Calculation via EMA Filtering – Ensures smooth, responsive signals.
✅ Volatility-Based Adjustments – Uses standard deviation-based volatility scaling.
✅ SPY Correlation Filtering – Helps align momentum signals with market sentiment.
✅ User-Defined Timeframe Settings – Adjusts dynamically based on selected time intervals.
✅ Customizable Risk Thresholds – Allows traders to define high-risk, neutral, and low-risk zones.
✅ Non-Repainting Algorithm – Ensures reliable, static signals without revision.
⚙️ Settings & Adjustments
Setting Default Value Description
Time Frame Mode "5m-15m" Choose between 1m-3m, 5m-15m, or 1H-Daily. Affects smoothing values.
Scaling Factor 10 Adjusts PARI score sensitivity. Higher values amplify movement.
Background Color Black Custom background for the indicator panel.
Background Transparency 85 Controls indicator panel opacity (0 = solid, 100 = invisible).
High-Risk Threshold 80 Above this level, market is in overbought/high-risk conditions.
Low-Risk Threshold 20 Below this level, market is oversold/low-risk for potential reversals.
Neutral Level 50 Middle ground where price action is balanced.
📈 How to Use THE Bucknut Test PARI
🔴 Above 80 (High-Risk Zone)
Market may be overheated, strong momentum may fade or reverse soon.
Caution with calls; potential put opportunities.
🟢 Below 20 (Low-Risk Zone)
Market is oversold, potential reversal or bounce incoming.
Consider long entries or avoiding shorts.
⚪ Between 20-80 (Neutral Zone)
Market is in equilibrium; follow primary trend direction.
No extreme risk, trend-following strategies preferred.
🔍 Example Use Cases
✔ Intraday Traders → Gauge market strength on short-term charts (1m-15m).
✔ SPX 0DTE Options Traders → Time high-confidence call/put setups.
✔ Swing Traders → Identify periods of excessive momentum or exhaustion.
ZigZag++ZigZag NY Session: Precisión y Personalización para tu Análisis Técnico 📈✨
🚀 ZigZag NY Session es una versión mejorada del clásico indicador ZigZag, diseñada para traders que buscan una visión más clara y estructurada de los cambios de tendencia.
🔹 Características destacadas:
✅ Configuración avanzada de profundidad, desviación y retroceso.
✅ Dibujo dinámico de líneas ZigZag con etiquetas personalizadas para identificar máximos y mínimos.
✅ Sesiones de mercado personalizables: Define la hora y los minutos exactos de tu sesión de análisis.
✅ Sombra de sesión configurable para destacar períodos clave en el gráfico.
✅ Colores y transparencias ajustables para una mejor visualización.
✅ Alertas automáticas para cambios de dirección y nuevos puntos clave (HH, LL, LH, HL).
🔥 Ideal para traders de todos los niveles que buscan mejorar su precisión en la identificación de tendencias y estructuras del mercado.
📌 Añádelo a tu gráfico y optimiza tu estrategia ahora mismo! 💡🚀
Si quieres que agregue algo más, dime y lo ajustamos. ¡Éxito con tu publicación! 🎯💪
MACD Sniper [trade_lexx]📈 MACD Sniper — Improve your trading strategy with accurate signals!
Introducing the MACD Sniper , an advanced trading indicator designed for a comprehensive analysis of market conditions. This indicator combines MACD (Moving Average Convergence Divergence) with various types of moving averages (SMA, EMA, WMA, VWMA, KAMA, HMA, ZLEMA, TEMA, ALMA, DEMA), providing traders with a powerful tool for generating buy and sell signals. It is ideal for traders who need an advantage in detecting changes in trends and market conditions.
🔍 How the signals work
1. Histogram signals:
— A buy signal is generated when the MACD histogram is below zero and begins to grow after the minimum number of falling histogram columns, which are indicated in the indicator menu. This indicates that selling pressure has decreased, the market is oversold and ready for a rebound. The signals are displayed as green triangles labeled "H" under the histogram graph. On the main chart, buy signals are displayed as green triangles labeled "Buy" under candlesticks.
— A sell signal is generated when the MACD histogram is above zero and begins to fall after the minimum number of growing histogram columns, which are indicated in the indicator menu. This indicates that the buying pressure has decreased, the market is overbought and ready for correction. The signals are displayed as red triangles labeled "H" above the histogram graph. On the main chart, the sell signals are displayed as red triangles with the word "Sell" above the candlesticks.
2. Moving Average Crossing Signals (MA):
— A buy signal is generated when the Fast Moving Average (MACD) crosses the Slow Moving Average (Signal Line) from bottom to top. This indicates a possible upward reversal of the market. The signals are displayed as green triangles labeled "MA" under the MACD chart. On the main chart, buy signals are displayed as green triangles labeled "Buy" under candlesticks.
— A sell signal is generated when the Fast Moving Average (MACD) crosses the slow Moving Average (Signal Line) from top to bottom. This indicates a possible downward reversal of the market. The signals are displayed as red triangles labeled "MA" above the MACD chart. On the main chart, the sell signals are displayed as red triangles with the word "Sell" above the candlesticks.
🔧 Signal filtering
— Minimum number of bars between signals
This filter allows the user to set the minimum number of bars that must pass between the generation of two consecutive signals. This helps to avoid frequent false alarms and improves the quality of the generated signals. Setting this parameter allows you to filter out the noise in the market and make the signals more reliable. For example, if the value is set to 5, then a new signal will be generated only after 5 bars have passed since the previous signal.
— "Wait for the opposite signal" mode
In this mode, Buy and Sell signals are generated only after receiving the opposite signal. This means that a buy signal will be generated only after the previous sell signal, and vice versa. This approach adds an additional level of filtering and helps to avoid false positives. This is especially useful in conditions of high market volatility, when false signals often occur.
— RSI filter
The Relative Strength Index (RSI) is used for additional filtering of buy and sell signals. The RSI helps determine whether a market is overbought or oversold. The user can set overbought and oversold levels, and signals will be generated only when the RSI is in the specified ranges. For example, a buy signal will be generated only if the RSI is in the range between 10 and 30 (oversold), and a sell signal if the RSI is in the range between 70 and 90 (overbought). This helps to avoid false signals in extreme market conditions.
🔌 Connector Histogram, MA, Combined 🔌
These parameters allow you to connect the indicator to trading strategies and test the signals throughout the trading history. This makes the indicator an even more powerful tool for traders who want to test the effectiveness of their strategies on historical data.
Connector Histogram provides the ability to connect signals based on the MACD histogram to trading strategies.
Connector MA allows you to connect signals based on the intersection of moving averages (MA) of the MACD, which can also be used for automatic trading or strategy testing.
The combined connector combines signals based on both a histogram and the intersection of moving averages, making the analysis more comprehensive and reliable, which is especially useful for traders seeking to improve the quality of their trading decisions.
🔔 Alerts
The indicator provides the ability to set up notifications for buy and sell signals, which allows traders to keep abreast of important market events without having to constantly monitor the chart. Users can set up notifications that will alert them when buy or sell signals appear, helping them respond to market changes in a timely manner and make informed decisions. These notifications can be configured for various types of signals, such as signals based on the MACD histogram, moving average crossings, or all at once, which makes the indicator a more convenient and functional tool for active traders.
🎨 Customizable Appearance
Customize the appearance of the MACD Sniper according to your preferences to make the analysis more convenient and visually pleasing. In the indicator settings section, you can change the colors of the buy and sell signals so that they stand out on the chart and are easily visible. For example, buy signals can be green, and sell signals can be red. These settings allow traders to adapt the indicator to their individual needs, making it more flexible and user-friendly.
🔧 How it works
The MACD Sniper indicator starts by calculating the MACD values and moving averages for a specific period in order to assess market conditions. For this, fast and slow moving averages are used, as well as a signal line, which are calculated based on the set parameters. The indicator then analyzes the MACD histogram to determine whether the difference between the fast and slow moving averages is rising or falling. Based on this analysis, buy and sell signals are generated. Additionally, the indicator uses the RSI filter to filter out false signals in overbought or oversold market conditions. The user can set the minimum number of bars between the signals and the "Wait for the opposite signal" mode for additional filtering. The indicator dynamically adjusts to changes in the market, providing relevant signals in real time.
📚 Quick guide to using the MACD Sniper
— Add the indicator to your favorites by clicking on the rocket icon. Adjust the parameters such as the length of periods for fast and slow moving averages, the type of moving average (SMA, EMA, WMA, VWMA, KAMA, HMA, ZLEMA, TEMA, ALMA, DEMA) and the length of the signal line, according to your trading style, or leave all settings as default.
— Adjust the signal filters to improve their quality and avoid false alarms
— Turn on notifications so that you don't miss important trading opportunities and don't constantly sit at the chart. This will allow you to keep abreast of all key market events and respond to them in a timely manner, without being distracted from other business.
— Use signals, they will help you determine the optimal entry and exit points of positions.
— Use the Connector for deeper analysis and verification of the effectiveness of signals, connect them to your trading strategies. This will allow you to test signals throughout your trading history and evaluate their accuracy based on historical data.
— Include the indicator in your trading strategy and run testing to see how buy and sell signals have worked in the past.
— Analyze the test results to determine how reliable the signals are and how they can improve your trading strategy. This will help you make more informed decisions and increase your trading efficiency.