Crypto Narratives Performance [SwissAlgo]Crypto Narratives Performance Index
--------------------------------------------------------
What this indicator is
This script displays a relative performance index that compares the market capitalization trends of various crypto categories (narratives) against a selected 'Base asset' (BTC, ETH, or SOL) over a configurable rolling time window (default: 14-day).
It’s designed to help users observe sector rotation dynamics across the crypto ecosystem — such as whether DeFi is outperforming ETH, or if AI coins are underperforming relative to BTC.
--------------------------------------------------------
What it does
This indicator measures the percentage change in total market cap of a selected crypto sector over a user-defined lookback period, and compares it to the percentage change in market cap of a chosen base asset over the same period. The result is expressed as a ratio and transformed into a z-score, normalized over the last 180 bars. This allows the user to easily identify whether the sector is outperforming or underperforming the base asset in relative terms.
It also includes a smoothed signal line, a performance table, and marked background zones (levels of standard deviations) to help interpret potential extremes in sector outperformance or underperformance.
--------------------------------------------------------
How it works
It retrieves daily market capitalization data for both the selected base asset and sector from TradingView's CRYPTOCAP: data feed.
It computes the percent change in $ market cap over one of the following selectable periods: 1, 3, 7, 14, 30, or 60 days (14-day is the default).
The percentage change of the base is subtracted from the percentage change of the sector, producing a raw relative performance differential.
This differential is then normalized into a Z-Score, using a 180-day rolling mean and standard deviation.
The Z-Score is smoothed using an exponential moving average (EMA), and plotted against a secondary EMA signal line (to track potential performance trend changes).
A visual table compares the performance of all listed sectors against the selected base, ranked and annotated with basic symbols (stars for performance, alerts for underperformance vs. the selected 'Base Asset', i.e. BTC or ETH or SOL).
--------------------------------------------------------
Visual Features
* Color-coded plot line: Turns green, yellow, orange, or red based on zone and momentum.
* Signal line: Gray EMA of the z-score for trend comparison.
* Background fill zones:
±3 = "Extreme" outperform/underperform
±2 to ±3 = "Strong" zone
±1 to ±2 = Mild over/underperformance
±1 to -1 = Neutral performance range
* Dynamic Table:
Displays all sector vs. base performance differences.
Highlights the selected comparison sector.
Uses emojis (⭐/⚠️) for relative status at a glance.
--------------------------------------------------------
Who may benefit
This script may assist:
Crypto analysts tracking capital rotation across narratives.
Swing traders looking to spot momentum trends in crypto sectors.
Portfolio allocators observing which groups are leading or lagging relative to majors (BTC, ETH, SOL).
Developers or researchers evaluating sentiment shifts across categories (e.g., AI tokens rising vs. DeFi).
It is not a buy/sell signal tool — it's a sector/crypto narratives -relative monitor.
--------------------------------------------------------
Key Applications
Detect sector rotation (e.g., when Layer 1s start to outperform ETH, or BTC/SOL).
Monitor if certain categories are experiencing sustained interest or fading momentum.
Compare the strength of emerging narratives like DePIN, RWA, or World Liberty vs. majors.
Identify possible "mean-reversion" setups when a sector is excessively stretched relative to its historical norm.
--------------------------------------------------------
Limitations
Data dependency: All calculations rely on TradingView’s CRYPTOCAP: market cap feeds.
Normalization window: The z-score normalization is static at 180 bars; in choppy markets this may over-smooth or underreact.
Asset inclusion: The sectors reflect predefined index aggregates. Not all coins in a category may be equally weighted or relevant.
Lag: EMA smoothing introduces delay in reactive plotting.
No intra-day support: Works best on daily timeframes, as CRYPTOCAP: feeds are daily-only.
Not predictive: This script reflects past capital flows. It does not forecast future price moves.
--------------------------------------------------------
Customization
Users can adjust the following:
Base asset: BTC, ETH, SOL
Crypto sector (comparison): Choose from 11+ sectors, including DeFi, AI, Memes, Layer 1, etc.
Rolling performance period: Choose between 1–60 days.
Smoothing settings: Length of the EMA for the ratio and signal line.
Show/hide info table: Useful for screen space management.
Special Notes:
Please set the chart timeframe at 1-day in line with CRYPTOCAP data availability.
Please select the dark color scheme to view table and colors properly.
--------------------------------------------------------
Risk Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice, trading advice, or an invitation to engage in any financial strategy. Always conduct your own due diligence before making investment decisions. Use at your own risk.
Market conditions may shift rapidly, and past sector performance is not necessarily indicative of future outcomes. This tool is best used as part of a broader analytical framework, not in isolation.
Protected script: source code is hidden to preserve logic integrity and prevent tampering.
If you need clarification or encounter unexpected behavior with data feeds, please check the TradingView Help Center or post in the "Indicators and Strategies" section of the TradingView community.
Dönemler
Up/Down Volume with Table (High Contrast)Up/Down Volume with Table (High Contrast) — Script Summary & User Guide
Purpose of the Script
This TradingView indicator, Up/Down Volume with Table (High Contrast), visually separates and quantifies up-volume and down-volume for each bar, providing both a color-coded histogram and a dynamic table summarizing the last five bars. The indicator helps traders quickly assess buying and selling pressure, recent volume shifts, and their relationship to price changes, all in a highly readable format.
Key Features
Up/Down Volume Columns:
Green columns represent volume on bars where price closed higher than the previous bar (up volume).
Red columns represent volume on bars where price closed lower than the previous bar (down volume).
Delta Line:
Plots the net difference between up and down volume for each bar.
Green when up-volume exceeds down-volume; red when down-volume dominates.
Interactive Table:
Displays the last five bars, showing up-volume, down-volume, delta, and close price.
Color-coding for quick interpretation.
Table position, decimal places, and timeframe are all user-configurable.
Custom Timeframe Support:
Calculate all values on the chart’s timeframe or a custom timeframe of your choice (e.g., daily, hourly).
High-Contrast Design:
Table and plot colors are chosen for maximum clarity and accessibility.
User Inputs & Configuration
Use custom timeframe:
Toggle between the chart’s timeframe and a user-specified timeframe.
Custom timeframe:
Set the timeframe for calculations if custom mode is enabled (e.g., "D" for daily, "60" for 60 minutes).
Decimal Places:
Choose how many decimal places to display in the table.
Table Location:
Select where the table appears on your chart (e.g., Bottom Right, Top Left, etc.).
How to Use
Add the Script to Your Chart:
Copy and paste the code into a new Pine Script indicator on TradingView.
Add the indicator to your chart.
Configure Inputs:
Open the indicator settings.
Adjust the timeframe, decimal places, and table location as desired.
Read the Table:
The table appears on your chart (location is user-selectable) and displays the following for the last five bars:
Bar: "Now" for the current bar, then "Bar -1", "Bar -2", etc. for previous bars.
Up Vol: Volume on bars where price closed higher than previous bar, shown in black text.
Down Vol: Volume on bars where price closed lower than previous bar, shown in black text.
Delta: Up Vol minus Down Vol, colored green for positive, red for negative, black for zero.
Close: Closing price for each bar, colored green if price increased from previous bar, red if decreased, black if unchanged.
Interpret the Histogram and Lines:
Green Columns:
Represent up-volume. Tall columns indicate strong buying volume.
Red Columns:
Represent down-volume. Tall columns indicate strong selling volume.
Delta Line:
Plotted as a line (not a column), colored green for positive values (more up-volume), red for negative (more down-volume).
Large positive or negative spikes may indicate strong buying or selling pressure, respectively.
How to Interpret the Table
Column Meaning Color Coding
Bar "Now" (current bar), "Bar -1" (previous bar), etc. Black text
Up Vol Volume for bars with higher closes than previous bar Black text
Down Vol Volume for bars with lower closes than previous bar Black text
Delta Up Vol - Down Vol. Green if positive, red if negative, black if zero Green/Red/Black
Close Closing price for the bar. Green if price increased, red if decreased, black if unchanged Green/Red/Black
Green Delta: Indicates net buying pressure for that bar.
Red Delta: Indicates net selling pressure for that bar.
Close Price Color:
Green: Price increased from previous bar.
Red: Price decreased.
Black: No change.
Practical Trading Insights
Consistently Green Delta (Histogram & Table):
Sustained buying pressure; may indicate bullish sentiment or accumulation.
Consistently Red Delta:
Sustained selling pressure; may indicate bearish sentiment or distribution.
Large Up/Down Volume Spikes:
Big green or red columns can signal strong market activity or potential reversals if they occur at trend extremes.
Delta Flipping Colors:
Rapid alternation between green and red deltas may indicate a choppy or indecisive market.
Close Price Color in Table:
Use as a quick confirmation of whether volume surges are pushing price in the expected direction.
Troubleshooting & Notes
No Volume Data Error:
If your symbol doesn’t provide volume data (e.g., some indices or synthetic assets), the script will display an error.
Custom Timeframe:
If using a custom timeframe, ensure your chart supports it and that there is enough data for meaningful calculations.
High-Contrast Table:
Designed for clarity and accessibility, but you can adjust colors in the code if needed for your personal preferences.
Summary Table Legend
Bar Up Vol Down Vol Delta Close
Now ... ... ... ...
Bar-1 ... ... ... ...
... ... ... ... ...
Colors reflect the meaning as described above.
In Summary
This indicator visually and numerically breaks down buying and selling volume, helping you spot shifts in market sentiment, volume surges, and price/volume divergences at a glance.
Use the table for precise recent data, the histogram for overall flow, and the color cues for instant market context.
Flexi MA Reversal🔹 FlexiMA Reversal – Customizable MA-Based Reversal Indicator
FlexiMA Reversal is a real-time, moving average-based reversal indicator designed to highlight potential market turning points using signal and alert lines. It provides visual cues for both early alerts and confirmed entry signals on candle close.
🔧 Key Features:
Customizable Moving Average Type: Choose from EMA, SMA, WMA, or VWMA (default is EMA).
Flexible MA Inputs: Configure up to three MAs (commonly used 5, 50, and 200).
Toggle Visibility: Enable or disable each MA line as needed.
Real-Time Alert System:
Thin alert lines appear when a potential reversal is detected.
Thicker signal lines confirm the reversal when price closes beyond the alert level.
Optional Visual Styling:
Choose custom colors for each MA, signal, and alert line.
Alert candles are automatically colored to match the corresponding alert line.
Option to show only signal lines for cleaner charts.
Customizable projection length for both alert and signal lines.
📈 Strategy Logic:
This indicator is designed to detect reversal opportunities based on the relationship between price and a selected short-term moving average.
Bullish Setup:
Price closes below the selected MA (e.g., EMA 5).
A bullish alert line is drawn at the high.
If a subsequent candle closes above the alert line and the MA, a bullish signal line is plotted.
Bearish Setup:
Price closes above the selected MA.
A bearish alert line is drawn at the low.
If a subsequent candle closes below the alert line and the MA, a bearish signal line is plotted.
This approach attempts to capture quick market shifts where short-term momentum reverses direction near key MA levels.
🎯 How to Use:
Although originally developed using the 5 EMA strategy, through testing it was found that using 6, 7, or 8 EMA offers even better signal quality.
To add broader trend context, 50 MA and 200 MA lines are included and can be toggled on/off based on your strategy preference.
🔍 Trend Filtering & Re-Entry Tips:
Due to the nature of shorter moving averages, reversal signals may appear frequently. For better trend alignment:
Use the 50 MA as a trend filter:
❌ Ignore bearish signals when price is above 50 MA
❌ Ignore bullish signals when price is below 50 MA
Alternatively, filtered-out signals can be used for re-entry within the trend:
For example, if you receive a bearish alert and signal above the 50 MA, and the next candle closes back above the bearish alert line, this may be interpreted as a bullish re-entry opportunity into the prevailing uptrend.
🛠️ Styling Tips:
You can disable alert candle coloring in the Style tab of the indicator settings.
Use the "Show Only Signal Lines" checkbox to keep the chart minimalistic while still tracking confirmed entries.
📊 Visual MTF VMA Dashboard🔄️📊 Visual MTF VMA Dashboard🔄️
This powerful multi-timeframe indicator provides a clean, emoji-enhanced dashboard that helps you quickly identify the Variable Moving Average (VMA) trend direction across multiple key timeframes — all in real-time.
🔍 What It Does:
The Visual MTF VMA Dashboard calculates the LazyBear-style VMA on the following timeframes:
📆 Daily
🕰 195 Minutes
🕒 65 Minutes
⏳ 39 Minutes
⏱ 15 Minutes
Each cell in the table shows the current trend:
📈 BULLISH – VMA rising
📉 BEARISH – VMA falling
⚪ NEUTRAL – No change
🎨 Visual Boost:
This feature can be toggled on/off for cleaner visuals.
📌 Customization:
Adjustable VMA Length
Selectable table position: Top Left, Top Right, Bottom Left, Bottom Right
✅ Ideal For:
Multi-timeframe traders
Trend confirmation
Quick-glance analysis without cluttering your chart
Use this dashboard as a high-level trend confirmation tool — designed for simplicity, speed, and visual clarity.
MACD + RSI + Volume + Support + CCIertyewrterwytewryteert
reewrt
erwtrew
trewt
rewtre
trewt
ewrt
wert
wert
ewrt
ewrt
wert
ewrt
rwertwertewrtewrtewtrewrtewrte
ertwertwertewqr
ewrtwertetr
🗓️ Day Separator🗓️ Day Separator – Visual Day Markers for Your Chart
This script adds automatic vertical lines to visually separate each trading day on your chart. It helps you quickly identify where each day starts and ends — especially useful for intraday and scalping strategies.
✅ Features:
Distinct colored lines for each weekday (Monday to Friday)
Optional day-of-week labels (toggle on/off)
Custom label position (top or bottom of the chart)
Works on any timeframe
Whether you're tracking market sessions or reviewing daily price action, this tool gives you a clean structure to navigate your charts with more clarity.
No Nonsense Forex Moving Averages ATR Bands[T1][T69]🔍 Overview
This indicator implements a No Nonsense Forex-style Baseline combined with ATR Bands, built using the moving_averages_library by Teyo69. It plots a configurable moving average and dynamically adjusts upper/lower ATR bands for trade zone detection and baseline confirmation.
✨ Features
30+ Moving Average types
ATR bands to define dynamic trade zones
Visual background highlighting for trade signals
Supports both "Within Range" and "Baseline Bias" display modes
Clean, minimal overlay with effective zone coloring
⚙️ How to Use
Choose MA Type: Select the baseline logic (SMA, EMA, HMA, etc.)
Configure ATR Bands: Adjust the ATR length and multiplier
Select Background Mode:
Within Range: Yellow = price inside band, Gray = outside
Long/Short Baseline Signal: Green = price above baseline, Red = below
Trade Setup:
Use the baseline for trend direction
Wait for confirmation or avoidance when price is outside the band
🛠 Configuration
Source: Price source for MA
MA Type: Any supported MA from the library
MA Length: Number of bars for smoothing
ATR Length: Period for Average True Range
ATR Multiplier: Width of the bands
Background Signal Mode: Choose visual signal type
⚠️ Limitations
Works with one MA at a time
Requires the moving_averages_library imported
Does not include confirmation or exit logic — use with full NNFX stack
💡 Tips
Combine with Volume or Confirmation indicators for NNFX strategy
Use adaptive MAs like KAMA, JMA, or VIDYA for dynamic baselines
Adjust ATR settings based on asset volatility
📘 Credits
Library: Teyo69/moving_averages_library/1
Inspired by: No Nonsense Forex (VP) Baseline + ATR Band methodology & MigthyZinger
signBTC Day&Session BoxesThis indicator visually segments the trading week on your chart, drawing each day from 17:00 to 17:00 New York time (corresponding to the typical forex daily rollover). For enhanced session structure, every day is further divided into three major trading sessions:
Asian Session
London Session
New York Session
Additionally, the indicator automatically marks the opening time of each new day at 17:00 (New York time) directly on the chart, helping traders quickly identify daily cycles and session transitions.
Customization Features
Adjustable Session Times: Users can modify the start and end times for each session (Asian, London, New York) to match personal or institutional trading hours.
Flexible Day Boundaries: The time marking the start and end of each day (default: 17:00 NY) can also be adjusted according to preference or asset specifics.
Opening Time Marker: The feature for drawing the daily opening time can be enabled or disabled in the settings.
This tool is ideal for traders needing clear visual cues for session boundaries and daily market resets, especially those operating across multiple time zones or managing strategies dependent on session-specific behavior. All settings are conveniently accessible and fully customizable within the indicator’s parameter panel.
QT Separator by BailaSimple and Clean QT indicator.
Helps to spot SSMT
Based on: Daye Quarterly Theory by toodegrees
These Quarters represent:
A - Accumulation (required for a cycle to occur)
M - Manipulation
D - Distribution
X - Reversal/Continuation
The Visualized Trader (Fractal Timeframe)The **The Visualized Trader (Fractal Timeframe)** indicator for TradingView is a tool designed to help traders identify strong bullish or bearish trends by analyzing multiple technical indicators across two timeframes: the current chart timeframe and a user-selected higher timeframe. It visually displays trend alignment through arrows on the chart and a condition table in the top-right corner, making it easy to see when conditions align for potential trade opportunities.
### Key Features
1. **Multi-Indicator Analysis**: Combines five technical conditions to confirm trend direction:
- **Trend**: Based on the slope of the 50-period Simple Moving Average (SMA). Upward slope indicates bullish, downward indicates bearish.
- **Stochastic (Stoch)**: Uses Stochastic Oscillator (5, 3, 2) to measure momentum. Rising values suggest bullish momentum, falling values suggest bearish.
- **Momentum (Mom)**: Derived from the MACD fast line (5, 20, 30). Rising MACD line indicates bullish momentum, falling indicates bearish.
- **Dad**: Uses the MACD signal line. Rising signal line is bullish, falling is bearish.
- **Price Change (PC)**: Compares the current close to the previous close. Higher close is bullish, lower is bearish.
2. **Dual Timeframe Comparison**:
- Calculates the same five conditions on both the current timeframe and a user-selected higher timeframe (e.g., daily).
- Helps traders see if the trend on the higher timeframe aligns with the current chart, providing context for stronger trade decisions.
3. **Visual Signals**:
- **Arrows on Chart**:
- **Current Timeframe**: Blue upward arrows below bars for bullish alignment, red downward arrows above bars for bearish alignment.
- **Higher Timeframe**: Green upward triangles below bars for bullish alignment, orange downward triangles above bars for bearish alignment.
- Arrows appear only when all five conditions align (all bullish or all bearish), indicating strong trend potential.
4. **Condition Table**:
- Displays a table in the top-right corner with two rows:
- **Top Row**: Current timeframe conditions (Trend, Stoch, Mom, Dad, PC).
- **Bottom Row**: Higher timeframe conditions (labeled with "HTF").
- Each cell is color-coded: green for bullish, red for bearish.
- The table can be toggled on/off via input settings.
5. **User Input**:
- **Show Condition Boxes**: Toggle the table display (default: on).
- **Comparison Timeframe**: Choose the higher timeframe (e.g., "D" for daily, default setting).
### How It Works
- The indicator evaluates the five conditions on both timeframes.
- When all conditions are bullish (or bearish) on a given timeframe, it plots an arrow/triangle to signal a strong trend.
- The condition table provides a quick visual summary, allowing traders to compare the current and higher timeframe trends at a glance.
### Use Case
- **Purpose**: Helps traders confirm strong trend entries by ensuring multiple indicators align across two timeframes.
- **Example**: If you're trading on a 1-hour chart and see blue arrows with all green cells in the current timeframe row, plus green cells in the higher timeframe (e.g., daily) row, it suggests a strong bullish trend supported by both timeframes.
- **Benefit**: Reduces noise by focusing on aligned signals, helping traders avoid weak or conflicting setups.
### Settings
- Access the indicator settings in TradingView to:
- Enable/disable the condition table.
- Select a higher timeframe (e.g., 4H, D, W) for comparison.
### Notes
- Best used in trending markets; may produce fewer signals in choppy conditions.
- Combine with other analysis (e.g., support/resistance) for better decision-making.
- The higher timeframe signals (triangles) provide context, so prioritize trades where both timeframes align.
This indicator simplifies complex trend analysis into clear visual cues, making it ideal for traders seeking confirmation of strong momentum moves.
QTR Sector Fund Performance vs SPY - by LMAnalyzes various market sectors and compares the last several quarters to the performance of the SPY. The goal is to seek out the sectors that have underperformed for several quarters in the hopes that they would overperform in the next quarter.
Digital Clock with Candle Alert📊 Digital Clock with Candle Alert
A sleek, customizable digital clock for your trading charts that displays real-time with seconds and provides visual alerts before new candles form. Never miss a candle entry again!
✨ Key Features:
- Real-time Digital Clock - Shows hours, minutes, and seconds in your chosen timezone
- Visual Candle Alerts - Blinking notification before new candles form
- Multi-Timeframe Alerts - Get alerts for any timeframe regardless of your chart period
- Fully Customizable - Colors, size, position, and alert timing all configurable
- Half-Second Blinking - Eye-catching 2Hz blink rate for maximum visibility
- 6 Timezone Options - Exchange, UTC, New York, London, Tokyo, Sydney
🎯 Use Cases:
- Scalping - Know exactly when the next candle will form
- Entry Timing - Perfect for strategies that enter on new candles
- Multi-Timeframe Trading - Monitor higher timeframe candles while on lower timeframes
- General Awareness - Always know the current time in your trading timezone
⚙️ Settings:
Time Settings:
- Timezone selection (Exchange default or specific zones)
Display Options:
- Text and background colors for normal operation
- Alert colors for blinking state
- Text size (tiny to huge)
- Position (9 locations on chart)
Alert Configuration:
- Enable/disable blinking alerts
- Select timeframe to monitor
- Alert lead time (5 seconds to 1 hour)
📝 Important Notes:
- Clock updates depend on incoming price ticks
- During low-volume periods, updates may be less frequent
- Works best on liquid instruments during active market hours
- Alert timeframe is independent of your chart timeframe
💡 Tips:
- Use contrasting alert colors for maximum visibility
- Set lead time based on your reaction needs
- Position clock where it won't obstruct price action
- Try red background with white text for urgent alerts
🔄 Version 1.0 - Initial release
SENTIMENTSENTIMENT Indicator – User Guide
Summary
The SENTIMENT indicator provides a quick visual reference for current and recent market sentiment. It compares the closing price to a custom sentiment value, which is the average of the 100-period (default) simple moving averages (SMA) of the high and low prices. The indicator displays this information in a color-coded table and plots the difference between price and sentiment as a line on your chart.
How to Use
1. Table Overview
The table appears on your chart in your chosen position.
It displays four rows: the current bar (“Now”) and the previous three bars (“Bar -1”, “Bar -2”, “Bar -3”).
Each row shows:
The bar label (The current bar is live and active, constantly changing)
The closing price for that bar
The difference between the closing price and the sentiment value for that bar
The sentiment difference is color-coded:
Green: Price is above sentiment (bullish)
Red: Price is below sentiment (bearish)
2. Chart Plot
The indicator plots a line showing the difference between the current price and the sentiment value.
When the line is above zero: price is above sentiment (bullish).
When the line is below zero: price is below sentiment (bearish).
3. Settings
Number of Lookback Bars: Adjusts the SMA period for sentiment calculation (default is 100).
Table Position: Choose where to display the table on your chart (e.g., Top Left, Bottom Right).
How to Interpret
Green values in the table or a plot above zero suggest bullish sentiment.
Red values in the table or a plot below zero suggest bearish sentiment.
Use this indicator to quickly assess if the market is trading above or below its recent average sentiment level.
Tips
You can combine the SENTIMENT indicator with other tools or signals for more robust trading decisions.
Adjust the lookback period to suit your trading timeframe and style.
Risk On/Off Index [SwissAlgo]Risk On/Off Index - Sector Rotation Analysis
----------------------------------------------------
What it does:
This indicator estimates market risk appetite by comparing the weighted performance of growth/cyclical sectors (Risk-On) against defensive sectors (Risk-Off).
It provides a normalized oscillator that ranges from -1 (extreme risk-off) to +1 (extreme risk-on), which may help traders identify potential shifts in market sentiment and sector rotation patterns.
The analysis examines whether institutional money flows favor aggressive growth assets or seek safety in defensive positions, potentially offering insights into the underlying risk tolerance that drives market movements. When properly interpreted alongside other analyses, this information could assist in understanding broader market cycles and sentiment transitions.
----------------------------------------------------
How it works:
The indicator analyzes 11 major sector ETFs weighted by their actual market capitalization representation:
Risk-On sectors (70% weight) : Technology (28%), Financials (11%), Consumer Discretionary (10%), Communication (9%), Industrials (8%), Energy (4%), Materials (2.5%), Real Estate (2%)
Risk-Off sectors (30% weight) : Healthcare (13%), Consumer Staples (6%), Utilities (2.5%)
The algorithm calculates the weighted performance difference over your selected timeframe (7 days to 12 months) and normalizes it using three methods: Simple Difference, Tanh Normalized, or Historical Range. A 7-period EMA smooths the signal, while a longer signal line (default 50) provides trend context.
----------------------------------------------------
Visual Features:
Main curve (Risk Appetite Delta) : The primary line shows the smoothed (7-period EMA) risk appetite reading. When above zero, growth sectors are outperforming defensive sectors (risk-on sentiment). When below zero, defensive sectors are outperforming growth sectors (risk-off sentiment).
Signal line : A longer EMA (default 50-period) of the risk appetite data that represents the underlying trend. Crossovers between the main curve and signal line may indicate potential momentum shifts in market sentiment (potential long signal when the crossover happens in extreme risk-off zones, and potential short signal when the crossunder occurs in extreme risk-on zones)
Dynamic color coding : The main curve color reflects both position and momentum:
Red : Risk-on territory (>0) with strengthening momentum (above signal line)
Green : Risk-on territory (>0) but weakening momentum (below signal line) - potential reversal warning
Maroon : Risk-off territory (<0) but strengthening momentum (above signal line) - potential reversal warning
Lime : Risk-off territory (<0) with strengthening momentum (below signal line)
Gradient background zones : Subtle fills indicate risk appetite intensity levels from moderate (0 to ±0.25) through strong (±0.25 to ±0.5) to extreme (±0.5 to ±1.0)
Sector breakdown table : Shows individual sector performance with clear Risk-On/Risk-Off categorization
Reference levels : Horizontal lines mark neutral (0), strong (±0.5), and extreme (±1) risk appetite zones
This color system allows traders to quickly assess not just current sentiment (above/below zero) but also whether that sentiment is strengthening or potentially reversing based on the relationship with the signal line.
----------------------------------------------------
Who may benefit:
Portfolio managers rotating between growth and defensive allocations
Swing traders timing sector rotation plays
Risk managers monitoring overall market sentiment
Asset allocators adjusting exposure based on risk appetite cycles
----------------------------------------------------
Key applications:
Identify when markets transition from growth-seeking to risk-averse behavior
Time entries into cyclical sectors during risk-on phases
Rotate to defensive sectors when risk appetite weakens
Spot divergences between individual stocks and broader market sentiment
----------------------------------------------------
Limitations:
This indicator reflects US equity sector dynamics and may not capture risk sentiment in other asset classes or geographic regions. ETF-based analysis introduces slight tracking differences from underlying sector performance. Past performance patterns do not guarantee future results.
----------------------------------------------------
Disclaimer:
This indicator is for educational and analytical purposes only. It does not constitute financial advice or trading recommendations. Users should conduct their own analysis and risk assessment before making investment decisions. SwissAlgo assumes no responsibility for trading losses or investment outcomes based on this indicator's signals.
JXMJXRS - Macro Flow CompassThe Macro Flow Compass is designed to give a high-level view of market behaviour by tracking how capital is moving across the crypto ecosystem. It’s not an entry or exit tool. Instead, it helps identify when the overall environment is shifting, whether capital is favouring majors like BTC and ETH, rotating into altcoins, or moving into stables.
The goal is to keep you aligned with broader market cycles, so trades are taken with macro context in mind.
The script works by analyzing four key metrics:
Total crypto market cap (CRYPTOCAP:TOTAL)
Bitcoin dominance (CRYPTOCAP:BTC.D)
Ethereum dominance (CRYPTOCAP:ETH.D)
Combined stable coin dominance from USDT and USDC (CRYPTOCAP:USDT.D + USDC.D)
These are smoothed using a basic EMA (Exponential Moving Average) to reduce noise. The script then checks for changes in dominance and market cap slope to detect when capital is likely flowing into or out of specific sectors.
When certain conditions align, the script will shade the background with one of the following colours:
Green Panel – Risk-on behaviour in majors. Usually appears when total market cap is trending up and BTC dominance is dropping, or stable coin dominance is falling. It suggests BTC and ETH are likely receiving capital inflow, not necessarily pumping but positioned better for upside.
Orange Panel – Altcoin rotation. Happens when ETH dominance is rising or stables are pulling back, while the market cap is also rising. These tend to precede altcoin outperformance phases.
Blue Panel – Stable coin build-up. Signals increasing stable coin dominance. Often a defensive move, either after a drop or in anticipation of volatility. This can mean risk-off conditions.
The indicator uses three main settings:
Smoothing Length – Controls how reactive the EMAs are. Lower values react quicker to short-term changes; higher values will slow things down and highlight more persistent trends.
Dominance Flip Threshold (%) – Sets how much a dominance value must change in one bar to trigger a condition. It’s there to avoid reacting to tiny shifts that don’t really matter.
Macro Cap Slope Length – Determines how the macro market cap trend is calculated. It looks at the slope of a long-term regression to decide if we’re in an uptrend or downtrend.
This tool works on higher timeframes like the weekly or monthly, and it’s especially useful when combined with your own technical analysis.
Slope Based Divergences of Wavelet - (Multi-Length, Dual Price)
1. Summary
This is not a typical divergence indicator. Instead of comparing simple peaks and troughs in price and an oscillator, the Slope-Based Divergence Engine performs a far more rigorous analysis by measuring the rate of change (slope) itself.
It identifies high-probability divergence opportunities by detecting moments when price is accelerating strongly in one direction while the underlying momentum, measured by a sophisticated Scientific Wavelet Oscillator, is accelerating in the opposite direction. By requiring confirmation from two different price sources (high and low) and across multiple timeframes, it aims to filter out noise and pinpoint only the most potent moments of market exhaustion.
2. The Core Innovation: Why Slope?
Traditional divergence indicators look at levels (e.g., price made a higher high, RSI made a lower high). This script looks at momentum's momentum.
Traditional Method: "Price went up, but momentum went down."
This Script's Method: "Price is accelerating upwards faster than ever, but momentum is decelerating faster than ever."
By focusing on the slope, the indicator identifies points of maximum stress and disagreement in the market, which often precede sharp reversals.
3. Key Components & Logic
The script's power comes from its multi-layered filtering system:
Scientific Wavelet Oscillator: The indicator's engine is a custom oscillator built using a Haar Wavelet Transform. Unlike standard oscillators (like RSI or Stochastics) that use a single period, this one analyzes the price across multiple different time scales (or "octaves") simultaneously. It then fuses this information into a single, robust momentum reading that is normalized using a statistical Z-score.
Multi-Length Average Slope: The script doesn't just calculate a single slope. It calculates the slope across a range of lookback periods (e.g., from 1 to 30 bars) and then averages them. This creates a much smoother and more reliable measure of the trend's current velocity, filtering out the noise from any single period.
Dual Price Confirmation: To qualify a price trend, the script requires that the slope of two separate price sources (by default, high and low) are both in agreement. For a bearish divergence, the slopes of both the session high and low must be accelerating upwards aggressively. This ensures the entire price bar is participating in the move and avoids false signals from wicks or narrow ranges.
Multi-Timeframe Percent Rank: The script uses percentrank to normalize the calculated slopes, putting them on a scale of 0 to 100. This allows it to identify statistically extreme readings. A divergence is only confirmed if it meets the criteria on both a Long-Term (LL) and Short-Term (LS) lookback. This ensures the signal is not just a momentary fluke but is a valid point of exhaustion in both the immediate and broader context.
4. How to Interpret the Signals
The indicator plots simple labels on the chart when all conditions are met:
Green "Bull" Label (Bullish Divergence): Appears when:
The slopes of both high and low are accelerating downwards (in the bottom 8% of their historical readings for both long and short lookbacks).
Simultaneously, the slope of the wavelet oscillator is accelerating upwards (in the top 92% of its historical readings).
Meaning: Price is in a state of free-fall, but the underlying momentum is aggressively turning up. This signals that selling pressure is likely exhausted.
Red "Bear" Label (Bearish Divergence): Appears when:
The slopes of both high and low are accelerating upwards (in the top 92% of their historical readings).
Simultaneously, the slope of the wavelet oscillator is accelerating downwards (in the bottom 8% of its historical readings).
Meaning: Price is in a state of extreme ascent (a "blow-off top"), but the underlying momentum is collapsing. This signals that buying pressure is likely exhausted.
5. How to Use in Trading
Reversal Signals: The labels should be treated as high-probability signals that a trend is exhausted and a reversal or significant pullback is imminent.
Confirmation Tool: Do not use the labels as standalone entry signals. Always seek confirmation from other forms of analysis, such as a break of a trendline, a key support/resistance level holding, or a classic candlestick reversal pattern.
Exit Signals: A bearish divergence label can serve as a powerful signal to take profit on long positions, and a bullish label can be a signal to cover shorts.
Dudix 1-2-3 TABELKA lot (EMA238)This indicator is designed to detect 1-2-3 reversal patterns within a clearly defined trend, using a triple EMA filter (EMA 20, EMA 50, and EMA 238).
By requiring that the EMAs be aligned (e.g., EMA 20 > EMA 50 > EMA 238 for an uptrend), the script effectively avoids false signals during sideways/consolidation phases, focusing only on entries in the direction of the dominant trend.
It highlights both Bullish 1-2-3 and Bearish 1-2-3 formations based on price structure and EMA positioning.
Additionally, the indicator includes a customizable point-distance calculator that shows how far the current candle’s close is from the EMA 50, helping traders gauge momentum or entry timing. The point size can be adjusted (e.g., 0.00001 for GBPUSD or 0.01 for JPY pairs) directly from the settings panel.
✅ Ideal for scalpers and intraday traders who want to:
Trade with the trend
Avoid chop and consolidation
Enter on price confirmation patterns
Seasonality Seasonality chart showing accurate monthly average % gains and win rate over a user defined time period.
The chart displays the possible pattern of price moves over the year and aligns with the start of the current year, projecting into the future.
Works on both calendar day and trading day charts. Not suitable for other timeframes.
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.
Gold vs DXYThe 30-day rolling correlation between Gold (XAU/USD) and the US Dollar Index (DXY) shows how closely the two move together — or more often, in opposite directions — over the last 30 trading days. In most market environments, the relationship is pretty straightforward: when the dollar goes up, gold tends to go down, and vice versa. That’s because gold is priced in dollars, so a stronger dollar makes it more expensive for international buyers, which usually softens demand.
But it’s not always that simple. There are times when this inverse correlation breaks down. For example, if real yields (like the US 10-year yield minus inflation expectations) are rising, that can pressure gold even if the dollar is falling — because higher real returns elsewhere make gold less attractive. Another case is when other currencies, like the euro or yen, rally strongly on their own central bank decisions. This can pull DXY lower without necessarily signaling weakness in the U.S. economy — meaning gold might not benefit much.
There are also “risk-on” moments where investors rotate into equities or crypto, selling off both gold and the dollar in favor of yield or momentum. And during periods of crisis or uncertainty, both gold and the dollar can rise together as safe-haven assets, breaking the usual pattern entirely.
That’s why tracking the rolling correlation is helpful. It shows whether the historical relationship between gold and the dollar is still holding — or if we’re entering a different market regime. It’s not about predicting exact price moves, but about understanding the current backdrop. When gold and DXY are moving out of sync as expected, it can support your trade thesis. But when the correlation flattens or flips, it’s often a sign to dig deeper — macro forces may be shifting.
Fib Swing Counter [A@J]Fib Swing Counter — Trade the Rhythm of the Market
This indicator automatically marks swing highs and lows with Fibonacci numbers (1, 1, 2, 3, 5, 8, 13, …), helping you track market structure, count price legs, and identify hidden order behind price movement.
Core Features:
Auto-detects pivots and labels them with the Fibonacci sequence.
Alternates between highs and lows — no repeats, no noise.
Custom reset time — start your count at the New York session open, a major news event, or your own strategic point.
Clean and simple visual display, adaptable to your chart style.
How Traders Use It:
Liquidity cycles: Spot when price is expanding or contracting in Fibonacci-driven waves.
Entry timing: Wait for setups to align with a key Fib count.
Confluence with other tools: Combine with ICT concepts, SMT divergence, supply/demand blocks, or Fibonacci retracements.
Session-based analysis: Restart the sequence everyMarket Open, Midnight, New York or London open to study price behavior from a fresh anchor point.
Whether you're into smart money concepts, price action, or algorithmic patterns, this tool adds a rhythmic layer to your analysis — because markets move with sequence, not randomness.