FF Countdown Until Bar CloseSimple indicator which shows time remaining until bar close.
The closer time gets to a new bar it color codes the countdown: lime -> orange -> red.
Works best on low time frames, best use case for scalping but is also nice on higher time frames.
Indicadores e estratégias
Volume PercentileThis Pine Script indicator highlights bars where the current volume exceeds a configurable percentile threshold (e.g., 80th percentile) based on a rolling window of historical volume data.
🔍 Key Features:
Calculates a user-defined volume percentile (e.g., 75th, 80th, 90th) over a rolling window.
Marks candles where current volume is higher than the selected percentile.
Helps detect volume spikes, breakouts, or unusual activity.
Works directly on the main chart window for easier analysis.
🛠️ Inputs:
Window Length: Number of bars used to calculate the percentile (default = 20).
Percentile: The percentile threshold to trigger a high-volume signal (default = 80).
🖥️ Visualization:
Displays a red triangle marker below bars with volume above the selected percentile.
Setup Score OscillatorSetup Score Oscillator – Full Description
🎯 Purpose of the Script
This script is a manual trading setup scoring tool, designed to help traders quantify the quality of a trade setup by combining multiple technical, cyclical, and contextual signals.
Instead of relying on a single indicator, the trader manually selects which signals are present, and the script calculates a total score (0–100%), displayed as an oscillator in a separate panel (like RSI or MACD).
🔧 How it works in practice
1. Manual signal inputs
The script presents a set of checkboxes in the settings, where the trader can enable/disable the following signals:
✅ Confirmed Support/Resistance
✅ Aligned Volume Profile
✅ Favorable Cyclic Timing
✅ Valid Trend Line
✅ Aligned Cyclical Moving Averages
✅ Relevant Fibonacci Level
✅ Classic Volume Signal (spike, dry-up, etc.)
✅ Oscillator confirmation (e.g., divergences)
✅ Extreme Sentiment
✅ Relevant or incoming News
Each selected signal contributes to the total score based on its weight.
2. Scoring system
Each signal has a default weight (e.g., 20% for support/resistance, 15% for cycles, etc.).
Optionally, the trader can enable the “custom weights” checkbox and adjust each signal’s weight directly in the settings.
3. Score visualization
The final score (sum of all active weights) is plotted as an oscillator ranging from 0 to 100%, with dynamic coloring:
Range Color Meaning
0–39% Red No valid setup
40–54% Yellow Watchlist only
55–69% Orange Good setup
70–100% Green Strong setup
Several horizontal threshold lines are displayed:
50% → neutral threshold
40%, 55%, 70% → operational levels
4. Optional background coloring
When the score exceeds 55% or 70%, the oscillator background lightly changes color to highlight stronger setups (non-intrusive).
📌 Practical benefits
Objectifies subjective analysis: each decision becomes a number.
Prevents overtrading: no entries if the score is too low.
Adaptable to any trading style: swing, intraday, positional.
User-friendly: no coding needed – just tick boxes.
Italiano:
Setup Score Oscillator – Descrizione completa
🎯 Obiettivo dello script
Lo script è uno strumento manuale di valutazione dei setup di trading, pensato per aiutare il trader a quantificare la qualità di un'opportunità operativa basandosi su più segnali tecnici, ciclici e contestuali.
Invece di affidarsi a un solo indicatore, il trader seleziona manualmente quali segnali sono presenti, e lo script calcola un punteggio complessivo percentuale (0–100%), rappresentato come oscillatore in una finestra separata (tipo RSI, MACD, ecc.).
🔧 Come funziona operativamente
1. Input manuale dei segnali
Lo script mostra una serie di checkbox nelle impostazioni, dove il trader può attivare o disattivare i seguenti segnali:
✅ Supporto/Resistenza confermata
✅ Volume Profile allineato
✅ Cicli o timing favorevole
✅ Trend line valida
✅ Medie mobili cicliche allineate
✅ Livello di Fibonacci rilevante
✅ Volume classico significativo (spike, dry-up)
✅ Conferme da oscillatori (es. divergenze)
✅ Sentiment estremo (es. euforia o panico)
✅ News importanti imminenti o appena uscite
Ogni casella attiva contribuisce al punteggio totale, con un peso specifico.
2. Sistema di punteggio
Ogni segnale ha un peso predefinito (es. 20% per supporti/resistenze, 15% per cicli, ecc.).
Facoltativamente, il trader può attivare la funzione “Enable custom weights” per personalizzare i pesi di ciascun segnale direttamente da input.
3. Visualizzazione del punteggio
Il punteggio complessivo (somma dei pesi attivati) viene tracciato come oscillatore da 0 a 100%, con colori dinamici:
Range Colore Significato
0–39% Rosso Nessun setup valido
40–54% Giallo Osservazione
55–69% Arancione Setup buono
70–1005 Verde Setup forte
Sono tracciate anche delle linee guida orizzontali a:
50% → soglia neutra
40%, 55%, 70% → soglie operative
4. Colorazione dello sfondo (facoltativa)
Quando il punteggio supera 55% o 70%, lo sfondo dell’oscillatore cambia leggermente colore per evidenziare il segnale (non invasivo).
📌 Vantaggi pratici
Oggettivizza l’analisi soggettiva: ogni decisione manuale si trasforma in un numero.
Evita overtrading: se il punteggio è troppo basso, non si entra.
Adattabile a ogni stile: swing, intraday, position.
Facile da usare anche senza codice: basta spuntare le caselle.
Early Money Flow DetectionThis indicator will help trader dectect the signal early than MFI traditional.
Price Difference IndicatorSimply calculate the difference between two products.
You can customize and set two different products.
Hme Rolling VolumeThis indicator allows you to display volume in a continious rolling time frame.
Instead of starting at zero for each new bar, it displays, for example, the cumulative volume of the last 120 seconds on a 2-minute chart.
This helps you track volume trends even more quickly and interpret their behavior without the break between bars.
Bắt Đáy Kỹ Thuật_Only_Buy [VNFlow]Bắt Đáy Kỹ Thuật_Only_Buy
Email: hasobin@outlook.com
Phone: 0373885338
MA 3/20/200 mit Trendverlängerung📊 3-Line MA Pack – Clean Trend Tracking with Projection
Fast. Clear. No fluff.
This script shows:
🔴 MA 3 – short-term momentum
🟠 MA 20 – medium trend flow
🔵 MA 200 – long-term direction
All lines extend forward based on recent slope – automatically adjusted to your timeframe.
Perfect for traders who want to see the flow at a glance.
Plug it in. Read the trend. Trade smarter.
No noise – just structure.
10 MA > 21 MA HighlightWhen the 10 day is above the 21 MA , this script will show a light green color on the screen
Disguised Candles by The School of Dalal StreetDisguised Candles corrects one of the subtle visual distortions present in normal candlestick charts — the mismatch between the close of one candle and the open of the next.
On many instruments (especially at day/session breaks), the next candle’s open often jumps due to price gaps or data feed behavior. This can make reading the flow of price action harder than necessary.
Disguised Candles fixes this by plotting synthetic candles where the open of each candle is forced to match the close of the previous one — creating a visually continuous flow of price.
Real candles are made fully transparent, so only the "corrected" candles are visible.
This allows traders to:
Visualize price flow as a smooth path
Better spot true directional shifts and trends
Avoid distractions caused by technical gaps that are not meaningful to their strategy
🚀 Pure visual clarity. No noise from false opens.
How it works:
The open of each synthetic candle = close of previous real candle
High, Low, Close remain unchanged
Colors are based on Close vs Corrected Open
Real chart candles are hidden under a transparent overlay
Use this as a clean canvas for trend analysis or as a foundation for building new visual systems.
Super Neema!🟧 Super Neema! — Multi-Timeframe EMA-9 Overlay
🔍 What is "Neema"?
The term "Neema" has recently emerged among traders at SMB Capital—a top proprietary trading firm—who colloquially use "Neema" as shorthand for the 9-period Exponential Moving Average (EMA). Due to its increasing popularity and reliability, the phrase caught on quickly as traders needed a quick, memorable name for such an essential tool.
📚 Why the 9-EMA?
Scalping around the 9-EMA is now one of the most widely used intraday trading techniques. Traders of various experience levels frequently rely on it because it effectively highlights short-term momentum shifts.
But there's a crucial nuance: traders across different assets or market periods don't always agree on which timeframe’s 9-EMA to follow. Depending on who's currently active in the market, the dominant "Neema" could be the 1-minute, 2-minute, 3-minute, or 5-minute 9-EMA. This variation arises naturally due to differences in trader populations, risk tolerance, style, and current market conditions.
👥 Social Convention & Normative Social Influence
Trading is fundamentally a social activity, and normative social influence plays a critical role in market behavior. Traders don’t operate in isolation; they follow patterns, respond to cues, and rely on shared conventions. The popularity of any given indicator—like the 9-EMA—is not just technical, but deeply social. Traders adapt to what's socially accepted, recognizable, and effective.
Over time, these conventions shift. What once was "the standard" timeframe can subtly evolve as dominant traders or institutions shift their preferred style or timeframe, creating "variants" of established trends. Understanding this dynamic is essential for market participants because recognizing where the majority of traders currently focus gives a critical edge.
📈 Why Does This Matter? (Market Evolution & Trader Adaptability)
Market trends aren't just technical—they're social constructs. As markets evolve, participants adapt their methods to fit new norms. Traders who recognize and adapt quickly to these evolving norms gain a decisive advantage.
By clearly visualizing multiple Neemas (9-EMAs across timeframes) simultaneously, you don't merely see EMA levels—you visually sense the current social convention of the market. This heightened awareness helps you stay adaptive and flexible, aligning your strategy dynamically with the broader community of traders.
🎨 Transparency Scheme (Visual Identification):
5-minute Neema: Most opaque, brightest line (slowest, most significant trend)
3-minute Neema: Slightly more transparent
2-minute Neema: Even more transparent
1-minute Neema: Most transparent, subtle background hint (fastest, quickest reaction)
This deliberate visual hierarchy makes it intuitive to identify immediately which timeframe is currently dominant, and therefore, which timeframe other traders are using most actively.
✅ Works on:
Any timeframe, any chart. Automatically plots the 1m–5m EMA-9 lines regardless of your current chart.
🧠 Key Insight:
Markets are driven by social trends and normative influence.
Identifying the currently dominant timeframe (the Neema most respected by traders at that moment) is a powerful, socially-informed edge.
Trader adaptability isn't just technical—it's social awareness in action.
Enjoy your trading, and welcome to Super Neema! ⚡
Magnificent 7 OscillatorThe Magnificent 7 Oscillator is a sophisticated momentum-based technical indicator designed to analyze the collective performance of the seven largest technology companies in the U.S. stock market (Apple, Microsoft, Alphabet, Amazon, NVIDIA, Tesla, and Meta). This indicator incorporates established momentum factor research and provides three distinct analytical modes: absolute momentum tracking, equal-weighted market comparison, and relative performance analysis. The tool integrates five different oscillator methodologies and includes advanced breadth analysis capabilities.
Theoretical Foundation
Momentum Factor Research
The indicator's foundation rests on seminal momentum research in financial markets. Jegadeesh and Titman (1993) demonstrated that stocks with strong price performance over 3-12 month periods tend to continue outperforming in subsequent periods¹. This momentum effect was later incorporated into formal factor models by Carhart (1997), who extended the Fama-French three-factor model to include a momentum factor (UMD - Up Minus Down)².
The momentum calculation methodology follows the academic standard:
Momentum(t) = / P(t-n) × 100
Where P(t) is the current price and n is the lookback period.
The focus on the "Magnificent 7" stocks reflects the increasing market concentration observed in recent years. Fama and French (2015) noted that a small number of large-cap stocks can drive significant market movements due to their substantial index weights³. The combined market capitalization of these seven companies often exceeds 25% of the total S&P 500, making their collective momentum a critical market indicator.
Indicator Architecture
Core Components
1. Data Collection and Processing
The indicator employs robust data collection with error handling for missing or invalid security data. Each stock's momentum is calculated independently using the specified lookback period (default: 14 periods).
2. Composite Oscillator Calculation
Following Fama-French factor construction methodology, the indicator offers two weighting schemes:
- Equal Weight: Each active stock receives identical weighting (1/n)
- Market Cap Weight: Reserved for future enhancement
3. Oscillator Transformation Functions
The indicator provides five distinct oscillator types, each with established technical analysis foundations:
a) Momentum Oscillator (Default)
- Pure rate-of-change calculation
- Centered around zero
- Direct implementation of Jegadeesh & Titman methodology
b) RSI (Relative Strength Index)
- Wilder's (1978) relative strength methodology
- Transformed to center around zero for consistency
- Scale: -50 to +50
c) Stochastic Oscillator
- George Lane's %K methodology
- Measures current position within recent range
- Transformed to center around zero
d) Williams %R
- Larry Williams' range-based oscillator
- Inverse stochastic calculation
- Adjusted for zero-centered display
e) CCI (Commodity Channel Index)
- Donald Lambert's mean reversion indicator
- Measures deviation from moving average
- Scaled for optimal visualization
Operational Modes
Mode 1: Magnificent 7 Analysis
Tracks the collective momentum of the seven constituent stocks. This mode is optimal for:
- Technology sector analysis
- Growth stock momentum assessment
- Large-cap performance tracking
Mode 2: S&P 500 Equal Weight Comparison
Analyzes momentum using an equal-weighted S&P 500 reference (typically RSP ETF). This mode provides:
- Broader market momentum context
- Size-neutral market analysis
- Comparison baseline for relative performance
Mode 3: Relative Performance Analysis
Calculates the momentum differential between Magnificent 7 and S&P 500 Equal Weight. This mode enables:
- Sector rotation analysis
- Style factor assessment (Growth vs. Value)
- Relative strength identification
Formula: Relative Performance = MAG7_Momentum - SP500EW_Momentum
Signal Generation and Thresholds
Signal Classification
The indicator generates three signal states:
- Bullish: Oscillator > Upper Threshold (default: +2.0%)
- Bearish: Oscillator < Lower Threshold (default: -2.0%)
- Neutral: Oscillator between thresholds
Relative Performance Signals
In relative performance mode, specialized thresholds apply:
- Outperformance: Relative momentum > +1.0%
- Underperformance: Relative momentum < -1.0%
Alert System
Comprehensive alert conditions include:
- Threshold crossovers (bullish/bearish signals)
- Zero-line crosses (momentum direction changes)
- Relative performance shifts
- Breadth Analysis Component
The indicator incorporates market breadth analysis, calculating the percentage of constituent stocks with positive momentum. This feature provides insights into:
- Strong Breadth (>60%): Broad-based momentum
- Weak Breadth (<40%): Narrow momentum leadership
- Mixed Breadth (40-60%): Neutral momentum distribution
Visual Design and User Interface
Theme-Adaptive Display
The indicator automatically adjusts color schemes for dark and light chart themes, ensuring optimal visibility across different user preferences.
Professional Data Table
A comprehensive data table displays:
- Current oscillator value and percentage
- Active mode and oscillator type
- Signal status and strength
- Component breakdowns (in relative performance mode)
- Breadth percentage
- Active threshold levels
Custom Color Options
Users can override default colors with custom selections for:
- Neutral conditions (default: Material Blue)
- Bullish signals (default: Material Green)
- Bearish signals (default: Material Red)
Practical Applications
Portfolio Management
- Sector Allocation: Use relative performance mode to time technology sector exposure
- Risk Management: Monitor breadth deterioration as early warning signal
- Entry/Exit Timing: Utilize threshold crossovers for position sizing decisions
Market Analysis
- Trend Identification: Zero-line crosses indicate momentum regime changes
- Divergence Analysis: Compare MAG7 performance against broader market
- Volatility Assessment: Oscillator range and frequency provide volatility insights
Strategy Development
- Factor Timing: Implement growth factor timing strategies
- Momentum Strategies: Develop systematic momentum-based approaches
- Risk Parity: Use breadth metrics for risk-adjusted portfolio construction
Configuration Guidelines
Parameter Selection
- Momentum Period (5-100): Shorter periods (5-20) for tactical analysis, longer periods (50-100) for strategic assessment
- Smoothing Period (1-50): Higher values reduce noise but increase lag
- Thresholds: Adjust based on historical volatility and strategy requirements
Timeframe Considerations
- Daily Charts: Optimal for swing trading and medium-term analysis
- Weekly Charts: Suitable for long-term trend analysis
- Intraday Charts: Useful for short-term tactical decisions
Limitations and Considerations
Market Concentration Risk
The indicator's focus on seven stocks creates concentration risk. During periods of significant rotation away from large-cap technology stocks, the indicator may not represent broader market conditions.
Momentum Persistence
While momentum effects are well-documented, they are not permanent. Jegadeesh and Titman (1993) noted momentum reversal effects over longer time horizons (2-5 years).
Correlation Dynamics
During market stress, correlations among the constituent stocks may increase, reducing the diversification benefits and potentially amplifying signal intensity.
Performance Metrics and Backtesting
The indicator includes hidden plots for comprehensive backtesting:
- Individual stock momentum values
- Composite breadth percentage
- S&P 500 Equal Weight momentum
- Relative performance calculations
These metrics enable quantitative strategy development and historical performance analysis.
References
¹Jegadeesh, N., & Titman, S. (1993). Returns to buying winners and selling losers: Implications for stock market efficiency. Journal of Finance, 48(1), 65-91.
Carhart, M. M. (1997). On persistence in mutual fund performance. Journal of Finance, 52(1), 57-82.
Fama, E. F., & French, K. R. (2015). A five-factor asset pricing model. Journal of Financial Economics, 116(1), 1-22.
Wilder, J. W. (1978). New concepts in technical trading systems. Trend Research.
SL/TP SystemSometimes when you are entrying a position or placing a limit/stop order, you only see one or even none key price level to set as TP (Take Profit) or SL (Stop Loss) conditional orders. You can use this SL/TP System to choose proper price levels to set as TP or SL. This indicator is highly custom.
中文版本:
ATR-Stop-DominoDetailed description of the ATR-Stop-Domino indicator
Important notice:
The slopes of the stop loss lines should NOT be used as entry or exit signals. They are not reliable for that purpose. Always use other indicators like MACD, RSI, SMI, or others to confirm trade signals before making decisions.
Leverage:
If the indicator shows a stop loss of 2%, this means that without leverage you are willing to risk 2% of your capital on that trade. However, if you trade with 3x leverage, your potential loss is multiplied by 3, which means 6% of your total capital.
Remember your total capital represents 100%, so be very careful with leverage to avoid risking more than you can afford to lose.
Dear trader,
First, I do not promise profits or success in your trades, as that depends on many factors—mainly your chart interpretation and risk management. The ATR-Stop-Domino indicator was created to help traders operate with more safety and better loss control, especially those who want to trade small capital while still using stop loss.
Why use stop loss?
Trading without stop loss is very risky since losses can be large or even wipe out your capital. The ATR-Stop-Domino uses the ATR (Average True Range) to calculate dynamic stop loss levels based on asset volatility, providing an intelligent reference to limit losses.
Important settings:
Default ATR multiplier: 1.5 (balanced protection and room)
For tighter stops, use 1.0
For more aggressive assets, use 2.0 or higher
Default ATR period: 14
What you will see on the chart:
Green line: stop loss for long positions
Red line: stop loss for short positions
Blue line: “safe line” in the middle for better visualization
Labels showing stop loss percentage and optionally the exact price
How to interpret the percentages:
They show how much you are willing to lose if the price hits the stop loss, helping you visualize your risk.
Recommendations:
Avoid using on daily, weekly, or monthly charts (stop loss may be too far)
Ideal for 4h, 3h, 2h or lower timeframes
Consider leverage when calculating real risk
Adjust ATR Period and ATR Multiplier according to asset and strategy
Remember:
This indicator is a support tool and does not guarantee profits. Always confirm signals with other indicators and manage your risk.
HTF Candle Display (Evolution FX)HTF Candle Display (Evolution FX)
WHAT IT DOES
This tool overlays a **higher timeframe candle** (like Daily or Weekly) directly on your current lower timeframe chart (like 5m, 15m, 1h). It visually anchors current price action within its broader market context, ideal for traders using multi-timeframe confluence, liquidity mapping, or High-Timeframe-Based decision-making.
KEY FEATURES
Timeframe selection : Choose any higher timeframe (HTF) to display (e.g., D, W, M).
Dynamic candle placement : Position the HTF candle overlay away from price action using distance presets: `Close`, `Near`, `Far`, `Very Far`.
Adjustable thickness : Choose candle body width via `Thin`, `Thick`, or `Thicker` styles.
Fully customisable visuals : Set custom colours for bullish and bearish candles, borders, wicks, and labels.
Highlight box (optional) : Display a semi-transparent box aligned to the HTF candle's real time span.
Label with live countdown : Optionally show a floating label with timeframe info and time remaining in the HTF candle.
Previous candle display : Toggle to show or hide the prior HTF candle for better comparison.
HOW TO USE IT
Select your HTF (e.g., Daily) from the input dropdown.
Use "Distance From Price Action" to shift the visual away from the candles for a cleaner layout.
Adjust "Candle Width" to visually match your preferences.
Optionally toggle:
- "Show Previous Candle"
- "Show Label"
- "Highlight Current Day Price Action Box"
Customise your **colour scheme** to match your charting setup.
Recommended to use on charts like `15m`, `1h`, or `4h` for best visual clarity.
USE CASES
HTF liquidity hunting
Bias framing via daily/weekly structure
Institutional-style trading models
Scalping with macro trend context
SPX Weekly Expected Moves# SPX Weekly Expected Moves Indicator
A professional Pine Script indicator for TradingView that displays weekly expected move levels for SPX based on real options data, with integrated Fibonacci retracement analysis and intelligent alerting system.
## Overview
This indicator helps options and equity traders visualize weekly expected move ranges for the S&P 500 Index (SPX) by plotting historical and current week expected move boundaries derived from weekly options pricing. Unlike theoretical volatility calculations, this indicator uses actual market-based expected move data that you provide from options platforms.
## Key Features
### 📈 **Expected Move Visualization**
- **Historical Lines**: Display past weeks' expected moves with configurable history (10, 26, or 52 weeks)
- **Current Week Focus**: Highlighted current week with extended lines to present time
- **Friday Close Reference**: Orange baseline showing the previous Friday's close price
- **Timeframe Independent**: Works consistently across all chart timeframes (1m to 1D)
### 🎯 **Fibonacci Integration**
- **Five Fibonacci Levels**: 23.6%, 38.2%, 50%, 61.8%, 76.4% between Friday close and expected move boundaries
- **Color-Coded Levels**:
- Red: 23.6% & 76.4% (outer levels)
- Blue: 38.2% & 61.8% (golden ratio levels)
- Black: 50% (midpoint - most critical level)
- **Current Week Only**: Fibonacci levels shown only for active trading week to reduce clutter
### 📊 **Real-Time Information Table**
- **Current SPX Price**: Live market price
- **Expected Move**: ±EM value for current week
- **Previous Close**: Friday close price (baseline for calculations)
- **100% EM Levels**: Exact upper and lower boundary prices
- **Current Location**: Real-time position within the EM structure (e.g., "Above 38.2% Fib (upper zone)")
### 🚨 **Intelligent Alert System**
- **Zone-Aware Alerts**: Separate alerts for upper and lower zones
- **Key Level Breaches**: Alerts for 23.6% and 76.4% Fibonacci level crossings
- **Bar Close Based**: Alerts trigger on confirmed bar closes, not tick-by-tick
- **Customizable**: Enable/disable alerts through settings
## How It Works
### Data Input Method
The indicator uses a **manual data entry approach** where you input actual expected move values obtained from options platforms:
```pinescript
// Add entries using the options expiration Friday date
map.put(expected_moves, 20250613, 91.244) // Week ending June 13, 2025
map.put(expected_moves, 20250620, 95.150) // Week ending June 20, 2025
```
### Weekly Structure
- **Monday 9:30 AM ET**: Week begins
- **Friday 4:00 PM ET**: Week ends
- **Lines Extend**: From Monday open to Friday close (historical) or current time + 5 bars (current week)
- **Timezone Handling**: Uses "America/New_York" for proper DST handling
### Calculation Logic
1. **Base Price**: Previous Friday's SPX close price
2. **Expected Move**: Market-derived ±EM value from weekly options
3. **Upper Boundary**: Friday Close + Expected Move
4. **Lower Boundary**: Friday Close - Expected Move
5. **Fibonacci Levels**: Proportional levels between Friday close and EM boundaries
## Setup Instructions
### 1. Data Collection
Obtain weekly expected move values from options platforms such as:
- **ThinkOrSwim**: Use thinkBack feature to look up weekly expected moves
- **Tastyworks**: Check weekly options expected move data
- **CBOE**: Reference SPX weekly options data
- **Manual Calculation**: (ATM Call Premium + ATM Put Premium) × 0.85
### 2. Data Entry
After each Friday close, update the indicator with the next week's expected move:
```pinescript
// Example: On Friday June 7, 2025, add data for week ending June 13
map.put(expected_moves, 20250613, 91.244) // Actual EM value from your platform
```
### 3. Configuration
Customize the indicator through the settings panel:
#### Visual Settings
- **Show Current Week EM**: Toggle current week display
- **Show Past Weeks**: Toggle historical weeks display
- **Max Weeks History**: Choose 10, 26, or 52 weeks of history
- **Show Fibonacci Levels**: Toggle Fibonacci retracement levels
- **Label Controls**: Customize which labels to display
#### Colors
- **Current Week EM**: Default yellow for active week
- **Past Weeks EM**: Default gray for historical weeks
- **Friday Close**: Default orange for baseline
- **Fibonacci Levels**: Customizable colors for each level type
#### Alerts
- **Enable EM Breach Alerts**: Master toggle for all alerts
- **Specific Alerts**: Four alert types for Fibonacci level breaches
## Trading Applications
### Options Trading
- **Straddle/Strangle Positioning**: Visualize breakeven levels for neutral strategies
- **Directional Plays**: Assess probability of reaching target levels
- **Earnings Plays**: Compare actual vs. expected move outcomes
### Equity Trading
- **Support/Resistance**: Use EM boundaries and Fibonacci levels as key levels
- **Breakout Trading**: Monitor for moves beyond expected ranges
- **Mean Reversion**: Look for reversals at extreme Fibonacci levels
### Risk Management
- **Position Sizing**: Gauge likely price ranges for the week
- **Stop Placement**: Use Fibonacci levels for logical stop locations
- **Profit Targets**: Set targets based on EM structure probabilities
## Technical Implementation
### Performance Features
- **Memory Managed**: Configurable history limits prevent memory issues
- **Timeframe Independent**: Uses timestamp-based calculations for consistency
- **Object Management**: Automatic cleanup of drawing objects prevents duplicates
- **Error Handling**: Robust bounds checking and NA value handling
### Pine Script Best Practices
- **v6 Compliance**: Uses latest Pine Script version features
- **User Defined Types**: Structured data management with WeeklyEM type
- **Efficient Drawing**: Smart line/label creation and deletion
- **Professional Standards**: Clean code organization and comprehensive documentation
## Customization Guide
### Adding New Weeks
```pinescript
// Add after market close each Friday
map.put(expected_moves, YYYYMMDD, EM_VALUE)
```
### Color Schemes
Customize colors for different trading styles:
- **Dark Theme**: Use bright colors for visibility
- **Light Theme**: Use contrasting dark colors
- **Minimalist**: Use single color with transparency
### Label Management
Control label density:
- **Show Current Week Labels Only**: Reduce clutter for active trading
- **Show All Labels**: Full information for analysis
- **Selective Display**: Choose specific label types
## Troubleshooting
### Common Issues
1. **No Lines Appearing**: Check that expected move data is entered for current/recent weeks
2. **Wrong Time Display**: Ensure "America/New_York" timezone is properly handled
3. **Duplicate Lines**: Restart indicator if drawing objects appear duplicated
4. **Missing Fibonacci Levels**: Verify "Show Fibonacci Levels" is enabled
### Data Validation
- **Expected Move Format**: Use positive numbers (e.g., 91.244, not ±91.244)
- **Date Format**: Use YYYYMMDD format (e.g., 20250613)
- **Reasonable Values**: Verify EM values are realistic (typically 50-200 for SPX)
## Version History
### Current Version
- **Pine Script v6**: Latest version compatibility
- **Fibonacci Integration**: Five-level retracement analysis
- **Zone-Aware Alerts**: Upper/lower zone differentiation
- **Dynamic Line Management**: Smart current week extension
- **Professional UI**: Comprehensive information table
### Future Enhancements
- **Multiple Symbols**: Extend beyond SPX to other indices
- **Automated Data**: Integration with options data APIs
- **Statistical Analysis**: Success rate tracking for EM predictions
- **Additional Levels**: Custom percentage levels beyond Fibonacci
## License & Usage
This indicator is designed for educational and trading purposes. Users are responsible for:
- **Data Accuracy**: Ensuring correct expected move values
- **Risk Management**: Proper position sizing and risk controls
- **Market Understanding**: Comprehending options-based expected move concepts
## Support
For questions, issues, or feature requests related to this indicator, please refer to the code comments and documentation within the Pine Script file.
---
**Disclaimer**: This indicator is for informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
VWAP ORB StrategyPlots the 15-min Opening Range for NY (9:30–9:45 AM ET) and London (3:00–3:15 AM ET), with breakout levels and range-based targets. Includes VWAP and EMA for trend confirmation.
CDP - Counter-Directional-Pivot🎯 CDP - Counter-Directional-Pivot
📊 Overview
The Counter-Directional-Pivot (CDP) indicator calculates five critical price levels based on the previous day's OHLC data, specifically designed for multi-timeframe analysis. Unlike standard pivot points, CDP levels are calculated using a unique formula that identifies potential reversal zones where price action often changes direction.
⚡ What Makes This Script Original
This implementation solves several technical challenges that existing pivot indicators face:
🔄 Multi-Timeframe Consistency: Values remain identical across all timeframes (1m, 5m, 1h, daily) - a common problem with many pivot implementations
🔒 Intraday Stability: Uses advanced value-locking technology to prevent the "stepping" effect that occurs when pivot lines shift during the trading session
💪 Robust Data Handling: Optimized for both liquid and illiquid stocks with enhanced data synchronization
🧮 CDP Calculation Formula
The indicator calculates five key levels using the previous day's High (H), Low (L), and Close (C):
CDP = (H + L + C) ÷ 3 (Central Decision Point)
AH = 2×CDP + H – 2×L (Anchor High - Strong Resistance)
NH = 2×CDP – L (Near High - Moderate Resistance)
AL = 2×CDP – 2×H + L (Anchor Low - Strong Support)
NL = 2×CDP – H (Near Low - Moderate Support)
✨ Key Features
🎨 Visual Elements
📈 Five Distinct Price Levels: Each with customizable colors and line styles
🏷️ Smart Label System: Shows exact price values for each level
📋 Optional Value Table: Displays all levels in an organized table format
🎯 Clean Chart Display: Minimal visual clutter while maximizing information
⚙️ Technical Advantages
🔐 Session-Locked Values: Prices are locked at market open, preventing intraday shifts
🔄 Multi-Timeframe Sync: Perfect consistency between daily and intraday charts
✅ Data Validation: Built-in checks ensure reliable calculations
🚀 Performance Optimized: Efficient code structure for fast loading
💼 Trading Applications
🔄 Reversal Zones: AH and AL often act as strong turning points
💥 Breakout Confirmation: Price movement beyond these levels signals trend continuation
🛡️ Risk Management: Use levels for stop-loss and take-profit placement
🏗️ Market Structure: Understand daily ranges and potential price targets
📚 How to Use
🚀 Basic Setup
Add the indicator to your chart (works on any timeframe)
Customize colors for easy identification of support/resistance zones
Enable the value table for quick reference of exact price levels
📈 Trading Strategy Examples
🟢 Long Bias: Look for bounces at NL or AL levels
🔴 Short Bias: Watch for rejections at NH or AH levels
💥 Breakout Trading: Enter positions when price decisively breaks through anchor levels
↔️ Range Trading: Use CDP as the central reference point for range-bound markets
🎯 Advanced Strategy Combinations
RSI Integration for Enhanced Signals: 📊
📉 Oversold Bounces: Combine RSI below 30 with price touching AL/NL levels for high-probability long entries
📈 Overbought Rejections: Look for RSI above 70 with price rejecting AH/NH levels for short opportunities
🔍 Divergence Confirmation: When RSI shows bullish divergence at support levels (AL/NL) or bearish divergence at resistance levels (AH/NH), it often signals stronger reversal potential
⚡ Momentum Confluence: RSI crossing 50 while price breaks through CDP can confirm trend direction changes
⚙️ Configuration Options
🎨 Line Customization: Adjust width, style (solid/dashed/dotted), and colors
👁️ Display Preferences: Toggle individual levels, labels, and value table
📍 Table Position: Place the value table anywhere on your chart
🔔 Alert System: Get notifications when price crosses key levels
🔧 Technical Implementation Details
🎯 Data Reliability
The script uses request.security() with lookahead settings to ensure historical accuracy while maintaining real-time functionality. The value-locking mechanism prevents the common issue where pivot levels shift during the trading day.
🔄 Multi-Timeframe Logic
⏰ Intraday Charts: Display previous day's calculated levels as stable horizontal lines
📅 Daily Charts: Show current day's levels based on yesterday's OHLC
🔍 Consistency Check: All timeframes reference the same source data
🤔 Why CDP vs Standard Pivots?
Counter-Directional Pivots often provide more accurate reversal points than traditional pivot calculations because they incorporate the relationship between high/low ranges and closing prices more effectively. The formula creates levels that better reflect market psychology and institutional trading behaviors.
💡 Best Practices
💧 Use on liquid markets for most reliable results
📊 RSI Combination: Add RSI indicator for overbought/oversold confirmation and divergence analysis
📊 Combine with volume analysis for confirmation
🔍 Consider multiple timeframe analysis (daily levels on hourly charts)
📝 Test thoroughly in paper trading before live implementation
💪 Example Market Applications
NASDAQ:AAPL AAPL - Tech stock breakouts through AH levels
$NYSE:SPY SPY - Index trading with CDP range analysis
NASDAQ:TSLA TSLA - Volatile stock reversals at AL/NL levels
⚠️ This indicator is designed for educational and analytical purposes. Always combine with proper risk management and additional technical analysis tools.
Price-Volume Divergence (YY+GY)📊 **Price-Volume Divergence Tool (False & Hidden Rally)**
by Tungaer_as
This open-source indicator detects two types of volume-price divergences:
🔴 **False Rally (YY)**
Occurs when price increases while volume decreases.
This signals weak buyer pressure and may precede a local top or distribution phase.
🟢 **Hidden Rally (GY / Capitulation)**
Occurs when price decreases while volume increases.
This suggests potential smart money accumulation and may precede a price reversal.
---
### 🔧 How it works:
The indicator compares:
- Price direction (up/down)
- Volume trend (rising/falling)
- RSI values (customizable)
- EMA filter (trend direction)
- PVT (Price Volume Trend) for volume momentum
- Optional candle-based confirmation over multiple bars
All filters and thresholds are fully customizable from the settings menu.
---
### ✅ Key Features:
- False Rally + Hidden Rally detection
- Optional confirmation candles (1–5)
- Toggleable filters: RSI, EMA, PVT
- Cumulative PVT-based filtering
- Background color zones for clarity
- Built entirely in Pine Script v5
---
🟢 Open-source | Developed with GPT-4 assistance
👤 By Tungaer_as
⚠️ **Disclaimer:**
This script is for educational purposes only and does not provide financial advice. Always do your own research before making trading decisions.
**Fiyat-Hacim Uyumsuzluk Göstergesi (Yalancı + Gizli Yükseliş)**
tasarım: Tungaer_as
Bu gösterge, fiyat-hacim ilişkisine dayalı iki güçlü dönüş formasyonunu tespit eder:
🔴 **Yalancı Yükseliş (YY)**
Fiyat artarken hacmin düşmesi → Alıcı zayıflığı veya yükseliş tuzağı sinyali olabilir
🟢 **Gizli Yükseliş (GY)**
Fiyat düşerken hacmin artması → Kurumsal birikim ya da dönüş hazırlığı göstergesi olabilir
---
✨ **Temel Özellikler**
- ✅ RSI ve EMA filtreleri
- ✅ PVT (Fiyat Hacim Eğilimi) ile hacim yönü teyidi
- ✅ Opsiyonel teyit mum filtresi (1–5 mum)
- ✅ Görsel uyarı için arka plan renklendirme
- ✅ Tamamen özelleştirilebilir eşik değerleri
- ✅ Tüm filtreler bağımsız olarak açılıp kapatılabilir
---
🚀 **Neden Farklı?**
TradingView üzerindeki tipik uyumsuzluk göstergelerinden farklı olarak, bu araç **hem yalancı hem gizli yükselişi birlikte** işler.
Ayrıca **PVT tabanlı hacim eğilimi filtresi** ve **kullanıcı kontrollü teyit sistemleri** ile daha sağlam sinyal üretir.
---
🟢 Açık kaynaklıdır | GPT-4 yardımıyla geliştirilmiştir
👤 Tungaer_as tarafından tasarlanmıştır
⚠️ **Yasal Uyarı**
Bu gösterge yalnızca eğitim ve bilgilendirme amaçlıdır.
Hiçbir yatırım tavsiyesi ya da garantili sinyal içermez.
Yatırım kararı almadan önce kendi analizlerinizi mutlaka yapınız.
Stoch + TSI [BullishBearVentures]Combines the Stochastic and the TSI indicator. When combined, they are invaluable at seeing price reversals on current trend.
20 MA with ATRThis indicator overlays a Moving Average (SMA or EMA) on the chart, along with dynamic upper and lower bands based on the Average True Range (ATR). It's designed to help you track long-term trend direction and volatility zones with clarity — ideal for monthly or higher timeframe analysis.
What It Does ?
Plots a Simple or Exponential Moving Average (MA) of a chosen price (default is Low).
Adds two dynamic bands:
Upper Band = MA + ATR
Lower Band = MA - ATR
Uses ATR (Average True Range) to represent market volatility and distance from the moving average.
Why Use This?
This indicator blends trend and volatility awareness into a single view:
Use the MA as a long-term trend guide.
Use the ATR bands to identify:
Potential buy zones near lower band during uptrends.
Caution zones near upper band where price may be extended.
On monthly charts, this helps long-term investors spot deep-value or extended price levels based on both trend and volatility.
Customizable Inputs
MA Type: SMA or EMA
MA Length: Default is 20 periods (great for monthly swing cycles)
ATR Length: Default is 14 (standard volatility window)
Input Source: Use Low, Close, or any price point for flexibility
Suggested Use (Monthly Charts)
Track when price pulls back toward the lower ATR band for potential accumulation zones.
Monitor breakouts above the upper ATR band as signs of momentum continuation.
Spot trend exhaustion when price hugs an ATR band for too long.
Ideal For:
Long-term investors and swing traders
Value buyers looking for low-risk re-entries in trends
Portfolio positioning during market extremes
Bullish Engulfing with MA ConditionsWith MA20 below MA200, with price action below MA20. this time put green labels. on 15 minutes, 30 minutes, 1 hour , 4 hours, and daily time frame only, a bullish engulfing pattern is formed. print yellow label BE15, BE30, BE1H, BE4H and BED when it is on the corresponding time frame.
Trading SessionsWhat's New:
Current Session Highlight:
The indicator now displays a visible frame or highlight for the active trading session. This real-time visual cue makes it easier to focus on the current market dynamics and quickly assess intraday price behavior within the ongoing session.
This enhancement is particularly useful for active traders who want to stay oriented during live trading hours, offering improved clarity and faster decision-making.