Hammer + EMA Strategy with Tick-based SL/TPWhat This Script Does:
Detects Hammer (bullish reversal) and Inverted Hammer (bearish reversal) patterns
Requires a simple trend context (using 2 bars back)
Confirms price position relative to EMA 50
Applies tick-based SL and TP
Plots buy/sell signals on chart with emoji labels
指標和策略
Algo Structure [ValiantTrader_]Explanation of the "Algo Structure" Trading Indicator
This Pine Script indicator, created by ValiantTrader_, is a multi-timeframe swing analysis tool that helps traders identify key price levels and market structure across different timeframes. Here's how it works and how traders can use it:
Core Components
1. Multi-Timeframe Swing Analysis
The indicator tracks swing highs and lows across:
The current chart timeframe
A higher timeframe (weekly by default)
An even higher timeframe (monthly by default)
2. Swing Detection Logic
Current timeframe swings: Identified when price makes a 3-bar high/low pattern
Higher timeframe swings: Uses the highest high/lowest low of the last 3 bars on those timeframes
3. Visual Elements
Horizontal lines marking swing points
Labels showing the timeframe and percentage distance from current price
An information table summarizing key levels
How Traders Use This Indicator
1. Identifying Key Levels
The indicator draws recent swing highs (red) and swing lows (green)
These levels act as potential support/resistance areas
Traders watch for price reactions at these levels
2. Multi-Timeframe Analysis
By seeing swings from higher timeframes (weekly, monthly), traders can:
Identify more significant support/resistance zones
Understand the broader market context
Spot confluence areas where multiple timeframes align
3. Measuring Price Distance
The percentage display shows how far current price is from each swing level
Helps assess potential reward/risk at current levels
Shows volatility between swings (wider % = more volatile moves)
4. Table Summary
The info table provides a quick reference for:
Exact price levels of swings
Percentage ranges between highs and lows
Comparison across timeframes
5. Trading Applications
Breakout trading: When price moves beyond a swing high/low
Mean reversion: Trading bounces between swing levels
Trend confirmation: Higher highs/lows in multiple timeframes confirm trends
Support/resistance trading: Entering trades at swing levels with other confirmation
Customization Options
Traders can adjust:
The higher timeframes analyzed
Whether to show the timeframe labels
Whether to display swing levels
Whether to show the info table
The indicator also includes price alerts for new swing highs/lows on the current timeframe, allowing traders to get notifications when market structure changes.
This tool is particularly valuable for traders who incorporate multi-timeframe analysis into their strategy, helping them visualize important price levels across different time perspectives
Moving Average Deviation Rate with MA TypeJapanese below / 日本語説明は下記
This indicator displays moving average deviation rate with the ability to select moving average type with signals and alerts.
Price and moving average have the characteristics that when the price moves away from the moving average, it moves back to the moving average.
Example:
In the chart below, when the deviation rate increases to 2%(green circle), price momentum gradually decreases and it moves back to the moving average.
Taking advantage of this characteristic, traders can make decisions to take profit and/or take contrarian trades.
Signals can be displayed either on main chart or sub chart when the deviation rate crosses over/under upper/lower band.
Alert can be set with the same condition as the signals.
----------------------
移動平均線乖離率を表示することのできるインジケーターです。
移動平均線タイプを選択できる他、乖離率とアッパーバンド/ロワーバンドとのクロスでシグナルを表示することができます。
価格と移動平均線には、価格が移動平均線から乖離すると、再び移動平均線まで戻ってくるという特徴があります。
この特徴を利用することで、トレーダーは利益確定のタイミングや逆張りでポジションを取るタイミングを図ることができます。
例
以下のチャートでは乖離率が2%付近(黄緑の丸)まで上昇すると、価格の上昇の勢いが衰えて再び移動平均線まで戻っていることが確認できます。
乖離率とアッパーバンド/ロワーバンドがクロスした時に、メインチャートまたはサブチャートのいずれかにシグナルを表示することが可能です。
また、同じ条件でアラートを設定することもできます。
Strong/Weak Candle FinderStrong/Weak Candle Finder (SWCF)
Overview:
The Strong/Weak Candle Finder (SWCF) is a versatile TradingView indicator designed to help traders identify statistically significant candles based on their size relative to recent historical price action. By analyzing a lookback period, the indicator dynamically calculates a threshold to classify candles as either "strong" (larger than the threshold) or "weak" (smaller than the threshold), providing visual cues directly on your chart.
This tool can be invaluable for traders looking to:
Spot potential momentum breakouts or high volatility (Strong Candles).
Identify periods of consolidation or low volatility (Weak Candles).
Gauge shifts in market sentiment based on candle body or range dynamics.
How It Works:
Candle Size Calculation: You choose how candle size is measured from four methods:
High - Low: The full range of the candle.
High - Close: The distance from the high to the close.
Open - Close: The size of the candle body.
Low - Open: The distance from the low to the open.
Historical Analysis: The indicator looks back over a user-defined LookBack Period to collect candle sizes.
Grouping & Precision: To smooth the distribution, candle sizes are grouped based on the Group Precision Size. This parameter divides the observed range of candle sizes into a set number of "bins," and individual candle sizes are rounded to the nearest representative value of these bins.
Percentile Threshold: A dynamic Outlier Pip Value is calculated based on the Outlier Percentile you set.
If Display Mode is "Strong Candles," this threshold represents the Nth percentile of the largest candle sizes (e.g., the 80th percentile if Outlier Percentile is 20%). Candles larger than this are marked as "Strong."
If Display Mode is "Weak Candles," this threshold represents the Nth percentile of the smallest candle sizes (e.g., the 20th percentile). Candles smaller than this are marked as "Weak."
Visual Markers: When a current candle meets the criteria (strong or weak based on your display mode), a configurable shape is plotted above (for strong) or below (for weak) the candle.
Resampling: The historical distribution and outlier threshold are recalculated every Resample Period (number of bars) to adapt to changing market conditions.
Key Features:
Dynamic Thresholds: Adapts to market volatility instead of using fixed pip values.
Customizable Candle Definition: Choose from four methods to define what "candle size" means to your strategy.
Flexible Display Modes: Focus on either identifying exceptionally strong candles or unusually weak ones.
Adjustable Sensitivity: Fine-tune the rarity of signals with Outlier Percentile and Group Precision Size.
Visual Chart Markers: Clear, customizable shapes (arrow, circle, etc.) for easy identification.
Periodic Recalculation: Ensures the indicator remains relevant as market dynamics evolve.
Parameters:
Display Mode:
Strong Candles: Highlights candles larger than the upper percentile threshold.
Weak Candles: Highlights candles smaller than the lower percentile threshold.
Resample Period (Candles): How often (in bars) to recalculate the historical distribution and outlier threshold.
LookBack Period (Candles): The number of past candles to analyze for the historical distribution. (Note: Plots will only begin after this many bars have loaded on the chart).
Group Precision Size: Number of groups to divide the candle size range into for rounding historical sizes. Higher values mean finer precision (less rounding).
Outlier Percentile (%): The percentile used to define the threshold for strong/weak candles.
Candle Size Method: (High-Low, High-Close, Open-Close, Low-Open).
Visuals:
Strong Shape: Choose the icon style for strong candles.
Weak Shape: Choose the icon style for weak candles.
Shape Size: Adjust the size of the plotted icons.
How to Use:
Strong Candles:
May indicate increased momentum, potential breakout confirmations, or high conviction moves.
Consider using in trending markets or as a filter for entry signals.
Weak Candles:
May signal market indecision, low volatility, consolidation phases, or potential exhaustion of a prior move.
Can be useful for identifying range-bound conditions or periods to be cautious.
Experimentation: Adjust the LookBack Period, Outlier Percentile, and Group Precision Size to match your trading style and the characteristics of the asset you are trading. What constitutes "strong" or "weak" can vary significantly.
Confirmation Tool: Use in conjunction with other indicators (e.g., moving averages, RSI, volume) for more robust trading decisions.
Important Notes:
The indicator requires sufficient historical data (LookBack Period) to initialize. You may not see plots on the chart immediately if there aren't enough bars loaded.
Like all indicators, the SWCF is not a standalone trading system and should not be used as the sole basis for financial decisions.
Past performance is not indicative of future results. Always use appropriate risk management.
We hope you find the Strong/Weak Candle Finder a valuable addition to your trading toolkit!
Enhanced TEMA with Decimal PeriodsImagine you have a special type of moving average line called a TEMA (Triple
Moving Average). A TEMA is designed to be even quicker to react to price changes than a regular EMA (Exponential Moving Average), helping traders spot trends faster.
What this script does:
Super-Precise TEMA Length:
Normally, when you set the "length" or "period" for a moving average, you use whole numbers (like 10 days, 20 days).
This script lets you be more precise and use decimal numbers for the TEMA's length (like 26.0 days, or even 26.7 days). This allows for very fine-tuning.
How it gets the "Decimal" EMA part (if you choose to use it):
If you want a TEMA with a length of, say, 26.7:
The script first needs to calculate EMAs with a length of 26.7.
To do this, it cleverly calculates two regular EMAs: one with a length of 26 and another with a length of 27 (the whole numbers just below and above 26.7).
Then, it blends these two EMAs. Since 26.7 is closer to 27, it takes more from the "27-period EMA" and a bit less from the "26-period EMA." This mix gives you an EMA that acts like it has a 26.7 period.
Building the TEMA:
A TEMA isn't just one EMA. It's made by taking an EMA of an EMA, and then an EMA of that. It's like smoothing the line multiple times, but in a special mathematical way to make it faster.
So, this script:
-Calculates the first "decimal EMA" (e.g., for 26.7).
-Calculates another "decimal EMA" of that first EMA line (again, using 26.7).
-Calculates a third "decimal EMA" of the second EMA line (still using 26.7).
Finally, it combines these three EMAs using a special TEMA formula to get the final, quick-reacting TEMA line.
Option to Switch Off Decimals:
There's a setting ("Use Decimal Periods"). If you turn this off, the script will just use regular whole-number EMAs to build the TEMA (it will round down your decimal input, so 26.7 would become 26).
Plotting:
The final "Enhanced TEMA" line is drawn on your price chart.
In Simple Terms:
This script gives you a TEMA (a fast-moving average) that you can set up with very precise decimal lengths (like 26.7 instead of just 26 or 27).
It does this "decimal magic" by smartly blending two regular EMAs. You can also choose to use it like a normal TEMA with whole numbers if you prefer. The goal is to give traders a very responsive trend-following line that can be fine-tuned to a high degree of precision.
Ranging DetectionRange detection study v 0.1
Trying to find ranges on price charts. looking at H1 on EURUSD, the indicator will mark a line at the low and high of the last 10 candles, and mark the background grey if it detects a range - defined by how many candles since last high/low (default 3)
Volatility Pulse with Dynamic ExitVolatility Pulse with Dynamic Exit
Overview
This strategy, Volatility Pulse with Dynamic Exit, is designed to capture impulsive price moves following volatility expansions, while ensuring risk is managed dynamically. It avoids trades during low-volatility periods and uses momentum confirmation to enter positions. Additionally, it features a time-based forced exit system to limit overexposure.
How It Works
A position is opened when the current ATR (Average True Range) significantly exceeds its 20-period average, signaling a volatility expansion.
To confirm the move is directional and not random noise, the strategy checks for momentum: the close must be above/below the close of 20 bars ago.
Low volatility zones are filtered out to avoid chop and poor trade entries.
Upon entry, a dynamic stop-loss is set at 1x ATR, while take-profit is set at 2x ATR, offering a 2:1 reward-to-risk ratio.
If the position remains open for more than 42 bars, it is forcefully closed, even if targets are not hit. This prevents long-lasting, stagnant trades.
Key Features
✅ Volatility-based breakout detection
✅ Momentum confirmation filter
✅ Dynamic stop-loss and take-profit based on real-time ATR
✅ Time-based forced exit (42 bars max holding)
✅ Low-volatility environment filter
✅ Realistic settings with 0.05% commission and slippage included
Parameters Explanation
ATR Length (14): Captures recent volatility over ~2 weeks (14 candles).
Momentum Lookback (20): Ensures meaningful price move confirmation.
Volatility Expansion Threshold (0.5x): Strategy activates only when ATR is at least 50% above its average.
Minimum ATR Filter (1.0x): Avoids entries in tight, compressed market ranges.
Max Holding (42 bars): Trades are closed after 42 bars if no exit signal is triggered.
Risk-Reward (2.0x): Aiming for 2x ATR as profit for every 1x ATR risk.
Originality Note
While volatility and momentum have been used separately in many strategies, this script combines both with a time-based dynamic exit system. This exit rule, combined with an ATR-based filter to exclude low-activity periods, gives the system a practical edge in real-world use. It avoids classic rehashes and integrates real trading constraints for better applicability.
Disclaimer
This is a research-focused trading strategy meant for backtesting and educational purposes. Always use proper risk management and perform due diligence before applying to real funds.
Institutional Volume Profile# Institutional Volume Profile (IVP) - Advanced Volume Analysis Indicator
## Overview
The Institutional Volume Profile (IVP) is a sophisticated technical analysis tool that combines traditional volume profile analysis with institutional volume detection algorithms. This indicator helps traders identify key price levels where significant institutional activity has occurred, providing insights into market structure and potential support/resistance zones.
## Key Features
### 🎯 Volume Profile Analysis
- **Point of Control (POC)**: Identifies the price level with the highest volume activity
- **Value Area**: Highlights the price range containing a specified percentage (default 70%) of total volume
- **Multi-Row Distribution**: Displays volume distribution across 10-50 price levels for detailed analysis
- **Customizable Period**: Analyze volume profiles over 10-500 bars
### 🏛️ Institutional Volume Detection
- **Pocket Pivot Volume (PPV)**: Detects bullish institutional buying when up-volume exceeds recent down-volume peaks
- **Pivot Negative Volume (PNV)**: Identifies bearish institutional selling when down-volume exceeds recent up-volume peaks
- **Accumulation Detection**: Spots potential accumulation phases with high volume and narrow price ranges
- **Distribution Analysis**: Identifies distribution patterns with high volume but minimal price movement
### 🎨 Visual Customization Options
- **Multiple Color Schemes**: Heat Map, Institutional, Monochrome, and Rainbow themes
- **Bar Styles**: Solid, Gradient, Outlined, and 3D Effect rendering
- **Volume Intensity Display**: Visual intensity based on volume magnitude
- **Flexible Positioning**: Left or right side profile placement
- **Current Price Highlighting**: Real-time price level indication
### 📊 Advanced Visual Features
- **Volume Labels**: Display volume amounts at key price levels
- **Gradient Effects**: Multi-step gradient rendering for enhanced visibility
- **3D Styling**: Shadow effects for professional appearance
- **Opacity Control**: Adjustable transparency (10-100%)
- **Border Customization**: Configurable border width and styling
## How It Works
### Volume Distribution Algorithm
The indicator analyzes each bar within the specified period and distributes its volume proportionally across the price levels it touches. This creates an accurate representation of where trading activity has been concentrated.
### Institutional Detection Logic
- **PPV Trigger**: Current up-bar volume > highest down-volume in lookback period + above volume MA
- **PNV Trigger**: Current down-bar volume > highest up-volume in lookback period + above volume MA
- **Accumulation**: High volume + narrow range + bullish close
- **Distribution**: Very high volume + minimal price movement
### Value Area Calculation
Starting from the POC, the algorithm expands both upward and downward, adding volume until reaching the specified percentage of total volume (default 70%).
## Configuration Parameters
### Profile Settings
- **Profile Period**: 10-500 bars (default: 50)
- **Number of Rows**: 10-50 levels (default: 24)
- **Profile Width**: 10-100% of screen (default: 30%)
- **Value Area %**: 50-90% (default: 70%)
### Institutional Analysis
- **PPV Lookback Days**: 5-20 periods (default: 10)
- **Volume MA Length**: 10-200 periods (default: 50)
- **Institutional Threshold**: 1.0-2.0x multiplier (default: 1.2)
### Visual Controls
- **Bar Style**: Solid, Gradient, Outlined, 3D Effect
- **Color Scheme**: Heat Map, Institutional, Monochrome, Rainbow
- **Profile Position**: Left or Right side
- **Opacity**: 10-100%
- **Show Labels**: Volume amount display toggle
## Interpretation Guide
### Volume Profile Elements
- **Thick Horizontal Bars**: High volume nodes (strong support/resistance)
- **Thin Horizontal Bars**: Low volume nodes (weak levels)
- **White Line (POC)**: Strongest support/resistance level
- **Blue Highlighted Area**: Value Area (fair value zone)
### Institutional Signals
- **Blue Triangles (PPV)**: Bullish institutional buying detected
- **Orange Triangles (PNV)**: Bearish institutional selling detected
- **Color-Coded Bars**: Different colors indicate institutional activity types
### Color Scheme Meanings
- **Heat Map**: Red (high volume) → Orange → Yellow → Gray (low volume)
- **Institutional**: Blue (PPV), Orange (PNV), Aqua (Accumulation), Yellow (Distribution)
- **Monochrome**: Grayscale intensity based on volume
- **Rainbow**: Color-coded by price level position
## Trading Applications
### Support and Resistance
- POC acts as dynamic support/resistance
- High volume nodes indicate strong price levels
- Low volume areas suggest potential breakout zones
### Institutional Activity
- PPV above Value Area: Strong bullish signal
- PNV below Value Area: Strong bearish signal
- Accumulation patterns: Potential upward breakouts
- Distribution patterns: Potential downward pressure
### Market Structure Analysis
- Value Area defines fair value range
- Profile shape indicates market sentiment
- Volume gaps suggest potential price targets
## Alert Conditions
- PPV Detection at current price level
- PNV Detection at current price level
- PPV above Value Area (strong bullish)
- PNV below Value Area (strong bearish)
## Best Practices
1. Use multiple timeframes for confirmation
2. Combine with price action analysis
3. Pay attention to volume context (above/below average)
4. Monitor institutional signals near key levels
5. Consider overall market conditions
## Technical Notes
- Maximum 500 boxes and 100 labels for optimal performance
- Real-time calculations update on each bar close
- Historical analysis uses complete bar data
- Compatible with all TradingView chart types and timeframes
---
*This indicator is designed for educational and informational purposes. Always combine with other analysis methods and risk management strategies.*
SuperTrend Confluence Signals [AlgoAlpha]OVERVIEW
This script enhances the classic SuperTrend indicator by integrating volume dynamics, retracement detection, and a multi-asset trend matrix—alongside an automatic mitigation-level drawing system. It's designed for traders who want to see not just trend direction, but the confluence of trend strength, volatility-adjusted retracements, and capital flow through volume pressure. It visually maps key transitions in market structure while offering a clean, color-coded overview of multiple symbols and timeframes in a single chart.
CONCEPTS
At the core is the traditional SuperTrend , which determines directional bias using Average True Range (ATR) with a volatility multiplier. This script overlays that with a dynamic volume histogram that scales relative to recent volume standard deviation, coloring volume bursts within the trend. Retracement signals are triggered when price pulls back toward the SuperTrend level but respects it—quantified through normalized distance sensitivity. On top of that, the indicator automatically draws and manages horizontal support/resistance zones that appear at key trend shifts. These levels persist and are cleared based on configurable rules such as wick/body sweeps or consecutive candle closes. A multi-asset, multi-timeframe table then gives an instant snapshot of trend status across five user-defined symbols and timeframes.
FEATURES
SuperTrend : Configurable ATR length and multiplier for flexible trend sensitivity.
Volumetric Histogram : Gradient-filled candles anchored to SuperTrend bands, scaled by relative volume to indicate activity intensity during trends.
Retracement Arrows : Signals printed when price nears the SuperTrend level without breaking it, allowing identification of high-probability continuation zones.
Volume TP Markers : Diamond markers flag high-volume events, contextualizing price moves with liquidity bursts.
Automatic Structure Levels : Draws clean horizontal lines at significant trend transitions, with optional volatility-based band fills. These levels self-update and clear based on price interaction logic.
Trend Table : Displays trend direction (▲/▼) across five assets and five timeframes. Each cell is colored according to trend bias, providing a compact overview for multi-market confluence.
USAGE
Start by loading the indicator on your main chart and adjusting the ATR Length and Multiplier to match your strategy timeframe. Use lower values for scalping and higher values for swing trading. The histogram bars will appear as colored candles above or below the SuperTrend level, indicating how strong volume is within that trend. Arrow signals suggest minor pullbacks within the trend, which can act as entry opportunities. The level system will automatically plot key price zones during trend flips; if "Body" is selected for mitigation, price must close through the level to invalidate it. If "Wick" is chosen, a single wick breach is enough. Adjust expiry and rejection settings to fine-tune how long levels stay on chart. Finally, enable the Multi-Asset Table to view live trend signals across popular symbols like AAPL or NVDA in different timeframes, helping spot macro-to-micro alignment for higher-confidence trades.
Multi-Timeframe High/Low MarkerDescription
This indicator displays the previous period's high and low price levels from up to three different timeframes simultaneously. Lines extend from the previous period through the current period, providing clear visual reference points for key price levels across multiple time horizons.
Utility
Identify price ranges and key levels from multiple periods.Reduce chart switching by displaying multiple ranges on a single chart.
Function
Track up to 3 different timeframes simultaneously (default: 1H, 4H, Daily)
Customize each timeframe's high and low line colors, width, and style (solid/dashed/dotted)
Optional current period opening price display for each timeframe
Smart overlap detection prevents duplicate lines when multiple timeframes share the same price level
Each timeframe can be individually enabled or disabled
All visual elements fully customizable through indicator settings
Institutional Volume Footprint ProOVERVIEW
The Institutional Volume Footprint Pro is a comprehensive volume analysis indicator designed to identify institutional trading activity and significant volume patterns. Based on the proven Pocket Pivot Volume methodology by Chris Kacher and Gil Morales, this indicator has been enhanced with multiple additional volume analysis techniques to provide traders with a complete picture of smart money movements.
KEY FEATURES
1. Pocket Pivot Volume (PPV) Detection
- Identifies bullish volume patterns where current volume exceeds the highest down-day volume of the past 10 days
- Blue volume bars with "PPV" labels mark potential institutional accumulation
- Customizable lookback period (5-20 days)
2. Pivot Negative Volume (PNV) Detection
- Spots bearish volume patterns where selling volume exceeds recent up-day volumes
- Orange bars with "PNV" labels indicate potential institutional distribution
- Early warning system for trend reversals
3. Advanced Institutional Patterns
- Accumulation Detection (Aqua): High volume with narrow price range - classic stealth accumulation
- Churning/Distribution (Yellow): Heavy volume with minimal price progress - potential topping pattern
- Volume Dry-up (Purple): Extremely low volume periods that often precede significant moves
- Volume Climax (Fuchsia): Extreme volume spikes signaling potential exhaustion
4. Real-time Analytics Dashboard
- Relative Volume: Current volume compared to 10-day average
- Volume vs MA: Multiple of current volume to selected moving average
- Price Range Analysis: Narrow/Normal/Wide range classification
5. Accumulation/Distribution Trend
- Background coloring shows overall money flow direction
- Green tint: Net accumulation phase
- Red tint: Net distribution phase
HOW TO USE
Entry Signals:
- PPV (Blue): Consider long positions when price breaks above resistance with PPV confirmation
- Accumulation (Aqua): Watch for breakouts following multiple accumulation days
- Volume Dry-up (Purple): Prepare for potential explosive moves
Exit/Warning Signals:
- PNV (Orange): Consider taking profits or tightening stops
- Churning (Yellow): Distribution may be occurring despite stable prices
- Volume Climax (Fuchsia): Potential reversal point - extreme caution advised
CUSTOMIZATION OPTIONS
Analysis Parameters:
- PPV Lookback Period (5-20 days)
- Volume MA Length & Type (SMA/EMA/WMA)
- Relative Volume Threshold
- Climax Volume Multiplier
Visual Controls:
- Toggle Info Table display
- Enable/disable individual label types (PPV, PNV, ACC)
- Show/hide volume moving averages
- Control A/D trend background
- Customize threshold lines
BUILT-IN ALERTS
- Pocket Pivot Volume detected
- Pivot Negative Volume detected
- Institutional Accumulation pattern
- Volume Climax warning
- Volume Dry-up alert
PRO TIPS
1. Combine with Price Action: Volume confirms price - look for PPV at breakouts and PNV at breakdowns
2. Multiple Timeframes: Check daily and weekly charts for confluence
3. Relative Volume Matters: Patterns are stronger when relative volume > 1.5x
4. Watch for Divergences: Price up with decreasing volume = weakness
COLOR LEGEND
- Blue: Pocket Pivot Volume (Bullish)
- Orange: Pivot Negative Volume (Bearish)
- Aqua: Institutional Accumulation
- Yellow: Churning/Distribution
- Purple: Volume Dry-up
- Fuchsia: Volume Climax
- Green: Above-average up volume
- Red: Above-average down volume
- Gray: Below-average volume
EDUCATIONAL BACKGROUND
This indicator implements concepts from:
- "Trade Like an O'Neil Disciple" by Gil Morales & Chris Kacher
- William O'Neil's volume analysis principles
- Richard Wyckoff's accumulation/distribution methodology
Happy Trading! May the volume be with you!
magic wand STSM"Magic Wand STSM" Strategy: Trend-Following with Dynamic Risk Management
Overview:
The "Magic Wand STSM" (Supertrend & SMA Momentum) is an automated trading strategy designed to identify and capitalize on sustained trends in the market. It combines a multi-timeframe Supertrend for trend direction and potential reversal signals, along with a 200-period Simple Moving Average (SMA) for overall market bias. A key feature of this strategy is its dynamic position sizing based on a user-defined risk percentage per trade, and a built-in daily and monthly profit/loss tracking system to manage overall exposure and prevent overtrading.
How it Works (Underlying Concepts):
Multi-Timeframe Trend Confirmation (Supertrend):
The strategy uses two Supertrend indicators: one on the current chart timeframe and another on a higher timeframe (e.g., if your chart is 5-minute, the higher timeframe Supertrend might be 15-minute).
Trend Identification: The Supertrend's direction output is crucial. A negative direction indicates a bearish trend (price below Supertrend), while a positive direction indicates a bullish trend (price above Supertrend).
Confirmation: A core principle is that trades are only considered when the Supertrend on both the current and the higher timeframe align in the same direction. This helps to filter out noise and focus on stronger, more confirmed trends. For example, for a long trade, both Supertrends must be indicating a bearish trend (price below Supertrend line, implying an uptrend context where price is expected to stay above/rebound from Supertrend). Similarly, for short trades, both must be indicating a bullish trend (price above Supertrend line, implying a downtrend context where price is expected to stay below/retest Supertrend).
Trend "Readiness": The strategy specifically looks for situations where the Supertrend has been stable for a few bars (checking barssince the last direction change).
Long-Term Market Bias (200 SMA):
A 200-period Simple Moving Average is plotted on the chart.
Filter: For long trades, the price must be above the 200 SMA, confirming an overall bullish bias. For short trades, the price must be below the 200 SMA, confirming an overall bearish bias. This acts as a macro filter, ensuring trades are taken in alignment with the broader market direction.
"Lowest/Highest Value" Pullback Entries:
The strategy employs custom functions (LowestValueAndBar, HighestValueAndBar) to identify specific price action within the recent trend:
For Long Entries: It looks for a "buy ready" condition where the price has found a recent lowest point within a specific number of bars since the Supertrend turned bearish (indicating an uptrend). This suggests a potential pullback or consolidation before continuation. The entry trigger is a close above the open of this identified lowest bar, and also above the current bar's open.
For Short Entries: It looks for a "sell ready" condition where the price has found a recent highest point within a specific number of bars since the Supertrend turned bullish (indicating a downtrend). This suggests a potential rally or consolidation before continuation downwards. The entry trigger is a close below the open of this identified highest bar, and also below the current bar's open.
Candle Confirmation: The strategy also incorporates a check on the candle type at the "lowest/highest value" bar (e.g., closevalue_b < openvalue_b for buy signals, meaning a bearish candle at the low, suggesting a potential reversal before a buy).
Risk Management and Position Sizing:
Dynamic Lot Sizing: The lotsvalue function calculates the appropriate position size based on your Your Equity input, the Risk to Reward ratio, and your risk percentage for your balance % input. This ensures that the capital risked per trade remains consistent as a percentage of your equity, regardless of the instrument's volatility or price. The stop loss distance is directly used in this calculation.
Fixed Risk Reward: All trades are entered with a predefined Risk to Reward ratio (default 2.0). This means for every unit of risk (stop loss distance), the target profit is rr times that distance.
Daily and Monthly Performance Monitoring:
The strategy tracks todaysWins, todaysLosses, and res (daily net result) in real-time.
A "daily profit target" is implemented (day_profit): If the daily net result is very favorable (e.g., res >= 4 with todaysLosses >= 2 or todaysWins + todaysLosses >= 8), the strategy may temporarily halt trading for the remainder of the session to "lock in" profits and prevent overtrading during volatile periods.
A "monthly stop-out" (monthly_trade) is implemented: If the lres (overall net result from all closed trades) falls below a certain threshold (e.g., -12), the strategy will stop trading for a set period (one week in this case) to protect capital during prolonged drawdowns.
Trade Execution:
Entry Triggers: Trades are entered when all buy/sell conditions (Supertrend alignment, SMA filter, "buy/sell situation" candle confirmation, and risk management checks) are met, and there are no open positions.
Stop Loss and Take Profit:
Stop Loss: The stop loss is dynamically placed at the upTrendValue for long trades and downTrendValue for short trades. These values are derived from the Supertrend indicator, which naturally adjusts to market volatility.
Take Profit: The take profit is calculated based on the entry price, the stop loss, and the Risk to Reward ratio (rr).
Position Locks: lock_long and lock_short variables prevent immediate re-entry into the same direction once a trade is initiated, or after a trend reversal based on Supertrend changes.
Visual Elements:
The 200 SMA is plotted in yellow.
Entry, Stop Loss, and Take Profit lines are plotted in white, red, and green respectively when a trade is active, with shaded areas between them to visually represent risk and reward.
Diamond shapes are plotted at the bottom of the chart (green for potential buy signals, red for potential sell signals) to visually indicate when the buy_sit or sell_sit conditions are met, along with other key filters.
A comprehensive trade statistics table is displayed on the chart, showing daily wins/losses, daily profit, total deals, and overall profit/loss.
A background color indicates the active trading session.
Ideal Usage:
This strategy is best applied to instruments with clear trends and sufficient liquidity. Users should carefully adjust the Your Equity, Risk to Reward, and risk percentage inputs to align with their individual risk tolerance and capital. Experimentation with different ATR Length and Factor values for the Supertrend might be beneficial depending on the asset and timeframe.
ICT Opening Range Projections (tristanlee85)ICT Opening Range Projections
This indicator visualizes key price levels based on ICT's (Inner Circle Trader) "Opening Range" concept. This 30-minute time interval establishes price levels that the algorithm will refer to throughout the session. The indicator displays these levels, including standard deviation projections, internal subdivisions (quadrants), and the opening price.
🟪 What It Does
The Opening Range is a crucial 30-minute window where market algorithms establish significant price levels. ICT theory suggests this range forms the basis for daily price movement.
This script helps you:
Mark the high, low, and opening price of each session.
Divide the range into quadrants (premium, discount, and midpoint/Consequent Encroachment).
Project potential price targets beyond the range using configurable standard deviation multiples .
🟪 How to Use It
This tool aids in time-based technical analysis rooted in ICT's Opening Range model, helping you observe price interaction with algorithmic levels.
Example uses include:
Identifying early structural boundaries.
Observing price behavior within premium/discount zones.
Visualizing initial displacement from the range to anticipate future moves.
Comparing price reactions at projected standard deviation levels.
Aligning price action with significant times like London or NY Open.
Note: This indicator provides a visual framework; it does not offer trade signals or interpretations.
🟪 Key Information
Time Zone: New York time (ET) is required on your chart.
Sessions: Supports multiple sessions, including NY midnight, NY AM, NY PM, and three custom timeframes.
Time Interval: Supports multi-timeframe up to 15 minutes. Best used on a 1-minute chart for accuracy.
🟪 Session Options
The Opening Range interval is configurable for up to 6 sessions:
Pre-defined ICT Sessions:
NY Midnight: 12:00 AM – 12:30 AM ET
NY AM: 9:30 AM – 10:00 AM ET
NY PM: 1:30 PM – 2:00 PM ET
Custom Sessions:
Three user-defined start/end time pairs.
This example shows a custom session from 03:30 - 04:00:
🟪 Understanding the Levels
The Opening Price is the open of the first 1-minute candle within the chosen session.
At session close, the Opening Range is calculated using its High and Low . An optional swing-based mode uses swing highs/lows for range boundaries.
The range is divided into quadrants by its midpoint ( Consequent Encroachment or CE):
Upper Quadrant: CE to high (premium).
Lower Quadrant: Low to CE (discount).
These subdivisions help visualize internal range dynamics, where price often reacts during algorithmic delivery.
🟪 Working with Ranges
By default, the range is determined by the highest high and lowest low of the 30-minute session:
A range can also be determined by the highest/lowest swing points:
Quadrants outline the premium and discount of a range that price will reference:
Small ranges still follow the same algorithmic logic, but may be deemed insignificant for one's trading. These can be filtered in the settings by specifying a minimum ticks limit. In this example, the range is 42 ticks (10.5 points) but the indicator is configured for 80 ticks (20 points). We can select which levels will plot if the range is below the limit. Here, only the 00:00 opening price is plotted:
You may opt to include the range high/low, quadrants, and projections as well. This will plot a red (configurable) range bracket to indicate it is below the limit while plotting the levels:
🟪 Price Projections
Projections extend beyond the Opening Range using standard deviations, framing the market beyond the initial session and identifying potential targets. You define the standard deviation multiples (e.g., 1.0, 1.5, 2.0).
Both positive and negative extensions are displayed, symmetrically projected from the range's high and low.
The Dynamic Levels option plots only the next projection level once price crosses the previous extreme. For example, only the 0.5 STDEV level plots until price reaches it, then the 1.0 level appears, and so on. This continues up to your defined maximum projections, or indefinitely if standard deviations are set to 0.
This example shows dynamic levels for a total of 6 sessions, only 1 of which meet a configured minimum limit of 50 ticks:
Small ranges followed by significant displacement are impacted the most with the number of levels plotted. You may hide projections when configuring the minimum ticks.
A fixed standard deviation will plot levels in both directions, regardless of the price range. Here, we plot up to 3.0 which hiding projections for small ranges:
🟪 Legal Disclaimer
This indicator is provided for informational and educational purposes only. It is not financial advice, and should not be construed as a recommendation to buy or sell any financial instrument. Trading involves substantial risk, and you could lose a significant amount of money. Past performance is not indicative of future results. Always consult with a qualified financial professional before making any trading or investment decisions. The creators and distributors of this indicator assume no responsibility for your trading outcomes.
RRC Sniper SetupRRC Sniper Setup, this looks at candles this way:
Go to Market Scanner
Create New Scan → "RRC Sniper Setup"
Add filters listed below with timeframe logic (e.g. 1m/5m)
Run scan on:
Your Watchlist
SPY 500
QQQ 100
AI/Momentum names
1. Reclaim Filter
Find price breaking back above a key level (VWAP or EMA113)
Last 1m Close > EMA 113 (1m)
OR
Last 5m Close > VWAP
2. Retrace Filter
Price pulls back into the zone and holds within a tight range
Current Price < VWAP * 1.0025
AND
Current Price > VWAP * 0.9975
AND
Volume (Current Candle) < Volume (Previous Candle)
✅ 3. Confirm Filter
Price begins moving back up with confirmation candle and volume
Last Candle Close > Last Candle Open
AND
Volume (Current Candle) > Volume (Previous Candle)
BVB dominance bars
Hello everyone, this is my first indicator. these candles shows you who's in control. I like to think its some what close to heikin ashi candles as it shows you the Trend but doesn't average it out. also shows you when there is indecision. please read the instructions on how it works. its not a stand alone strategy. but adds value to your own strategy.
📖 How It Works
The BvB Dominance Bars indicator is a visual tool that colors candles based on market control—whether bulls or bears are in charge. It uses a custom metric comparing the price's relationship to a smoothed moving average (EMA), then normalizes that difference over time to express relative bullish or bearish pressure.
Here’s the breakdown:
Bulls vs Bears Logic:
A short-term EMA (default: 14-period) is used to establish a midpoint reference.
Bull Pressure is calculated as how far the high is above this EMA.
Bear Pressure is how far the low is below this EMA.
These are normalized over a lookback period (default: 120 bars) to produce percentile scores (0–100) for both bulls and bears.
Dominance & Color Coding:
The indicator compares normalized bull and bear scores.
Candles are color-coded based on:
Bright Lime: Strong Bull Dominance (with high confidence)
Soft Lime/Yellow: Moderate Bull Control
Bright Red: Strong Bear Dominance
Soft Red/Yellow: Moderate Bear Control
Gray: Neutral/Low conviction
Optional Live Label:
A small floating label shows who has control: “Bull Control,” “Bear Control,” or “Neutral.”
🧠 How to Use It (Example Strategy)
The BvB Dominance Bars indicator is not a standalone buy/sell signal but a market sentiment overlay. It’s most effective when combined with your own strategy, like price action or trend-following tools.
Here’s an example use case:
🧪 Reversal Confirmation Strategy
Objective: Catch high-probability reversals during key kill zones or supply/demand levels.
Setup:
Mark your key support/resistance zones using your standard method (e.g., FVGs, liquidity sweeps, or ICT PD arrays).
Wait for price to reach one of these zones.
Watch candle colors from the BvB Dominance Bars:
If you expect a bullish reversal, wait for a transition from red/gray candles to lime green or bright lime (bullish dominance taking over).
If you expect a bearish reversal, look for a change from green/gray to red or bright red.
Entry Filter:
Only enter if the dominant color holds for 2+ candles.
Avoid trades when candles are gray or yellow (indecision/neutral).
Exit Option:
Exit if dominance shifts against you (e.g., from lime to red), or use structure-based stops.
⚙️ Settings You Can Adjust:
BvB Period: Controls how fast EMA responds.
Bars Back: Determines how long the normalization looks back.
Thresholds: Influence how strong the dominance must be to change candle color.
✅ Best Used When:
You already have a bias and just want a confirmation of sentiment.
You're trading intraday and want a feel for shifting momentum without relying on noisy indicators.
You want a clean, color-coded overlay to help filter out fakeouts and indecision.
Trucker Doug Master Indicator for Making Money📈 Trucker Doug Master Indicator for Making Money™
This all-in-one indicator was built for speed, clarity, and dominance — designed by a trader, for traders who hate fluff and want to get paid.
🔥 What It Does:
TP/SL/R:R Overlay: Automatically plots entry, stop-loss, and 5 take-profit levels (including a "TP LAMBO" target) based on your custom ATR multiplier and risk percentage. Each TP level includes its R:R ratio, so you can instantly see if the trade is worth it.
Live Volume Analysis: Displays Relative Volume (RVOL) as a percentage, with color-coded states (red = weak, black = neutral, yellow = increasing, green = explosive). Also shows average volume for context.
ATR Value: Dynamically calculated and displayed so you always know your volatility baseline.
MACD & RSI Values: Shown in the overlay box for a quick read — no extra indicators cluttering your chart.
EMA/SMA Lines: Clean, adjustable moving averages (default: EMA 5, EMA 9, SMA 50) plotted directly on the chart.
Fuse Visual Explainer™: Marks EMA 5 crossing EMA 9 (colored dot) and EMA 5 crossing SMA 50 (black X) directly where they intersect. Helps you visually confirm momentum or momentum reversals in real time.
⚙️ Fully Customizable in Settings:
Toggle on/off: TP lines, the volume/ATR table, EMA/SMA lines, RSI/MACD display, Fuse visuals.
Adjust:
TP multipliers (TP1–TP4, Lambo)
Stop-loss offset %
ATR period
Volume average period
Line colors for each TP level, SL, entry, and even the R:R label
Table text size and position
TP/SL line length (how far it stretches left/right)
💡 Why It’s Awesome:
No more layering 5 indicators. No more eyeballing risk-to-reward. No more guessing if volume is legit. This is a precision tool for real traders.
Built for those who are tired of chart noise and want everything that matters — clean, calculated, and completely in your control.
Profit Guard ProProfitGuard Pro
ProfitGuard Pro is a risk management and profit calculation tool that helps traders optimize their trades by handling position sizing, risk management, leverage, and take profit calculations. With support for both cumulative and non-cumulative take profit strategies, this versatile indicator provides the insights you need to maximize your trading strategy.
How to Use ProfitGuard Pro:
Load the Indicator: Add ProfitGuard Pro to your chart in TradingView.
Set Your Entry Position: Input your desired entry price.
Define Your Stop Loss: Enter the price at which your trade will exit to minimize losses.
Add Take Profit Levels: Input your TP1, TP2, TP3, and TP4 levels, as needed.
If you want fewer take profit levels, adjust the number of TPs in the settings menu. You can choose between 1 to 4 take profit levels based on your strategy.
Adjust Risk Settings: Specify your account size and risk percentage to calculate position size and leverage.
Choose Cumulative or Non-Cumulative Mode: Toggle cumulative profit mode to either recalculate position sizes as each take profit is hit or keep position sizes static for each TP.
Once set up, ProfitGuard Pro will automatically calculate your position size, leverage, and potential profits for each take profit level, providing a clear visual on your chart to guide your trading decisions.
Key Features:
Risk Management:
Calculate your risk percentage based on account size and stop loss.
Visualize risk in dollar terms and percentage of your account.
Position Size & Leverage:
Automatically calculate the ideal position size and leverage for your trade based on your entry, stop loss, and risk settings.
Ensure you are trading with the appropriate leverage for your account size.
Cumulative vs Non-Cumulative Profit Mode:
Cumulative Mode: Adjusts position size after each take profit is reached, recalculating for remaining contracts.
Non-Cumulative Mode: Treats each take profit as a separate calculation using the full position size.
Take Profit Levels:
Set up to 4 customizable take profit levels.
Adjust percentage values for each TP target, and visualize them on your chart with easy-to-read lines.
Profit Calculation:
Displays potential profits for each take profit level based on whether cumulative or non-cumulative mode is selected.
Calculate your risk-reward ratio dynamically at each TP.
Customizable Visuals:
Easily customize the table's size, position, and color scheme to fit your chart.
Visualize key trade details like leverage, contracts, margin, and profits directly on your chart.
Short and Long Position Support:
Automatically adjusts calculations based on whether you're trading long or short.
Zero Lag Multi Timeframe MACDCommon parts of the Multi Time Frame MACD
Why This MACD is Special
Traditional MACD (Moving Average Convergence Divergence) is a powerful trend-following indicator, but it has a key limitation: it only reflects price action on a single timeframe. Traders who rely on top-down analysis—analyzing higher timeframes first before moving to lower ones—often face a frustrating delay.
The Problem with Traditional Multi-Timeframe MACD with top down analysis:
If you’re on a 5-minute chart and want to see the 1-hour MACD, you must wait for 12 candles (1 hour) to close before the MACD updates.
This lag means you miss real-time signals and react too late to trend changes.
The Zero Lag Multi-Timeframe MACD solves this by using a custom time-adjusted formula (developed by CoffeeShopCrypto) that projects higher timeframe MACD values onto lower timeframe charts in real time.
How Traders Normally Use MACD
Single-Timeframe MACD (Traditional Approach)
Used for trend identification (bullish/bearish).
Crossovers (MACD line crossing signal line) signal potential entries.
Divergences (price vs. MACD direction) warn of trend exhaustion.
Top-Down Analysis with Standard MACD (Manual Switching)
1. Check higher timeframe (e.g., 1-hour) for trend direction.
2. Switch to lower timeframe (e.g., 5-minute) for entries.
Problem: You must constantly switch charts and wait for higher timeframe candles to close.
This MACD Eliminates the Need for Switching
Higher timeframe MACD is plotted in real time on your lower timeframe chart.
No waiting for candle closes—instant trend confirmation.
Single-chart top-down analysis without switching timeframes.
How to Use This MACD for Trading
Since the MACD is an averaging indicator, it works best when trading with the trend. This version enhances that by showing two trends at once:
Lower Timeframe (LTF) MACD – Your current chart’s trend.
Higher Timeframe (HTF) MACD – The dominant trend.
Key Trading Rules
1. Strong Uptrend Setup (Best for Long Entries)
HTF MACD line is rising & above zero (strong bullish momentum).
LTF MACD line is also rising (confirms alignment).
Entry: Look for LTF MACD to cross above signal line.
Long Entry Confirmation:
When both the High Timeframe and Low Timeframe MACD Lines are moving in the same direction, this is a confirmation that both the HTF is matching the direction of the LTF.
In this example both MACD Lines are moving long so we are only looking to take long entries at this point forward.
Short Entry Confirmation:
When both the High Timeframe and Low Timeframe MACD Lines are moving in the same direction, this is a confirmation that both the HTF is matching the direction of the LTF.
In this example both MACD Lines are moving short so we are only looking to take long entries at this point forward.
2. Potential Reversal or Weak Uptrend
Trend Divergence Confirmation
This example shows you a confirmation of divergence between the trends. Its best to watch for a continuation of the previous major trend. In this example, we just came off a downtrend with a GAP DOWN.
How to see it: (Trend Divergence)
Two things will help you confirm this divergence
1.Notice the LTF and HTF MACD are moving away from each other.
2. Both the HTF and LTF Histogram are shrinking.
This is an expression of lack of trend.
What to do:
High Timeframe Trends are always the lead so wait for the Low Timeframe to catch up to the High Timeframe trend.
Limitations:
The Exponential Moving Average calculation can only be applied to the Low Timeframe MACD because of the way its weighted against more recent price action and closing values.
This same EMA calculation can not be applied to the High Timeframe MACD as its being recalculated and the result means you can not weigh values against its current plot point.
Low Timeframe MACD can use EMA / SMA
High Timeframe MACD can only use SMA
CCI Divergence Detector
A technical analysis tool that identifies divergences between price action and the Commodity Channel Index (CCI) oscillator. Unlike standard divergence indicators, this system employs advanced gradient visualization, multi-layer wave effects, and comprehensive customization options to provide traders with crystal-clear divergence signals and market momentum insights.
Core Detection Mechanism
CCI-Based Analysis: The indicator utilizes the Commodity Channel Index as its primary oscillator, calculated from user-configurable source data (default: HLC3) with adjustable length parameters. The CCI provides reliable momentum readings that effectively highlight price-momentum divergences.
Dynamic Pivot Detection: The system employs adaptive pivot detection with three sensitivity levels (High/Normal/Low) to identify significant highs and lows in both price and CCI values. This dynamic approach ensures optimal divergence detection across different market conditions and timeframes.
Dual Divergence Analysis:
Regular Bullish Divergences: Detected when price makes lower lows while CCI makes higher lows, indicating potential upward reversal
Regular Bearish Divergences: Identified when price makes higher highs while CCI makes lower highs, signaling potential downward reversal
Strength Classification System: Each detected divergence is automatically classified into three strength categories (Weak/Moderate/Strong) based on:
-Price differential magnitude
-CCI differential magnitude
-Time duration between pivot points
-User-configurable strength multiplier
Advanced Visual System
Multi-Layer Wave Effects: The indicator features a revolutionary wave visualization system that creates depth through multiple gradient layers around the CCI line. The wave width dynamically adjusts based on ATR volatility, providing intuitive visual feedback about market conditions.
Professional Color Gradient System: Nine independent color inputs control every visual aspect:
Bullish Colors (Light/Medium/Dark): Control oversold areas, wave effects, and strong bullish signals
Bearish Colors (Light/Medium/Dark): Manage overbought zones, wave fills, and strong bearish signals
Neutral Colors (Light/Medium/Dark): Handle table elements, zero line, and transitional states
Intelligent Color Mapping: Colors automatically adapt based on CCI values:
Overbought territory (>100): Bearish color gradients with increasing intensity
Neutral positive (0 to 100): Blend from neutral to bearish tones
Oversold territory (<-100): Bullish color gradients with increasing intensity
Neutral negative (-100 to 0): Transition from neutral to bullish tones
Key Features & Components
Advanced Configuration System: Eight organized input groups provide granular control:
General Settings: System enable, pivot length, confidence thresholds
Oscillator Selection: CCI parameters, overbought/oversold levels, normalization options
Detection Parameters: Divergence types, minimum strength requirements
Sensitivity Tuning: Pivot sensitivity, divergence threshold, confirmation bars
Visual System: Line thickness, labels, backgrounds, table display
Wave Effects: Dynamic width, volatility response, layer count, glow effects
Transparency Controls: Independent transparency for all visual elements
Smoothing & Filtering: CCI smoothing types, noise filtering, wave smoothing
Professional Alert System: Comprehensive alert functionality with dynamic messages including:
-Divergence type and strength classification
-Current CCI value and confidence percentage
-Customizable alert frequency and conditions
Enhanced Information Table: Real-time display showing:
-Current CCI length and value
-Market status (Overbought/Normal/Oversold)
-Active sensitivity setting
Configurable table positioning (4 corner options)
Visual Elements Explained
Primary CCI Line: Main oscillator plot with gradient coloring that reflects market momentum and CCI intensity. Line thickness is user-configurable (1-8 pixels).
Wave Effect Layers: Multi-layer gradient fills creating a dynamic wave around the
CCI line:
-Outer layers provide broad market context
-Inner layers highlight immediate momentum
-Core layers show precise CCI movement
-All layers respond to volatility and momentum changes
Divergence Lines & Labels:
-Solid lines connecting divergence pivot points
-Color-coded based on divergence type and strength
-Labels displaying divergence type and strength classification
-Customizable transparency and size options
Reference Lines:
-Zero line with neutral color coding
-Overbought level (default: 100) with bearish coloring
-Oversold level (default: -100) with bullish coloring
Background Gradient: Optional background coloring that reflects CCI intensity and market conditions with user-controlled transparency (80-99%).
Configuration Options
Sensitivity Controls:
Pivot sensitivity: High/Normal/Low detection levels
Divergence threshold: 0.1-2.0 sensitivity range
Confirmation bars: 1-5 bar confirmation requirement
Strength multiplier: 0.1-3.0 calculation adjustment
Visual Customization:
Line transparency: 0-90% for main elements
Wave transparency: 0-95% for fill effects
Background transparency: 80-99% for subtle background
Label transparency: 0-50% for text elements
Glow transparency: 50-95% for glow effects
Advanced Processing:
Five smoothing types: None/SMA/EMA/RMA/WMA
Noise filtering with adjustable threshold (0.1-10.0)
CCI normalization for enhanced gradient scaling
Dynamic wave width with ATR-based volatility response
Interpretation Guidelines
Divergence Signals:
Strong divergences: High-confidence reversal signals requiring immediate attention
Moderate divergences: Reliable signals suitable for most trading strategies
Weak divergences: Early warning signals best combined with additional confirmation
Wave Intensity: Wave width and color intensity provide real-time volatility and momentum feedback. Wider, more intense waves indicate higher market volatility and stronger momentum.
Color Transitions: Smooth color transitions between bullish, neutral, and bearish states help identify market regime changes and momentum shifts.
CCI Levels: Traditional overbought (>100) and oversold (<-100) levels remain relevant, but the gradient system provides more nuanced momentum reading between these extremes.
Technical Specifications
Compatible Timeframes: All timeframes supported
Maximum Labels: 500 (for divergence marking)
Maximum Lines: 500 (for divergence drawing)
Pine Script Version: v5 (latest optimization)
Overlay Mode: False (separate pane indicator)
Usage Recommendations
This indicator works best when:
-Combined with price action analysis and support/resistance levels
-Used across multiple timeframes for confirmation
-Integrated with proper risk management protocols
-Applied in trending markets for divergence-based reversal signals
-Utilized with other technical indicators for comprehensive analysis
Risk Disclaimer: Trading involves substantial risk of loss. This indicator is provided for analytical purposes only and does not constitute financial advice. Divergence signals, while powerful, are not guaranteed to predict future price movements. Past performance is not indicative of future results. Always use proper risk management and never trade with capital you cannot afford to lose.
X OC StoryOverview
The "X OC Story" is a Pine Script indicator that visualizes the Open-Close range of a higher timeframe (HTF) candle on a lower timeframe chart. By plotting dynamic lines to represent the open and close prices of the previous HTF bar, this tool gives traders a clearer context of recent market sentiment and structural shifts. It includes color-coded visual fills to distinguish between bullish and bearish candles and offers the option to display only the most recent range.
Concept
1. Multi-Timeframe Analysis (MTF)
At its core, this indicator utilizes multi-timeframe analysis by requesting open, high, low, and close values from a user-defined HTF (input.timeframe('60')) and applying them to a lower timeframe chart. This allows traders to incorporate higher timeframe information without switching chart intervals.
2. Timeframe Change Detection
The indicator detects when a new HTF candle begins which lets the script know when to capture and visualize a new set of HTF open-close values.
3. Encapsulation with Custom Type (candles)
The script defines a custom type candles to encapsulate OHLC values of the previous HTF candle. This improves code readability and structure by keeping all relevant HTF data in a single object.
4. Dynamic Line Drawing
When a new HTF candle is detected, two horizontal lines are drawn for Open and Close. These are updated dynamically on each bar to extend across the entire HTF candle range on the lower timeframe chart.
5. Visual Highlighting
a shaded area is drawn between the open and close lines which help highlight market structure without overwhelming the chart.
6. Selective Persistence of Drawings
Users can enable deleteOld to show only the most recent HTF open-close range. When enabled, previously drawn lines are tracked in an array and deleted upon creation of a new range, keeping the chart clean and focused.
How a Trader Might Use This Tool
Contextual Decision-Making
This indicator helps traders see where the market is trading relative to the previous HTF candle:
Trading above the HTF close may suggest bullish continuation
Trading below the HTF open may indicate a bearish reversal or breakdown
Confluence Zones
The open and close lines of HTF candles often act as support/resistance levels. A trader might:
Watch for rejections or breakouts at these levels
Use them in confluence with intraday setups or trend indicators
Scalping or Intraday Strategy Support
Since this visual is drawn on a lower timeframe (like 5m or 15m), it’s particularly useful for scalpers or day traders who want to factor in HTF sentiment without leaving their active chart.
Cleaner Charting
With the optional setting to display only the most recent range (deleteOld), traders avoid clutter and focus on the current actionable zone.
Summary
“X OC Story” is a clean, visual, and effective multi-timeframe utility that helps traders:
Identify HTF open-close context
Highlight possible support/resistance zones
Analyze sentiment and structure visually
It’s an excellent addition to any discretionary trader’s toolkit for improved context awareness and informed entries or exits.
EMA 9/21 Cross + Volume FilterThis indicator plots fast (9-period) and slow (21-period) EMAs and highlights bullish or bearish crossovers only when volume exceeds its 20-period average, filtering out low-participation whipsaws. It places “UP”/“DN” triangles on qualifying crosses and includes built-in alertcondition() triggers plus a single alert() call, so one “Any alert() function call” alert delivers real-time push, e-mail, or webhook notifications. Adjustable inputs: EMA lengths, volume-SMA length, and a toggle to show/hide signal labels. Ideal for trend-following scalps or swing entries on any timeframe and ticker.
5 DMA (Close Above) Buy5 DMA (Close Above) Buy
This indicator identifies momentum-based breakout signals when a green candle closes above the 5-day Simple Moving Average (5DMA) for the first time after price was previously below it.
🔹 Signal Logic:
The script plots a green arrow below the candle when a bullish candle (close > open) closes above the 5DMA
Signals are only shown once per trend leg
The signal resets only after price closes back below the 5DMA
🔔 Built-in Alerts:
Use the included alert condition: "Buy Alert" to be notified in real time whenever a valid signal occurs.
This tool is ideal for traders seeking simple price-action confirmations to catch early trend continuation after pullbacks.
Consolidation BoxesConsolidation Boxes — Indicator
Overview :
This indicator automatically detects and highlights periods of market consolidation, drawing shaded boxes around tight price ranges where the market is temporarily indecisive. It’s designed to help traders easily identify when price is moving sideways — a key phase that often precedes a breakout.
Key Features :
-Automatic Consolidation Detection: Recognizes when a series of candles close within a defined range and marks the area as a consolidation zone.
-Customizable Parameters: Set how many candles must consolidate before a box is drawn.
-Breakout Alerts: Notifies you when price breaks out above or below a consolidation box — a potential signal for trade entries.
-Clean Chart Management: Optional setting to automatically remove old zones when new consolidations form.
-Dynamic Box Extension: As long as price stays within the box, the zone will continue to extend until a breakout occurs.
Inputs :
- Minimum Consolidation Candles : Define how many candles must fit within a range to confirm a consolidation zone.
- Terminate Old Zones : Automatically delete the previous zone when a new one is formed (optional).
How to use :
1. Add the Indicator: Apply it to any chart — works across all timeframes and markets (e.g., crypto, stocks, forex).
2. Adjust Parameters: Choose how many candles must consolidate to form a valid box. Enable or disable zone termination to fit your preference.
3. Watch the Boxes: The indicator draws a shaded box once it detects a valid consolidation zone. The box will continue to extend as long as price stays within the range.
4. Look for Breakouts: When price breaks above or below the box, a breakout is confirmed and an alert (if enabled) will trigger — great for breakout trading strategies.
5. Use in Strategy: Combine with volume, momentum indicators, or price action to validate breakouts and filter false signals.
Ideal For :
Traders who want to visually identify consolidation areas and trade breakout setups with minimal manual analysis. Especially useful for scalpers, day traders, and swing traders looking to anticipate volatility after quiet periods.