Cycles
Crypto MACD SignalsUnlocking Enhanced Market Insights: A Next-Generation MACD Indicator for Cryptocurrency Trading
Introduction: Beyond Traditional MACD
In the vast landscape of technical analysis tools, the Moving Average Convergence Divergence (MACD) stands as one of the most ubiquitous and trusted momentum indicators. However, its classic formulation often leaves traders sifting through frequent crossovers, struggling to distinguish high-probability signals from market noise, especially in the volatile cryptocurrency markets. This script represents a significant evolution of the classic MACD, transforming it from a standalone oscillator into a comprehensive, multi-layered signal detection system. Its core originality lies not in reinventing the MACD calculation, but in augmenting it with proprietary filtering mechanisms, quantitative signal scoring, and visual prioritization to enhance decision clarity and timing.
Core Functionality: What It Does and How It Achieves It
This indicator, titled "Crypto MACD Signals," is a dedicated, non-overlay oscillator built for clarity and actionability. It performs three primary functions simultaneously:
Enhanced MACD Visualization: It plots the traditional MACD line, Signal line, and Histogram with a refined color scheme. The histogram is dynamically colored (blue for bullish, orange for bearish) but introduces a key innovation: the identification of "Huge" or "Anomalous" Bars. A bar is highlighted in bright white when its size exceeds twice the 20-bar Simple Moving Average of the absolute histogram values. This instantly draws attention to moments of exceptional momentum surge or capitulation, which often precede significant trend accelerations or reversals.
Context-Aware Signal Generation: Instead of marking every MACD line crossover, the script applies a crucial logical filter. It only plots a "BUY" signal (green upward triangle) when a bullish crossover occurs while the histogram is below the zero line. Conversely, a "SELL" signal (red downward triangle) is plotted only when a bearish crossover occurs while the histogram is above the zero line. This filter ensures signals are generated in the context of a potential trend reversal from an oversold or overbought state, rather than during the middle of a strong trend, dramatically increasing the signal's statistical edge. This aligns with a classic "Oscillator Reversal from Extremes" methodology within trend-following systems.
Real-Time Performance Dashboard: A fixed table in the top-right corner serves as a live statistical dashboard. It tracks and displays the total count of:
Generated Buy Signals
Generated Sell Signals
Total "Huge" Histogram Bars (both bullish and bearish)
This provides traders with an at-a-glance understanding of recent market activity—whether it has been signal-rich or quiet, and the frequency of high-momentum events—aiding in assessing the current market regime (e.g., trending vs. consolidating).
Implementation and Practical Usage
The indicator is designed for tactical swing trading and momentum-based intraday positioning in crypto assets. Its primary use case is for identifying "Pullback Entries within a Trend" and "Early Trend Reversal Confirmations."
For Trend-Following: A trader in an established uptrend would wait for a pullback that drives the MACD histogram negative. A subsequent bullish crossover that triggers a "BUY" signal, especially if accompanied by a "Huge" bullish histogram bar, offers a high-confidence entry point to re-join the trend.
For Counter-Trend/Reversal Scenarios (Scalping): The script is highly effective for a specific scalping technique: "Fading Extreme Momentum Exhaustion." A cluster of "Huge" bearish bars followed by a diminishing histogram and a bullish crossover signal can indicate selling exhaustion, presenting a short-term long scalp opportunity. The inverse applies for short scalps. The labels ("🔥") and arrows provide clear visual cues for these setups directly on the chart.
Workflow: Traders are advised to first observe the statistical table to gauge recent activity. Then, they should look for convergence between a filtered arrow signal (BUY/SELL) and the appearance of a "Huge" bar or a cluster of them. This multi-factor confirmation is the cornerstone of the strategy.
Underlying Philosophy and Calculation Logic
The script's intelligence is built on a layered philosophy of "Momentum Quantification and Contextual Validation."
Dynamic Thresholding for Anomalies: The "Huge Bar" detection does not use a fixed threshold. By comparing the current histogram value to a recent average of absolute momentum (ta.sma(math.abs(hist_line), 20)), it creates an adaptive, market-responsive benchmark. A bar that is 200% larger than recent average momentum is statistically anomalous, suggesting institutional-sized order flow or a major shift in sentiment. This is a direct application of statistical volatility band principles to momentum, not price.
Signal Filtering for Phase Alignment: The conditional logic for plotting arrows (bullish_cross and hist_line < 0) ensures the MACD crossover signal is aligned with the correct momentum phase of the market cycle. A buy signal is only valid if momentum (histogram) is coming from a "recharging" or bearish area (below zero), not when it's already extended above zero. This prevents buying at a peak and selling at a trough, which is a common pitfall of the raw indicator. This embodies the trading axiom: "Trade the turn, not the continuation."
Quantitative Self-Awareness: The integrated counter and dashboard represent a meta-analysis layer. It allows the tool to provide feedback on its own performance density. A market generating many signals might be choppy and range-bound, while a market with few signals but several "Huge Bars" might be in a strong, steady trend. This helps the trader select the appropriate strategy (trend riding vs. reversal scalping) for the current environment.
In essence, this script synthesizes several respected trading concepts: the core trend/momentum logic of MACD, the anomaly detection common to volatility-based indicators like Keltner Channels, and the signal-verification philosophy of multi-indicator systems—all packaged into a single, coherent, and visually intuitive tool specifically tuned for the unique amplitude and speed of cryptocurrency markets.
FADE GIGA CANDLE STRAT# 🔥 FADE GIGA CANDLE STRATEGY
## Overview
The **Fade Giga Candle Strategy** is a contrarian trading indicator designed to identify extreme price movements (called "Giga Candles") and predict mean reversion opportunities. This strategy is specifically optimized for Polymarket's 15-minute crypto prediction markets (BTC, ETH, SOL, XRP) but can be applied to any timeframe.
**Core Concept:** When price makes an unusually large move with extreme RSI and high volume, it often reverses in the next period. This indicator detects those moments and signals to "fade" (bet against) the move.
---
## 📊 What Does It Do?
### Signal Generation
- **FADE BEARISH (📉)**: Detects massive green candles → Predicts price will go DOWN next
- **FADE BULLISH (📈)**: Detects massive red candles → Predicts price will go UP next
### Real-Time Stats
- Win Rate tracking
- Total Return calculation
- Expected Value (EV) analysis
- Breakeven threshold display (57.14% for 75% win / 100% loss structure)
### Visual Alerts
- Chart labels showing predictions
- Background highlighting on signal candles
- Stats table in top-right corner
- RSI indicator with overbought/oversold zones
---
## ⚙️ How It Works
### 1. Giga Candle Detection
The indicator analyzes the last 500 candles and identifies "Giga Candles" based on:
- **Body Size Percentile** (default 93rd): Only the top 7% largest candles qualify
- **Minimum Body %** (default 0.5%): Filters out noise on small moves
### 2. Confirmation Filters
Before generating a signal, the indicator checks:
**RSI Filter (Optional)**
- RSI must be ≥70 (overbought) OR ≤30 (oversold)
- Indicates price is at an extreme level
**Volume Filter (Optional)**
- Current volume must be ≥1.5x the 20-period average
- Confirms the move has conviction
### 3. Fade Logic
```
IF Giga Green Candle + RSI Extreme + High Volume
→ FADE BEARISH (predict DOWN)
IF Giga Red Candle + RSI Extreme + High Volume
→ FADE BULLISH (predict UP)
```
---
## 🎛️ Settings & Parameters
### Giga Candle Detection
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Giga Candle Percentile** | 93.0 | 80-99 | Top X% of candles by body size. 93 = only top 7% qualify as "giga" |
| **Min Body % (Safety)** | 0.5 | 0.1-2.0 | Minimum body size as % of price. Prevents false signals on low volatility |
### RSI Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use RSI Filter** | ON | ON/OFF | Require RSI to be extreme before signaling |
| **RSI Length** | 14 | 5-50 | Period for RSI calculation |
| **RSI Overbought** | 70 | 60-85 | Threshold for overbought condition |
| **RSI Oversold** | 30 | 15-40 | Threshold for oversold condition |
### Volume Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use Volume Filter** | ON | ON/OFF | Require high volume before signaling |
| **Volume SMA Length** | 20 | 10-50 | Period for average volume calculation |
| **Volume Multiplier** | 1.5 | 1.0-3.0 | Current volume must be X times the average |
### Display Options
- **Show Signal Labels**: Display prediction labels on chart
- **Highlight Signal Candles**: Background color on signal bars
- **Show Stats Table**: Performance statistics in top-right
- **Enable Alerts**: Push notifications when signals occur
---
## 🚀 How to Use
### For Polymarket Trading (Recommended)
1. **Set timeframe to 15 minutes** (matches Polymarket market duration)
2. **Apply to BTC, ETH, SOL, or XRP charts**
3. **Wait for signal:**
- 📉 FADE BEARISH → Buy "DOWN" on Polymarket
- 📈 FADE BULLISH → Buy "UP" on Polymarket
4. **Hold until market resolves** (15 minutes)
5. **Track your performance** using the stats table
### For Regular Trading
1. Use on any liquid crypto market
2. When signal appears, consider entering a mean-reversion trade
3. Set stop-loss at 100% of entry (built into expected value calculation)
4. Take profit at 75% gain (matches the 57.14% breakeven math)
### Understanding the Stats Table
**Win Rate**: Your prediction accuracy percentage
- **Target: >57.14%** (breakeven for 75% win / 100% loss structure)
- Green if profitable, red if unprofitable
**Expected Value (EV)**: Average % return per trade
- **Positive EV** = Strategy is profitable long-term
- **Negative EV** = Strategy is losing long-term
- Formula: `(WinRate% × 75) - (LossRate% × 100)`
**Total Return**: Cumulative % gain/loss across all signals
---
## 📈 Interpretation Guide
### Strong Signals
✅ Large giga candle (top 3-5%)
✅ RSI >75 or <25 (very extreme)
✅ Volume >2x average
✅ Signal appears after sustained trend
✅ Win rate >60% in recent trades
### Weak Signals (Consider Skipping)
⚠️ Borderline giga candle (barely above threshold)
⚠️ RSI only slightly extreme (71 or 29)
⚠️ Volume just meets minimum (1.5x)
⚠️ Signal appears during choppy/sideways market
⚠️ Win rate <50% in recent trades
---
## 💡 Pro Tips
### 1. Timeframe Matters
- **15-min**: Best for Polymarket, captures intraday exhaustion
- **1-hour**: Better for swing trading
- **5-min**: Too noisy, not recommended
### 2. Market Context
- Works best in **trending markets** that overextend
- Less effective in **tight ranges** (consolidation)
- Avoid during **low liquidity** hours (weekends, holidays)
### 3. Filter Tuning
**More Aggressive (More Signals)**
- Lower Giga Percentile (90th)
- Disable RSI filter
- Lower volume multiplier (1.2x)
**More Conservative (Fewer, Higher Quality)**
- Raise Giga Percentile (95th)
- Tighter RSI thresholds (75/25)
- Higher volume multiplier (2.0x)
### 4. Bankroll Management
- **Never bet >5% of capital** on a single signal
- Maintain 20+ bet bankroll minimum
- Use Kelly Criterion: `Bet% = (WinRate - LossRate) / 2`
- Example: 60% win rate → Bet ~10% of bankroll
### 5. Track Your Performance
- Monitor the stats table actively
- If win rate drops below 55% for 20+ trades, **stop trading**
- If EV goes negative, **reassess filters or market conditions**
- Keep a trading journal outside the indicator
---
## ⚠️ Risk Disclosure
### Important Warnings
1. **Past performance ≠ future results**: Backtested win rates may not hold in live trading
2. **Market conditions change**: Strategy may stop working if market dynamics shift
3. **Gambler's ruin risk**: Even profitable strategies can lose multiple trades in a row
4. **Polymarket specific**:
- Carries smart contract risk
- Subject to liquidity constraints
- Markets can resolve unexpectedly
5. **Not financial advice**: This is an educational tool, not a recommendation to trade
### Best Practices
- Start with **small position sizes** to test
- Track at least **50 signals** before evaluating performance
- Consider **paper trading** first (simulated trades)
- Never trade with money you can't afford to lose
- Understand the **57.14% breakeven** requirement
---
## 🔧 Troubleshooting
### "No signals appearing"
- Check if filters are too strict (try disabling RSI/Volume filters temporarily)
- Reduce Giga Percentile to 90th
- Ensure sufficient chart history loaded (>500 candles)
### "Too many signals"
- Increase Giga Percentile to 95th
- Enable both RSI and Volume filters
- Raise volume multiplier to 2.0x
### "Win rate seems low"
- Check if you're trading during low liquidity periods
- Verify you're using 15-min timeframe for Polymarket
- Consider market is in tight consolidation (strategy works best in trends)
---
## 📚 Technical Details
### Calculations
- **Body Size**: `|close - open|`
- **Body %**: `(bodySize / open) × 100`
- **Giga Threshold**: `percentile_nearest_rank(last 500 candles, 93rd)`
- **RSI**: Standard 14-period RSI
- **Volume Ratio**: `current_volume / SMA(volume, 20)`
### Performance Tracking
- Checks if previous signal was correct after 1 bar
- Win = +75% to total return
- Loss = -100% to total return
- Win Rate = `(correct_predictions / total_signals) × 100`
---
## 🎯 Ideal Use Cases
### ✅ Perfect For:
- Polymarket 15-minute crypto prediction markets
- Mean-reversion trading on liquid crypto pairs
- Contrarian traders who fade extremes
- Systematic traders who follow rules-based signals
### ❌ Not Ideal For:
- Trend-following strategies (this is contrarian)
- Low volatility assets (needs large moves)
- Illiquid markets (won't have "giga" candles)
- Sub-5-minute scalping (too much noise)
---
## 📞 Support & Updates
**Version**: 6.0
**Last Updated**: January 2025
**Compatible With**: TradingView Pine Script v6
### Feedback Welcome
If you find this indicator useful or have suggestions for improvement, please:
- ⭐ Leave a rating
- 💬 Comment with your results
- 🚀 Share your settings for different markets
**Good luck, and trade responsibly!** 🎯
---
## Quick Start Checklist
- Set timeframe to 15 minutes
- Load BTC, ETH, SOL, or XRP chart
- Verify stats table shows in top-right
- Enable alerts for signal notifications
- Start with paper trading to validate
- Track at least 20 signals before going live
- Never bet more than 5% of bankroll per trade
- Monitor win rate and stop if <55%
**Remember: The goal is >57.14% win rate for profitability!**
Moon Declination & More [BlueprintResearch]🌒 MOON DECLINATION & MORE
A comprehensive lunar declination visualization showing Moon, Sun, and node declinations, with phase coloring, zodiac sign tracking, and future projections.
Part of the Blueprint Research open-source ephemeris project.
█ WHAT'S INCLUDED
• Moon Declination — The Moon's angular distance from the celestial equator, oscillating rapidly (~27 days)
• Sun Declination — Optional overlay showing the Sun's seasonal declination (±23.4°)
• Node Declinations — North (☊) and South (☋) node lines forming the Moon's orbital envelope
• Future Projections — Project all lines up to 500 bars into the future
• Zodiac Crossing Markers — Indicates when the North Node reaches a particular zodiac degree. Keep in mind, nodes move through the zodiac in reverse.
█ CONCEPTS
Declination measures how far north or south a celestial body appears from the celestial equator. The Moon's declination oscillates rapidly, while its maximum range shifts slowly over the 18.6-year nodal cycle.
Node Declination Envelope:
The North (☊) and South (☋) node lines mark the envelope of the Moon's orbit—the theoretical maximum northern and southern declinations the Moon can reach.
Lunar Standstills:
The 18.6-year nodal cycle determines when the Moon reaches its most extreme declinations. During a major standstill, the Moon can exceed ±28° declination. During a minor standstill, the Moon's range is limited to approximately ±18°.
Out-of-Bounds (OOB):
When the Moon moves beyond ±23.44° declination, it exceeds the Sun's maximum reach and is considered "Out of Bounds."
█ COLORING OPTIONS
Phase Coloring (Moon)
Color the Moon's declination line by lunar phase:
• New Moon (0-90°): Slate silver
• First Quarter (90-180°): Mint
• Full Moon (180-270°): Bright gold
• Last Quarter (270-360°): Soft violet
Zodiac Sign Coloring (Nodes)
Color the node lines by their zodiac sign. When enabled, a color legend appears at the top, showing all 12 signs for reference.
█ ZODIAC FEATURES
Zodiac Sign Coloring
Color the North and South Node lines according to their zodiac sign positions.
Zodiac Crossing
Marks when the North Node crosses a specific zodiac degree. Select any sign and degree (0-29) to track. The North Node moves retrograde through the zodiac over an 18.6-year cycle.
█ RESEARCH FEATURES
Standstill Thresholds
Horizontal reference lines at key declination levels:
• ±28.6° Major Standstill (peak of the 18.6-year cycle)
• ±18.3° Minor Standstill (trough of the cycle)
• ±23.4° Out-of-Bounds threshold
OOB Highlighting
Optional background shading when the Moon exceeds the OOB threshold.
Node Equatorial Crossings
Crosshair markers indicate when the node's declination crosses 0° (equatorial passage).
Reference Line Labels
Labels at projection endpoints with an adjustable offset for readability.
█ FEATURES
• Moon declination with optional lunar phase coloring
• Sun declination overlay
• North and South node declinations (☊ and ☋)
• Future projections up to 500 bars
• Zodiac sign coloring with a color legend
• Zodiac degree-crossing markers
• Node equatorial-crossing markers
• Out-of-Bounds background highlighting
• Reference line labels with offset control
• Customizable line widths and colors
• Informative tooltips for all settings
• Works on all timeframes
█ HOW TO USE
1 — Add the indicator to your chart
2 — Configure which elements to display (Moon, Sun, Nodes)
3 — Enable future projections to view upcoming declination values
4 — Enable Zodiac coloring to track node sign positions
5 — Set a Zodiac Crossing degree to mark when the North Node crosses that point
6 — Enable Standstill Thresholds to show reference lines
7 — Toggle phase coloring to visualize the lunar cycle
█ THEORY
Lunar Theory: ELP2000-82 by Chapront-Touzé & Chapront
Solar Theory: VSOP87 for Sun position and phase calculation
Reference: Meeus, "Astronomical Algorithms" (2nd Ed., 1998)
█ LIMITATIONS
• Truncated ELP2000-82 theory (~10 arcseconds precision)
• Future projections assume consistent bar timing
• Phase coloring uses 4 phases (not the 8 traditional phases)
• Mean nodes only (no perturbation corrections)
█ OPEN SOURCE
Blueprint Research Ephemeris Libraries:
• lib_elp2000_moon — Lunar position and mean node calculations
• lib_vsop_core — Solar position and coordinate utilities
• lib_ephemeris — Unified planetary API
Third-Party Libraries:
• hsvColor by @kaigouthro — HSV color utilities (MPL 2.0)
© 2025-2026 BlueprintResearch (Javonnii) • CC BY-NC-SA 4.0
[PAPI] TF-OBV-ATR-Weighted MACDThis is a MACD indicator with a few differences:
Multi-Timeframe: The indicator calculates the "MACD", the "Signal" and the "Histogram" for four user-defined timeframes.
Volume weighted: The three MACD variables calculated for each timeframe above are weight-averaged according to On Balance Volume (OBV).
Volatility weighted: The three MACD variables calculated for each time frame above are also weight-averaged according to Average True Range (ATR)
The MACD, Signal and Histogram are plotted.
I use the indicator twice. Once with the user defined Timeframes set to high TFs (Month/Week/Day/4h) - this is for directional bias. And once with lower TFs (1m/3m/15m/1h).
[PAPI] TF-OBV-ATR-Weighted MACDThis is a MACD indicator with a few differences:
Multi-Timeframe: The indicator calculates the "MACD", the "Signal" and the "Histogram" for four user-defined timeframes.
Volume weighted: The three MACD variables calculated for each timeframe above are weight-averaged according to On Balance Volume (OBV).
Volatility weighted: The three MACD variables calculated for each time frame above are also weight-averaged according to Average True Range (ATR)
The MACD, Signal and Histogram are plotted.
I use the indicator twice. Once with the user defined Timeframes set to high TFs (Month/Week/Day/4h) - this is for directional bias. And once with lower TFs (1m/3m/15m/1h).
Hedge Fund Trading System Core Components
1. Factor Model
The heart of HFTS is a four-factor scoring system:
Value Factor: Measures price deviation from fair value (historical mean). Positive scores indicate undervaluation; negative scores indicate overvaluation.
Momentum Factor: Risk-adjusted momentum measuring recent returns relative to volatility. Identifies trending strength.
Carry Factor: Approximates institutional carry trades using price structure analysis (configurable methods).
Macro Regime: Long-term trend regime detection (BULL/BEAR/NEUTRAL) using slope-normalized moving averages.
Each factor is normalized and combined into a Combined Factor Score ranging from -1 (extremely bearish) to +1 (extremely bullish).
2. Trend Filter (EMA Cloud)
Triple EMA system (21/55/200) providing:
Short-term trend direction (Fast vs Slow EMA)
Macro trend context (200 EMA)
Visual cloud for trend state
3. Adaptive Volatility Bands
Dynamic bands that expand/contract based on current volatility regime:
HIGH volatility: Bands expand (wider stops needed)
LOW volatility: Bands contract (tighter entries possible)
NORMAL: Standard deviation
4. Volume Profile & VWAP
Volume Profile: Shows price levels with highest trading activity
POC (Point of Control): Highest volume price level
Value Area (VAH/VAL): 70% of volume concentrated zone
VWAP + Deviation Bands: Institutional execution benchmark
5. Risk Management Panel
Real-time position sizing and risk metrics:
Calculated position size based on account risk %
Stop distance (ATR-based)
Drawdown tracking with kill switch
Directional bias status
Z-Score Trading Strategy
The Z-Score is your mean reversion radar. It measures how many standard deviations price is from its 20-period mean.
Z-Score Levels:
Z-ScoreConditionMeaning> +2.5Extreme Overbought🔶 Diamond marker appears - potential short setup> +2.0OverboughtPrice extended above mean-2.0 to +2.0Normal RangeNo extreme conditions< -2.0OversoldPrice extended below mean< -2.5Extreme Oversold🔷 Diamond marker appears - potential long setup
How to Trade Z-Score Signals:
Mean Reversion Longs (Z < -2.0):
Wait for Z-Score to drop below -2.0 (oversold)
Look for diamond marker at extreme (-2.5)
Confirm Macro Regime is NOT "BEAR"
Enter when Z-Score starts turning UP (reversal confirmation)
Target: VWAP or Vol Band Basis (mean)
Stop: Below recent swing low or Vol Band Lower
Mean Reversion Shorts (Z > +2.0):
Wait for Z-Score to rise above +2.0 (overbought)
Look for diamond marker at extreme (+2.5)
Confirm Macro Regime is NOT "BULL"
Enter when Z-Score starts turning DOWN
Target: VWAP or Vol Band Basis
Stop: Above recent swing high or Vol Band Upper
Z-Score + Factor Confluence:
The best mean reversion trades occur when:
Z-Score hits extreme AND
Value Factor confirms (undervalued for longs, overvalued for shorts) AND
Price is at/beyond Volatility Band AND
Volume spike confirms institutional participation
Signal Types
Trend Signals (Green/Red Triangles)
Long Setup:
Trend UP (Fast EMA > Slow EMA)
Pullback to support (between Vol Band Lower and Basis)
Price crosses back above Fast EMA
Factor Score > 0
Above VWAP (if confirmation enabled)
Short Setup:
Trend DOWN (Fast EMA < Slow EMA)
Rally to resistance (between Vol Band Upper and Basis)
Price crosses below Fast EMA
Factor Score < 0
Below VWAP (if confirmation enabled)
Mean Reversion Signals
Automatically generated when Z-Score conditions + regime filters align.
Recommended Settings by Asset
AssetTick ValueTick SizeNotesNQ (Nasdaq Futures)5.000.25High volatility, widen bandsES (S&P Futures)12.500.25Standard settings work wellStocks0.010.01Default settingsCrypto0.010.01Consider higher ATR multiplier
Pro Tips
Factor Alignment: Only take signals when Combined Factor Score matches your trade direction
Volatility Regime: Reduce size in HIGH volatility; increase in LOW volatility
VWAP as Magnet: Price tends to revert to VWAP - use for targets
POC Support/Resistance: Volume Profile POC acts as strong S/R
Drawdown Kill Switch: If Risk State shows "STOPPED" - step away and reassess
Z-Score Extremes: The best mean reversion trades come from -2.5/+2.5 levels, not -2.0/+2.0
Alerts Available
Long/Short Signal triggers
Extreme Overbought/Oversold conditions
VWAP crosses
Drawdown limit breach
HFTS - Z-Score Mean ReversionCore Concept
The indicator calculates a Z-Score — a statistical measure showing how many standard deviations price is from its mean. When price stretches too far from the mean (into extreme territory), it tends to revert back, creating trading opportunities.
How It Works
Z-Score Calculation:
Takes a moving average (default 20 bars) and standard deviation of your chosen source (default: close)
Z-Score = (Price - Mean) / Standard Deviation
Applies smoothing (default 3-period SMA) to reduce noise
Includes a 9-period EMA signal line for crossover context
Zone Detection:
Overbought: Z-Score ≥ 2.0 (price is 2+ standard deviations above mean)
Oversold: Z-Score ≤ -2.0 (price is 2+ standard deviations below mean)
Reversal Signals:
Triangles plot when Z-Score exits extreme zones (not enters) — this is the mean reversion trigger
Short signal: Z-Score drops back below overbought level
Long signal: Z-Score rises back above oversold level
Visual Features
Volume Profile overlay showing where volume clustered at different Z-Score levels over your lookback period — helps identify high-volume-node zones where reversions may stall or accelerate
Info table displaying current Z-Score value, zone status, and momentum direction
Gold accent when in extreme zones, white line in neutral territory
AGR-TIK1. Input Parameters
Source (src)
Uses close price by default.
Length (default: 185)
Long-term moving average period.
Use EMA (boolean)
true → EMA is used
false → SMA is used
Smooth Source
Choice of smoothing method for the MA:
SMA
EMA
WMA
Smooth Length (default: 12)
Period for smoothing the main moving average.
BS Multi-MA綜合5/10/20/60/200日的SMA、EMA、WMA
並於WMA與SMA相交時呈現提示標籤
時間級別與提示標籤可自行開關
"Combines the SMA, EMA, and WMA for 5, 10, 20, 60, and 200-day periods. Displays signal labels when the WMA crosses the SMA. Both timeframes and labels can be toggled on or off manually."
MA4 Alignment with Forward ProjectionThis indicator is a moving-average alignment and projection overlay built on a simple core idea:
MA4 (a 4-period moving average) represents the current short-term mean of price.
MA4 is the prior value of that same moving average, used as a 1-bar delayed reference.
From those two series, the script provides four layers of information:
Live alignment (MA4 vs MA4 )
A forward projection of a sampled historical MA pattern
Projected cross markers (vertical lines) when the projected MA4 would cross projected MA4
A compact table summarizing current alignment and the most recent live cross event
This is designed to help traders visualize:
whether short-term mean behavior is strengthening or weakening, and
where a future cross could plausibly occur if a selected historical pattern repeats.
This script is informational only and does not place trades.
Chart Setup Note (Important)
Because this tool samples a historical pattern window and projects it forward, it is important to let the chart fully load/merge historical data before interpreting the projection.
If the chart history is not fully loaded, the sampled window may be incomplete, which can shift the projection and projected cross markers.
Once the chart is fully merged, the projection remains stable and consistent during scrolling and replay.
What Makes It Different
This is not a basic “MA crossover” indicator. The core differentiator is:
The script extracts a historical MA4 pattern from a user-defined window,
shifts it forward into the future, and
marks projected future crosses between the projected MA4 and projected MA4 .
It also builds projected deviation envelopes from the sampled window and uses those envelopes for optional stretch/invalidation alerts.
How the Projection Works (Concept)
1) Sample a historical MA “pattern window”
You define a window in the past using:
Pattern Start (bars back)
Pattern End (bars back)
The script collects MA4 values across that window into an internal pattern array.
2) Shift the pattern forward
Shift Pattern Forward (bars) controls how far into the future the sampled pattern is plotted.
3) Delta-anchor projection (optional)
If Delta-anchor projection is enabled, the script projects the shape of the pattern while re-centering it around the current MA4 level.
This keeps the projection visually relevant to current price scale instead of “pasting” old absolute values.
Projected Cross Vertical Lines
When projection is enabled, the script checks for projected cross events:
Bull projected cross: projected MA4 rises through projected MA4
Bear projected cross: projected MA4 falls through projected MA4
When a projected cross occurs, a vertical line marks that projected bar as a possible timing point.
Vertical line visibility is made more consistent by using a deviation-based height (with ATR fallback) so the marker remains readable across different symbols and volatility regimes.
Projected Deviation Envelopes + Alerts (Band 3 / Band 4)
The script measures historical deviation from MA4 within the sampled window using the standard deviation of:
(close − MA4)
That deviation is then applied to the projected MA4 path to form projected envelopes:
Band 3 (Stretch): ±(StDev × 1.618 by default)
Band 4 (Invalidation): ±(StDev × 2.618 by default)
Optional alerts can trigger when price breaches these projected envelopes:
Band 3 Breach: price stretched outside the projected range
Band 4 Breach: price exceeded the larger projected boundary (often treated as invalidation context)
Alerts can be set to use wicks or close.
Table: What It Shows
The table summarizes the current state at a glance:
MA4 value
MA4 value
Alignment: Bullish / Bearish / Neutral
Most recent live cross event:
BUY (MA4 crossed above MA4 )
SELL (MA4 crossed below MA4 )
This helps confirm what you’re seeing without relying on visual estimation.
How to Use It (Simple Workflow)
Read live alignment
MA4 above MA4 = bullish bias
MA4 below MA4 = bearish bias
Enable projection for timing awareness
Turn on Projection
Watch projected cross VLines as “possible next inflection timing” markers
Use Band 3 / Band 4 as context
Band 3 breach can indicate stretch vs the projected path
Band 4 breach can indicate the projected path is less reliable (invalidation context)
Use the table for quick confirmation
It summarizes alignment and the latest live cross state.
Multi-cycle EMA50 full-screen solid lineA small tool to help you check the price of EMA50 over multiple periods.
XAUSNIPERThis is for all subscribers
1. Use color candles
2. Use mitigation
3. Use lux algo structure shifts
Multi-Session H/L - Sweep & Grab v5# Multi-Session High/Low Levels with Liquidity Sweep & Grab Detection
## Overview
This indicator automatically identifies and plots the High and Low levels of key trading sessions (Asia, London, New York AM, New York PM) and Previous Day levels. It features advanced **Liquidity Sweep** and **Liquidity Grab** detection based on ICT/SMC methodology.
## Key Features
### 📊 Multi-Session Tracking
- **Asia Session** - Captures the Asian trading range
- **London Session** - Tracks the London open volatility
- **New York AM Session** - Monitors the NY morning session
- **New York PM Session** - Follows the afternoon price action
- **Previous Day High/Low** - Key daily reference levels
### 💧 Liquidity Detection (ICT/SMC Concepts)
**Liquidity Grab:**
- Detected when price **wicks through** a level but **closes back** inside
- Single candle event with rejection
- Often signals a potential reversal
- Label shows: `"Session H/L (Grab)"`
**Liquidity Sweep:**
- Detected when price **closes beyond** the level
- Indicates liquidity has been fully taken
- Label shows: `"Session H/L (Swept)"`
### 🎯 Visual Features
- Lines automatically **stop at the candle** where liquidity was grabbed or swept
- Different line styles for Active / Grabbed / Swept levels
- Customizable colors for each session
- Optional session background highlighting
- Information table showing all levels and their status
### ⚙️ Customization Options
- Adjustable session times for any timezone (GMT+0 to GMT+5)
- Calculation timeframe selection
- Line width and style settings
- Label size options
- Toggle each session on/off
- "Stop Line on Grab" option
### 🔔 Alerts
- Separate alerts for **Liquidity Grab** events
- Separate alerts for **Liquidity Sweep** events
- Available for all sessions and Previous Day levels
## How to Use
1. **Identify Key Levels:** The indicator automatically marks session highs and lows
2. **Watch for Liquidity Events:** Monitor when price approaches these levels
3. **Grab = Potential Reversal:** A liquidity grab (wick rejection) often signals smart money has collected orders and price may reverse
4. **Sweep = Liquidity Taken:** A sweep (close beyond level) confirms the liquidity pool has been cleared
5. **Plan Your Trades:** Use these levels in confluence with other SMC concepts like Fair Value Gaps (FVG) and Order Blocks (OB)
## Status Colors in Table
- 🟢 **Green (Active)** - Level has not been touched
- 🟠 **Orange (Grab)** - Wick touched the level, potential reversal zone
- 🔴 **Red (Swept)** - Close beyond level, liquidity fully taken
## Settings Explained
| Setting | Description |
|---------|-------------|
| Calculation Timeframe | Timeframe used for session calculations |
| Timezone | Your broker's timezone (GMT+0 to GMT+5) |
| Extend Lines | Extend active lines into the future |
| Stop Line on Grab | If enabled, lines stop when grabbed (not just swept) |
| Swept/Grab Line Style | Visual differentiation for liquidity events |
## Notes
- Works on all markets (Forex, Crypto, Stocks, Indices, Commodities)
- Best used on timeframes from 1min to 1H
- Session times are fully customizable to match your time zone
- The indicator respects the ICT/SMC definition where a **Grab** is a single-candle wick rejection and a **Sweep** involves price closing beyond the level
Cycles by AlgoKingsCycles by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE CYCLES?
Cycles visualizes institutional time windows and key opening price levels. Instead of analyzing price patterns, this indicator segments the trading day into institutional order flow periods (90-minute, 30-minute, 10-minute cycles) and marks significant opening prices (session, daily, weekly, monthly, yearly) that often act as reference points for intraday price action.
Example: The 09:30 open price marks the start of regular US equity trading and often serves as a pivot level throughout the day. The London 1 (LN 1) 90-minute cycle from 02:30-04:00 EST represents the first institutional accumulation window.
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. INTRADAY CYCLE SEGMENTATION
Divides the trading day into institutional time windows:
ASIA SESSION:
18:00-02:30 EST (overnight session before London open)
90-MINUTE CYCLES:
Nine windows per trading day aligned with ICT methodology:
- LN 1, LN 2, LN 3: London session (02:30-04:00, 04:00-05:30, 05:30-07:00)
- AM 1, AM 2, AM 3: New York AM session (07:00-08:30, 08:30-10:00, 10:00-11:30)
- PM 1, PM 2, PM 3: New York PM session (11:30-13:00, 13:00-14:30, 14:30-16:00)
Technical implementation:
- 90m detection: Calculates ((hour * 60 + minute) - 150) % 90 == 0 to identify cycle boundaries from 02:30 EST baseline
- Session boundaries: Tracks inSession flag using time("", "0230-1600", gTimezone) to detect entry/exit from trading window
- Index tracking: Maintains counter (1-9) to assign sequential names (LN 1, AM 2, etc.) and color rotation (A/M/D pattern)
Color coding:
Each 90m cycle alternates three colors in A-M-D pattern (Accumulation-Manipulation-Distribution phases based on ICT concepts)
30-MINUTE CYCLES:
27 windows per trading day (2:30-16:00 EST), color-coded in A-M-D triplet pattern
10-MINUTE CYCLES:
81 windows per trading day (2:30-16:00 EST), single color for all
Cycle visualization:
- Box backgrounds highlight time ranges
- High/low tracked dynamically as cycle forms
- EQ (equilibrium) line at midpoint for 90m cycles
- Borders (optional) delineate cycle boundaries
2. OPENING PRICE TRACKING
Marks key opening levels that serve as institutional reference points:
SWING OPENS:
- Year Open: First price of calendar year
- Quarter Open: First price of Q1, Q2, Q3, Q4
- Month Open: First price of calendar month
- Week Open: First price of Sunday 18:00 EST (Monday for crypto)
INTRADAY OPENS:
- 00:00 Open: Midnight EST (new trading day for 24h markets)
- 09:30 Open: US equity market open
- Current Cycle Open (C.O): Opening price of most recent 90m cycle
Technical implementation:
- Period opens: Uses request.security to detect new bar on higher timeframe (time != previous time )
- Timed opens: Pattern matches hour/minute (e.g., hour==9 and minute==30 for 09:30)
- Line extension: Opens extend right dynamically (end = time + offset) to stay visible
History parameter controls how many previous opens to display per type.
3. OVERLAP CONSOLIDATION
When multiple opens share the same price level, consolidates into single visual:
ALGORITHM:
At barstate.islast, compares all active Level objects by price coordinate. When match found, merges labels into combined text with bullet separator (e.g., "M.O, W.O •" indicates Month Open and Week Open coincide). Lower precedence level undrawn, higher precedence level preserves visual with concatenated tooltip.
This prevents chart clutter when weekly, monthly, or quarterly opens align at same price.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- 90m cycle detection: Custom time arithmetic ((hour * 60 + minute) - 150) % 90 == 0 that calculates exact 90-minute boundaries from 02:30 baseline, with session boundary detection to exclude overnight periods
- Cycle index management: State machine that resets index to 1 on session start, increments through 1-9, applies modulo arithmetic for color rotation (index % 3), and assigns sequential names based on position
- Dynamic range tracking: Real-time high/low updating during cycle formation (h = math.max(h, high), l = math.min(l, low)) with isFinal flag transition when cycle completes
- Timed open detection: Pattern matching on hour/minute combinations with timezone conversion (gTimezone = "America/New_York") and proper handling of 24h markets vs traditional session starts
- Overlap consolidation: Price-based comparison of all Level objects at barstate.islast, string concatenation of names, selective undrawing to maintain single visual per price level
- Day of week positioning: Complex time offset calculations (newNoonTime = time - D/2, newMidTime for Sunday handling) to center labels at day midpoints considering crypto 24/7 vs traditional market schedules
Standard cycle indicators show fixed time periods. This script provides ICT-aligned institutional windows with smart label management and multi-timeframe open tracking.
TECHNICAL COMPONENTS
Core structures:
- Security Object: Stores timeframe data (open, time, time ) from request.security calls, maintains isNew flag for cycle detection
- Range Object: Represents cycle box with coordinates (start, end, h, l), isFinal state, drawing objects (box, label, eq line)
- Level Object: Represents open price line with coordinates (price, start, end, startCtf), isFinal state, drawing objects (line, label)
- Option Object: Centralized settings container with cycle-specific overrides for colors, styles, history counts
Cycle detection patterns:
- 90m: if (security.isNew and ((hour * 60 + minute) - 150) % 90 == 0 and inSession)
- 30m: if (security.isNew and inSession), index cycles 1-2-3 for color
- 10m: if (security.isNew and inSession)
- Period opens: if (security.isNew) on higher timeframe
- Timed opens: if (security.isNew and hour == h and minute == m)
Extension logic:
- Ranges: end = time, h = max(h, high), l = min(l, low) while not isFinal
- Levels: end = time + offset (offset = ctfSeconds * 12000 for far-right placement)
HOW TO USE
Setup:
1. Apply to intraday chart (works best on 1m-30m timeframes)
2. Enable/disable cycle types in Time Cycles section
3. Enable/disable open types in Opens section
4. Configure History to control how many days/periods to show
5. Adjust colors and line styles to preference
Chart Timeframe Requirements:
Designed for intraday charts (seconds to 30m). Higher timeframes (1H+) will show opens but cycles may not display properly.
Interpretation:
CYCLES (Box Backgrounds):
- ASIA = Gray box covering 18:00-02:30 EST
- LN 1/2/3 = Blue/Red/Green boxes (London 90m cycles)
- AM 1/2/3 = Blue/Red/Green boxes (NY morning 90m cycles)
- PM 1/2/3 = Blue/Red/Green boxes (NY afternoon 90m cycles)
- 30m/10m = Smaller nested cycles within 90m windows
- EQ line = 50% equilibrium level within 90m cycle range
OPENS (Horizontal Lines):
- C.O = Current 90m cycle open (most recent)
- 00:00 = Midnight EST open
- 09:30 = US equity market open
- W.O = Week open (Sunday 18:00)
- M.O = Month open
- Q.O = Quarter open
- Y.O = Year open
- Bullet (•) in label = Multiple opens at same price
DAY OF WEEK:
- Labels at chart bottom (Monday, Tuesday, etc.)
- Vertical dividers at midnight (optional)
SETTINGS EXPLAINED
Time Cycles:
- Asia: Enable/disable Asia session box (18:00-02:30 EST) with color picker
- 90m Cycle: Enable/disable 90m windows with three color pickers (A/M/D phases)
- 90m EQ: Show/hide equilibrium line at midpoint of 90m cycles
- 30m Cycle: Enable/disable 30m windows with three color pickers
- 10m Cycle: Enable/disable 10m windows with single color
- Label: Size for cycle names (LN 1, AM 2, etc.)
- Border: Show/hide cycle box outlines with style picker
- History (Days): Number of days to show cycles (0-4)
Opens:
- Label: Color and size for all open price labels
- Line Width: Thickness for all open price lines
- Current Cycle: Enable/disable C.O (current 90m cycle open)
- 00:00: Enable/disable midnight open with color and history count
- 09:30: Enable/disable equity market open with color and history count
- Week: Enable/disable weekly open with color and history count
- Month: Enable/disable monthly open with color and history count
- Quarter: Enable/disable quarterly open with color and history count
- Year: Enable/disable yearly open with color and history count
History count determines how many previous opens to display (e.g., History=2 for Weekly shows this week and last week's opens)
Day of Week:
- Day: Enable/disable day name labels at chart bottom
- Divider: Enable/disable vertical lines at midnight boundaries with style picker
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Asia range + liquidity and PDH/PDLThis comprehensive ICT indicator automatically plots a fully customizable Asian Range with 'smart' liquidity rails that terminate on wick contact, alongside Previous Day High/Low (PDH/PDL) levels featuring a unique 'body-break' stop logic, all while offering complete style control and a 'clean history' mode to display only the current session's key levels."
PXX Levels by AlgoKingsPXX Levels by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE PXX LEVELS?
PXX (Previous X High/Low) displays key support and resistance levels from completed market cycles. Unlike standard pivot indicators that use fixed bars, this tool calculates levels using natural market rhythms (sessions, 90-minute institutional windows, true daily periods) that align with institutional trading behavior.
Example: Previous Day High at 15,200 acts as resistance. Previous London session Low at 15,150 acts as support.
UNDERLYING METHODOLOGY
This indicator combines four analytical layers:
1. CYCLE-BASED PERIOD DETECTION
Tracks 10 cycle types across swing and intraday timeframes:
SWING CYCLES:
- Yearly: 12-month institutional rebalancing highs/lows
- Quarterly: 3-month earnings cycle extremes
- Monthly: Calendar month highs/lows
- Weekly: 7-day swing extremes
- Daily: Standard 18:00-18:00 EST bars
- TrueDay: 00:00-00:00 EST for 24-hour markets (futures, forex, crypto)
INTRADAY CYCLES:
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute institutional windows (LN 1/2/3, AM 1/2/3, PM 1/2/3)
- 30m: 30-minute cycle extremes
- 10m: 10-minute cycle extremes
Technical implementation:
- TrueDay calculation: Detects candle closes at exactly 00:00 EST using time modulo arithmetic on 24-hour markets
- Session detection: Pattern matching on hour:minute timestamps (e.g., hr==2 and mn==30 triggers London session end at 02:30)
- 90m subdivision: Three 90-minute windows per session identified by specific time boundaries
- Cycle completion: Uses request.security with lookahead_on to detect when previous period (high , low ) closes
2. LEVEL TRACKING AND STATE MANAGEMENT
Proprietary state machine for each level:
LEVEL STATES:
- Live: Current cycle forming, level updates bar-by-bar as new highs/lows form
- Final: Cycle completed, level locked at cycle's high/low
- Taken: Price has touched/exceeded the level (mitigation)
- Extended: Level continues displaying after cycle completion or mitigation
State transitions:
- New cycle detected → Create Live level at current high/low
- Cycle completes → Transition Live to Final, lock coordinates
- Price touches level → Mark as Taken, optional removal from chart
- History limit reached → Purge oldest levels
Technical components:
- Level Object: Tracks y-price, x-start time, x2-current extension, isFinal/isTaken/isLive/isExtend flags
- Dynamic extension: Levels extend to current bar (x2 = time) until finalized or taken
- Mitigation detection: Compares current high >= level for resistance, low <= level for support
3. OFF-CHART LEVEL BACKFILL
Handles higher timeframe levels that formed before chart data:
When chart timeframe is lower than cycle period (e.g., 5m chart showing Daily levels), the indicator backfills up to 4 historical cycles using nested request.security calls (high , low , high , low , etc.). These off-chart levels are marked with tag in tooltips.
Anchor detection: If price matches an off-chart level's value, the indicator anchors it to the current bar time, removing the off-chart designation and making it actionable.
4. OVERLAP CONSOLIDATION AND PURGE HIERARCHY
Advanced filtering to prevent chart clutter:
OVERLAP DETECTION:
When multiple cycles produce identical levels (same y-price and x2-extension), the indicator combines them into a single visual with merged labels. Example: "P D, P W H" shows Previous Day and Previous Week High coincide.
Algorithm compares all levels at barstate.islast, identifies duplicates by y-coordinate and x2-endpoint, undraws lower precedence levels, and appends their names to higher precedence level's tooltip.
PURGE HIERARCHY:
- "Purge 10m/30m on new 90m Cycle": When 90m cycle completes, removes all 10m and 30m sub-cycle levels from chart
- "Purge 90m on new Session Cycle": When Session cycle completes, removes all 90m levels from chart
- This prevents clutter by automatically cleaning sub-levels when parent cycle resets
Implementation uses array-based tracking where higher cycle types (Session, 90m) hold references to lower cycle Pxx objects, allowing cascading purge operations on cycle completion.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Cycle boundary detection: Custom logic for TrueDay (00:00 EST detection), Session identification (time-based pattern matching for 5 sessions), 90m subdivision (9 windows per day with specific time triggers), requiring complex hour/minute arithmetic
- Off-chart backfill system: Nested request.security calls to retrieve 4 historical cycles with isOffChart flagging and dynamic anchor detection when price revisits historical levels
- Level state machine: Multi-state tracking (Live/Final/Taken/Extended) with transition logic, including dynamic y-coordinate updates during Live state and precise finalization timing
- Overlap consolidation algorithm: Compares all active levels at each bar using y-coordinate and x2-endpoint matching, merges duplicate levels, preserves highest precedence visual while concatenating names
- Purge hierarchy system: Parent-child relationships between cycle types (Session→90m→30m/10m) with cascading cleanup operations triggered on cycle completion events
Standard support/resistance indicators show fixed pivot points. This script provides institutional-level cycle tracking with intelligent state management and visual optimization.
TECHNICAL COMPONENTS
Core structures:
- Cycle Object: Tracks cycle type, period string, current bar data, and array of historical CycleBar objects (up to 5 cycles deep)
- CycleBar Object: Stores high/low values, timestamps (open, close, high-time, low-time), cycle name, and off-chart status
- Level Object: Contains y-price, start/end coordinates, state flags (isFinal, isTaken, isLive, isExtend, isOffChart, isCurrent), and drawing objects (line, labels)
- Pxx Object: Manages array of high levels and array of low levels for one cycle type, handles updates/extensions/purging
Cycle detection:
- TrueDay: Tests hour==0 and minute==0 at time_close OR dayofweek change (excluding Monday for non-crypto)
- Session: Matches hour:minute pairs (17:00=ASIA, 02:30=LN, 07:00=AM, 11:30=PM, 16:00=VOID)
- 90m: Nine specific time boundaries from 02:30 to 16:00 EST
- Default cycles: Uses previous period close time (time ) from request.security
HOW TO USE
Setup:
1. Apply to any chart (works on all symbols and timeframes)
2. Enable/disable cycle types in settings (Swing Cycles, Intraday Cycles)
3. Configure History count for each cycle (how many previous levels to show)
4. Enable "Live" to see current cycle levels forming in real-time
5. Enable "Extend" to keep levels visible after mitigation
Chart Timeframe Requirements:
- Swing cycles: Chart TF must be <= cycle period and divide evenly (e.g., Daily requires 1H or lower)
- Intraday cycles: Chart TF must divide evenly into cycle (e.g., Session/90m/30m require 30m or lower, 10m requires 10m or lower)
- TrueDay: Automatically used instead of Daily on 1H and below for 24-hour markets
Interpretation:
- Horizontal lines show Previous High (resistance) and Previous Low (support) from completed cycles
- "P" prefix = Previous cycle (e.g., "P D H" = Previous Day High)
- No prefix = Current cycle forming (e.g., "LN 2 L" = Current London 2nd 90m Low)
- Dotted line = Level has been taken (mitigated)
- Solid line = Level still active
- Dot at left = Level formation point
- Label at right = Cycle name and high/low designation
- in tooltip = Level formed before chart data, not yet anchored
SETTINGS EXPLAINED
Time Cycles (Each cycle has 5 settings):
- Checkbox: Enable/disable cycle
- Color: Line color for this cycle's levels
- History: Number of previous cycles to display (1-4, or higher for intraday)
- Extend: Keep level visible after mitigation
- Live: Show current cycle's level as it forms bar-by-bar
Swing Cycles Available:
Year, Quarter, Month, Week, Day (uses TrueDay automatically on 1H and below for 24h markets)
Intraday Cycles Available:
Session (5 sessions per day), 90m (9 windows per day), 30m, 10m
Options:
- Line Width: Thickness of level lines (default: 1)
- Label: Show/hide text labels with size and color options
- Show Mitigated: Keep levels on chart after taken (shows as dotted) or remove them
- Purge 10m/30m on new 90m Cycle: Auto-remove sub-levels when 90m completes
- Purge 90m on new Session Cycle: Auto-remove 90m levels when Session completes
Common Configurations:
- Scalping: Enable 10m, 30m, 90m with History=1-3, Live=true, Extend=false
- Day Trading: Enable Session, 90m, Day with History=1-4, Live=true
- Swing Trading: Enable Day, Week, Month with History=1-2, Extend=true
- Position Trading: Enable Week, Month, Quarter, Year with Extend=true
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
SMT Cycles by AlgoKingsSMT Cycles by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE SMT CYCLES?
This indicator identifies Smart Money Technique divergences using cycle-based analysis rather than standard timeframes. Cycles represent natural market rhythms (sessions, 90-minute institutional windows, true daily periods) that better align with institutional trading patterns than arbitrary timeframe bars.
Example: During the London session, NQ makes a new high but ES fails to follow = Bearish SMT divergence within the London cycle
UNDERLYING METHODOLOGY
This indicator combines four analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs (identical to SMT Custom):
- Futures: NQ, ES, YM cross-correlation | GC/SI | 6E/6B
- Forex: EURUSD/GBPUSD/DXY(inverse) | AUDUSD/NZDUSD
- Stocks: MAG7 (META, NVDA, MSFT, etc.) vs NDX
- Crypto: BTCUSD/ETHUSD
Algorithm automatically mirrors contract types and exchange prefixes using regex-based parsing for futures contracts and micro variants.
2. CYCLE-BASED PERIOD DETECTION
Unlike standard timeframe analysis, this indicator uses market structure cycles:
SWING CYCLES (Position Trading):
- Yearly: 12-month institutional rebalancing periods
- Quarterly: 3-month earnings and fund rotation cycles
- Monthly: Calendar month institutional flows
- Weekly: 7-day swing trading cycles
- Daily: Standard 18:00-18:00 EST bars
- TrueDay: 00:00-00:00 EST for 24-hour markets (futures, forex, crypto)
INTRADAY CYCLES (Day Trading):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute windows per trading day (02:00-03:30, 03:30-05:00, etc.)
- 30m: 30-minute institutional order flow windows
- 10m, 3m, 1m: Scalping cycles for precise entry timing
Technical implementation:
- TrueDay calculation: Detects candle closes at exactly 00:00 EST using time modulo arithmetic on 24-hour markets. Differs from standard Daily bars which use futures settlement times (18:00 EST).
- Session detection: Regex pattern matching on hour/minute timestamps to identify cycle boundaries (e.g., h==2 and m==0 triggers Asia session end)
- 90m hierarchy: Groups sub-90m cycles (30m, 10m, 3m, 1m) under their parent 90m window using group timestamp tracking (gx field)
- Intermediate accumulation: For multi-bar cycles (TrueDay, Sessions, 90m), maintains running high/low (nh1, nl1) across constituent bars until cycle completion
3. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle synchronization:
- Tracks price structure across up to 11 configurable cycles simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Compares previous cycle extremes (high , low ) across correlated pairs
- Timestamps divergence formations at chart timeframe precision
- Implements adaptive purge logic (1min to 12M) based on cycle type
4. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low within cycle, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high within cycle, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, 90m hierarchy overlap filtering (hides sub-90m SMT within parent 90m window), and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Cycle boundary detection: Custom logic for TrueDay calculation (00:00 EST candle close detection using modulo arithmetic on 24h markets), Session identification (time-based regex for Asia/London/NY periods), and 90m window calculation (minute offset from 02:00 EST baseline)
- Intermediate cycle accumulation: Complex state management for multi-bar cycles (Sessions, 90m, TrueDay) that build complete cycle values across constituent bars before finalizing
- 90m hierarchy system: Proprietary grouping algorithm (gtype, gca, gx fields) that links sub-90m cycles to parent windows for intelligent overlap filtering
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition and exchange inheritance
- Adaptive purge system: Cycle-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences across different cycle types with state management for "taken" levels
Standard SMT indicators use fixed timeframes. This script analyzes institutional cycles that don't align with standard bar periods, requiring complex time arithmetic and multi-bar aggregation logic.
TECHNICAL COMPONENTS
Core structures:
- Cycle Object: Tracks high/low/time for each cycle type with intermediate values (nh1, nl1) for multi-bar cycles and complete cycle values (h1, l1, t1) upon cycle completion
- CycleType Enum: Defines 11 cycle types (year, quarter, month, week, day, trueday, session, m90, m30, m10, m3, m1) with associated period strings and purge thresholds
- Point Object: Stores divergence formation data for chart symbol level and correlated symbol level with "taken" status tracking
- SMT Object: Visual representation with line extension, tooltip showing formation time (EST), and optional 90m group timestamp (gx) for hierarchy filtering
Cycle detection logic:
- TrueDay: Tests if hour==0, minute==0 at candle close OR day-of-week changes (with Monday exception for markets closed weekends)
- Session: Matches specific hour:minute combinations (16:30=Void, 02:00=Asia end, 06:30=London end, 11:00=NY AM end, 15:30=NY PM end)
- 90m: Calculates (hour*60 + minute - 120) % 90 == 0 to detect 90-minute boundaries from 02:00 EST baseline
HOW TO USE
Setup (Automatic Mode - Recommended):
1. Apply to chart of supported pair (see correlation list above)
2. Indicator automatically detects optimal comparison symbols
3. Enable/disable specific cycle categories (Swing or Intraday) in settings
4. Enable/disable individual cycles within each category
5. Adjust visual preferences (colors, line styles, labels)
Setup (Manual Mode):
1. Uncheck "Automatic Symbol Mode" in settings
2. Enter "Manual Symbol #1" (e.g., ES1! when chart shows NQ1!)
3. Optional: Enter "Manual Symbol #2" for three-way comparison
4. Check "Invert" if symbol is inversely correlated (e.g., DXY vs EURUSD)
Chart Timeframe Requirements:
- Swing cycles: Chart TF must be <= cycle period (e.g., Daily cycle requires 1H or lower chart)
- Intraday cycles: Chart TF must divide evenly into cycle (e.g., 90m cycle requires 30m, 15m, 10m, 5m, or lower chart)
- TrueDay: Automatically selected for 1H and below chart TF on 24-hour markets (futures, forex, crypto)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low within cycle, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high within cycle, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all cycles showing divergence.
SETTINGS EXPLAINED
Symbols:
- Automatic Symbol Mode: Uses built-in correlation intelligence (recommended)
- Manual Symbol #1/2: Override automatic selection
- Invert: For inverse correlations (DXY vs majors)
- Hide Exact Overlap: Removes duplicate signals with identical start/end times
- Hide 90m Hierarchy Overlap: Hides sub-90m SMT (30m, 10m, 3m, 1m) when contained within parent 90m window
- Hide All Overlap: Hides lower precedence SMT when start/end points overlap higher precedence SMT
Intraday Cycles (Enable/Disable per symbol):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute institutional windows per day
- 30m: 30-minute cycles
- 10m, 3m, 1m: Scalping cycles
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
Swing Cycles (Enable/Disable per symbol):
- Yearly: 12-month cycles
- Quarterly: 3-month cycles
- Monthly: Calendar month cycles
- Weekly: 7-day cycles
- Daily: Standard daily bars (18:00-18:00 EST) OR TrueDay (00:00-00:00 EST on 1H and below chart TF for 24h markets)
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
Display:
- Bull/Bear: Enable/disable directional signals
- Line colors, styles (solid/dashed/dotted), widths
- Label: Show/hide text labels with color and size options
- SMT formation time: Displays timestamp in tooltip (New York time)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
SMT Custom by AlgoKingsSMT Custom by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS SMART MONEY TECHNIQUE (SMT)?
SMT identifies divergences between correlated market pairs when one asset makes a new high/low but its correlated counterpart fails to do so. These divergences often signal institutional repositioning and potential reversal points.
Example: NQ makes a new high at 15,200 but ES fails to exceed its previous high = Bearish SMT divergence
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs:
- Futures: NQ, ES, YM cross-correlation | GC/SI | 6E/6B
- Forex: EURUSD/GBPUSD/DXY(inverse) | AUDUSD/NZDUSD
- Stocks: MAG7 (META, NVDA, MSFT, etc.) vs NDX
- Crypto: BTCUSD/ETHUSD
Algorithm automatically mirrors contract types (perpetual/quarterly futures) and exchange prefixes using regex-based parsing. Recognizes quarterly contracts (NQU2025), micro contracts (MNQ, MES), and perpetual syntax (NQ1!).
2. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle detection algorithm:
- Tracks price structure across 9 configurable timeframes simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Identifies cycle completions with time-synchronized bar analysis
- Implements adaptive purge logic (1min to Monthly) to balance historical context vs performance
Technical implementation compares previous period extremes (high , low ) across correlated pairs and timestamps divergence formations at chart timeframe precision.
3. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, overlap filtering to remove redundant signals, and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition (expiration codes, micro contracts) and exchange inheritance
- Cycle synchronization engine: Complex timestamp matching ensures divergences only flagged when both symbols' cycle periods align perfectly (prevents false signals from data lag)
- Adaptive purge system: Timeframe-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences with state management for "taken" levels
- Overlap intelligence: Algorithm determines when to hide/combine signals from different timeframes while preserving information in tooltips
Standard divergence indicators simply compare two moving averages. This script performs real-time institutional flow analysis across correlated instruments.
HOW TO USE
Setup (Automatic Mode - Recommended):
1. Apply to chart of supported pair (see correlation list above)
2. Indicator automatically detects optimal comparison symbols
3. Enable/disable specific timeframes in settings
4. Adjust visual preferences (colors, line styles, labels)
Setup (Manual Mode):
1. Uncheck "Automatic Symbol Mode" in settings
2. Enter "Manual Symbol #1" (e.g., ES1! when chart shows NQ1!)
3. Optional: Enter "Manual Symbol #2" for three-way comparison
4. Check "Invert" if symbol is inversely correlated (e.g., DXY vs EURUSD)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all timeframes.
SETTINGS EXPLAINED
Symbols:
- Automatic Symbol Mode: Uses built-in correlation intelligence (recommended)
- Manual Symbol #1/2: Override automatic selection
- Invert: For inverse correlations (DXY vs majors)
- Hide Exact Overlap: Removes duplicate signals with identical start/end times
- Hide All Overlap: Hides lower timeframe SMT within higher timeframe ranges
Timeframes:
- 9 configurable timeframe rows
- Toggle each symbol independently (Sym #1, Sym #2 checkboxes)
- Default: Chart TF, 1m, 5m, 15m, 1H, 4H, Daily, Weekly, Monthly
Display:
- Bull/Bear: Enable/disable directional signals
- Line colors, styles (solid/dashed/dotted), widths
- Label: Show/hide text labels with color and size options
- SMT formation time: Displays timestamp in tooltip (New York time)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Titan Distance & Momentum [Professional Suite]Are you tired of "whipsaws" and false breakouts?
The Titan Distance & Momentum is not just another oscillator. It is a specialized quantitative tool designed to solve the two biggest problems in day trading: Market Exhaustion and Trend Filters.
While standard indicators (like RSI or MACD) generate noisy signals, the Titan Distance algorithm focuses on Clarity and Mean Reversion logic.
🚀 KEY FEATURES:
1. Real-Time Distance Dashboard (The "Elastic" Effect) Most traders lose money by buying tops or selling bottoms. This indicator calculates the exact distance (in points) between the current price and the 200-period Moving Average.
Visual Alert: The background automatically turns RED or GREEN when the price is statistically "overstretched" (too far from the mean).
The Logic: When the background lights up, the "elastic" is stretched. STOP following the trend and prepare for a reversion or pullback.
2. "Quantum" Smoothed Momentum We replaced the jagged, hard-to-read lines of traditional oscillators with a triple-smoothed exponential wave.
Green Wave: Positive clean momentum (Safe to buy).
Red Wave: Negative clean momentum (Safe to sell).
Zero Lag: Designed to react faster than standard MACD but smoother than raw RSI.
🎯 HOW TO USE IT:
Trend Following: Only take BUY trades when the Wave is Green and rising above the Zero Line.
The Filter: If your strategy gives a signal, LOOK DOWN. Is the background colored (Red/Green)? If yes, the market is overextended. Do not enter. Wait for the price to return to the average.
Dashboard: Check the label on the right side. It tells you exactly how many points away the price is from the 200 EMA (e.g., "+500 pts").
⚙️ SETTINGS:
Momentum Length: Adjust the sensitivity of the wave.
Distance Alert: Set the threshold (in points) to trigger the background color alert (Default: 1000 points for Indices).
Designed for precision. Built for professionals.
Turtle Trading Indicator with Stats TableThis indicator is based on the classic Turtle Trading strategy, enhanced with ATR‑based stop lines and a built‑in performance statistics table. It helps traders visualize breakout entries, exits, volatility stops, and track real‑time trade outcomes directly on the chart.
🔧 Key Features
Entry Breakout Levels (20‑bar High/Low):
Plots the highest high and lowest low over the last 20 bars. A close above the 20‑bar high signals a potential long entry; a close below the 20‑bar low signals a potential short entry.
Exit Channel Levels (10‑bar High/Low):
Plots the highest high and lowest low over the last 10 bars. These serve as exit triggers — closing below the 10‑bar low exits a long, closing above the 10‑bar high exits a short.
ATR Stop Lines (2N):
Uses the Average True Range (ATR) to calculate volatility bands (close ± 2 × ATR). These bands act as dynamic stop levels, showing where volatility‑based exits would occur.
Position Sizing (ATR‑based):
Calculates a suggested position size based on account equity, risk percentage, and ATR. This ensures trades are scaled to volatility, keeping risk consistent.
Signal Labels:
Displays labels on the chart for long entries, short entries, and exits. Each entry label includes the calculated position size.
Performance Stats Table:
A table in the corner of the chart shows real‑time trade statistics:
Win Rate % – percentage of trades closed profitably.
Gain % – cumulative percentage return from winning trades.
Loss % – cumulative percentage return from losing trades.
Average Risk‑Reward (RR) – ratio of total gains to total losses.
Average Return % – average return per trade.
Trades (W|L) – total trades taken, broken down into wins and losses.
🎯 How to Use
Watch for breakouts above/below the 20‑bar channel to identify entry signals.
Use the 10‑bar channel or ATR stop lines to manage exits.
Position sizing adapts to volatility, helping maintain consistent risk.
Monitor the stats table to evaluate performance in real time while testing or refining the strategy.
This indicator combines visual trade signals with quantitative feedback, making it a practical tool for learning, testing, and applying the Turtle Trading methodology.
The Automatic Channel Revolution [8 Levels + Slicing]Stop wasting time manually drawing lines and start trading.
I present to the community Fimathe Master Pro, a unique tool designed to completely automate the Fimathe technique, eliminating subjectivity and human error when drawing channels.
Many traders miss entry timing while adjusting rectangles or manually calculating the 50% (slicing) levels. This script solves that instantly, creating a visual structure that is clean, professional, and objective for Day Trading (Indices, Forex, and Crypto).
🚀 WHAT MAKES THIS SCRIPT UNIQUE?
Unlike other indicators that simply plot support and resistance lines, Fimathe Master Pro creates a Dynamic Block Structure:
Automatic Reference Channel: You define the time range (e.g., first 30 min or 1h), and the script automatically detects the High and Low, locking in the Reference Channel and Neutral Zone.
8-Level Expansion System (New): The indicator automatically projects 4 Levels Up and 4 Levels Down. You will never run out of targets during strong trend days again.
Visual Slicing (50%): The script automatically draws discrete dotted lines in the middle of each channel, allowing for precise "slicing" operations (sub-channel trading) without cluttering the chart.
Clean & Transparent Visuals: Developed with an intelligent transparency layer (92%), ensuring you can see the candles perfectly while identifying Buy and Sell zones.
⚙️ HOW TO CONFIGURE:
Session: Default is set to 0900-0930 (First 30 min). If you trade the Classic Fimathe (1 hour), simply change it in the settings to 0900-1000.
Slicing: Can be toggled on or off with a single click.
Colors: Fully customizable to fit your template (Dark or Light mode).
🎯 WHO IS THIS INDICATOR FOR?
Ideal for Price Action traders and students of the Fimathe technique who want to professionalize their screen and gain agility in decision-making.
If this script helped your market reading, please leave a BOOST (Like) and comment your suggestions below!






















