Macro Risk SentimentOverview
This indicator provides a simple traffic light for your trading: green means go, red means slow down.
The background color appears directly on your price chart and in the oscillator pane below. When green, macro conditions favor risk assets and you can trade with full conviction. When red, the indicator suggests reducing position sizes, tightening stops, or stepping aside entirely.
The oscillator pane shows the underlying calculation so you can see how close the market is to flipping regimes.
The Core Idea
Markets move in risk cycles. When institutional money is confident, it flows into equities, high-yield bonds, and away from safe havens. When fear takes over, money rotates into treasuries, the dollar strengthens, and volatility spikes.
This indicator reads those flows by monitoring four markets simultaneously:
Risk-On Signals (good for stocks when rising)
TLT - Long-term Treasury bonds
JNK - High-yield corporate credit
Risk-Off Signals (bad for stocks when rising)
DXY - US Dollar strength
VIX - Market volatility
When bonds and credit are strong relative to their recent history while the dollar and volatility are weak, the background turns green. You have a tailwind. When the opposite occurs, the background turns red. You are fighting the current.
How It Works
Step 1: Z-Score Normalization
Each input is converted to a z-score: how many standard deviations the current value is from its 252-day rolling average. This puts all four inputs on a comparable scale regardless of their absolute price levels.
Step 2: Composite Calculation
Macro Score = (TLT z-score + JNK z-score) minus (DXY z-score + VIX z-score)
Risk-on inputs contribute positively when elevated. Risk-off inputs subtract when elevated. The result is clamped between -1.5 and +1.5 and smoothed with EMAs.
Step 3: State Machine
The indicator uses crossover-based transitions with memory:
RISK ON triggers when the smoothed macro line crosses above its signal line.
RISK OFF triggers when the macro line crosses below its signal line, or when price breaks below its EMA while the macro value is negative (double confirmation exit).
How to Use It
Green Background - Full Steam Ahead
Macro conditions support risk-taking. This is when trend-following strategies tend to work best. Use normal position sizes, take breakout trades, and hold winners longer.
Red Background - Reduce Risk
The macro wind is against you. Consider smaller positions, quicker profit-taking, or sitting out entirely. Mean-reversion setups may work better than trend-following during these periods. Many major drawdowns occur during red regimes.
The Oscillator Pane
The colored line is the macro reading, the white line is its signal. When the colored line crosses above the signal, conditions turn bullish. When it crosses below, conditions turn bearish. The zero line represents neutral. Positive values mean macro conditions are better than the one-year average.
What Makes This Original
This implementation combines z-score normalization across multiple asset classes with a state machine approach that reduces whipsaws. The price filter acts as a circuit breaker but only triggers exits when macro conditions are also deteriorating, preventing premature exits during temporary price weakness.
Settings Guide
Main Settings
Z-Score Lookback (default 252) - Period for calculating mean and standard deviation. 252 bars equals one trading year on daily charts.
Macro EMA (default 7) - Smoothing applied to the raw composite score.
Signal EMA (default 8) - Secondary smoothing for the crossover signal line.
Price Filter
Enable Price Filter (default On) - When enabled, price breaking below the EMA triggers an exit only if the macro value is also negative.
EMA Length (default 20) - The EMA period for the price filter.
Data Sources
Each source (TLT, JNK, DXY, VIX) can be enabled or disabled and weighted from 0 to 3. Default is equal weighting (1.0) for all sources.
Limitations
This is a daily-timeframe indicator. On intraday charts, signals reflect yesterday's macro reading until the day closes.
The z-score lookback creates recency bias. What was normal over the past year may not reflect longer-term historical norms.
Intermarket correlations can change. What worked in recent decades may shift in different monetary regimes.
Not all equity drawdowns come with macro warning. Flash crashes and idiosyncratic events can occur without macro deterioration.
The indicator identifies conditions, not predictions. Green does not guarantee gains. Red does not guarantee losses.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice.
Green background does not mean buy. Red background does not mean sell. These are environmental readings to help you calibrate your risk-taking, not trade signals.
Past intermarket relationships do not guarantee future behavior. Always conduct your own research. Consider your personal risk tolerance. Never risk more than you can afford to lose.
Kitaran
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).
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.
STRAT + Timeframe Continuity + 50% RuleTheSTRAT is a multi-timeframe strategy that focuses on three primary components: Inside Bars, Directional Bars, and Outside Bars. The approach also emphasizes several key principles, including Full Time Frame Continuity, Broadening Formations, and the significance of Inside Bars.
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
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.
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!
Mean Reversion Oleg📘 Description
This script is an extended and customized version of the original “Mean Reversion V‑F” created by the respected author fullmax.
I adapted the logic for my own trading workflow and added several improvements aimed at stability, automation, and exchange‑safe execution when using webhooks.
🔧 Key Enhancements
Lot precision control (prevents exchange errors when sending webhook orders)
Base order labels for visual clarity
Mini‑table with live position metrics
Dynamic deviation levels (L1–L5)
Static averaging levels (B2–B5)
Trailing take‑profit option
Support for stock mode (fixed units instead of quantity)
Webhook fields for entry and exit signals
🎯 How the Strategy Works
The script calculates a moving average and builds five deviation‑based levels below it.
When price reaches these levels, the strategy opens a base order (B1) and then averages the position using B2–B5 levels.
After entering a position, the strategy manages it using:
a fixed take‑profit target
or an optional trailing take‑profit
plus a visual table showing position size, USD value, open PnL, and equity
All quantities are rounded according to the selected lot precision to ensure compatibility with exchange requirements when using webhook automation.
⚙️ Features Overview
Automated long entries based on deviation levels
Configurable order sizes for each averaging step
Optional stock‑mode (units instead of calculated quantity)
Dynamic and static level visualization
Trailing TP with adjustable distance
Clean UI with optional labels and mini‑table
📝 Disclaimer
This script is provided for educational purposes only.
It does not constitute financial advice and does not guarantee profits.
Always test strategies on historical data before using them in live trading.
Trade ManagerDescription
This script is a trade‑management system designed for both automated and manual trading workflows.
It combines VWRSI‑based signals, customizable price levels, safety orders, take‑profit logic, and optional MA‑trend filtering.
Key features:
Automated entries based on VWRSI
Manual LONG/SHORT level entries
Priority‑based entry logic (first condition triggers the trade)
Safety order scaling (volume and step multipliers)
Take‑profit targets for both LONG and SHORT positions
Breakeven logic with adjustable thresholds
Optional MA‑trend filter
Mini‑table showing position metrics
Base order labels and lot‑precision control
How it works:
If multiple entry modes are enabled, the script opens a position based on the first condition reached.
After entering a trade, the position can be averaged using safety orders and closed at the configured profit target.
Notes:
This script is for educational purposes and does not guarantee profits.
Always test on historical data and understand the risks before using it in live trading.
ORBitOrbit is a strategy based around the opening range breakout. it will send out one signal a day with the proper risk management recommendations and built in backtest reporter on top of tradingview's strategy tester
7 Wonder Moving Average [DR Trade]Moving Averages are easy-to-learn indicators for beginners.
We provide seven moving average indicators that can be customized to suit each trader's needs. We also offer a selection of moving averages: the Simple Moving Average, the Exponential Moving Average, and the Hull Moving Average.
We provide the Hull Moving Average for traders to more accurately identify trends and potential reversals. The HMA is more responsive to recent price changes than the SMA or EMA, while still maintaining a smooth trendline. The HMA was first introduced by Alan Hull to address the lag and noise of traditional moving averages (MAs).
The best way to use the HMA indicator is to use a 100-period indicator on the H1 timeframe.
The other six indicators can be customized by each trader.
Thank you.
Intraday Toolkit1. Visual Components of the Indicator
Understanding the visual cues is essential for quick decision-making during fast-moving intraday sessions:
Trend Background: The background color represents the Primary Cycle (80-period) bias. Green indicates a bullish trend (price is above the primary cycle), and red indicates a bearish trend (price is below the primary cycle).
The Three Cycles:
Yellow Line: Short Cycle (20) – Used for momentum triggers.
Orange Line: Mid Cycle (40) – Represents the baseline for volatility envelopes.
Red Line: Primary Cycle (80) – Defines the overall trend direction.
Volatility Envelopes: Two green lines plotted at a distance (1.5x ATR) from the Mid Cycle. These act as exhaustion zones where price is likely to revert or consolidate.
Rule 3 Signals (Purple Circles): These appear when a specific 3-candle momentum breakout occurs.
2. Trading Strategy for 5m & 15m
This toolkit is most effective when you use the 15m chart for trend confirmation and the 5m chart for precise entries.
Long (Buy) Setup
Enter a long position when the following alignment occurs:
Bullish Bias: The background must be Green (Price > Primary Cycle).
Cycle Low: A pivot low must have been detected (the indicator identifies a local bottom).
Momentum Trigger: Price must close above the Yellow Short Cycle line while the previous candle was below it.
Rule 3 Confirmation: If a purple circle appears simultaneously, it confirms strong buying momentum.
Short (Sell) Setup
Enter a short position when the following alignment occurs:
Bearish Bias: The background must be Red (Price < Primary Cycle).
Cycle High: A pivot high must have been detected (the indicator identifies a local top).
Momentum Trigger: Price must close below the Yellow Short Cycle line while the previous candle was above it.
Rule 3 Confirmation: A purple circle above the price confirms a bearish momentum shift.
3. Exit and Take-Profit Logic
The script includes "State Control" to manage your exits effectively:
Targeting the Envelopes: The primary profit target is the Outer Green Envelope. If price touches the upper envelope (for longs) or lower envelope (for shorts), the trend may be exhausted.
Momentum Exit: If price crosses back over the Yellow Short Cycle line in the opposite direction of your trade, the toolkit considers the move over and signals an exit.
4. Specific Tips for Day Trading
Avoid "Counter-Trend" Signals: Do not take Buy signals if the background is Red, or Sell signals if the background is Green. The logic is built to filter these out for better win rates.
The "Rule 3" Advantage: Use the purple circles as a "second chance" entry. If you missed the initial Buy/Sell signal, a Rule 3 circle indicates momentum is still strong in that direction.
Timeframe Synergy: * 15m: Best for seeing the "Big Picture" and avoiding noise.
5m: Best for finding entries with smaller stop-losses near the Yellow Short Cycle line.
FED Net Liquidity (WALCL - TGA - RRP)a measure of FED net liquidity with color codes. What is FED Net Liquidity?
FED Net Liquidity is a proxy for how much usable US-dollar liquidity is actually available to financial markets.
It combines three balance-sheet items from the Federal Reserve and the US Treasury into one number:
FED Net Liquidity =
FED Balance Sheet (WALCL) − Treasury General Account (TGA) − Reverse Repo (RRP)
The goal is simple:
to estimate how much money is “in play” for risk assets, rather than parked or withdrawn.
Indian Equities Theme Tracker [EWT] - Sector Rotation HeatmapIdentify where the "Smart Money" is flowing in the Indian Markets.
The Indian Equities Theme Tracker is a powerful visual dashboard designed for NSE traders and investors to monitor sector rotation and relative strength in real-time. By tracking the most liquid Exchange Traded Funds (ETFs), this tool provides a birds-eye view of the Indian economy—from core benchmarks like Nifty 50 and Nifty 500 to high-growth themes like Defence, EV, Tourism, and Energy.
In modern markets, capital doesn't move into all stocks at once; it rotates between sectors. This script helps you spot the leaders and laggards across five different timeframes, ensuring you are always positioned in the strongest themes.
🚀 Key Features :
23+ Essential Themes: Tracks Broad Market, Market Caps (Mid/Small), Sectors (IT, Bank, Auto, Metal), and Narratives (Defence, Tourism, EV, Energy).
Dynamic Performance Sorting: Automatically reorders the table based on your selected lookback (1 Day, 1 Week, 1 Month, 3 Months, or YTD).
Heatmap Logic: Intuitive color coding helps you instantly identify extreme bullishness or bearishness across the board.
Liquidity Focused: Uses the most liquid NSE ETFs (BeES and equivalent) to ensure the data is accurate and reflects tradeable prices.
Pro UI Design: A clean, professional dashboard that can be positioned anywhere on your chart without cluttering your price action analysis.
📊 Themes Included :
Benchmarks: Nifty 500, Nifty 50, Nifty Next 50.
Market Caps: Midcap 150, Smallcap 250.
Sectors: Private & PSU Banks, IT, Pharma, Healthcare, FMCG, Auto, Metals, Infra, Realty.
Thematic/Narratives: Defence, Tourism, Energy, EV & New Age Automotive, Consumption.
Safe Havens: Gold & Silver.
🛠️ How to use :
Timeframe: Switch to the Daily (D) timeframe for the best results.
Settings: Use the inputs to change the table position (Top/Middle/Bottom) and the sorting criteria.
Strategy: Look for themes that are consistently at the top of the "1 Month" and "3 Month" lists—these are your structural leaders. Use "1 Day" to spot quick tactical bounces.
Disclaimer: This indicator is for educational and informational purposes only and does not constitute financial advice. Always perform your own due diligence.
MAG7 and VIXMAG7 and VIX is a institutional-grade market breadth and sentiment dashboard designed specifically for Nasdaq (NQ) traders. Instead of relying on a single price chart, this indicator provides a "look under the hood" of the market by tracking the volatility of the entire index and the individual performance of the seven stocks that drive over 40% of the Nasdaq 100's movement.
Core Components
1. The Fear Gauges (Volatility Monitoring)
This section tracks the VIX (S&P 500 Volatility) and VXN (Nasdaq Volatility).
The Logic: Volatility and price usually have an inverse relationship.
Risk-On: When these numbers are Green (negative %), volatility is dropping, which usually provides a "tailwind" for stocks to rise.
Risk-Off: When these numbers turn Red (positive %), fear is entering the market, often preceding a sharp sell-off or indicating that a rally is built on "shaky ground."
2. Tech Leaders (Market Breadth)
This monitors the Mag7 (NVDA, AAPL, MSFT, AMZN, GOOG, META, TSLA). The dashboard calculates a Weighted Average of these leaders to show the true strength of the "engines" behind the NQ.
Weights: NVDA, AAPL, and MSFT are given 1.5x weight because their market caps have the highest impact on the index.
Individual Heatmap: Each stock has its own cell that changes color based on its performance relative to the daily open.
Using the Dashboard for Divergence Trading
The primary value of this indicator is spotting Divergence, which occurs when the NQ price is lying to you but the internal data shows the truth.
Bearish Breadth Divergence: The NQ hits a new high, but the Tech Leaders Average is negative, and most individual cells (like NVDA or MSFT) are red. This indicates the move is "thin" and likely a bull trap.
Bullish Breadth Divergence: The NQ is flushing to new lows, but the Tech Leaders are starting to turn green or the Fear Gauges are rapidly dropping. This often signals that a bottom is being put in.
Dashboard Placement & Aesthetics
Top Center Positioning: Placed by default at the top-center of your chart to keep your eyes on the price action while maintaining peripheral awareness of the macro data.
Large UI: Designed for high-resolution screens so you can read the percentage shifts without squinting during fast-moving "Turbo" sessions.
Real-Time Updates: The data is fetched dynamically using request.security, ensuring the "Heatmap" reflects current intraday strength rather than just yesterday's close.






















