Ciclos
Fibonacci Set-upThe indicator plots Fibonacci retracements based on recent lows and highs.
Additionally it calculates position size, max leverage, max drawdown and pricelevels.
Breakouts & Pullbacks [Trendoscope®]🎲 Breakouts & Pullbacks - All-Time High Breakout Analyzer
Probability-Based Post-Breakout Behavior Statistics | Real-Time Pullback & Runup Tracker
A professional-grade Pine Script v6 indicator designed specifically for analyzing the historical and real-time behavior of price after strong All-Time High (ATH) breakouts. It automatically detects significant ATH breakouts (with configurable minimum gap), measures the depth and duration of pullbacks, the speed of recovery, and the subsequent run-up strength — then turns all this data into easy-to-read statistical probabilities and percentile ranks.
Perfect for swing traders, breakout traders, and anyone who wants objective, data-driven insight into questions like:
“How deep do pullbacks usually get after a strong ATH breakout?”
“How many bars does it typically take to recover the breakout level?”
“What is the median run-up after recovery?”
“Where is the current pullback or run-up relative to historical ones?”
🎲 Core Concept & Methodology
Indicator is more suitable for indices or index ETFs that generally trade in all-time highs however subjected to regular pullbacks, recovery and runups.
For every qualified ATH breakout, the script identifies 4 distinct phases:
Breakout Point – The exact bar where price closes above the previous ATH after at least Minimum Gap bars.
Pullback Phase – From breakout candle high → lowest low before price recovers back above the breakout level.
Recovery Phase – From the pullback low → the bar where price first trades back above the original breakout price.
Post-Recovery Run-up Phase – From the recovery point → current price (or highest high achieved so far).
Each completed cycle is stored permanently and used to build a growing statistical database unique to the loaded chart and timeframe.
🎲 Visual Elements
Yellow polyline triangle connecting Previous ATH / Pullback point(start), New ATH Breakout point (end), Recovery point (lowest pullback price), and extends to recent ATH price.
Small green label at the pullback low showing detailed tooltip on hover with all measured values
Clean, color-coded statistics table in the top-right corner (visible only on the last bar)
Powerful Statistics Table – The Heart of the Indicator
The table constantly compares the current situation against all past qualified breakouts and shows details about pullbacks, and runups that help us calculate the probability of next pullback, recovery or runup.
🎲 Settings & Inputs
Minimum Gap
The minimum number of bars that must pass between breaking a new ATH and the previous one.
Higher values = stricter filter → only the strongest, cleanest breakouts are counted.
Lower values = more data points (useful on lower timeframes or very trending instruments).
Recommendation:
Daily charts: 30–50
4H charts: 40–80
1H charts: 100–200
🎲 How to Use It in Practice
This indicator helps investors to understand when to be bullish, bearish or cautious and anticipate regular pullbacks, recovery of markets using quantitative methods.
The indicator does not generate buy/sell signals. However, helps traders set expectations and anticipate market movements based on past behavior.
YieldCurve SuiteYieldCurve Suite – Spot & Forward Yield Curve Visualizer
YieldCurve Suite is a comprehensive tool for visualizing and comparing two yield curves across multiple countries and dates. It provides a clear, data-driven view of interest-rate structures for macro, fixed-income, and cross-asset analysis.
Key Features
Displays Spot Curves and 1Y Forward Curves
Optional US Future Curve integration
Compare two regions or two different dates (current or historical)
Automatic calculation of:
Forward yields via cubic spline interpolation
2Y–10Y slopes for Spot and Forward curves
Use Cases
Track how yield curves evolve over time
Compare countries (e.g., US vs. EU)
Monitor market expectations through forward-curve dynamics
Analyze steepening/flattening trends in the term structure
YieldCurve Suite provides a clear and intuitive visual framework for exploring global interest-rate structures—ideal for traders and analysts seeking deeper macro insight.
The Operator Schedule (Daily/Repeating) - Time-Based AlertsKKRESULT PLAYBOOK SUCCES FORMULA
DAILY ROUTINE — THE OPERATOR SCHEDULE
• 5 AM wake-up. (5-6hrs)
• Pre-workout meal.
• Boxing or conditioning.
• Fuel + hydration.
• Morning silence.
• Chart prep.
• Trade 9:30 AM – 3 PM.
• Journal.
• Shutdown routine to reset. A consistent routine builds a consistent trader.
• Edit YouTube Video
• 12 PM Fuel + hydration
FRED Theme ETFs by Sector v2.1Analyzes and visualizes the relative performance of multiple Theme ETFs to highlight rotation patterns and shifts across sectors.
Provides a comparative view of Theme ETF performance, helping to identify rotation dynamics, relative strength trends and changes in market preferences.
Weekly price boxWeekend Trap / Custom Timebox Analyzer
This indicator allows traders to define a specific time window (e.g., the "Weekend Trap" period from Friday to Sunday, or a full weekly range) and automatically draws a box highlighting the price action during that session. It is designed to help visualize gaps, ranges, and trend direction over specific timeframes.
Key Features
Dynamic Range Detection: automatically draws a box connecting the Highest High and Lowest Low occurring between your start and end times.
Trend Visualization: The box changes color dynamically based on price performance:
Bullish (Blue): Close is higher than the Open of the defined period.
Bearish (Red): Close is lower than the Open of the defined period.
Smart Labeling: Displays a customizable label (default: "Box") along with the real-time Percentage Change of the period. The label is positioned intelligently outside the box to avoid cluttering the price action.
Flexible Timing:
Supports standard intraday sessions (e.g., Mon 09:00 to Mon 17:00).
Supports "wrap-around" sessions (e.g., Friday 23:00 to Sunday 17:00).
New: Supports full-week monitoring (e.g., Friday to Friday) by handling start times that are later than end times on the same day.
Fully Customizable:
Configure specific Bullish and Bearish colors (Border, Background, Text).
Adjust line styles (Solid, Dashed, Dotted) and widths.
Select days via easy-to-use dropdown menus.
How to Use
Time Settings:
Select your Start Day and Time (e.g., Friday 23:00).
Select your End Day and Time (e.g., Sunday 17:00).
Note: Times are based on the Chart/Exchange time.
Visual Settings:
Go to the settings menu to define your preferred colors for Bullish and Bearish scenarios.
Toggle the Label on/off and adjust text size.
Use Cases
Weekend Gaps: Monitor price action that occurs during off-hours or between market close and open.
Opening Range Breakouts: Define the first hour of trading to see the initial range.
Weekly Profiles: Set the start and end day to the same day (e.g., Friday to Friday) to visualize the entire week's range and net performance.
Built with Pine Script™ v6
Jet Stream V1Jet Stream catches the trends. Forgets the noise and allows you to lock into those big moves.
Wed, Nov 19 2025 V3 - Everything but alerts work.
XAUUSD Sniper Setup (Pre-Arrows + SL/TP)//@version=5
indicator("XAUUSD Sniper Setup (Pre-Arrows + SL/TP)", overlay=true)
// === Inputs ===
rangePeriod = input.int(20, "Lookback Bars for Zone", minval=5)
maxRangePercent = input.float(0.08, "Max Range % for Consolidation", step=0.01)
tpMultiplier = input.float(1.5, "TP Multiplier")
slMultiplier = input.float(1.0, "SL Multiplier")
// === Consolidation Detection ===
highestPrice = ta.highest(high, rangePeriod)
lowestPrice = ta.lowest(low, rangePeriod)
priceRange = highestPrice - lowestPrice
percentRange = (priceRange / close) * 100
isConsolidation = percentRange < maxRangePercent
// === Zones ===
demandZone = lowestPrice
supplyZone = highestPrice
// === Plot Consolidation Zone Background ===
bgcolor(isConsolidation ? color.new(color.gray, 85) : na)
// === Plot Potential Buy/Sell Levels ===
plot(isConsolidation ? demandZone : na, color=color.green, title="Potential Buy Level", linewidth=2)
plot(isConsolidation ? supplyZone : na, color=color.red, title="Potential Sell Level", linewidth=2)
// === Liquidity Sweep ===
liquidityTakenBelow = low < demandZone
liquidityTakenAbove = high > supplyZone
// === Engulfing Candles ===
bullishEngulfing = close > open and close < open and close > open
bearishEngulfing = close < open and close > open and close < open
// === Break of Structure ===
bosUp = high > ta.highest(high , 5)
bosDown = low < ta.lowest(low , 5)
// === Sniper Entry Conditions ===
buySignal = isConsolidation and liquidityTakenBelow and bullishEngulfing and bosUp
sellSignal = isConsolidation and liquidityTakenAbove and bearishEngulfing and bosDown
// === SL & TP Levels ===
slBuy = demandZone - (priceRange * slMultiplier)
tpBuy = close + (priceRange * tpMultiplier)
slSell = supplyZone + (priceRange * slMultiplier)
tpSell = close - (priceRange * tpMultiplier)
// === PRE-ARROWS (Show Before Breakout) ===
preBuyArrow = isConsolidation ? 1 : na
preSellArrow = isConsolidation ? -1 : na
plotarrow(preBuyArrow, colorup=color.new(color.green, 50), maxheight=20, minheight=20, title="Pre-Buy Arrow")
plotarrow(preSellArrow, colordown=color.new(color.red, 50), maxheight=20, minheight=20, title="Pre-Sell Arrow")
// === SNIPER CONFIRMATION ARROWS ===
buyArrow = buySignal ? 1 : na
sellArrow = sellSignal ? -1 : na
plotarrow(buyArrow, colorup=color.green, maxheight=60, minheight=60, title="Sniper BUY Arrow")
plotarrow(sellArrow, colordown=color.red, maxheight=60, minheight=60, title="Sniper SELL Arrow")
// === BUY SIGNAL ===
if buySignal
label.new(bar_index, low, "BUY SL/TP Added", style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, slBuy, bar_index + 5, slBuy, color=color.red, style=line.style_dotted)
line.new(bar_index, tpBuy, bar_index + 5, tpBuy, color=color.green, style=line.style_dotted)
label.new(bar_index, slBuy, "SL", color=color.red, style=label.style_label_down)
label.new(bar_index, tpBuy, "TP", color=color.green, style=label.style_label_up)
// === SELL SIGNAL ===
if sellSignal
label.new(bar_index, high, "SELL SL/TP Added", style=label.style_label_down, color=color.red, textcolor=color.white)
line.new(bar_index, slSell, bar_index + 5, slSell, color=color.red, style=line.style_dotted)
line.new(bar_index, tpSell, bar_index + 5, tpSell, color=color.green, style=line.style_dotted)
label.new(bar_index, slSell, "SL", color=color.red, style=label.style_label_up)
label.new(bar_index, tpSell, "TP", color=color.green, style=label.style_label_down)
// === Alerts ===
alertcondition(buySignal, title="Sniper BUY", message="Sniper BUY setup on XAUUSD")
alertcondition(sellSignal, title="Sniper SELL", message="Sniper SELL setup on XAUUSD")
OANDA:XAUUSD
FVG Pro: Custom Style & AlertsIntroduction The FVG Pro is an advanced Smart Money Concepts (SMC) tool designed to detect Fair Value Gaps (Imbalance) with precision. Unlike standard indicators that clutter your chart with invalid zones, this script features a "Smart Clean" logic that automatically removes zones once they are invalidated by a confirmed Candle Close.
Why Use This Indicator? Many FVG indicators fail to distinguish between a "wick test" and a true "breakout." This script solves that problem. It keeps the FVG box active if price only wicks through it, respecting the zone as a valid support/resistance until a candle body explicitly closes beyond the gap.
Key Features:
Body Break Logic: The FVG box is ONLY removed if a candle Closes beyond the zone. Wicks (tails) that pierce the zone will not delete the box, allowing you to catch precise rejections.
Auto-Extend & Clean: Boxes automatically extend to the right to follow price action and vanish instantly upon invalidation to keep your chart clean.
Smart Coloring:
Yellow Candle: Indicates a Bullish (Buy) Gap formation.
Purple Candle: Indicates a Bearish (Sell) Gap formation.
Customizable Visuals:
Includes a Middle Line (Consequent Encroachment - CE) with customizable styles (Solid/Dash/Dot).
Ghost-box transparency to ensure price action remains visible.
Advanced Alerts: Integrated alert() function triggers ONLY on bar close, ensuring zero false signals while you are away from the screen.
Settings Guide:
Mode Panjang Box: Choose "Auto Extend" to track live zones or "Fixed" for backtesting history.
Minimal Gap Size: Filter out small/insignificant gaps to reduce noise on lower timeframes.
Midline Style: Customize the 50% equilibrium line to fit your chart theme.
Disclaimer: This tool is for educational purposes and to assist in technical analysis. Always manage your risk properly.
Diodato 'All Stars Align' Signal (Trend Filtered)This indicator implements the Diodato "All Stars Align" strategy, a breadth-based system designed to identify high-probability reversal points by analyzing internal market strength rather than just price action. It works by monitoring Advancing versus Declining issues and volume across the exchange to detect moments of extreme market panic. When these internal breadth metrics hit specific oversold thresholds and align simultaneously with a standard Stochastic oscillator, the script signals a potential bottom.
I have modified this version to strictly enforce trend alignment. The signals are now filtered so that they will only appear if the 50 SMA is trading above the 200 SMA. This ensures that the indicator only highlights buying opportunities during established uptrends while completely filtering out signals during bearish market regimes.
You should use this tool to time entries during market pullbacks. A green cross indicates that one of the major breadth components has aligned with oversold Stochastics, while a purple cross indicates a stronger signal where both volume and issue-based breadth metrics have triggered together.
Thiru Time CyclesThiru Time Cycles - Advanced Time-Based Market Analysis System
WHAT IT DOES:
Automatically identifies and visualizes trading sessions, time cycles, and market structure elements. Helps traders identify optimal entry times, track session ranges, and monitor market structure through ICT/SMC methodologies.
KEY FEATURES:
1. SESSION KILLZONES
- Asia, London, NY AM, NY PM, Lunch, Power Hour sessions
- Customizable colors, transparency, and visual styles (Filled, Outline, TopLine, SideBars)
- Real-time high/low tracking within each session
2. 90-MINUTE TIME CYCLES
- Divides major sessions into three 90-minute cycles (A/M/D phases)
- London: LO A, LO M, LO D
- NY AM: AM A, AM M, AM D
- NY PM: PM A, PM M, PM D
3. 30-MINUTE SUB-CYCLES
- Granular 30-minute breakdowns (A1-A3, M1-M3, D1-D3)
- Precise entry timing within larger cycles
4. TOI (TIME OF INTEREST) TRACKER
- London: 2:45-3:15 AM, 3:45-4:15 AM
- NY AM: 9:45-10:15 AM, 10:45-11:15 AM
- NY PM: 1:45-2:15 PM, 2:45-3:15 PM
5. TRADE SETUP TIME WINDOWS
- London: 2:30-4:00 AM
- NY AM: 9:30-10:30 AM
- NY PM: 1:30-2:30 PM
6. TOI VERTICAL LINES
- 90-minute and 30-minute cycle boundary markers
- Customizable opacity, style, and height
7. PIVOT ANALYSIS
- High/Low pivot identification per session
- Pivot midpoints
- Customizable labels with price display
- Extension options (until mitigated/past mitigation)
8. SESSION RANGE TABLE
- Real-time range display
- Average range calculation
- Color-coded active sessions
9. OPENING PRICE LINES
- Daily Chart Open, hourly opens
- Customizable session opens
10. DAY/WEEK/MONTH FILTERS
- Filter by day of week
- Current week/last 4 weeks options
- D/W/M high/low tracking
HOW TO USE:
BASIC SETUP:
1. Add indicator to chart
2. Set timezone (default: America/New_York)
3. Enable desired sessions in Killzones section
4. Customize colors and styles
FOR SESSION TRADING:
- Enable session killzones you trade
- Monitor session boxes for high/low ranges
- Use range table for current/average ranges
FOR TIME CYCLE ANALYSIS:
- Enable 90-min or 30-min cycles
- Watch price action at cycle boundaries
- Use vertical lines for cycle transitions
FOR PIVOT TRADING:
- Enable "Show Pivots" in Killzone Pivots
- Use pivots as support/resistance
- Set alerts for pivot breaks
FOR TOI TRADING:
- Enable TOI Tracker
- Monitor specific time windows
- Use for precise entry timing
UNIQUE FEATURES:
✓ Custom visual system (Filled/Outline/TopLine/SideBars box styles)
✓ Proprietary color processing functions
✓ Dual cycle system (90-min + 30-min simultaneous tracking)
✓ Integrated TOI system with vertical line visualization
✓ Smart label positioning with collision detection
✓ Comprehensive range analysis with averaging
✓ Flexible session management with custom time windows
TECHNICAL:
- Pine Script v6
- 500 max labels/lines/boxes
- Full DST-aware timezone support
- Multi-timeframe compatible
- Customizable timeframe limits
BEST PRACTICES:
- Start with session killzones, add cycles gradually
- Set appropriate timeframe limits to avoid clutter
- Use consistent colors for clarity
- Enable only sessions you actively trade
- Monitor range table for session volatility
- Set pivot break alerts for your trading sessions
Compatible with all instruments (forex, stocks, futures, crypto). Works on all timeframes, optimized for intraday trading.
For support: @thirudinesh on TradingView
© 2025 thirudinesh - Advanced Time Cycle Analysis System
Proprietary Algorithm - All Rights Reserved
Universal Sentiment Score — V3 Bottom DetectorThe Universal Sentiment Score (USS) condenses a wide range of market conditions into one easy-to-read oscillator. Instead of relying on a single signal, USS blends multiple forms of trend strength, momentum behavior, volatility shifts, and reversal conditions to generate a unified sentiment metric.
Relative Performance Areas [LuxAlgo]The Relative Performance Areas tool enables traders to analyze the relative performance of any asset against a user-selected benchmark directly on the chart, session by session.
The tool features three display modes for rescaled benchmark prices, as well as a statistics panel providing relevant information about overperforming and underperforming streaks.
🔶 USAGE
Usage is straightforward. Each session is highlighted with an area displaying the asset price range. By default, a green background is displayed when the asset outperforms the benchmark for the session. A red background is displayed if the asset underperforms the benchmark.
The benchmark is displayed as a green or red line. An extended price area is displayed when the benchmark exceeds the asset price and is set to SPX by default, but traders can choose any ticker from the settings panel.
Using benchmarks to compare performance is a common practice in trading and investing. Using indexes such as the S&P 500 (SPX) or the NASDAQ 100 (NDX) to measure our portfolio's performance provides a clear indication of whether our returns are above or below the broad market.
As the previous chart shows, if we have a long position in the NASDAQ 100 and buy an ETF like QQQ, we can clearly see how this position performs against BTSUSD and GOLD in each session.
Over the last 15 sessions, the NASDAQ 100 outperformed the BTSUSD in eight sessions and the GOLD in six sessions. Conversely, it underperformed the BTCUSD in seven sessions and the GOLD in nine sessions.
🔹 Display Mode
The display mode options in the Settings panel determine how benchmark performance is calculated. There are three display modes for the benchmark:
Net Returns: Uses the raw net returns of the benchmark from the start of the session.
Rescaled Returns: Uses the benchmark net returns multiplied by the ratio of the benchmark net returns standard deviation to the asset net returns standard deviation.
Standardized Returns: Uses the z-score of the benchmark returns multiplied by the standard deviation of the asset returns.
Comparing net returns between an asset and a benchmark provides traders with a broad view of relative performance and is straightforward.
When traders want a better comparison, they can use rescaled returns. This option scales the benchmark performance using the asset's volatility, providing a fairer comparison.
Standardized returns are the most sophisticated approach. They calculate the z-score of the benchmark returns to determine how many standard deviations they are from the mean. Then, they scale that number using the asset volatility, which is measured by the asset returns standard deviation.
As the chart above shows, different display modes produce different results. All of these methods are useful for making comparisons and accounting for different factors.
🔹 Dashboard
The statistics dashboard is a great addition that allows traders to gain a deep understanding of the relationship between assets and benchmarks.
First, we have raw data on overperforming and underperforming sessions. This shows how many sessions the asset performance at the end of the session was above or below the benchmark.
Next, we have the streaks statistics. We define a streak as two or more consecutive sessions where the asset overperformed or underperformed the benchmark.
Here, we have the number of winning and losing streaks (winning means overperforming and losing means underperforming), the median duration of each streak in sessions, the mode (the number of sessions that occurs most frequently), and the percentages of streaks with durations equal to or greater than three, four, five, and six sessions.
As the image shows, these statistics are useful for traders to better understand the relative behavior of different assets.
🔶 SETTINGS
Benchmark: Benchmark for comparison
Display Mode: Choose how to display the benchmark; Net Returns: Uses the raw net returns of the benchmark. Rescaled Returns: Uses the benchmark net returns multiplied by the ratio of the benchmark and asset standard deviations. Standardized Returns: Uses the benchmark z-score multiplied by the asset standard deviation.
🔹 Dashboard
Dashboard: Enable or disable the dashboard.
Position: Select the location of the dashboard.
Size: Select the dashboard size.
🔹 Style
Overperforming: Enable or disable displaying overperforming sessions and choose a color.
Underperforming: Enable or disable displaying underperforming sessions and choose a color.
Benchmark: Enable or disable displaying the benchmark and choose colors.
Aspects of Mars-Saturn by BTThis script displays the most commonly used aspects between Mars and Saturn. It uses a +/-2 degree orb (deviation), meaning the script shows the dates when the calculated distance between Mars and Saturn is within a 2 degree deviation of a major aspect.
Most of the astrological applications uses 3 degree or more for orb however this will cause chart overload. So please keep in mind to consider a couple of dates before or after if you want to use bigger orb.
The script includes an option to plot only the start date of sequential aspect events to reduce visual clutter and improve chart clarity. It currently covers dates from 2020 to 2030, but more will be added soon.
Currently available aspects:
Conjunction - 0 Degree
Opposition - 180 Degree
Trine - 120 Degree
Square - 90 Degree
Sextile - 60 Degree
Inconjunction - 150 Degree
Semi-Sextile - 30 Degree
Semi-Square - 45 Degree
Sesquiquadrate - 135 Degree
RED-E Index and ETF ConverterThis indicator provides real-time conversion between major US stock market indices and their corresponding ETFs, displaying current prices, calculated conversions, and market sentiment in an easy-to-read dashboard format.
WHAT IT DOES:
Tracks three major index-ETF pairs and shows bi-directional conversions:
SPX (S&P 500 Index) ↔ SPY (SPDR S&P 500 ETF)
NDX (NASDAQ-100 Index) ↔ QQQ (Invesco QQQ ETF)
RUT (Russell 2000 Index) ↔ IWM (iShares Russell 2000 ETF)
HOW IT WORKS:
The script uses request.security() to fetch real-time price data from each instrument and applies standard conversion ratios:
SPX to SPY: ~1:10 ratio
NDX to QQQ: ~1:40 ratio
RUT to IWM: ~1:10 ratio
Market sentiment is determined by comparing current price to previous bar, displaying BULLISH (green ▲), BEARISH (red ▼), or NEUTRAL (gray ●).
KEY FEATURES:
Real-time price tracking for all six instruments
Bi-directional conversion calculations
Visual sentiment indicators based on price movement
Customizable dashboard position
Adjustable font sizes
Toggle individual index pairs on/off
Color-coded sections
Clean professional table layout
USAGE:
Add the indicator to any chart. The dashboard will display in the bottom left corner by default. Use the settings to:
Change dashboard position
Adjust font size
Show/hide specific index-ETF pairs
Customize sentiment colors
This tool is useful for traders who:
Trade both indices and ETFs
Want to quickly compare index vs ETF pricing
Monitor multiple market segments simultaneously
Need at-a-glance sentiment across major indices
Note: Conversion ratios are approximate and based on standard tracking ratios. Actual ETF prices may vary slightly due to tracking error, fees, and market conditions.
Disclaimer: This indicator is for educational and informational purposes only. It does not constitute financial advice. The creator is not a financial advisor, and users should consult with a licensed financial professional before making any investment decisions. Use at your own risk.
Dynamic Elliott Wave By Lucky-CBTIndicator overview
Dynamic Elliott Wave v5 detects and visually labels single-degree Elliott impulse (1–5) and corrective (A–B–C) structures using robust pivot detection and optional Fibonacci validation. It’s designed as a mechanical, configurable helper to identify clear wave structures across timeframes and instruments — useful as a structural guide for analysis and strategy development.
Key features
Mechanical pivot detection (zigzag-style) evaluated on confirmed bars for stability
Automatic detection and persistent drawing of 1–5 impulse and A–B–C corrective structures
Optional Fibonacci-based validation for Wave 2 / Wave 4 retracements with tolerance control
Configurable pivot lookback and minimum move threshold to reduce noise on different timeframes
Visuals: colored lines and labels for impulses (1–5) and corrections (A–B–C)
Lightweight memory use with bounded pivot storage and safe redraw logic
How it works (short)
Detects pivot highs/lows using ta.highestbars / ta.lowestbars over a user-set lookback
Builds candidate 5-pivot sequences and validates alternation, magnitude, and optional Fibonacci relationships
When a valid impulse is found the script stores and draws the 1–5 chain; if a following 3-pivot corrective is found it stores and draws A–B–C
Visuals persist until a new validated structure replaces them so charts remain readable
Inputs and recommended settings
Pivot lookback (bars): controls sensitivity. Lower for faster markets / lower TF (e.g., 3–7), higher for slow markets / higher TF (e.g., 10–30).
Min move size (%): filters tiny swings. Start ~0.5% for volatile symbols, 0.1–0.3% for large-cap equities on daily.
Use Fibonacci checks: on/off. Turn on to enforce common retrace rules; turn off if you prefer looser mechanical counts.
Fibonacci tolerance: widen for noisy markets, tighten for strict validation.
Show lines / Show labels: toggle visuals to reduce clutter.
Practical notes and limitations
Elliott Wave counting remains partly subjective; this script provides a consistent mechanical count, but it will not match every manual analysis. Use as a guide, not a final trading signal.
The script detects single-degree structures only. For nested multi-degree analysis, consider adding recursive detection layers or complementing with manual degree assignment.
Requires sufficient chart history (max_bars_back) to retain older pivots when reviewing long-term structures. Increase max_bars_back if needed.
Test and tune pivot_len and min_move_pct for your instrument and timeframe before relying on counts in live trading.
Change log (high level)
v1.0 — Initial release: mechanical pivot detection, impulse 1–5 and corrective A–B–C detection, persistent visuals, Fibonacci validation.
Future: planned options for ATR-based pivots, multi-degree nesting, manual clear/aging controls, and degree coloring.
Disclaimer
This indicator is provided for educational and analytical purposes only. It does not provide financial, investment, or trading advice. Always combine structural analysis with risk management and validate any strategy on historical data before trading live.
If you want, I can produce: (1) a shorter “one-sentence” blurb for the publish header, (2) example default settings for specific markets (BTC, Nifty, Forex), or (3) release notes formatted for TradingView — tell me which.
Trading Sessions [QuantAlgo]🟢 Overview
The Trading Sessions indicator tracks and displays the four major global trading sessions: Sydney, Tokyo, London, and New York. It provides session-based background highlighting, real-time price change tracking from session open, and a data table with session status. The script works across all markets (forex, equities, commodities, crypto) and helps traders identify when specific geographic markets are active, which directly correlates with changes in liquidity and volatility patterns. Default session times are set to major financial center hours in UTC but are fully adjustable to match your trading methodology.
🟢 Key Features
→ Session Background Color Coding
Each trading session gets a distinct background color on your chart:
1. Sydney Session - Default orange, 22:00-07:00 UTC
2. Tokyo Session - Default red, 00:00-09:00 UTC
3. London Session - Default green, 08:00-16:00 UTC
4. New York Session - Default blue, 13:00-22:00 UTC
When sessions overlap, the color priority is New York > London > Tokyo > Sydney. This means if London and New York are both active, the background shows New York's color. The priority matches typical liquidity and volatility patterns where later sessions generally show higher volume.
→ Color Customization
All session colors are configurable in the Color Settings panel:
1. Click any session color input to open the color picker
2. Select your preferred color for that session
3. Use the "Background Transparency" slider (0-100) to adjust opacity. Lower values = more visible, higher values = more subtle
4. Enable "Color Price Bars" to color candlesticks themselves according to the active session instead of just the background
The Color column in the info table shows a block (█) in each session's assigned color, matching what you see on the chart background.
→ Information Table Breakdown
→ Timeframe Warning
If you're viewing a timeframe of 12 hours or higher, a red warning label appears center-screen. Session boundaries don't render accurately on high timeframes because the time() function in Pine Script can't detect intra-bar session changes when each bar spans multiple sessions. The warning tells you to switch to sub-12H timeframes (e.g., 4H, 1H, 30m, 15m, etc.) for proper session detection. You can disable this warning in Color Settings if needed, but session highlighting can be unreliable on 12H+ charts regardless.
→ Time Range Configuration
Every session's time range is editable in Session Settings:
1. Click the time input field next to each session
2. Enter time as HHMM-HHMM in 24-hour format
3. All times are interpreted as UTC
4. Modify these to account for daylight saving shifts or to define custom session periods based on your backtested optimal trading windows
For example, if your strategy performs best during London/NY overlap specifically, you could set London to 08:00-17:00 and New York to 13:00-22:00 to ensure you see the full overlap highlighted.
→ Weekdays Filter
The "Weekdays Only (Mon-Fri)" toggle controls whether sessions display on weekends:
Enabled: Sessions only show Monday-Friday and hide on Saturday-Sunday. Use this for markets that close on weekends (most equities, forex).
Disabled: Sessions display 24/7 including weekends. Use this for markets that trade continuously (crypto).
→ Table Display Options
The info table has several configuration options in Table Settings:
Visibility: Toggle "Show Info Table" on/off to display or hide the entire table.
Position: Nine position options (Top/Middle/Bottom + Left/Center/Right) let you place the table wherever it doesn't block your price action or other indicators.
Text Size: Four size options (Tiny, Small, Normal, Large) to match your screen resolution and visual preferences.
→ Color Schemes:
Mono: Black background, gray header, white text
Light: White background, light gray header, black text
Blue: Dark blue background, medium blue header, white text
Custom: Manual selection of all five color components (table background, header background, header text, data text, borders)
→ Alert Functionality
The indicator includes ten alert conditions you can access via TradingView's alert system:
Session Opens:
1. Sydney Session Started
2. Tokyo Session Started
3. London Session Started
4. New York Session Started
5. Any Session Started
Session Closes:
6. Sydney Session Ended
7. Tokyo Session Ended
8. London Session Ended
9. New York Session Ended
10. Any Session Ended
These alerts fire when sessions transition based on your configured time ranges, letting you automate monitoring of session changes without watching the chart continuously. Useful for strategies that trade specific session opens/closes or need to adjust position sizing when volatility regime shifts between sessions.
FLD 3DFLD 3D - Future Lines of Demarcation Indicator
═══════════════════════════════════════════════════
THEORETICAL FOUNDATION
═══════════════════════════════════════════════════
This indicator implements Future Lines of Demarcation (FLD), a key concept from J.M. Hurst's cyclic analysis theory. FLDs are price-based lines displaced forward in time by half the wavelength of a dominant cycle, creating a predictive framework for price movement analysis.
The core principle: when price crosses an FLD line, it indicates a potential change in the current cycle phase. FLDs act as dynamic support/resistance levels that "anticipate" where price should be based on the dominant cycle's rhythm.
═══════════════════════════════════════════════════
CALCULATION METHODOLOGY
═══════════════════════════════════════════════════
The indicator calculates three FLD lines:
1. FLD HIGH: Takes the bar's high price and shifts it forward by offset bars
2. FLD LOW: Takes the bar's low price and shifts it forward by offset bars
3. FLD MEDIAN: Calculates a median price using the selected method, then shifts forward
The offset is calculated as: offset = Period / 2
This displacement represents the half-cycle concept: if a cycle has a period of 48 bars, the FLD will be displaced 24 bars into the future. This creates a "lead" indicator that shows where price should theoretically be based on the cycle's wave pattern.
PRICE METHODS AVAILABLE:
- HL2: (High + Low) / 2 - Simple midpoint
- HLC3: (High + Low + Close) / 3 - Weighted with close
- HLCC4: (High + Low + Close + Close) / 4 - Close has double weight
- OHLC4: (Open + High + Low + Close) / 4 - Full bar average
- VWAP-like: Volume-weighted high/low average
- True Range: Uses previous close for range calculation
═══════════════════════════════════════════════════
AUTO-PERIOD ADJUSTMENT FEATURE
═══════════════════════════════════════════════════
The indicator includes multi-timeframe adaptation logic. When "Auto Period" is enabled:
1. Detects current chart timeframe (minutes, hours, days, weeks)
2. Compares it to the reference timeframe setting
3. Calculates adjustment ratio: Reference TF / Current TF
4. Applies ratio to base period: Adjusted Period = Base Period × Ratio
Example: If Base Period = 48, Reference TF = 60min, Current chart = 15min
→ Ratio = 60/15 = 4
→ Adjusted Period = 48 × 4 = 192 bars
This ensures the indicator tracks the same real-time cycle length across different chart timeframes, maintaining consistency in cycle analysis.
═══════════════════════════════════════════════════
VISUAL COMPONENTS
═══════════════════════════════════════════════════
- RED LINE: FLD High (upper boundary)
- BLUE LINE: FLD Low (lower boundary)
- ORANGE LINE: FLD Median (centerline)
- GRAY AREA: Fills between High and Low FLDs
- RIGHT LABEL: Shows FLD identifier and period used (asterisk indicates auto-adjustment)
All lines extend into the future by the calculated offset, creating a "projection zone" ahead of current price.
═══════════════════════════════════════════════════
ACKNOWLEDGMENTS
═══════════════════════════════════════════════════
This work is inspired by the Italian cyclic analysis community and dedicated educators. Due to TradingView's House Rules on promotional content, I cannot mention specific names or groups, but my gratitude goes to those who know they contributed to this development through their teaching and guidance. Thank Emiliano!
Forex Session TrackerForex Session Tracker - Professional Trading Session Indicator
The Forex Session Tracker is a comprehensive and visually intuitive indicator designed specifically for forex traders who need precise tracking of major global trading sessions. This powerful tool helps traders identify active market sessions, monitor session-specific price ranges, and capitalize on volatility patterns unique to each trading period.
Understanding when major financial centers are active is crucial for forex trading success. This indicator provides real-time visualization of the Tokyo, London, New York, and Sydney trading sessions, allowing traders to align their strategies with peak liquidity periods and avoid low-volatility trading windows.
---
Key Features
📊 Four Major Global Trading Sessions
The indicator tracks all four primary forex trading sessions with precision:
- Tokyo Session (Asian Market) - Captures the Asian trading hours, ideal for JPY, AUD, and NZD pairs
- London Session (European Market) - Monitors the most liquid trading period, perfect for EUR, GBP pairs
- New York Session (American Market) - Tracks US market hours, essential for USD-based currency pairs
- Sydney Session (Pacific Market) - Identifies the opening of the trading week and AUD/NZD activity
Each session is fully customizable with individual color schemes, making it easy to distinguish between different market periods at a glance.
🎯 Session Range Visualization
For each active trading session, the indicator automatically:
- Draws rectangular boxes that highlight the session's time period
- Tracks and displays session HIGH and LOW price levels in real-time
- Creates horizontal lines at session extremes for easy reference
- Positions session labels at the center of each trading period
- Updates dynamically as new highs or lows are formed within the session
This visual approach helps traders quickly identify:
- Session breakout opportunities
- Support and resistance zones formed during specific sessions
- Range-bound vs. trending session behavior
- Key price levels that institutional traders are watching
📱 Live Information Dashboard
A sleek, professional information panel displays:
- Real-time session status - Instantly see which sessions are currently active
- Color-coded indicators - Green dots for active sessions, gray for closed sessions
- Timezone information - Confirms your current timezone settings
- Customizable positioning - Place the dashboard anywhere on your chart (Top Left, Top Right, Bottom Left, Bottom Right)
- Adjustable size - Choose from Tiny, Small, Normal, or Large text sizes for optimal visibility
The dashboard provides at-a-glance awareness of market conditions without cluttering your chart analysis.
⚙️ Extensive Customization Options
Every aspect of the indicator can be tailored to your trading preferences:
Session-Specific Controls:
- Enable/disable individual sessions
- Customize colors for each trading period
- Adjust session times to match your broker's server time
- Toggle background highlighting on/off
- Show/hide session high/low lines independently
General Settings:
- UTC Offset Control - Adjust timezone from UTC-12 to UTC+14
- Exchange Timezone Option - Automatically use your chart's exchange timezone
- Background Transparency - Fine-tune the opacity of session highlighting (0-100%)
- Session Labels - Show or hide session name labels
- Information Panel - Toggle the live status dashboard on/off
Style Settings:
- Turn session backgrounds ON/OFF directly from the Style tab
- Maintain clean charts while keeping all analytical features active
🔔 Built-in Alert System
Stay informed about session openings with customizable alerts:
- Tokyo Session Started
- London Session Started
- New York Session Started
- Sydney Session Started
Set up notifications to never miss important market opening periods, even when you're away from your charts.
---
How to Use This Indicator
For Day Traders:
1. Identify High-Volatility Periods - Focus your trading during London and New York session overlaps for maximum liquidity
2. Monitor Session Breakouts - Watch for price breaks above/below session highs and lows
3. Avoid Low-Volume Periods - Recognize when major sessions are closed to avoid false signals
For Swing Traders:
1. Mark Key Levels - Use session highs and lows as support/resistance zones
2. Track Multi-Session Patterns - Observe how price behaves across different trading sessions
3. Plan Entry/Exit Points - Time your trades around session openings for better execution
For Currency-Specific Traders:
1. JPY Pairs - Focus on Tokyo session movements
2. EUR/GBP Pairs - Monitor London session activity
3. USD Pairs - Track New York session volatility
4. AUD/NZD Pairs - Watch Sydney and Tokyo sessions
---
Technical Specifications
- Pine Script Version: 5
- Overlay Indicator: Yes (displays directly on price chart)
- Maximum Bars Back: 500
- Drawing Objects: Up to 500 lines, boxes, and labels
- Performance: Optimized for real-time data processing
- Compatibility: Works on all timeframes (recommended: 5m to 1H for session tracking)
---
Installation & Setup
1. Add to Chart - Click "Add to Chart" after copying the script to Pine Editor
2. Configure Timezone - Set your UTC offset or enable "Use Exchange Timezone"
3. Customize Colors - Choose your preferred color scheme for each session
4. Adjust Display - Enable/disable features based on your trading style
5. Set Alerts - Create alert notifications for session starts
---
Best Practices
✅ Combine with Price Action - Use session ranges alongside candlestick patterns for confirmation
✅ Watch Session Overlaps - The London-New York overlap (1300-1600 UTC) typically shows highest volatility
✅ Respect Session Highs/Lows - These levels often act as intraday support and resistance
✅ Adjust for Your Broker - Verify session times match your broker's server clock
✅ Use Multiple Timeframes - View sessions on both lower (15m) and higher (1H) timeframes for context
---
Why Choose Forex Session Tracker Pro?
✨ Professional Grade Tool - Built with clean, efficient code following TradingView best practices
✨ Beginner Friendly - Intuitive design with clear visual cues
✨ Highly Customizable - Adapt every feature to match your trading style
✨ Performance Optimized - Lightweight code that won't slow down your charts
✨ Actively Maintained - Regular updates and improvements
✨ No Repainting - All visual elements are fixed once the session completes
---
Support & Updates
This indicator is designed to provide reliable, accurate session tracking for forex traders of all experience levels. Whether you're a scalper looking for high-volatility windows or a position trader marking key institutional levels, the Forex Session Tracker Pro delivers the insights you need to make informed trading decisions.
Happy Trading! 📈
---
Disclaimer
This indicator is a tool for technical analysis and should be used as part of a comprehensive trading strategy. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose. Trading forex carries a high level of risk and may not be suitable for all investors.
Crude Oil Time + Fix Catalyst StrategyHybrid Workflow: Event-Driven Macro + Market DNA Micro
1. Macro Catalyst Layer (Your Overlays)
Event Mapping: Fed decisions, LBMA fixes, EIA releases, OPEC+ meetings.
Regime Filters: Risk-on/off, volatility regimes, macro bias (hawkish/dovish).
Volatility Scaling: ATR-based position sizing, adaptive overlays for London/NY sessions.
Governance: Max trades/day, cool-down logic, session boundaries.
👉 This layer answers when and why to engage.
2. Micro Execution Layer (Market DNA)
Order Flow Confirmation: Tape reading (Level II, time & sales, bid/ask).
Liquidity Zones: Identify support/resistance pools where buyers/sellers cluster.
Imbalance Detection: Aggressive buyers/sellers overwhelming the other side.
Precision Entry: Only trigger trades when order flow confirms macro catalyst bias.
Risk Discipline: Tight stops beyond liquidity zones, conviction-based scaling.
👉 This layer answers how and where to engage.
3. Unified Playbook
Step Macro Overlay (Your Edge) Market DNA (Jay’s Edge) Result
Event Trigger Fed/LBMA/OPEC+ catalyst flagged — Volatility window opens
Bias Filter Hawkish/dovish regime filter — Directional bias set
Sizing ATR volatility scaling — Position size calibrated
Execution — Tape confirms liquidity imbalance Precision entry
Risk Control Governance rules (cool-down, max trades) Tight stops beyond liquidity zones Disciplined exits
4. Gold & Silver Use Case
Gold (Fed Day):
Overlay flags volatility window → bias hawkish.
Market DNA shows sellers hitting bids at resistance.
Enter short with volatility-scaled size, stop just above liquidity zone.
Silver (LBMA Fix):
Overlay highlights fix window → bias neutral.
Market DNA shows buyers stepping in at support.
Enter long with adaptive size, HUD displays risk metrics.
5. HUD Integration
Macro Dashboard: Catalyst timeline, regime filter status, volatility bands.
Micro Dashboard: Live tape imbalance meter, liquidity zone map, conviction score.
Unified View: Macro tells you when to look, micro tells you when to pull the trigger.
⚡ This hybrid workflow gives you macro awareness + micro precision. Your overlays act as the radar, Jay’s Market DNA acts as the laser scope. Together, they create a disciplined, event-aware, volatility-scaled playbook for gold and silver.
Antonio — do you want me to draft this into a compile-safe Pine Script v6 template that embeds the macro overlay logic, while leaving hooks for Market DNA-style execution (order flow confirmation)? That way you’d have a production-ready skeleton to extend across TradingView, TradeStation, and NinjaTrader.
Antonio — do you want me to draft this into a compile-safe Pine Script v6 template that embeds the macro overlay logic, while leaving hooks for Market DNA-style execution (order flow confirmation)? That way you’d have a production-ready skeleton to extend across TradingView, TradeStation, and NinjaTrader.
Buyers in Control █ OVERVIEW
The "Buyers in Control" indicator identifies periods when buying pressure dominates the market by combining three key technical factors:
✓ Price Momentum - Price trading above exponential moving average
✓ Volume Confirmation - Current volume exceeding average (strong participation)
✓ RSI Strength - Momentum indicator confirming bullish bias
When all three conditions align, the indicator signals that buyers are in control of the market.
█ HOW IT WORKS
The indicator evaluates three independent conditions:
1. PRICE POSITION: Close > EMA(21)
→ Confirms price is in an uptrend
2. VOLUME SURGE: Volume > SMA(20) × 1.2
→ Validates that the move has genuine buying interest
3. MOMENTUM: RSI(14) > 50
→ Ensures bullish momentum is present
Only when ALL three conditions are true does the indicator confirm buyer control.
█ KEY FEATURES
• Real-time Dashboard - Shows status of each condition (✓/✗)
• Visual Alerts - Green background + labels when buyers take control
• EMA Reference Line - Visual trend indicator
• Customizable Parameters - Adjust sensitivity for any market/timeframe
• Built-in Alerts - Notification when control shifts to buyers
• Clean Code - Well-documented Pine Script v6
█ SETTINGS
Price Momentum:
- EMA Length (default: 21) - Shorter = faster signals, Longer = more conservative
Volume Confirmation:
- Volume Multiple (default: 1.2) - Higher = requires stronger volume
- Volume SMA Length (default: 20) - Lookback period for average volume
RSI Momentum:
- RSI Length (default: 14) - Standard RSI calculation period
- RSI Threshold (default: 50) - Minimum RSI for buyer control
Display:
- Toggle background, labels, EMA line, and customize colors
█ USE CASES
• Trend Confirmation - Validate bullish moves before entering long positions
• Filter Weak Rallies - Avoid low-volume pumps that often reverse
• Multi-Timeframe Analysis - Check buyer control across multiple charts
• Alert System - Get notified when market regime shifts to buyers
█ BEST PRACTICES
✓ Works best in trending markets (avoid choppy/ranging conditions)
✓ Combine with support/resistance for optimal entries
✓ Test different EMA lengths for your specific asset/timeframe
✓ Use alongside risk management rules (stop losses, position sizing)
✓ Consider the dashboard to see which conditions are missing
█ TIMEFRAMES
Suitable for all timeframes:
• Intraday: 1m-15m (use EMA 9 for faster signals)
• Swing: 1h-4h (default settings work well)
• Position: Daily-Weekly (use EMA 50 for conservative signals)
█ TECHNICAL NOTES
• Pine Script v6 - Latest version for optimal performance
• No repainting - All calculations based on closed bar data
• Lightweight - Minimal CPU usage
• Open Source - Full code available for review and modification
█ ALERT CONDITIONS
1. "Buyers Take Control" - Fires when all three conditions become true
2. "Buyers Lose Control" - Fires when any condition breaks
█ LIMITATIONS
⚠ Not a standalone trading system - use as a confluence tool
⚠ May generate false signals in sideways/choppy markets
⚠ Volume data unavailable on some forex pairs (use tick volume)
⚠ Lagging by nature - confirmatory indicator, not predictive
█ CREDITS
Indicator combines classic technical analysis principles:
• EMA for trend direction
• Volume analysis for validation
• RSI for momentum confirmation
No proprietary algorithms - transparent, time-tested methods.






















