US Government Shutdowns – Full History (with durations)이 지표는 1976년 이후 실제로 정부 기능이 중단된 모든 미국 정부 셧다운 기간을 시각화합니다.
S&P500 또는 지정한 심볼 차트 위에 각 셧다운 구간을 세로선과 음영 박스로 표시하고,
각 기간의 지속일수(일) 라벨을 함께 제공합니다.
데이터 출처: 미국 하원 공식 기록 (U.S. House History – Funding Gaps and Shutdowns in the Federal Government)
기능
• 모든 셧다운 구간 자동 표시
• 음영/세로선/라벨 개별 On-Off 가능
• 진행 중인 셧다운은 자동으로 ‘현재 시점까지’ 확장 표시
시장 변동성 분석, 정책 이벤트 리스크 평가, 장기 매크로 백테스트 등에 유용합니다.
This indicator visualizes all official US government shutdown periods since 1976 directly on any selected chart (default: S&P 500).
Each shutdown period is shown with vertical lines and shaded boxes, along with labels indicating the duration in days.
Data Source: U.S. House History – Funding Gaps and Shutdowns in the Federal Government
Features:
• Displays every historical shutdown automatically
• Optional shading, lines, and duration labels
• Ongoing shutdowns dynamically extend to the current date
Useful for analyzing volatility around fiscal policy events and long-term macro correlations.
Циклический анализ
Chart-prepFxxDanny Chart-Prep
A practical multi-tool script for clean and structured chart preparation.
✨ Features
Weekly Close Levels
Automatically plots the previous week’s close and the week before that, with clear styling to distinguish current and past levels.
Trading Sessions
Colored session boxes for the three key market sessions:
Asia (20:00–23:00 UTC-4)
Europe (02:00–05:00 UTC-4)
New York (08:00–11:00 UTC-4)
Each session box automatically adapts to the session’s high/low range and only keeps the last 5 visible to avoid clutter.
Previous Day’s High & Low
Plots the prior day’s high and low with lines that extend into the current session. Up to 10 days are kept on the chart.
Daily & Weekly Separators
Vertical lines to visually separate days (dotted) and weeks (solid, colored).
Anchored to a rolling price window so the Y-axis scaling stays clean and unaffected.
✅ Benefits
Stay focused with key price levels and session ranges marked automatically.
No need for manual drawing or constant adjustments.
Optimized performance – old objects are automatically removed.
No axis distortion from “infinite” lines or boxes.
kashinath_HTFThis can be very useful if you want to analyze two different timeframes without the need to switching between the different timeframes.
SMA Pro (Tick)Simple moving average based on 100 ticks, by default. Use for high volume markets like ES, NQ, and RTY.
mp.mood UTC Sessions boxes tg - picabloEN:
UTC Sessions — wick-bounded boxes. Draws compact transparent rectangles for Tokyo, London, New York, Sydney, and Frankfurt sessions in UTC. Each box spans the session time and auto-fits vertically to candle wicks (high/low) of the current timeframe. Labels appear in the top-left of each box. Colors, transparency, and sessions are configurable.
UK:
UTC Sessions — прямокутники за сесіями. Малює лаконічні прозорі квадрати для сесій Tokyo, London, New York, Sydney та Frankfurt у UTC. Кожен квадрат охоплює час сесії та автоматично підлаштовує вертикальні межі під тіні свічок (high/low) поточного таймфрейму. Підпис у верхньому лівому куті. Кольори, прозорість і набір сесій налаштовуються.
Chaos Theory Pro # Anyone who has paid for this script previously, please DM as per author instructions to continue your lifetime access
## The Edge: Smart Zone-Based Trading
This indicator's primary advantage lies in its zone-based approach that naturally encompasses critical areas of support and resistance. These zones capture key market structures including:
- High-volume price clusters
- Support-to-resistance (and resistance-to-support) transitions
- Other significant price action areas
By identifying these zones, the indicator addresses two of the most challenging problems in trading : optimal stop loss placement and take profit targeting.
---
## How to Use This Indicator
### Entry Rules: Limit Orders Only
Critical: All entries must be LIMIT orders. Never use market orders or stop orders.
Here's why:
- Why limit orders? The zones represent areas of strong support and resistance (an unintended but beneficial feature of the indicator's design). Price frequently pulls back to these zones before continuing, giving you optimal entry opportunities.
- Why not market orders? You'll miss the better prices at the zone boundaries.
- Why not stop orders? These zones are areas of intense market activity. Price often "spikes" through zone borders to capture liquidity before reversing in the intended direction. Stop orders would get triggered on these false moves.
Proper Entry Technique:
1. Wait for the candle/bar to close
2. Place your limit order at the zone border
3. Let price come to you
### Take Profit Strategy
Target the next zone (recommended) or multiple zones ahead based on your risk appetite. The simplest and most consistent approach is single-zone targeting.
---
## Your Responsibility: Confluence Analysis
The indicator tells you WHERE to enter, WHERE to place your stop loss, and WHERE to take profit. But you must determine WHEN to trade by identifying confluences.
### Minimum Requirement: 3 Confluences
Before placing any order, look for at least three confirming signals from:
- Divergences : RSI, MFI, or CVD candles
- Volume analysis : Volume Profile
- Order flow : Footprint charts
- Price action : Candlestick patterns
- Market theories : Wyckoff, Dow Theory, Elliott Wave
- Other technical tools of your choice
### You Have Time
The indicator provides alerts when price approaches a zone . During the pullback, you have time to conduct thorough confluence analysis. Only place your limit order after identifying your 3+ confluences.
---
## Alternative Approaches
If you backtest and find that market entries work better for your specific strategy (e.g., using moving average crossovers or other triggers), you're free to adapt the method. However, the limit order approach outlined above is designed to work consistently for everyone, regardless of whether they have an existing strategy.
---
## How the Indicator Works: The Mathematical Foundation
### Based on Chaos Theory - A Predictive, Not Reactive System
This indicator represents a fundamentally different approach to market analysis. Unlike traditional indicators that describe what price has done (using averages, volume, volatility), this system predicts where price will go using chaos theory mathematics.
Key Principle : Price behaves as a complex dynamical system that is highly sensitive to initial conditions - similar to weather patterns or planetary orbits. While we cannot predict when price will reach a destination, we can predict where it will likely travel within probability bounds.
### What Makes This Different
Traditional Indicators:
- React to historical data with lagging signals
- Use linear mathematics and statistical averages
- Assume markets are random or follow simple patterns
This Chaos Theory Approach:
- Proactively identifies future probability zones
- Uses non-linear complex systems mathematics
- Treats markets as chaotic but mathematically predictable
- Applies universal mathematical laws (no curve fitting needed)
### The Butterfly Effect in Trading
Small changes at critical junctures can cascade into major trend changes. The indicator identifies these critical probability zones - mathematical "attractors" toward which price is naturally drawn.
### Understanding the Zones
Orange Zones : Mathematical probability destinations where price is likely to expand
Activation Rule : Price must close outside any zone (full candle body, not just wicks) to activate the next probability destination
Primary Principle : Once activated, price travels to the next zone before closing back behind the originating zone border
Red Dots : Indicate areas where valid zone sets were available for trading. Empty spaces mean price closed past the highest/lowest zone or zones were invalidated.
### Probability-Based Performance
The indicator includes a statistics panel that measures real-time success rates - tracking how often price reaches predicted zones before invalidation. This transparent performance measurement allows you to verify probability calculations for your specific symbol and timeframe.
### Universal Application
Because this is based on fundamental mathematical principles (not optimized parameters), it works consistently across:
- All markets: Forex, stocks, crypto, commodities
- All timeframes: From scalping to position trading
- All conditions: No adjustments needed for different instruments
Important Understanding : Price is a fractal structure with multiple initial conditions forming and clashing simultaneously. External events and market manipulation can interfere with natural system progression. This is why we provide probabilities, not certainties.
---
Summary : This indicator gives you the framework—precise zones for entries, stops, and targets based on chaos theory mathematics. You provide the timing through confluence analysis. Together, this creates a complete, systematic approach to trading with probability on your side.
---
## Technical Features & Alert System
### Alert System Enhancement
Alert Type Selector:
* "Limit Alerts" (pending orders) vs "Normal Alerts" (market orders)
* 8 fully customizable alert message templates with placeholder support:
* Limit Long Entry
* Limit Short Entry
* Normal Long Entry
* Normal Short Entry
* Limit Long TP/Cancel
* Limit Short TP/Cancel
* Normal Long TP
* Normal Short TP
### Placeholder System
Dynamic placeholder replacement function supporting:
* {SYMBOL} - Trading pair/instrument
* {ENTRY} - Entry price level
* {SL} - Stop loss price level
* {TP} - Take profit price level
* {COMMENT} - Additional trade notes
* {TIMEFRAME} - Current chart timeframe
* {TIME} - Alert trigger time
* {ZONE} - Zone identifier
Users can customize alert messages while maintaining data accuracy across all automated trading platforms.
### Alert Trigger Points
* Entry alerts fire when zone breakout occurs (i == 0)
* TP alerts fire when take profit conditions are met
* Unique zone identifiers prevent duplicate alerts per zone set (format: Z L/S )
### Input Parameters
Converted hardcoded values to adjustable inputs for maximum flexibility:
* Lookback Period : 10-500 (default 50)
* Value Area Share : 0.1-0.9 (default 0.3)
* Show Volume Profile Stats : Toggle on/off
* Has Premium Subscription : Toggle on/off
* Vertical Display : Toggle on/off
### Code Compliance
* All line.new(), label.new(), and table.new() calls formatted on single lines per PineScript v6 requirements
* Proper variable declarations to prevent compilation errors
* Optimized for maximum performance and stability
Core Logic : All original zone calculation, validation, and visualization logic remains intact and unchanged.
TurtleTrader Intraday Extended by exp3rts🐢 TurtleTrader Intraday Extended by exp3rts
A modern intraday adaptation of the classic Turtle Trading strategy, optimized for short-term breakout trading with built-in risk management, pyramiding, and optional trend filters.
This strategy captures strong directional moves by entering breakouts from price channels, using ATR-based stop losses and controlled position scaling.
🔑 Key Features:
📈 Channel Breakout Entries: Buy/sell on breakout of highest highs or lowest lows
🛑 Dynamic ATR Stop Loss: Automatically calculated from market volatility
🔁 Pyramiding: Adds up to 4 positions as price moves in your favor
🔄 Directional Mode: Choose Long-only or Short-only mode
🧠 Skip After Win Option: Avoid overtrading by skipping the next entry after a profitable trade
📊 Optional EMA Display: Plot up to 3 EMAs for trend filtering or visual confirmation
📉 On-Chart ATR Label: Displays real-time ATR metrics (including ½N size used in classic Turtle rules)
⚙️ Strategy Inputs:
Entry/Exit channel length
ATR multiplier and period
Entry delay (bar offset)
Optional trade filter after profitable trades
Show/hide EMAs and ATR label
🧪 Best For:
Intraday breakout traders (works well on 5m–1h timeframes)
Traders who prefer mechanical rules and structured risk
Anyone testing volatility-based entries and exits
Inspired by the original Turtle Trading system — redesigned for modern markets with more intraday flexibility and visual enhancements.
Intraday Key OpensIntraday Key Opens plots the key session and cycle opening prices: 90-minute cycles opens, New York open, Asia open, and 9:30 US market open. Each line is labeled, color-coded, and can be toggled on/off independently. Designed for intraday traders to quickly identify important price levels and session pivots.
Needle XRThe Didi Index with Full Validation is a technical indicator developed for the TradingView platform, based on the concept of the Didi Index, created by Odir Aguiar (Didi). It uses the relationship between three exponential moving averages (EMAs) of different periods to identify trend reversal or continuation points, known as "needle points." To increase signal reliability, the indicator incorporates validations from four widely used technical indicators: MACD, TRIX, DMI/ADX, and Stochastic. Buy and sell signals are displayed only when all validation conditions are met, ensuring greater accuracy.
The indicator is plotted in a separate panel below the price chart, displaying the Didi Index lines (positive and negative), a central reference line, and clear buy (green triangles) and sell (red triangles) signals.
Doji Buy Signal (3-min, Body ≤ 6%)Doji Buy Signal (3-min, Body ≤ 6%) will give a Buy Signal when Doji Candle is formed
Doji Buy Signal (3-min, Body ≤ 6%)Doji Buy Signal (3-min, Body ≤ 6%) will give a buy signal when dojo candle is formed
3 Red Heikin Ashi with Higher Lows3 Red Heikin Ashi with Higher Lows. Will Give a Buy Signal when 3 Red Heikin Ashi with Higher Lows is formed
Advantage RSI PredictorThe Relative Strength Index (RSI) is a widely used momentum oscillator that measures the speed and change of price movements, typically on a scale from 0 to 100, to identify overbought (above 70) or oversold (below 30) conditions. However, its reliance on historical data limits its ability to predict future price movements. To overcome this, an advanced indicator—termed the Advanced RSI Predictor (ARP)—can be developed to provide predictive bands for RSI levels, enhancing its forecasting potential.The ARP leverages machine learning techniques, such as Long Short-Term Memory (LSTM) networks, combined with traditional RSI calculations to forecast future RSI values and establish confidence intervals or bands. These bands represent a range within which the RSI is likely to fluctuate over a specified period, offering traders a probabilistic perspective on momentum shifts. The indicator starts with the standard RSI computation, using a 14-period lookback as a foundation, but enriches this by incorporating additional inputs like moving averages, volatility measures (e.g., Bollinger Bands width), and trading volume. These features are processed through an LSTM model trained on historical price and RSI data to predict future RSI trajectories.The output includes upper and lower predictive bands, typically set at a 95% confidence level, surrounding a central forecasted RSI line. For example, if the current RSI is 45, the ARP might project a band from 40 to 50 over the next five days, indicating potential momentum stability or a range for overbought/oversold thresholds. The bands adapt dynamically to market conditions—narrowing during stable trends and widening during volatile periods—using real-time data updates. This adaptability allows traders to anticipate breakouts or reversals before they manifest on the price chart.Validation can be strengthened through backtesting against historical data, ensuring the ARP’s bands align with significant market turns. This indicator proves especially valuable in trending markets, where traditional RSI levels (e.g., 70 or 30) may falter, offering a sophisticated tool for informed trading or investment decisions.
Sessions [Trade Tribe HQ]Color-coded session ranges with ADR% labels to help you trade smarter, not harder.
This tool marks New York, London, Tokyo, and Sydney sessions, showing their ranges, highs/lows, VWAPs, and ADR%.
🔹 Key Features
Colored session boxes (NY, London, Tokyo, Sydney)
Session highs & lows, VWAP, and trendlines
Dashboard showing active sessions, volume, and %ADR
ADR% labels at session close
🔹 How It Helps
Spot session traps, moves, and reversals faster
Manage expectations using ADR% (no chasing over-extended moves)
Identify overlap zones (London → NY) for volatility spikes
Simplify cycle tracking across global markets
Market Sessions Marker—making it easy to see where the energy has been spent and where opportunity is building next.
Created with ❤️ by TraderChick – part of the Trade Tribe HQ community.
If you found this tool useful, check out my profile for more strategies, classes, and resources.
Dubas_timing_macrosChanged script for my presonal user. Changed script for my presonal user. Changed script for my presonal user. Changed script for my presonal user
Bollinger Breakout MarkersSubtle triangle markers that indicate when price extends out of the Bollinger bands to indicate overbought and oversold conditions
Foxbrady D/G CrossFoxbrady D/G Cross - Golden Cross & Death Cross Indicator**
A clean and simple indicator that identifies Golden Cross and Death Cross events using the classic 50-day and 200-day simple moving averages.
Features:
- Blue line: 50-day SMA (fast moving average)
- Red line: 200-day SMA (slow moving average)
- Green "GC" label appears at the exact crossover point when a Golden Cross occurs (bullish signal)
- Red "DC" label appears at the exact crossover point when a Death Cross occurs (bearish signal)
- Built-in alert conditions for both events
- Customizable MA periods to suit your trading style
How to Use:
The Golden Cross (50 MA crossing above 200 MA) is traditionally viewed as a bullish long-term signal, while the Death Cross (50 MA crossing below 200 MA) is considered a bearish indicator. This indicator makes it easy to spot these events historically and receive alerts when they occur in real-time.
Perfect for swing traders and long-term investors looking to identify major trend changes.
EBCLUB 📌 Indicator Summary – XAUUSD (Fano Chart)
This indicator is designed for traders who work with Smart Money (SMC/ICT) concepts and need a clear reading of key levels and market imbalances.
🔑 Key Features:
Daily and Weekly Levels:
Open Day: Opens the daily session to clearly define the range reference.
PDL/PDH (Previous Day Low/High): High-impact levels used as liquidity magnets.
Current Day High (H4 or Intraday): Tracks short-term structures.
Market Sessions (UTC):
Visualizes which session is active (London, New York, Tokyo, Sydney).
Helps identify when volatility tends to increase.
Liquidity Blocks and Institutional Zones:
Indicates areas of imbalance and accumulation (colored rectangles).
Facilitates the identification of possible entries or continuations.
Nth Candle by exp3rtsThis lightweight and versatile TradingView indicator highlights every Xth candle on your chart, making it easy to spot cyclical price behavior or track specific intervals in the market.
- Custom Interval – Choose how often candles should be highlighted (e.g., every 5th, 10th, or
20th bar).
- Color Coding – Highlighted candles are shaded green if bullish and red if bearish, giving you
quick visual insights into momentum at those intervals.
- Clean Overlay – The indicator draws directly on your main chart without clutter, so you can
combine it with your favorite setups and strategies.
Use this tool to:
1) Identify repeating patterns and cycles
2) Mark periodic reference candles
3) Support discretionary trading decisions with clear visual cues
Hour/Day/Month Optimizer [CHE] Hour/Day/Month Optimizer — Bucketed seasonality ranking for hours, weekdays, and months with additive or compounded returns, win rate, simple Sharpe proxy, and trade counts
Summary
This indicator profiles time-of-day, day-of-week, and month-of-year behavior by assigning every bar to a bucket and accumulating its return into that bucket. It reports per-bucket score (additive or compounded), win rate, a dispersion-aware return proxy, and trade counts, then ranks buckets and highlights the current one if it is best or worst. A compact on-chart table shows the top buckets or the full ranking; a last-bar label summarizes best and worst. Optional hour filtering and UTC shifting let you align buckets with your trading session rather than exchange time.
Motivation: Why this design?
Traders often see repetitive timing effects but struggle to separate genuine seasonality from noise. Static averages are easily distorted by sample size, compounding, or volatility spikes. The core idea here is simple, explicit bucket aggregation with user-controlled accumulation (sum or compound) and transparent quality metrics (win rate, a dispersion-aware proxy, and counts). The result is a practical, legible seasonality surface that can be used for scheduling and filtering rather than prediction.
What’s different vs. standard approaches?
Reference baseline: Simple heatmaps or average-return tables that ignore compounding, dispersion, or sample size.
Architecture differences:
Dual aggregation modes: additive sum of bar returns or compounded factor.
Per-bucket win rate and trade count to expose sample support.
A simple dispersion-aware return proxy to penalize unstable averages.
UTC offset and optional custom hour window.
Deterministic, closed-bar rendering via a lightweight on-chart table.
Practical effect: You see not only which buckets look strong but also whether the observation is supported by enough bars and whether stability is acceptable. The background tint and last-bar label give immediate context for the current bucket.
How it works (technical)
Each bar is assigned to a bucket based on the selected dimension (hour one to twenty-four, weekday one to seven, or month one to twelve) after applying the UTC shift. An optional hour filter can exclude bars outside a chosen window. For each bucket the script accumulates either the sum of simple returns or the compounded product of bar factors. It also counts bars and wins, where a win is any bar with a non-negative return. From these, it derives:
Score: additive total or compounded total minus the neutral baseline.
Win rate: wins as a percentage of bars in the bucket.
Dispersion-aware proxy (“Sharpe” column): a crude ratio that rises when average return improves and falls when variability increases.
Buckets are sorted by a user-selected key (score, win rate, dispersion proxy, or trade count). The current bar’s bucket is tinted if it matches the global best or worst. At the last bar, a table is drawn with headers, an optional info row, and either the top three or all rows, using zebra backgrounds and color-coding (lime for best, red for worst). Rendering is last-bar only; no higher-timeframe data is requested, and no future data is referenced.
Parameter Guide
UTC Offset (hours) — Shifts bucket assignment relative to exchange time. Default: zero. Tip: Align to your local or desk session.
Use Custom Hours — Enables a local session window. Default: off. Trade-off: Reduces noise outside your active hours but lowers sample size.
Start / End — Inclusive hour window one to twenty-four. Defaults: eight to seventeen. Tip: Widen if rankings look unstable.
Aggregation — “Additive” sums bar returns; “Multiplicative” compounds them. Default: Additive. Tip: Use compounded for long-horizon bias checks.
Dimension — Bucket by Hour, Day, or Month. Default: Hour. Tip: Start Hour for intraday planning; switch to Day or Month for scheduling.
Show — “Top Three” or “All”. Default: Top Three. Trade-off: Clarity vs. completeness.
Sort By — Score, Win Rate, Sharpe, or Trades. Default: Score. Tip: Use Trades to surface stable buckets; use Win Rate for skew awareness.
X / Y — Table anchor. Defaults: right / top. Tip: Move away from price clusters.
Text — Table text size. Default: normal.
Light Mode — Light palette for bright charts. Default: off.
Show Parameters Row — Info header with dimension and span. Default: on.
Highlight Current Bucket if Best/Worst — Background tint when current bucket matches extremes. Default: on.
Best/Worst Barcolor — Tint colors. Defaults: lime / red.
Mark Best/Worst on Last Bar — Summary label on the last bar. Default: on.
Reading & Interpretation
Score column: Higher suggests stronger cumulative behavior for the chosen aggregation. Compounded mode emphasizes persistence; additive mode treats all bars equally.
Win Rate: Stability signal; very high with very low trades is unreliable.
“Sharpe” column: A quick stability proxy; use it to down-rank buckets that look good on score but fluctuate heavily.
Trades: Sample size. Prefer buckets with adequate counts for your timeframe and asset.
Tinting: If the current bucket is globally best, expect a lime background; if worst, red. This is context, not a trade signal.
Practical Workflows & Combinations
Trend following: Use Hour or Day to avoid initiating trades during historically weak buckets; require structure confirmation such as higher highs and higher lows, plus a momentum or volatility filter.
Mean reversion: Prefer buckets with moderate scores but acceptable win rate and dispersion proxy; combine with deviation bands or volume normalization.
Exits/Stops: Tighten exits during historically weak buckets; relax slightly during strong ones, but keep absolute risk controls independent of the table.
Multi-asset/Multi-TF: Start with Hour on liquid intraday assets; for swing, use Day. On monthly seasonality, require larger lookbacks to avoid overfitting.
Behavior, Constraints & Performance
Repaint/confirmation: Calculations use completed bars only; table and label are drawn on the last bar and can update intrabar until close.
security()/HTF: None used; repaint risk limited to normal live-bar updates.
Resources: Arrays per dimension, light loops for metric building and sorting, `max_bars_back` two thousand, and capped label/table counts.
Known limits: Sensitive to sample size and regime shifts; ignores costs and slippage; bar-based wins can mislead on assets with frequent gaps; compounded mode can over-weight streaks.
Sensible Defaults & Quick Tuning
Start: Hour dimension, Additive, Top Three, Sort by Score, default session window off.
Too many flips: Switch to Sort by Trades or raise sample by widening hours or timeframe.
Too sluggish/over-smoothed: Switch to Additive (if on compounded) or shorten your chart timeframe while keeping the same dimension.
Overfit risk: Prefer “All” view to verify that top buckets are not isolated with tiny counts; use Day or Month only with long histories.
What this indicator is—and isn’t
This is a seasonality and scheduling layer that ranks time buckets using transparent arithmetic and simple stability checks. It is not a predictive model, not a complete trading system, and it does not manage risk. Use it to plan when to engage, then rely on structure, confirmation, and independent risk management for entries and exits.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino