Analisis Fundamental
Impact Score (ATR% × RVOL)Calculates Impact Score (ATR% × RVOL). This number helps determine if a movement in price is a "thin drop" meaning the drop had relatively low volume and is likely to bounce back, or if it's heavy drop, meaning that it had high volume and less likely to rebound as soon e.g., results from earnings report.
P/B Ratio (Per Share) vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Book (P/B) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/B ratio drops below the lower Bollinger Band, which is calculated directly from the P/B ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
P/E Ratio vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Earnings (P/E) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/E ratio drops below the lower Bollinger Band, which is calculated directly from the P/E ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
P/S Ratio vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Sales (P/S) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/S ratio drops below the lower Bollinger Band, which is calculated directly from the P/S ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by @haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
Stockbee LabelUnlock the full potential of your TradingView charts with this powerful indicator designed specifically for Stockbee methods. Instantly gain key market insights at a glance with a sleek, easy-to-read label displayed on your chart. This dynamic label provides critical data including Volume, Total Float, Market Capitalization, Trend Intensity, Average Daily Range (ADR), Half-Day Stop Loss level, and Modified Double Trouble (MDT) .
Elevate your trading strategy with real-time, essential metrics all in one place—streamlining your decision-making and boosting your confidence in the market.
Disclaimer: This indicator is inspired by and built upon the original concepts of Stockbee and EG.
Future Value ProjectionFuture Value Projection with Actual CAGR
This indicator calculates the future value (FV) of the current ticker’s price using its historical Compound Annual Growth Rate (CAGR). It measures how much the price has grown over a chosen lookback period, derives the average annual growth rate, and then projects the current price forward into the future.
Formulae:
CAGR:
CAGR = ( PV_now / PV_past )^(1 / t) - 1
Future Value:
FV = PV_now × ( 1 + CAGR / n )^( n × T )
Where:
PV_now = Current price
PV_past = Price t years ago
t = Lookback period (years)
CAGR = Compound Annual Growth Rate
n = Compounding periods per year (1=annual, 12=monthly, 252=daily, etc.)
T = Projection horizon (years forward)
How it works:
Select a lookback period (e.g., 3 years).
The script finds the price from that time and computes the CAGR.
It then projects the current price forward by T years using the CAGR.
The chart shows:
Current price (blue)
Projected FV target (green)
A table with CAGR and projection details
Use case:
Helps investors and traders visualize long-term growth projections if the ticker continues growing at its historical pace.
Separators + MTF Box with Sessions
Indicator Description
Professional Multi-Timeframe Analysis Tool with Session Visualization
This comprehensive trading indicator combines advanced multi-timeframe analysis with session visualization, providing traders with a complete market structure visualization toolkit.
🚀 Key Features
Multi-Timeframe Separators
· Smart vertical lines marking period beginnings across 7 timeframes (5min to Weekly)
· Customizable colors, styles, and visibility ranges for each timeframe
· 30-minute separator option for enhanced precision
· Automatic visibility based on your current chart timeframe
Dynamic MTF Box
· Displays higher timeframe support/resistance levels as clear visual lines
· Two operating modes: Automatic (smart selection) or Manual (user-defined)
· Customizable colors for High/Low lines and Open/Close lines
· Optional Open/Close level display
Session Visualization
· Visualizes key market sessions with customizable time ranges
· Customizable session colors and labels
· Automatic high/low detection within each session
· Professional box displays with session labels
🎯 How It Works
The indicator automatically:
1. Draws timeframe separators based on your chart's current timeframe
2. Displays higher-timeframe structure through the MTF box
3. Identifies and marks sessions with their respective ranges
4. Provides clean visual representation of multi-timeframe market structure
⚙ Customization Options
· Separators: Enable/disable individual timeframes, adjust colors, styles, and visibility
· MTF Box:
· Choose between Automatic or Manual mode
· Select timeframes
· Customize colors for High/Low and Open/Close lines
· Toggle Open/Close display
· Sessions: Customize session times, colors, and toggle individual phases
· General: Overall on/off controls for separators
📊 Ideal For
· Multi-Timeframe Analysis: Perfect for traders who analyze across different timeframes
· Session-Based Trading: Identify key market sessions and their ranges
· Market Structure Traders: Clear visualization of support/resistance levels
· Swing & Day Traders: Suitable for various trading styles and timeframes
💡 Pro Tips
1. Use the Automatic mode for smart timeframe selection
2. Adjust separator visibility to avoid clutter on your preferred chart timeframes
3. Combine the MTF box with session visualization for comprehensive market analysis
4. Use different colors for quick visual recognition of various timeframes
⚠ Note
This indicator uses multiple security calls for MTF functionality. Performance may vary on very low timeframes with many enabled features.
Elevate your trading analysis with this all-in-one market structure tool that combines the power of multi-timeframe analysis with session visualization!
---
How to Use
1. Apply the indicator to any chart
2. Configure separator settings in the "Separators" groups
3. Set MTF Box preferences (mode, timeframe, colors)
4. Customize session times and colors in the "Sessions" group
5. The indicator will automatically display relevant market structure information
Compatibility
· Works on all chart types (candlestick, bar, line, etc.)
· Compatible with all TradingView instruments (stocks, forex, crypto, indices)
· Responsive design works on all timeframes from 1 minute to monthly
Transform your chart analysis with this powerful combination of timeframe separators, MTF structure visualization, and session analysis!
VWAP Confluência 3x VWAP Confluence 3x — Daily · Weekly · Anchored
Purpose
A pragmatic VWAP suite for execution and risk management. It plots three institutional reference lines: Daily VWAP, Weekly VWAP, and an Anchored VWAP (AVWAP) starting from a user-defined event (news, earnings, session open, swing high/low).
Why it matters
VWAP is the market’s “fair price” weighted by where volume actually traded. Confluence across timeframes and events turns noisy charts into actionable bias and clean levels.
What it does
Daily VWAP — resets each trading day; intraday “fair value.”
Weekly VWAP — resets each week; swing context and larger player defense.
Anchored VWAP — starts at a precise timestamp you set (e.g., news release).
Price source toggle — Typical Price
(
𝐻
+
𝐿
+
𝐶
)
/
3
(H+L+C)/3 or Close.
Visibility switches — enable/disable each line independently.
Anchor marker — labels the first bar of the AVWAP.
Inputs
Show Daily VWAP (on/off)
Show Weekly VWAP (on/off)
Show Anchored VWAP (on/off)
Price Source: Typical (H+L+C)/3 or Close
Anchor Time: timestamp of your event (uses the chart/exchange timezone)
How to anchor to a news event
Find the exact release time as shown in your chart’s timezone.
Open the indicator settings → set Anchor Time to that minute.
The AVWAP begins at that bar and accumulates forward.
Playbook (examples, not signals)
Strong long bias: price above Daily and Weekly VWAP; AVWAP reclaimed after news.
Strong short bias: price below Daily and Weekly; AVWAP reject after news.
Mean-revert zones: price stretches far from the active VWAPs and snaps back; size around VWAP with tight risk.
Targets: opposite VWAP, prior day/week highs/lows, or liquidity pools near AVWAP.
Best used with
Session highs/lows, liquidity sweeps, volume profile, and time-of-day filters.
Notes & limitations
Works best on markets with reliable volume (equities, futures, liquid crypto). FX spot uses synthetic volume—interpret accordingly.
Anchor Time respects the chart’s timezone. Convert news times before setting.
This is an indicator, not a backtestable strategy. No trade advice.
Disclaimer
For educational purposes only. Trading involves risk. Do your own research and manage risk responsibly.
Pivot ConnectPivot Connect –
a condensed and educational version
Objective
Automatically draws extended horizontal lines at the pivots (relevant highs and lows) of three timeframes:
The current chart (1 min, 5 min, 1 h… whatever you're looking at)
Weekly (W)
4-hour (240 min)
These lines are considered "protected levels": resistances (highs) or supports (lows).
The script also detects when the price breaks only the wick break to change the color/style of the line and warn that the level may have become invalid.
What is a pivot here?
ta.pivothigh / ta.pivotlow calculate a local high/low that has at least n bars on either side.
The pivotStrength parameter (default 12) is that n.
Therefore, a pivot high requires 12 candles to the left and 12 to the right lower than itself.
Lines drawn:
Highs and lows of the current timeframe (red and green)
Weekly highs and lows (blue and orange) if useWeekly = true
4-hour highs and lows (fuchsia and aqua) if use4H = true
Each line extends to the right by "extendLines" bars (default 100).
Wick break
This is reviewed bar by bar:
For a High level: if the high breaks above the line but the close remains below → it is considered a false break (wick break) and the line changes to purple and dashed style.
For a Low level: if the low breaks above the line but the close remains above → same warning.
The wickBreakBars (5) parameter is not used in the current logic; it was probably intended for future validation.
Cleaning Old Lines
Every 100 bars, lines with a right end older than 500 bars are removed to avoid memory overload (max_lines_count = 500).
Quick Customization
Colors and styles for each category.
Show or hide each line group (showHighs, showLows, useWeekly, use4H).
Thickness, solid/dash/dotted style.
Example of on-screen reading
Horizontal red line: resistance of the timeframe itself.
Horizontal blue line: important weekly high.
If a line changes to dashed purple: the price pierced it with the wick but did not close above it (at highs) – possible rejection.
This gives you a visual map of multi-timeframe support and resistance levels with quick alerts for "suspicious" breakouts.
Snapfront Funding Stress IndexThe Funding Stress Index (FSI Lite) transforms raw funding rate data into a clear, intuitive stress gauge for crypto perpetual markets.
🔹 What it does:
Normalizes funding rates against their rolling baseline
Highlights extreme positive/negative funding as “stress zones”
Uses φ²-based coherence mapping for a sharper, sentiment-driven signal
Helps detect periods where traders are overpaying to stay long or short
🔹 How to use:
Add a Funding Rate feed (Bybit, Binance, OKX, etc.) to your chart.
Apply FSI Lite on top of it (Indicator on Indicator).
Watch stress levels as they enter:
🟢 High stress (positive funding) → longs paying shorts heavily, often overheated market.
🔴 Low stress (negative funding) → shorts paying longs, capitulation signals.
🟠 Neutral zone → balanced, less directional pressure.
🔹 Best for:
Identifying overheated long/short positioning
Timing entries around liquidation clusters
Adding funding context to your trading strategy
⚠️ Note: This is the Lite (free) version. It is educational only and not financial advice.
Entry + TP + SL Box (dynamic )The purpose of creating this indicator is to quickly draw the entry price range box, price target box, and price loss box.
Auto Pivot Entry SL TPDescription:
The Auto Pivot Entry SL TP indicator automatically detects Pivot Highs and Pivot Lows to generate precise BUY and SELL trade setups.
When a Pivot Low forms, a BUY setup is displayed with Entry, Stop Loss, and multiple Take Profit (TP1–TP3) levels.
When a Pivot High forms, a SELL setup is displayed with Entry, Stop Loss, and multiple Take Profit (TP1–TP3) levels.
Key Features:
Automatic detection of pivots for trade entries.
Clear visualization of Entry, SL, and TP levels directly on the chart.
Flexible Risk-Reward ratio settings for customizable targets.
Works on all symbols and timeframes.
This tool is designed for traders who want a simple yet effective method to plan trades using price action pivot points combined with predefined risk management (SL & TP levels).
60 신저가 숏“60-Day New Low Short” is a momentum breakdown setup that sells short when price prints a fresh 60-day low, betting that failed support will extend the downtrend.
Entries are usually taken on the breakdown close (or next open) with confirmation like rising volume, relative weakness, and price below the 50/200-day MAs.
Manage risk with a stop above the recent swing high or 20-day high; take profits via ATR-based targets or a trailing stop, and avoid trades near major catalysts (earnings/news).
123Scalp-AHTDetector de patrones con confirmación para scalping.
Identifica Hammer/Shooting Star, Engulfing, Morning/Evening Star y Doji. Genera BUY/SELL con Entry/SL/TP (1R/1.5R/2R), opción 1-bar exit, filtro EMA, y alertas. Render Classic o Anchored (ABS) anclado al precio. No repinta tras la confirmación; pensado para intradía/scalping.
Scalp Pattern Signals — fast pattern/confirmation for intraday.
Detects Hammer/Shooting Star, Engulfing, Morning/Evening Star, and Doji. Produces BUY/SELL with Entry/SL/TP (1R/1.5R/2R), optional 1-bar exit, EMA trend filter, and alerts. Choose Classic or Anchored (ABS) rendering (anchored to price). No repaint after confirmation; built for scalping/intraday.
Ultimate Smart Trader Indicator (USTI)The Ultimate Smart Trader Indicator (USTI) is an all-in-one, institutional-grade trading tool designed to give traders a complete market overview for smarter and more accurate trading decisions.
Key Features:
Trend Analysis: Multi-timeframe EMA trends with trend strength visualization.
Momentum Signals: Advanced fusion of RSI, Stochastic, and MACD with divergence detection.
Volatility Zones: ATR-based dynamic support/resistance for risk management.
Supply & Demand Zones: Smart liquidity zones for high-probability entries and exits.
Multi-Timeframe Confirmation: Confirms trends and momentum on higher timeframes for accuracy.
Strong Buy/Sell Signals: Clear labels and alerts to guide trade entries.
Fully Customizable: Toggle features, adjust periods, and personalize colors to fit your strategy.
Why Traders Love USTI:
Combines trend, momentum, volatility, and liquidity into a single indicator.
Helps identify high-probability trading opportunities.
Perfect for intraday, swing, and long-term trading strategies.
Includes alerts for TradingView so you never miss a signal.
Use USTI to trade smarter, manage risk better, and make more confident decisions in any market condition.
DR/IDR Sessions with Standard Deviation (v1.5)This indicator plots the Defining Range (DR) and Initial Defining Range (IDR) during Regular, After, and Overnight sessions. It automatically identifies the session highs, lows, and midpoints, then extends these levels into later trading hours for market structure analysis.
Key features:
📍 Session Detection: Automatically marks Regular (RDR), After-hours (ADR), and Overnight (ODR) ranges.
📈 DR & IDR Lines: High, Low, and optional Mid lines for both DR and IDR.
🟩 Opening Line: Plots the session’s opening price with customizable extension options.
🎨 Visual Boxes: Highlights the DR/IDR area with customizable up/down coloring (based on candle open/close).
➕ Standard Deviation Lines: Plots levels at multiples of 0.5 × IDR, either dynamically (following price) or statically (fixed number of levels).
⏳ Extend Options: Extend ranges to session end, ADR end, ODR end, or dynamically follow price.
⚙️ Highly Customizable: Colors, line styles, box shading, visibility history, and extension behavior.
Usage:
Traders use this indicator to analyze liquidity, session ranges, and potential breakout or mean-reversion zones. The DR/IDR concept is often used in ICT-style trading to identify accumulation ranges and expansion phases. Standard Deviation lines help in spotting overextensions and possible reversal levels.
FVG & IFVG ICT IndicatorThe FVG & IFVG ICT Indicator is a comprehensive technical analysis tool designed for traders who follow the Fair Value Gap (FVG) and Inversion Fair Value Gap (IFVG) methodology popularized by ICT concepts. It automatically detects bullish and bearish FVGs and IFVGs on your chart, plots them with customizable colors and mitigation levels, and provides real-time alerts for potential trading opportunities.
Key features include:
FVG & IFVG Detection: Automatically identifies demand (bullish) and supply (bearish) FVGs and their inversion counterparts.
Mitigation Levels: Highlights key reaction zones using Proximal, 50% OB, or Distal levels to plan entry or exit strategies.
Alert System: Sends alerts for FVG and IFVG mitigations with customizable frequency and time zone display.
Break Triangles: Plots visual triangle markers when price breaks an FVG, validated with ATR thresholds for reliable signals.
Customizable Visuals: Supports light and dark color themes and full control over displayed zones and colors.
Advanced Filtering: Filters FVGs by width (Very Aggressive → Very Defensive) to reduce noise and focus on significant zones.
Dynamic Lookback: Tracks the most recent FVGs and resets them after a defined lookback period to avoid multiple signals.
This indicator is ideal for swing and intraday traders seeking precise zone-based entries, exits, and confirmations based on price imbalance logic.
Session Liquidity & Sweep DetectorThe indicator is an advanced trading tool designed to give traders a complete visual and analytical overview of major market sessions. By tracking the Asia, London, and New York sessions, this indicator highlights session highs/lows, liquidity sweeps, and advanced A++ patterns to help identify high-probability trade setups.
It combines session analysis, sweep detection, and pattern recognition into a single, customizable indicator. Traders can use it for spotting breakout points, reversal setups, and areas of stop hunts or liquidity grabs.
Key Features:
1. Session Liquidity Boxes:
Automatically draws boxes representing Asia, London, and NY trading sessions on the chart.
Each session box is color-coded and fully customizable (colors, transparency, border width).
Option to display only the most recent session box, reducing chart clutter.
Helps traders visually separate trading sessions and understand session structure.
2. High/Low Sweep Detection:
Detects when price sweeps the high or low of a completed session, indicating liquidity grabs or stop-hunting behavior.
Labels are added to the chart for clear visualization:
AHS: Asia High Swept
ALS: Asia Low Swept
LHS: London High Swept
LLS: London Low Swept
Horizontal lines are drawn at swept levels to track key support/resistance points.
Sweep detection occurs only within the same trading day, preventing false signals.
3. A++ Pattern Detection:
Detects advanced Long/Short A++ patterns based on session sweep behavior:
Long A++ Pattern: Both Asia and London lows are swept, but highs remain intact.
Short A++ Pattern: Both Asia and London highs are swept, but lows remain intact.
Patterns are plotted with customizable labels to highlight potential high-probability setups.
Helps traders identify early directional bias for the trading day.
4. Customizable Visual Settings:
Box colors, sweep line colors, and label colors are fully customizable.
Label sizes can be set to “auto”, “tiny”, “small”, “normal”, “large”, or “huge”.
Sweep line width and box border width are adjustable.
Clear visualization ensures traders can analyze sessions quickly and efficiently.
5. Multi-Session Tracking:
Tracks Asia, London, and New York sessions independently.
Keeps historical session data while dynamically updating the latest session in real-time.
Allows traders to see inter-session liquidity interactions, which are key for breakout and reversal strategies.
6. Optimized for Real-Time Trading:
Updates session highs/lows bar by bar during live trading.
Works on any timeframe, making it suitable for scalping, intraday, and swing trading.
Integrates seamlessly with other indicators like FU Candle Indicator, VWAP, Order Blocks, and more for advanced strategies.
Use Cases:
Liquidity Hunting: Spot where institutional traders may be triggering stop losses or grabbing liquidity.
Breakout Analysis: Identify when price breaks through session highs/lows and confirm trade direction.
Session Pattern Trading: Use A++ patterns to anticipate strong directional moves early in the trading day.
Multi-Session Strategies: Analyze relationships between Asia, London, and NY sessions to find high-probability entries.
Scalping & Day Trading: Visualize key levels for quick trade decisions.
Ideal Users:
Forex, crypto, and futures traders who want a session-based liquidity and sweep analysis.
Traders who use high-probability patterns and breakout strategies.
Scalpers, intraday traders, and swing traders looking for clear visual cues and actionable signals.
Anyone seeking a comprehensive session overview for smarter trading decisions.
This indicator essentially combines session boxes, liquidity sweep labels (AHS, ALS, LHS, LLS), horizontal lines for swept levels, and A++ pattern detection to give traders a full view of market structure, liquidity, and potential directional bias.
Previous Day SweepThis indicator automatically detects and plots the highs and lows of previous trading days and tracks their breakouts in real-time. It allows traders to visualize key support and resistance levels from the last N days, highlighting breakouts with triangle markers.
Key Features:
Displays highs and lows of up to 20 previous days (configurable).
Highlights breakouts above previous highs and below previous lows.
Tracks breakouts for both the most recent day and older days.
Previous day levels are plotted with customizable colors, transparency, and line width.
Lines automatically extend until broken or until the current bar.
Helps identify liquidity sweeps, trend shifts, and potential breakout points.
Ideal For:
Day traders, swing traders, and algorithmic traders looking to monitor key daily levels and breakout points.
iFVGs & Breakout DetectorThis indicator by Quantel enhances the classic Fair Value Gap (FVG) and Inversion FVG concept with automated detection, visualization, and breakout tracking.
Plots Bullish/Bearish FVGs and Inversion FVGs with customizable mitigation levels (Proximal, 50% OB, Distal).
Applies an advanced filtering system (Aggressive → Very Defensive) to refine valid zones.
Highlights potential trade opportunities when price decisively breaks an FVG boundary using ATR-based confirmation.
Displays visual breakout triangles to mark bullish or bearish breakouts.
Includes smart color themes (Light/Dark/Off) and full alert integration for automated trading or notifications.
With its combination of institutional concepts and robust filtering, this tool helps traders identify high-probability supply/demand imbalances, monitor valid trading zones, and catch breakout confirmations in real time.
Multi-Asset Trend Background [SwissAlgo]Multi-Asset Trend Background
---------------------------------------------------------
Purpose
This indicator colors the chart background green (uptrend) or red (downtrend) to show the broad phases of a selected asset or ratio (for example SP500, or Gold), regardless of the current ticker on the chart (for example BTC).
The aim is not to generate signals, but to show when the selected asset (such as SP500 or Gold) was in a sustained uptrend or downtrend, so you can compare another chart (for example BTC) against that backdrop.
It helps frame price action in context, highlighting how macro drivers often align with or diverge from other markets.
From mid-2016 to late-2017, the SP500 was in a clear uptrend — Bitcoin rallied strongly in the same period, showing alignment between equities and crypto risk-taking.
When Gold trended higher, the SP500 often weakened, reflecting their tendency to move inversely in longer cycles.
As HYG/TLT turned down in early 2020, QQQ also struggled — illustrating how credit risk appetite is linked to equity performance.
During periods of DXY strength, Gold frequently showed the opposite trend, consistent with the historical dollar–gold relationship.
When RSP/SPY trended down, rallies in the S&P 500 were driven by a narrow group of large-cap stocks, while a rising ratio indicated broad market participation.
---------------------------------------------------------
Why it May Help You
Provides context for asset correlations.
Helps identify whether a chart is moving with or against its macro environment.
Useful for cycle mapping and historical study of market phases.
Filters noise and emphasizes established trends rather than short swings.
---------------------------------------------------------
How it Works
You select an asset or ratio from a dropdown.
The script calculates a mid-term moving average, then measures its slope, slope change, and slope acceleration to quantify the trend’s direction and consistency.
A longer-term moving average filter defines whether the long-term backdrop is bullish or bearish.
Background Coloring rules:
Green = slope strongly positive in line with long-term uptrend, or downtrend showing constructive reversal signs.
Red = slope strongly negative in line with long-term downtrend, or uptrend showing weakening slope.
No shading = neutral or mixed conditions.
This slope-based approach avoids the limitations of simple MA crosses, aiming to capture broad, consistent trend phases across different assets, with a mid/long-term view.
---------------------------------------------------------
Assets You Can Select
EQUITIES – good reference to gauge risk appetite in financial markets
SP500 = broad benchmark. Uptrend = strength in US equities signalling risk-on conditions; downtrend = weakness, risk-off market phase.
NASDAQ = tech and growth stocks. Uptrend = technology/growth leadership, risk appetite; downtrend = tech underperformance and fading risk appetite.
DOW = industrial and value stocks. Uptrend = industrial/value strength/economic strength; downtrend = weakness in traditional sectors and potential economic downturn.
RUSSELL2000 = small caps. Uptrend = typical in risk-on environments and FOMO; downtrend = small-cap underperformance, "flight to safety".
COMMODITIES – proxies for inflation, industry, and safe-haven demand.
GOLD = safe-haven. Uptrend = defensive demand rising/risk-off/inflation fears; downtrend = weaker demand for safety.
SILVER = partly industrial, partly safe-haven. Uptrend = stronger industrial cycle, or precious metals demand and risk appetite.
COPPER = industrial barometer. Uptrend = stronger industrial activity; downtrend = economic slowdown concerns.
CRUDE OIL = energy prices. Uptrend = rising energy/inflation pressures; downtrend = weaker demand or supply relief.
NATURAL GAS = volatile energy prices. Uptrend = higher energy costs and inflation pressure; downtrend = easing energy conditions.
BONDS / FX – monetary policy, credit, and risk appetite signals.
TLT = long-term US bonds. Uptrend = falling yields (bond demand)/flight to safety; downtrend = rising yields (risk on)
HYG = high-yield credit. Uptrend = strong credit appetite; downtrend = risk aversion in credit markets.
DXY = US dollar index. Uptrend = dollar strength (weaker EUR, GBP, SEK, etc); downtrend = dollar weakness.
USDJPY = carry trade proxy. Uptrend = stronger USD vs JPY (risk appetite); downtrend = JPY strength (risk-off).
CHFUSD = Swiss franc. Uptrend = franc strength (defensive flow); downtrend = franc weakness.
YIELD INVERSION = US10Y–US02Y. Uptrend = curve steepening; downtrend = inversion deepening (higher recession risk).
HOME BUILDERS = US housing sector. Uptrend = housing sector strength (risk on); downtrend = weakness (risk off).
EURUSD = euro vs dollar. Uptrend = euro strength (risk appetite); downtrend = euro weakness (risk aversion).
CRYPTO – digital asset benchmarks.
BITCOIN = digital gold. Uptrend = BTC strength; downtrend = BTC weakness.
CRYPTO_TOTAL = entire crypto market cap. Uptrend = broad crypto growth; downtrend = contraction.
CRYPTO_ALTS = altcoin market cap. Uptrend = altcoin expansion (often “alt season”); downtrend = contraction.
RATIOS – relative measures to extract macro signals.
COPPER/BTC = compares industrial cycle vs Bitcoin cycle. Uptrend = copper outperforming BTC; downtrend = BTC outperforming copper. Seems aligned with BTC macro tops and bottoms in the mid/long run.
RSP/SPY = market breadth (equal-weight vs cap-weighted). Uptrend = strong broad participation in market growth; downtrend = narrow leadership (fewer stocks leading the growth).
PCE/CPI = Fed’s inflation measure (PCE) vs consumer perceived inflation (CPI). Uptrend = PCE rising faster than CPI; downtrend = CPI running hotter than PCE. Fluctuates around 1; values above 1 may indicate hawkish Fed stands, values < 1 may indicate more dovish Fed stands.
HYG/TLT = credit vs bonds. Uptrend = risk appetite (high-yield outperforming long-term
treasury bonds); downtrend = risk aversion.
GOLD/SILVER = defensive vs cyclical metals. Uptrend = gold outperforming (risk-off tilt); downtrend = silver outperforming (risk-on tilt).
EURUSD/BTC = fiat vs crypto. Uptrend = EUR strengthening vs BTC; downtrend = BTC strengthening vs EUR. In general, the BTC trend is aligned EUR/USD trend.
---------------------------------------------------------
Limitations
Trend detection may lag by design to reduce noise.
Ratios rely on the availability and session rules of their components.
Background colors update on bar close; intra-bar values may differ.
Parameters are fixed and may not suit all assets equally.
---------------------------------------------------------
Disclaimer
This script is for educational and research purposes only. It does not provide financial advice or trade recommendations. Historical trend alignment does not guarantee future outcomes. Use with additional independent analysis.