Pi Cycle BTC Top + Pre-Alert BandsPi Cycle BTC Top + Pre-Alert Bands is an advanced implementation of the classic Pi Cycle Top model, designed for Bitcoin cycle analysis on higher timeframes (especially 1D BTCUSD/BTCUSD·INDEX).
The original Pi Cycle Top uses two moving averages:
• 111-day SMA (short MA)
• 350-day SMA ×2 (long MA)
A Pi Top is signaled when the 111 SMA crosses above the 350×2 SMA. Historically, this has occurred near major BTC cycle highs.
This script extends that idea with a 3-step early-warning sequence:
• Pi Green – early compression: short/long MA ratio crosses upward into the green band (convergence from below is required).
• Pi Yellow – mid-cycle warning: only fires if a valid Green has already occurred in the same cycle.
• Pi Cycle Top – final top: the classic Pi Cycle cross, limited to one top signal per cycle. After a top, no new Yellow or Top signals can appear until a new Green event starts the next cycle.
Background shading shows the active phase (Green / Yellow / late-cycle zone), so you can see at a glance where BTC is within its Pi-based macro structure.
All logic is non-repainting: request.security() uses lookahead_off and no future data is accessed.
Typical use
This indicator is intended as a macro-cycle timing and risk-awareness tool, not a stand-alone entry system. Many traders use it to:
• Watch for Pi Green as the start of a potential late-cycle advance.
• Treat Pi Yellow as a rising-risk environment and tighten risk management.
• Use the Pi Cycle Top as a historical high-risk zone where large profit-taking or hedging may be considered.
Always combine this with your own analysis (trend, volume, on-chain, macro) before making decisions.
How to set alerts
Add the indicator to your chart (1D BTCUSD or BTCUSD·INDEX recommended).
Click Alerts → Condition → Pi Cycle BTC Top + Pre-Alert Bands.
Choose one of:
• Pi Cycle – Green Pre-Alert (early convergence)
• Pi Cycle – Yellow Pre-Alert (after Green only)
• Pi Cycle – TOP (Single per Cycle, after Green)
Use “Once per bar close” for higher-timeframe reliability.
Disclaimer
This tool is for educational and analytical purposes only. The Pi Cycle concept is based on historical behavior and does not guarantee future results. This is not financial advice; always do your own research and manage risk appropriately.
Dönemler
Drawdown % + STD Bands: Log-Scale Macro ToolDescription: The exact indicator big-macro accounts use: tracks real-time drawdown from the rolling 252-period peak, then plots -1σ (blue) and -2σ (orange) bands on a clean percent scale. Built for weekly charts-shows if a stock, index, or crypto is statistically cheap (hit -1σ) or generational-buy territory (-2σ). Works flawlessly on SPX, Nasdaq, Bitcoin, Gold, Tesla... anything. How to Use (read it aloud like a voice memo): 1. Slap this under any chart, set to weekly timeframe . 2. Flip the price pane to log scale -zero negotiations. 3. Watch the thick red line: • Hovering 0 %? Bullish noise, chill. • Kissing blue (-10 % to -25 %)? Start loading-happens every 1-2 years. • Touching orange (-30 %+)? Panic sale finished. Buy like rent money's burning a hole. 4. Zoom out five-ten years; monthly works too if you want lazy vibes. Daily? Trash-too twitchy. Pro tip: Name your watchlist Panic Plays, drop this in, and ping me when MELI or GOOGL hits orange. I'll confirm if it's actually stupid-cheap.
Institutional Volume Flow (IVF) with VWAP & Zones. Accumulation Zone (Green Background)Logic: Signals potential institutional buying at the low.Conditions: The current close price is below VWAP $\text{(close} < \text{VWAP)}$, AND there has been at least one Aggressive Buy (IVF) bar within the last $\text{N}$ bars.2. Manipulation Zone (Red Background)Logic: Signals a Stop Hunt or False Breakout where the market briefly takes out a previous extreme before reversing with institutional conviction.Conditions:False Break High: Current high is a new 2-bar high, immediately followed by an Aggressive Sell (IVF) bar.False Break Low: Current low is a new 2-bar low, immediately followed by an Aggressive Buy (IVF) bar.3. Compression Zone (Purple Background)Logic: Signals a period of low volatility where price is "coiling up" for a large move.Conditions: The bar's range $\text{(high} - \text{low)}$ is consistently small (less than a multiplier of the Average True Range (ATR)) for a specific number of bars.The zones are plotted using bgcolor() for a visual area on the chart and plotshape() to mark the specific bar where the condition is met. Manipulation is given the highest plotting priority to ensure it's visible over other zones if conditions overlap.Would you like me to elaborate on the typical trading strategy associated with any of these three zones (Accumulation, Manipulation, or Compression)?
Trade4Freedom## 🔷 Trade4Freedom – Market Logic Framework
**Not a group of indicators. One continuous system of reading market behaviour.**
The script is designed to follow the same decision flow I use in trading.
Every tool here supports the others — there are no standalone modules.
The market is analysed layer by layer, but always as one sequence:
---
### 🔄 **How the logic works (continuous process)**
1. **Structure first** – BOS/ChoCH levels show where the market changed behaviour.
The projected dotted line is not a signal — it is a place where I wait and observe.
I do not enter until price interacts with structure.
2. **Liquidity next** – if the structure level aligns with a liquidity bag (retest),
the zone becomes important. Active liquidity lines are potential targets or
reasons to avoid trading against the area.
3. **Context filter** – I use CCI only when structure + liquidity are already active.
Example of long bias:
−200 level is broken → candle closes above the MA → CCI rises from the channel.
From this point I begin to trail stops and start building position if structure supports it.
4. **Confirmation & positioning**
Stochastic heatmap is not for entries – it confirms pressure.
Divergences on CCI or price are additional evidence when forming or adjusting a position.
5. **Execution zones** – only after structure → liquidity → context,
I use deviation levels (1–5) to define where to place orders.
On higher timeframes they work for accumulation models,
on intraday levels they work for tactical entry zones.
Dev1/Dev2 boxes exist only to make limit-order planning faster.
---
### 📌 **Purpose of the script**
This tool does not predict price or generate signals.
It creates the same structured environment on any chart:
**Structure → Liquidity → Context → Deviation → Decision**
This helps avoid random trading and replaces guessing with logic and observation.
Intraday Market Structure Research Tool (Reversal + Breakout)This script is a fully rule-based intraday strategy designed for research and backtesting purposes, not financial advice. It is intended to help traders study market behavior, time-based price patterns, and statistical trade outcomes under realistic trading assumptions.
What the Strategy Does
This strategy operates in two selectable trade modes:
1. Reversal Mode
Identifies statistically large candles relative to recent volatility
Enters counter-direction trades when price shows exhaustion behavior
Designed to study fade-type behavior around session extremes
2. Breakout Mode
Tracks recent swing highs/lows over a user-defined lookback
Executes trades only after confirmed price expansion beyond these levels
Designed to test momentum continuation behavior
Time & Session Filtering
Trades are only taken during user-defined market sessions, including:
New York 1
New York 2
London
Asia
This allows users to analyze performance differences between global trading sessions.
9:30 AM Opening Range Logic
The script captures the 9:30 AM (Eastern) one-minute candle high/low and uses that as an Opening Range:
Breakout trades can be confirmed above or below this range
The range is visualized for clarity
Risk Management & Realism Controls
This script includes realistic execution mechanics:
Fixed stop-loss and take-profit defined by the user (points or ticks)
Built-in slippage modeling
Commission assumptions included
Position sizing designed to keep risk per trade under 5–10% of account equity when used with realistic account sizes
Users are responsible for choosing realistic account sizes and risk values when running backtests.
Statistical Performance Tracking
The strategy records and displays performance data including:
Win rate
Average win and loss
Maximum drawdown per trade series
Expectancy
Trade distribution by:
Time of day
Session
Market classification
This allows users to study market tendencies and structural behavior over large sample sizes.
Visual Tools
The script displays:
Entry and exit markers
Blocked trade labels (when conditions are not met)
Opening range box
Breakout levels
Use Case Disclaimer
This script is designed for:
Backtesting
Market structure research
Statistical study
It is not guaranteed to be profitable, and results depend heavily on user-selected settings, market conditions, and realistic brokerage assumptions.
Premarket Breakout (TP1 → BE → ATR Trail)this is the best ever you will really like i t and it does a lot its a really good scirpt please use it to make trades
Premarket Breakout (TP1 → BE → ATR Trail)the best one you can find a very good indicator and strategy to help with al l trading needs in every way
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.






















