BTC Flow Dashboard (Spot Premium + OI + Funding)It builds a single flows dashboard that shows whether real spot demand (fiat buyers) or leveraged perps (futures traders) are driving BTC, and then cross-checks that with Open Interest (OI) and funding pressure—all normalized so you can spot regime shifts and squeeze risk fast.
How to read it (practical playbook)
Continuation (healthier trend)
Price ↑, premium > 0 and rising, oiZ ≥ 0 → spot sponsoring the move; perps chase → add on pullbacks.
Leverage-led & vulnerable
Price ↑, premium < 0, fundZ > 0 (expensive longs) → crowding → fade extensions / expect sharp pullbacks.
Buyable dip / absorption
Price ↓, premium ≥ 0 (spot supporting), oiZ flat/down, fundZ ≤ 0 → selling looks weak → scale into reversals.
Exhaustion / mean reversion
premZ ≥ +2 after a run → flows unusually hot → take profits / tighten risk.
premZ ≤ −2 into key support → capitulation risk but also bounce setups if OI/funding aren’t pressuring.
Analisi trend
CQ_(2)_Fibonacci IntraWeek Range [UkutaLabs]//█ OVERVIEW
//
//The Fibonacci Intraweek Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels.
//█ OVERVIEW
//
//The Fibonacci Intramonth Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low of a range
//that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
//support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
CQ_Fibonacci IntraMonth Range [UkutaLabs]//█ OVERVIEW
//
//The Fibonacci Intramonth Period Range Indicator is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low of a range
//that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
CQ_Fibonacci IntraDay Range [UkutaLabs]//█ OVERVIEW
//
//The "Fibonacci Intraday Period Range Indicator" is a powerful trading tool that draws levels of support and resistance that are based on key
//Fibonacci levels. Created by © UkutaLabs and modified by me to include a progress gauge. The script will identify the high and low
//of a range that is specified by the user, then draw several levels of support and resistance based on Fibonacci levels.
//
//The script will also draw extension levels outside of the specified range that are also based on Fibonacci levels. These extension
//levels can be turned off in the indicator settings.
//
//Each level is also labelled to help traders understand what each line represents. These labels can be turned off in the indicator
//settings.
//
//The purpose of this script is to simplify the trading experience of users by giving them the ability to customize the time period
//that is identified, then draw levels of support and resistance that are based on the price action during this time.
//
//█ USAGE
//
//In the indicator settings, the user has access to a setting called Session Range. This gives users control over the range that will
//be used.
//
//The script will then identify the high and low of the range that was specified and draw several levels of support and resistance based
//on Fibonacci levels between this range. The user can also choose to have extension levels that display more levels outside of the range.
//
//These lines will extend until the end of the current trading day at 5:00 pm EST.
//
//█ SETTINGS
//
//Configuration
//
//• Display Mode: Determines the number of days that will be displayed by the script.
//• Show Labels: Determines whether or not identifying labels will be displayed on each line.
//• Font Size: Determines the text size of labels.
//• Label Position: Determines the justification of labels.
//• Extension Levels: Determines whether or not extension levels will be drawn outside of the high and low of the specified range.
//
//Session
//
//• Session Range: Determines the time period that will be used for calculations.
//• Timezone Offset (+/-): Determines how many hours the session should be offset by.
Liquidity Index with Advanced Statistical NormalizationLiquidity Index with Advanced Statistical Normalization
An open-source TradingView indicator for analyzing global liquidity cycles using robust statistical methods
Overview
This Pine Script indicator combines multiple macroeconomic data sources to construct a composite liquidity index that tracks global financial conditions. It employs advanced statistical techniques typically found in quantitative finance research, adapted for real-time charting.
Key Features
📊 Multi-Source Data Integration
- Federal Reserve Components: Fed Funds Rate, Reverse Repo (RRP), Treasury General Account (TGA)
- PBOC Components: China M2 Money Stock adjusted by CNY/USD exchange rate
- Volatility Index: MOVE Index (bond market volatility)
🔬 Advanced Statistical Methods
1. Theil-Sen Estimator: Robust trend detection resistant to outliers
2. Triple Normalization:
- Z-score normalization
- MAD (Median Absolute Deviation) normalization
- Quantile normalization via inverse normal CDF
3. Multi-Timeframe Analysis: Short (8-bar) and long (34-bar) windows with blended composite
📈 Signal Processing
- Log-transformation for non-linear relationships
- Smoothing via customizable SMA
- Composite signal averaging across normalization methods
Why This Approach?
Traditional liquidity indicators often suffer from:
- Sensitivity to outliers in economic data
- Assumption of normal distributions
- Single-timeframe bias
This script addresses these issues by:
- Using median-based robust statistics (Theil-Sen, MAD)
- Applying multiple normalization techniques
- Blending short and long-term perspectives
Customization Options
short_length // Short window (default: 8)
long_length // Long window (default: 34)
show_short // Display short composite
show_long // Display long composite
show_blended // Display blended signal
smoothing_length // SMA smoothing period (default: 10)
How to Use
1. Liquidity Expansion (positive values): Risk-on environment, favorable for asset prices
2. Liquidity Contraction (negative values): Risk-off environment, potential market stress
3. Divergences: Compare indicator direction vs. price action for early warnings
Potential Improvements
Community members are encouraged to enhance:
- Additional data sources (ECB balance sheet, BOJ operations, etc.)
- Alternative normalization methods (robust scaling, rank transformation)
- Machine learning integration (LSTM forecasting, regime detection)
- Alert conditions for liquidity inflection points
- Volatility-adjusted weighting schemes
Technical Notes
- Uses request.security() for multi-symbol data fetching
- All calculations handle missing data via nz() functions
- Median-based statistics computed via array operations
- Custom inverse CDF approximation (no external libraries required)
Contributing
This is a foundation for liquidity analysis. Potential extensions:
- LLM Integration: Use language models to parse Fed/PBOC meeting minutes and adjust weights dynamically
- Sentiment Layer: Incorporate crypto funding rates or options skew
- Adaptive Parameters: Auto-tune window lengths based on market regime
- Cross-Asset Validation: Backtest signals against BTC, equities, bonds
---
License: Open source - modify and redistribute freelyDisclaimer: For educational purposes only. Not financial advice.
Europe Session LinesThis simple script marks the start of the European trading sessions:
08:00 a.m. London trading session
09:00 a.m. Frankfurt trading session
The settings of the lines can be changed. (thickness, colour, type).
It can be used on Futures and CFDs for example for FDAX, FTSE100 but also for GOLD, Silver and EURO- and GBP based FX pairs as supply or demand zone with the change of character trading setup.
EMA Trend RecognitionEMA Trend Recognition — “Double-Vision Trend Glasses” 👓⚡
In short:
Your chart gets two voices — the Major trend (EMA50 vs EMA200) for the big picture, and the Minor trend (EMA9 vs EMA20) for the short-term mood.
When both sing the same tune, you get a STRONG signal.
When they argue, it’s a WEAK one. Simple. Clean. Effective.
🧭 What this indicator does
Major Trend (Long-Term):
EMA50 above EMA200 → Bullish.
EMA50 below EMA200 → Bearish.
This tells you where the market really wants to go.
Minor Trend (Short-Term):
EMA9 above EMA20 → Bullish.
EMA9 below EMA20 → Bearish.
This shows you what the market feels like right now.
Trend Combinations (The Magic):
🟢 STRONG BUY: Major ↑ + Minor ↑ → full alignment, go with the flow.
🔴 STRONG SELL: Major ↓ + Minor ↓ → both down, no mercy.
🟡 WEAK BUY: Major ↑, Minor ↓ → pullback zone? early dip? maybe.
🟠 WEAK SELL: Major ↓, Minor ↑ → short-term bounce inside a downtrend.
🎨 Background Colors & Info Panel
Bright Green: STRONG BUY
Bright Red: STRONG SELL
Faded Green/Red: WEAK signals (trend disagreement)
Bottom Info Table:
Major Trend: “BULLISH ↑” or “BEARISH ↓”
Minor Trend: same logic, faster tempo
Signal: shows STRONG/WEAK/NEUTRAL status
Price: latest close price (because yes, we all check that)
🔔 Alerts (so you don’t stare all day)
MAJOR TREND CHANGE: “Now Bullish!” or “Now Bearish!”
MINOR TREND CHANGE: quicker reversals
STRONG BUY/SELL: when both trends line up perfectly
(Alerts trigger only on bar close — no disco flicker alerts.)
🧠 Visuals — Simple but Smart
EMA 200 & 50: thick lines = your market highway
EMA 20 & 9: thin lines = your turn signals
Muted colors, so your eyes survive long trading sessions
🚀 Why it’s useful
Trend Trading: Filter out noise, ride the momentum.
Pullback Entries: WEAK signals often mark “turning back in” moments.
System Building: Use “STRONG” as a market bias filter, “MINOR” flips as entry triggers.
⚙️ Pro Tips
Timeframes: EMAs are fixed, but meaning scales with TF.
On 1H or 4H, they often reflect daily/weekly momentum.
Context: Combine with structure (HH/HL/LH/LL), zones (OB/FVG), or volume.
Risk Management: Signal ≠ free money. Always define SL/TP and RR.
⚠️ Disclaimer
No financial advice, no crystal ball.
This indicator helps you see — but you still decide when to act.
Backtest and paper-trade before going live.
Short Pitch (for the top “Summary” line on TradingView):
“Two EMA pairs, one clear trend compass — Major shows direction, Minor sets the rhythm. When both agree, it’s STRONG. When they argue, it’s WEAK. Clean, fast, and easy to read.” ✅
Feel free to commend and if u have inspirations to add something, let me know, cheers :D
MTF Intraday v2.0📊 Description
MTF Intraday v2.0 is an informative indicator for analyzing trend strength across multiple timeframes simultaneously. Designed specifically for intraday (session) trading during European and US market hours.
The indicator shows the real market picture without lagging signals - you see the trend strength right now for each timeframe.
🎯 Key Features
1. Multi-Timeframe Analysis (D1, H4, H1, M30, M15)
Analyzes 4 indicators on each TF: SuperTrend, RSI, EMA crossover, EMA200
Shows strength for each timeframe: STRONG / MED / WEAK
Color indication: 🟢 green (LONG strong), 🔴 red (SHORT strong), 🟡 yellow (medium), ⚪ gray (weak)
2. Intraday Trading Hierarchy
D1 - global context (affects quality assessment)
H4 - general (sets the main trend)
H1 - reference point for intraday
M30/M15 - finding entry points during sessions
3. Market Pulse
🔥 HOT - when both H4 and H1 are STRONG (best time to enter!)
✓ GOOD - when H4 or H1 is STRONG
L:45 S:20 - balance of power between LONG and SHORT (statistics instead of "wait")
4. Volume Indicator (24 hours)
Shows volume change over the last 24 hours
SPIKE! - when volume increased by the set % (default 50%)
Considers candle color: 🟢 LONG spike (rise + green candle), 🔴 SHORT spike (rise + red candle)
Works on any timeframe (automatically recalculates)
5. Compact Mode
OFF - shows all details: every indicator for each TF
ON - only strength per timeframe (for clean chart)
⚙️ Settings
Main:
SuperTrend Period (21) / Multiplier (6.3)
RSI Length (14)
EMA Short (50) / Long (100) / 200
Compact Mode - hide detailed indicators
Volume:
Show Volume - show/hide volume indicator
Volume Alerts ON/OFF - enable/disable volume alerts
Volume Spike (%) - spike threshold (30% / 50% / 100%)
🔔 Alerts
The indicator has 5 types of alerts:
Market HOT - H4 and H1 simultaneously became STRONG
VOL LONG - volume spike on bullish candle
VOL SHORT - volume spike on bearish candle
EMA200 UP - price crossed EMA200 upward
EMA200 DN - price crossed EMA200 downward
Set up in TradingView: Create Alert → Select desired alert from the list
📈 How to Use
For finding entry points:
Check H4 - should be at least MED (better STRONG)
Verify H1 - main filter for intraday
Wait for pulse "🔥 HOT" or at least "✓ GOOD"
Look at M30/M15 - seek confirmation
Check 24h VOL - if SPIKE, momentum has started
Quality Assessment:
EXCELLENT ⭐ - all stars aligned (D1 with us, high score)
GOOD - good setup
WARNING ⚠️ - D1 against trend (counter-trend, be careful!)
Color Indication:
🟢 Green cells - bullish signal
🔴 Red cells - bearish signal
🟡 Yellow cells - neutral/waiting
🟠 Orange TF labels - for readability
⚠️ Important
This is an informative indicator, not a trading system
Does not give "entry/exit" signals - shows trend strength in the moment
Use together with Price Action and your trading strategy
RSI on M15 is displayed but not counted (too much noise)
💡 Who is it for
✅ Intraday traders (Europe/US sessions)
✅ Scalpers on crypto and forex
✅ Swing traders for trend confirmation
✅ Those who trade on multiple timeframes simultaneously
SMA 10/20 Simple SMA 10/20. Here are two simple moving averages that can help you see the underlying trend. These are the moving averages used by the famous trader Qullamagie
SMA 10/20 Weekly on all timeframeHere are SMA 10/20 Weekly to see the underlying weekly trend across all timeframes
Moyennes Mobiles Pertinentes ema21vert ma50 bleue ma200 rougeUtilisez sur un même script un indicateur avec plusieurs moyennes mobiles servant de supports
Multi Timeframe Market Structure ContinuationOverview
This indicator identifies Break of Structure (BOS) and Change of Character (ChoCh) patterns using multi-timeframe (MTF) analysis to filter high-probability trade setups. By aligning lower timeframe signals with higher timeframe bias, it helps traders enter positions in the direction of the dominant trend while avoiding counter-trend traps.
Multi-Timeframe Analysis
The indicator analyzes market structure on two timeframes simultaneously:
Current Timeframe (CTF): Detects immediate BOS and ChoCh signals for entry timing
Higher Timeframe (HTF): Establishes the overall trend direction (default: 1H, customizable)
Signals only appear when the current timeframe structure aligns with the higher timeframe bias, ensuring you're trading with the momentum, not against it.
Break of Structure (BOS)
BOS signals indicate trend continuation - when price breaks a previous high in an uptrend or a previous low in a downtrend. These are reliable entries that confirm the trend is still active and strong.
Change of Character (ChoCh)
ChoCh signals mark early trend reversals - when market structure shifts from bearish to bullish (or vice versa). When captured in alignment with the higher timeframe trend, ChoCh entries can achieve exceptional risk-to-reward ratios as they allow entry near the beginning of a new impulse move.
Exit Signals
Exit signals are plotted when a ChoCh occurs in the opposite direction of the HTF trend. For example, if the HTF is bullish and a bearish ChoCh forms on the current timeframe, an orange "EXIT" signal appears - warning long traders that the lower timeframe structure is shifting against them. This provides an early warning system to protect profits or minimize losses before the HTF trend itself reverses.
Trading Strategy Recommendations
Trending Markets (Recommended)
In strong trending conditions, both BOS and ChoCh signals can be taken when aligned with the HTF bias. ChoCh entries are particularly powerful as they catch early reversals within the larger trend, offering entries with tight stop losses and extended profit targets.
Ranging Markets
During consolidation or choppy conditions, it's best to be selective and take only BOS entries. BOS signals confirm that the trend is continuing beyond the range, reducing false breakouts and whipsaw trades that are common with counter-trend ChoCh signals in sideways markets.
Customization
Pivot Length: Adjust the sensitivity of structure detection (default: 5). Lower values detect structure more frequently with earlier but potentially noisier signals. Higher values provide cleaner, more significant structural breaks but with some delay.
Higher Timeframe: Customize the HTF to suit your trading style. Day traders might use 1H HTF on 5m charts, while swing traders could use 4H or Daily HTF.
Alert System
Six alert conditions available:
Long BOS Entry / Long ChoCh Entry
Short BOS Entry / Short ChoCh Entry
Long Exit / Short Exit
All alerts fire only on confirmed candle closes to eliminate repainting and false signals.
Visual Features
Color-coded background showing HTF bias
Clear BOS/ChoCh labels with horizontal lines at structure levels
Orange "EXIT" signals when structure breaks against your position
Gray lines tracking current swing highs/lows
HTF trend indicator in the top-right corner
HTF Fibonacci on intraday ChartThis indicator plots Higher Timeframe (HTF) Fibonacci retracement levels directly on your intraday chart, allowing you to visualize how the current price action reacts to key retracement zones derived from the higher timeframe trend.
Concept
Fibonacci retracement levels are powerful tools used to identify potential support and resistance zones within a price trend.
However, these levels are often calculated on a higher timeframe (like Daily or Weekly), while most traders execute entries on lower timeframes (like 15m, 30m, or 1H).
This indicator bridges that gap — it projects the higher timeframe’s Fibonacci levels onto your current intraday chart, helping you see where institutional reactions or swing pivots might occur in real time.
How It Works
Select the Higher Timeframe (HTF)
You can choose which higher timeframe the Fibonacci structure is derived from — default is Daily.
Define the Lookback Period
The script looks back over the chosen number of bars on the higher timeframe to find the highest high and lowest low — the base for Fibonacci calculations.
Plots Key Fibonacci Levels Automatically:
0% (Low)
23.6%
38.2%
50.0%
61.8%
78.6%
100% (High)
Dynamic Labels
Each Fibonacci level is labelled on the latest bar, updating in real time as new data forms on the higher timeframe.
Best Used For
Intraday traders who want to align lower-timeframe entries with higher-timeframe structure.
Swing traders confirming price reactions around major Fibonacci retracement zones.
Contextual analysis for pullback entries, breakout confirmations, or retests of key levels.
Recommended Settings
Higher Timeframe: Daily (for intraday analysis)
Lookback: 50 bars (adjust based on volatility)
Combine with MACD, RSI, CPR, or Pivots for confluence.
License & Credits
Created and published for educational and analytical purposes.
Inspired by standard Fibonacci analysis practices.
Bullish EMA Crossover Exact v6This indicator highlights bullish momentum shifts by plotting 9 EMA and 20 EMA crossovers. When the faster 9 EMA crosses above the slower 20 EMA, a bold black “X” appears exactly at the crossover price, signaling potential buy opportunities. Ideal for identifying strong uptrends and precise bullish entry points with clear visual confirmation.
Composite Momentum System⚙️ Composite Momentum System — RSI + CCI + Momentum + MFI + (DI·ADX) × MACD² (4-Color Smoothed Signal)
This advanced indicator fuses multiple momentum, volume, and trend components into one unified oscillator, dynamically visualized around a zero line. It helps traders identify powerful directional moves, trend reversals, and momentum exhaustion far earlier than traditional MACD or RSI alone.
🧩 Core Formula
Composite = ((RSI + CCI + Momentum + MFI) + (((DI− × −1) + DI+) × ADX)) × (MACD²)
RSI – captures relative strength and short-term momentum
CCI – measures deviation from price mean (volatility & cycles)
Momentum – shows raw velocity of price change
MFI – volume-weighted momentum, adds money flow confirmation
DI / ADX – directional strength and market trend intensity
MACD² – amplifies strong momentum moves and filters weak noise
🌈 Visual Design & Features
Zero-Centered Histogram:
Green = Bullish momentum, Red = Bearish momentum
MACD Signal Line (4 Colors):
🟢 Positive & Rising → strong up momentum
🟡 Positive & Falling → weakening uptrend
🔴 Negative & Falling → strong downtrend
🟠 Negative & Rising → possible bearish fade or reversal
Adjustable Signal Smoothing:
Choose MA type (SMA, EMA, RMA, WMA, VWMA) and custom smoothing length for cleaner visualization.
ATR Normalization:
Optional setting to keep MACD and composite values consistent across instruments.
Centering Options:
RSI and MFI can be centered (−50/+50) to balance oscillation around zero.
🎯 How to Use
Above 0: Bullish composite energy → favor long setups.
Below 0: Bearish composite energy → favor short setups.
Signal line color changes highlight momentum acceleration or slowdown.
Crosses through zero often precede major shifts or breakout moments.
⚡ Best Practice
Use this indicator as a momentum strength filter in confluence with price action or volume patterns.
Combine it with VWAP, higher-timeframe trend, or support/resistance zones for high-probability entries.
Jensen Alpha RS🧠 Jensen Alpha RS (J-Alpha RS)
Jensen Alpha RS is a quantitative performance evaluation tool designed to compare multiple assets against a benchmark using Jensen’s Alpha — a classic risk-adjusted return metric from modern portfolio theory.
It helps identify which assets have outperformed their benchmark on a risk-adjusted basis and ranks them in real time, with optional gating and visual tools. 📊
✨ Key Features
• 🧩 Multi-Asset Comparison: Evaluate up to four assets simultaneously.
• 🔀 Adaptive Benchmarking: TOTALES mode uses CRYPTOCAP:TOTALES (total crypto market cap ex-stablecoins). Dynamic mode automatically selects the strongest benchmark among BTC, ETH, and TOTALES based on rolling momentum.
• 📐 Jensen’s Alpha Calculation: Uses rolling covariance, variance, and beta to estimate α, showing how much each asset outperformed its benchmark.
• 📈 Z-Score & Consistency Metrics: Z-Score highlights statistical deviations in alpha; Consistency % shows how often α has been positive over a chosen window.
• 🚦 Trend & Zero Gates: Optional filters that require assets to be above EMA (trend) and/or have α > 0 for confirmation.
• 🏆 Leaders Board Table: Displays α, Z, Rank, Consistency %, and Gate ✓/✗ for all assets in a clear visual layout.
• 🔔 Dynamic Alerts: Get notified whenever the top alpha leader changes on confirmed (non-repainting) data.
• 🎨 Visual Enhancements: Smooth α with an SMA or color bars by the current top-performing asset.
🧭 Typical Use Cases
• 🔄 Portfolio Rotation & Relative Strength: Identify which assets consistently outperform their benchmark to optimize capital allocation.
• 🧮 Alpha Persistence Analysis: Gauge whether a trend’s performance advantage is statistically sustainable.
• 🌐 Market Regime Insight: Observe how asset leadership rotates as benchmarks shift across market cycles.
⚙️ Inputs Overview
• 📝 Assets (1–4): Select up to four tickers for evaluation.
• 🧭 Benchmark Mode: Choose between static TOTALES or Dynamic auto-selection.
• 📏 Alpha Settings: Adjustable lookback, smoothing, and consistency windows.
• 🚦 Gates: Optional trend and alpha filters to refine results.
• 🖥️ Display: Enable/disable table and customize colors.
• 🔔 Alerts: Toggle notifications on leadership changes.
🔎 Formula Basis
Jensen’s Alpha (α) is estimated as:
α = E − β × E
where β = Cov(Ra, Rb) / Var(Rb), and Ra/Rb represent asset and benchmark returns, respectively.
A positive α indicates outperformance relative to the risk-adjusted benchmark expectation. ✅
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is NOT a signal. 🚫📉
It does not constitute financial advice, trading signals, or investment recommendations. 💬
The author is not responsible for any financial losses or trading decisions made based on this indicator. 🙏
Always perform your own analysis and use proper risk management. 🛡️
Volume Biased CandlesVolume Biased Candles
This indicator visualizes the underlying volume polarity of price action by coloring candles based on directional volume bias over a rolling bucket of bars.
Instead of reading price alone, each candle reflects whether buying or selling pressure has dominated within its recent volume structure — giving a more intuitive picture of volume sentiment beneath price movement.
🔹 How it works
Bucket Size (n) → defines how many candles are aggregated to evaluate directional volume bias
For each bucket, total up-volume and down-volume are compared to determine overall market pressure
Volume Bias Score → a continuous ratio from -1 to +1, representing the relative dominance of buyers or sellers
Candles are colored according to the active bias — green for positive (buying), red for negative (selling)
🔹 Use cases
Visualize shifts in market control without needing divergence overlays
Combine with delta divergence or price structure tools to validate entries and exits
Simplify volume and price insights into an intuitive, single-chart visualization
✨ Volume Biased Candles transforms standard candles into a live sentiment gauge, revealing whether the dominant flow behind price movement is bullish or bearish.
Asia Range Breakout Asia Range Breakout
Description:
Asia Range Breakout is a sophisticated, multi-filter trading tool designed to identify high-probability breakout opportunities during the core Asian trading session. By combining session-based range analysis with advanced confirmation filters like Heiken Ashi momentum, Ichimoku baseline trends, and EMA alignment, this indicator helps traders capture decisive moves while filtering out market noise.
Tired of false breakouts? This system provides a structured framework to trade the Sydney and Tokyo sessions with precision and confidence.
Key Features:
Multi-Session Range Tracking:
Monitors 6 distinct pre-defined Asian sessions (Sydney Box, Tokyo Pre-Open, Tokyo Launch, etc.).
Dynamically plots High and Low boundaries for each session (Teal for Highs, Red for Lows).
Individually toggleable sessions to focus on your preferred trading window.
Smart Alert & Signal System:
Generates alerts based on Heiken Ashi candle closings relative to session ranges.
Dual-Size Signals: Differentiates between "Large" breakouts (outside the range) and "Small" signals (within the range).
Configurable alert timeframe for confirmation candle closure.Built-in Sound Alerts for real-time notifications.
Advanced Confirmation Filters:
Heiken Ashi Momentum Filter: Ensures breakout candles have significant momentum, adjustable via a threshold multiplier.
EMA 200 Filter: Confirms the breakout's alignment with the broader trend.
Ichimoku Baseline (Kijun-sen) Filter: Uses a dynamic support/resistance level for additional confirmation.
Ichimoku Baseline Divergence Filter: A unique feature that requires the baseline's slope to match the breakout direction (Bullish for buys, Bearish for sells).
ATR Volatility Filter: (Optional) Ensures the breakout candle has sufficient range relative to recent market volatility.
Visual Enhancements:
Take-Profit Lines: Projects profit targets using ATR and connects consecutive alerts with a trendline.
Heiken Ashi Overlay: Displays smoothed Heiken Ashi candles directly on the main chart for cleaner trend visualization.
Divergence Trend Line: Visually plots the slope of the Ichimoku Baseline for quick trend assessment.
Session Background Highlighter: Shades the active sessions for easy time reference.
Comprehensive Debug Info Box: Provides real-time feedback on filter status, perfect for strategy validation and learning.
Usage Instructions & Tips:
1. Initial Setup:
Start simple! Apply the indicator to a 5-minute or 1-minute chart.
Recommended Instruments:
Forex: Major pairs like AUD/USD , USD/JPY or EUR/JPY.
Indices: `NAS100` (Nasdaq), `US30` (Dow Jones), `JP225` (Nikkei 225).
Commodities: `XAUUSD` (Gold).
Initially, enable only the Sydney Box (00:30 - 03:15 UTC) as it is the most robust session, then explore others.
2. Interpreting the Signals:
Large Green Arrow (Above Bar): A strong BUY signal. The Heiken Ashi candle closed above the session's High, and all enabled filters are confirmed.
Small Green Arrow (Above Bar): A moderate BUY signal. The candle closed bullishly but within the session range.
Large Red Arrow (Below Bar): A strong SELL signal. The Heiken Ashi candle closed below the session's Low, with filter confirmation.
Small Red Arrow (Below Bar): A moderate SELL signal. The candle closed bearishly but within the session range.
3. Optimizing Your Strategy:
Filter Tuning: The default filters are balanced. Adjust them based on your risk appetite:
Increase the Heiken Ashi Threshold (e.g., to 0.2) for fewer, but stronger signals.
Disable filters like ATR or Divergence if you find them too restrictive.
The Power of Divergence: The Ichimoku Divergence filter is a powerful trend-confirmation tool. Pay close attention to it for the highest-quality signals.
Use the Debug Box: Enable the "Show Debug Info Box" to see exactly why a signal did or did not trigger. This is invaluable for understanding the indicator's logic and avoiding bad trades.
4. Risk Management:
The TP Lines provide a logical profit target based on market volatility. Consider using them for setting take-profit orders.
Always use a stop-loss. A logical level is the opposite side of the session range (e.g., for a buy signal, place a stop below the session low).
You're very welcome! I'm glad I could help you create a professional tool. Wishing you great success with your Trading! 🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
(RSI + CCI) × (MACD/ATR)^2⚙️ (RSI + CCI) × (MACD / ATR)² Composite — Normalized, Compressed, Dynamic Colors
This advanced composite oscillator merges three powerful momentum indicators — RSI, CCI, and MACD — into one normalized and volatility-adjusted signal that reacts smoothly across all markets.
By dividing MACD by ATR (Average True Range), the indicator self-scales for different symbols, and an optional tanh-like compression prevents extreme spikes while keeping the movement fluid and responsive.
🧩 Core Formula
(RSI + CCI) × (MACD / ATR)²
(optionally passed through a tanh compression for stability)
RSI and CCI are normalized (RSI ÷ 50, CCI ÷ 100) → roughly −2 to +2 range.
MACD is volatility-adjusted by ATR → scale-independent between assets.
The result is centered around 0 for clear bullish/bearish momentum comparison.
🎨 Visual Features
🟢🔴 Dynamic 4-Color Histogram
Positive + Rising = Strong Teal
Positive + Falling = Light Teal
Negative + Falling = Strong Red
Negative + Rising = Light Red
🟡⚫ 4-Color Smoothing Line
Positive & Rising = Bright Yellow
Positive & Falling = Soft Yellow
Negative & Rising = Grey
Negative & Falling = Dark Grey
Zero-centered layout for intuitive bullish/bearish visualization.
⚙️ Adjustable Parameters
Individual RSI, CCI, and MACD lengths and sources.
ATR length for volatility normalization.
Optional tanh-style compression with adjustable gain (to keep values in ±1 range).
Fully customizable colors and line widths for both bars and smoothing line.
🔔 Alerts
Triggered automatically when the composite crosses above or below zero, signaling potential trend reversals or momentum shifts.
💡 How to Use
Composite > 0 → Bullish momentum ↑
Composite < 0 → Bearish momentum ↓
A brightening line or bar = momentum accelerating.
A fading color = momentum weakening or reversal forming.
Combine with higher-timeframe trend filters (EMA, VWAP, Supertrend) for confirmation.
Previous Candle 50% line The intention of this is to mark the 50% mark of the previous candle. My use is to set stops and to spot reversals coming from the STRAT to see in real time 2's going 3