EMA 9 + VWAP Bands Crossover With Buy Sell SignalsEMA 9 + VWAP Bands Crossover With Buy Sell Signals
Bands and Channels
Turtle/Donchian Screener — Recency & CloseAtBuyTurtle strategy with buy and sellsignals. Donchian channels. For Pine screener. 
Turtle/Donchian Screener — Recency & CloseAtBuyTurtle strategy, donchian channels. For Pine screener with for example buysignals and sellsignals.
Svopex Session Highlighter# Session Highlighter
## Description
**Session Highlighter** is a powerful Pine Script indicator designed to visually identify and mark specific trading hours on your chart. This tool helps traders focus on their preferred trading sessions by highlighting the background during active hours and marking the session start with customizable visual markers.
## Key Features
- **📊 Session Background Highlighting**: Automatically shades the chart background during your defined trading hours (default: 7:00 - 23:00)
  
- **🎯 Smart Session Start Marker**: Places a marker on the last candle before session start, intelligently adapting to your timeframe:
  - 1 Hour chart: Marker at 6:00
  - 15 Minute chart: Marker at 6:45
  - 5 Minute chart: Marker at 6:55
  - 1 Minute chart: Marker at 6:59
- **🌍 Timezone Support**: Choose from multiple timezones (Europe/Prague, Europe/London, America/New_York, UTC)
- **🎨 5 Marker Styles**: Customize your session start indicator:
  - Triangle
  - Circle
  - Diamond
  - Label with time text
  - Vertical line
- **⚙️ Fully Customizable**: Adjust start/end hours, timezone, and marker style through simple settings
## Settings
- **Start Hour**: Set your session start time (0-23)
- **End Hour**: Set your session end time (0-23)
- **Timezone**: Select your trading timezone
- **Marker Style**: Choose your preferred visual marker
## Use Cases
- Identify London/New York trading sessions
- Mark Asian session hours
- Highlight your personal trading windows
- Avoid trading during off-hours
- Perfect for day traders and scalpers
## Installation
1. Copy the Pine Script code
2. Open TradingView Pine Editor
3. Paste the code and click "Add to Chart"
4. Configure settings to match your trading schedule
Corpus Bollinger BandsThis is a copy of the build-in indicator, but as addition, it shows the distance between upper and lower band in percentage.
TI65**TI65 (Trend Intensity 65)** is a technical indicator designed to measure the strength and momentum of a trend over two distinct periods. It compares a short-term 7-period simple moving average (SMA) with a long-term 65-period SMA, producing a ratio that helps traders identify shifts in market momentum and trend direction.
- When the **TI65 value is greater than 1**, it indicates that the short-term moving average is above the long-term average, suggesting increasing momentum and a potentially bullish trend.
- When the **TI65 value drops below 1**, it signals weakening short-term momentum relative to the longer-term trend, often interpreted as a bearish or consolidating phase.
This indicator can be applied to both price and volume data, making it useful for identifying periods of strong volume surges or price movements. By observing changes in the TI65 ratio, traders can pinpoint low-risk entry points for trend-following strategies and quickly recognize periods of market transition.
TI65 is commonly used by momentum and breakout traders for screening strong candidates and confirming the sustainability of ongoing trends. It is simple, effective, and easily implemented via custom scripts on popular platforms like TradingView.
Volume TI65**TI65 (Trend Intensity 65)** is a technical indicator designed to measure the strength and momentum of a trend over two distinct periods. It compares a short-term 7-period simple moving average (SMA) with a long-term 65-period SMA, producing a ratio that helps traders identify shifts in market momentum and trend direction.
- When the **TI65 value is greater than 1**, it indicates that the short-term moving average is above the long-term average, suggesting increasing momentum and a potentially bullish trend.
- When the **TI65 value drops below 1**, it signals weakening short-term momentum relative to the longer-term trend, often interpreted as a bearish or consolidating phase.
This indicator can be applied to both price and volume data, making it useful for identifying periods of strong volume surges or price movements. By observing changes in the TI65 ratio, traders can pinpoint low-risk entry points for trend-following strategies and quickly recognize periods of market transition.
TI65 is commonly used by momentum and breakout traders for screening strong candidates and confirming the sustainability of ongoing trends. It is simple, effective, and easily implemented via custom scripts on popular platforms like TradingView.
Bollinger Band Width Oscillator %🧠 Bollinger Band Width Oscillator %
The Bollinger Band Width Oscillator % is a volatility-focused tool that measures the relative width of Bollinger Bands and transforms it into an oscillator format. It helps traders visualize volatility expansions and contractions directly in an indicator pane — a powerful way to anticipate breakout or consolidation phases.
🔍 How It Works
Band Width %: Calculates the percentage distance between the upper and lower Bollinger Bands relative to the basis (SMA).
Smoothed Output: The raw bandwidth is smoothed using a moving average for cleaner, more stable signals.
Dynamic Volatility Zones: The script automatically computes average, high, and low volatility thresholds — each dynamically adapting to market conditions.
User-Adjustable Multipliers: Control how sensitive your high/low zones are with the High Zone Multiplier and Low Zone Multiplier inputs.
⚙️ Key Features
📊 Oscillator Format – Easy-to-read visualization of volatility compression and expansion.
🔥 High/Low Volatility Detection – Automatic labeling and color-coded alerts for shifts in volatility.
🧩 Dynamic Thresholds – Zones adjust automatically with market activity for adaptive sensitivity.
🧠 Hysteresis Logic – Prevents rapid signal flipping, improving clarity and reliability.
🎨 Custom Visuals – Adjustable smoothing and background highlights for quick interpretation.
📈 Trading Applications
Identify Breakouts: Rising bandwidth often precedes price breakouts.
Spot Consolidations: Low bandwidth indicates tightening volatility and potential range trades.
Volatility Regime Analysis: Understand market rhythm and adapt strategies accordingly.
⚡ Inputs
Parameter	Description
Band Length	Period for Bollinger Band calculation
Band Multiplier	Standard deviation multiplier for the bands
Source	Price source (default: close)
Smoothing	Period for smoothing the oscillator line
High Zone Multiplier	Adjusts the high-volatility threshold
Low Zone Multiplier	Adjusts the low-volatility threshold
Highlight Volatility Zones	Optional background color overlay
🧊 Usage Tip
Combine this indicator with momentum tools or price action analysis to confirm trade setups. Watch for transitions from low to high volatility zones — these often signal the beginning of major market moves.
Monthly First-Day Range Breakout (Long-Only)Monthly First-Day Range Breakout (Long-Only)
When the Close is above the first candle of the month - Long 
Wait for the First Day Close 
VWAP Balance HeatmapVWAP Balance Heatmap visually highlights where price stands relative to the dynamic equilibrium of bullish and bearish VWAP averages. The indicator builds two running VWAP arrays — one for bullish candles, one for bearish — then plots their averages and the midpoint between them. It fills the space between price and this midpoint, coloring it green when price is above balance and red when below. The result is a smooth heatmap that reveals whether the market is trading in premium or discount zones, helping you see shifts in momentum and balance without clutter or lag.
DM Price ActionHere’s a tight, rules-based playbook for trading with your DM Price Action (FVG + S/R + Order Blocks + VWAP + Auto PDH/PDL/PMH/PML). It’s educational, not financial advice—tune to your market & risk.
Core ideas (what each tool does for you)
VWAP → intraday trend/mean.
PDH/PDL → yesterday’s extremes; magnet & reversal/continuation levels.
PMH/PML → premarket extremes; first liquidity tests after the open.
FVG → imbalance zones for continuation entries.
Order Blocks (OBs) → origin of impulses; mitigation/breaks = structure shifts.
S/R → target rails and break alerts.
Setups (long/short mirror)
1) Bias + Pullback (FVG/OB) at Key Level
Bias (need 2+ conditions):
Price above VWAP (bulls) / below VWAP (bears)
Price above PDH/PMH (bulls) or below PDL/PML (bears)
Most recent Swing OB bias in your direction (script updates via crosses)
Entry (bullish example):
Wait for a Bullish FVG to form after we reclaim PMH or PDH.
Prefer FVG overlapping a Bullish OB or sitting just above Support.
Enter on retrace into FVG midline or first bullish reversal candle inside.
Stop: a few ticks below OB low (or FVG bottom, whichever is wider).
Targets:
T1: nearest Resistance or PDH/PMH if not yet tested.
T2: next HTF S/R or fixed 2R–3R.
Manage: to BE at 1R, trail under swing lows or VWAP on trend days.
Bearish mirror: below VWAP, below PDL/PML, Bearish FVG into Bearish OB / Resistance; stop above OB high.
2) Range Break & Retest at PDH/PDL (with OB confirmation)
Context: Price consolidates under PDH (or over PDL).
Trigger: Clean break of PDH/PDL with an OB breakout alert in the break direction.
Entry: On retest of PDH/PDL from the other side, look for a small FVG forming with the move → enter on the pullback.
Stop: beyond the retest wick or the OB edge.
Targets: next S/R, opposing day extreme (e.g., from PDH to PMH/HTF level) or 2R/3R.
3) Premarket Sweep Reversal (open-specific)
Setup: At/near the cash open, price sweeps PMH/PML (wick through) but closes back inside, then a counter-direction OB forms.
Entry: On first FVG in the reversal direction that overlaps that new OB.
Stop: beyond the sweep extreme (PMH/PML).
Targets: VWAP first, then PD midline levels/SR.
Confluence checklist (score ≥3 before clicking)
+1 Above/below VWAP in trade direction
+1 Trading from a PDH/PDL/PMH/PML reaction (reclaim or rejection)
+1 FVG overlaps an OB
+1 Entry at S/R (use the script’s lines)
+1 Fresh zone (recently formed OB/FVG)
+1 Higher-TF structure aligned (e.g., 1H trend)
Take the trade only if score ≥3; size up only at ≥4.
Execution framework (simple & repeatable)
Timeframes: 1H (bias) → 5–15m (execution).
Risk per trade: 0.25–1.0% of account (fixed).
Position size: Size = Risk $ / Stop distance.
Management:
Scale ½ at T1 (nearest SR/PD level), move stop to BE at 1R.
Let runner to T2 (2R–3R) or next PD level.
If VWAP flips against you and closes 2 bars opposite, exit remainder.
Using the inputs (what to tweak)
Order Blocks:
Scalping mode for intraday speed; Day Trade for cleaner swings.
Hide Internal OBs if noise is high; keep Swing OBs for structure.
FVG:
Keep Auto Threshold = ON.
If noisy, plot higher TF FVG (e.g., 15m FVG on 5m chart).
PDH/PDL/PMH/PML:
If chart is cluttered, keep “Show lines only on last bar” ON and labels ON.
Session markets (futures/US equities): use default 0400–0930 premarket; FX/crypto can disable PM lines if irrelevant.
Alerts to set (so you only act on confluence)
Create alerts for:
Bullish/Bearish FVG (execution zones)
Swing/Internal OB Breakout (structure shift)
Support/Resistance Broken (targets/continuation)
(Optional) Crossing PDH/PDL: use TV “Price crossing” with the plotted PDH/PDL values or visually monitor the labels
Workflow: Wait for ≥2 alerts to line up (e.g., Swing OB Breakout + Bullish FVG near PDH), then open the chart and execute the rule set.
Example trade (bullish)
Price reclaims PDH, holds above VWAP.
Bullish FVG prints overlapping a Bullish Internal OB just above PDH.
Limit at FVG midline, stop below OB low.
T1 = next Resistance; T2 = 2R. Move to BE at 1R; trail under new swing lows.
Adaptive Volatility Bands | AlphaNattAdaptive Volatility Bands (AVB) | AlphaNatt 
Professional-grade dynamic bands that adapt to market volatility and trend strength, featuring smooth gradient visualization for enhanced chart clarity.
 🎯 CORE CONCEPT 
AVB creates self-adjusting bands around a customizable basis line, expanding during trending markets and contracting during consolidation. The gradient fill provides instant visual feedback on price position within the volatility envelope.
 ✨ KEY FEATURES 
 
 5 Basis Types:  Choose between SMA, EMA, ALMA, KAMA, or VWMA for the centerline calculation
 Adaptive Band Width:  Bands automatically widen in strong trends and tighten in ranging markets
 Smooth Gradient Fills:  10-layer gradient on each side for professional depth visualization
 Multiple Volatility Metrics:  ATR, Standard Deviation, or Range-based calculations
 Squeeze Detection:  Identifies Bollinger/Keltner squeeze conditions for breakout anticipation
 Dynamic Color States:  Cyan (#00F1FF) for bullish, Magenta (#FF019A) for bearish conditions
 
 📊 HOW IT WORKS 
 
 The basis line is calculated using your selected moving average type
 Volatility is measured using ATR, StDev, or Range
 Trend strength is quantified via linear regression
 Band width adapts based on normalized trend strength (when enabled)
 Gradient layers create smooth visual transitions from bands to basis
 Color state changes based on price position and basis direction
 
 🔧 PARAMETER GROUPS 
 Basis Configuration: 
 
 Basis Type:  Moving average calculation method
 Basis Length (20):  Period for centerline calculation
 ALMA Settings:  Offset (0.85) and Sigma (6) for ALMA basis
 
 Volatility Settings: 
 
 Volatility Method:  ATR, Standard Deviation, or Range
 Volatility Length (14):  Lookback for volatility calculation
 Band Multiplier (2.0):  Distance of bands from basis
 
 Adaptive Settings: 
 
 Enable Adaptive (true):  Toggle dynamic band adjustment
 Adaptation Period (50):  Trend strength measurement window
 
 Squeeze Detection: 
 
 BB/KC Parameters:  Settings for squeeze identification
 Expansion Threshold:  Multiplier for expansion signals
 
 📈 TRADING SIGNALS 
 Long Conditions: 
 
 Price crosses above basis
 Basis line is rising
 Band color shifts to cyan
 
 Short Conditions: 
 
 Price crosses below basis
 Basis line is falling
 Band color shifts to magenta
 
 💡 USAGE STRATEGIES 
 
 Trend Following:  Trade with the basis direction when bands are expanding
 Mean Reversion:  Fade moves to outer bands during squeeze conditions
 Breakout Trading:  Enter on expansion signals after squeeze periods
 Support/Resistance:  Use bands as dynamic S/R levels
 Position Sizing:  Wider bands suggest higher volatility - adjust size accordingly
 
 🎨 VISUAL ELEMENTS 
 
 Gradient Fills:  10 opacity layers creating smooth band transitions
 Dynamic Colors:  State-dependent coloring for instant trend recognition
 Basis Line:  Bold centerline changes color with trend state
 Band Lines:  Outer boundaries with matching state colors
 
 ⚡ BEST PRACTICES 
 
The AVB indicator works optimally on liquid instruments with consistent volume. The adaptive feature performs best in trending markets but can generate false signals during choppy conditions. Consider using alongside momentum indicators for confirmation. The gradient visualization helps identify price position within the volatility envelope at a glance.
 
 🔔 ALERTS INCLUDED 
 
 Long/Short Signals
 Squeeze Conditions
 Expansion Breakouts
 Band Touch Events
 
 Version 6 | Pine Script™ | © AlphaNatt
DTR & ATR with live zonesThis indicator is designed to help traders gauge the day's volatility in real-time. It compares the current Daily True Range (DTR)—the distance between the session's high and low—to the historical Average True Range (ATR).
The main purpose is to project potential price levels where the market might reach based on its average volatility. These levels (100% ATR, 150%, 200%, etc.) can be used as price targets. For instance, if you're in a long trade, you might consider taking partial or full profits as the price approaches these upper ATR extension levels. The indicator is highly customisable, allowing you to control the appearance of the ATR lines, zones, and labels to fit your charting preferences.
 Core Concepts: ATR and DTR 
To use this indicator effectively, it's important to understand its two main components:
 
 Average True Range (ATR): This is a classic technical analysis indicator that measures market volatility. It calculates the average range of price movement over a specific period (e.g., 14 days). A higher ATR means the price is, on average, moving more, while a low ATR indicates less volatility. This script uses a higher timeframe ATR (e.g., Daily) to establish a stable volatility baseline for the current trading day.
 Daily True Range (DTR): This is simply the difference between the current trading session's highest high and lowest low (session high - session low). It tells you how much the price has actually moved so far today.
 
The indicator's logic revolves around comparing the live, unfolding DTR to the historical, baseline ATR. An on-screen table conveniently shows this comparison as a percentage, to show how volatile the day has been.
 How It Works: The Dynamic & Locked Mechanism 
The most clever part of this indicator is how it draws the ATR levels. It operates in two distinct phases during the trading session:
 Phase 1:  Dynamic Expansion (Before DTR meets ATR)
At the start of the session, the DTR is small. The indicator calculates the remaining range needed to "complete" the 100% ATR level (difference = avg_atr - dtr). It then adds this remaining amount to the session high and subtracts it from the session low. This creates a "floating" 100% ATR range that expands dynamically as the session high or low is extended.
 Phase 2:  The Lock-in (After DTR meets or exceeds ATR)
Once the day's range (DTR) becomes equal to or greater than the avg_atr, the day has met its "expected" volatility. At this point, the levels lock in place. The indicator intelligently determines the anchor point for the locked range.
Once this primary 100% ATR range is established (either dynamically or locked), the script projects the other levels (150%, 200%, 250%, and 300%) by adding or subtracting multiples of the avg_atr from this base.
 How to Use It for Trading  
The primary use of this indicator is to set logical, volatility-based price targets.
 Setting Profit Targets:  If you enter a long position, the upper ATR levels (100%, 150%, 200%) serve as excellent areas to consider taking profits. A move to the 200% or 250% level often signifies an overextended or "exhaustion" move, making it a high-probability exit zone. For short positions, the lower ATR levels serve the same purpose.
 Assessing Intraday Momentum:  The on-screen table tells you how much of the expected daily range has been used. If it's early in the session and the DTR is only at 30% of the ATR, you can anticipate more significant price movement is likely to come. Conversely, if the DTR is already at 150% of ATR, the bulk of the day's move may already be complete.
 Mean Reversion Signals:  If the price pushes to an extreme level (e.g., 250% ATR) and shows signs of stalling (e.g., bearish divergence on an oscillator), it could signal a potential reversal or pullback, offering an opportunity for a counter-trend trade.
 Key Settings 
 
 ATR Length & Smoothing Type:  These settings control how the baseline ATR is calculated. The default 14 period and RMA smoothing are standard, but you can adjust them to your preference.
 Session Settings:  This is crucial. You must set the Market Session and Time Zone to match the primary trading hours of the asset you are analysing (e.g., "0930-1600" for the NYSE session).
 Show Lines / Show Labels / Show Zones:  The script gives you full control over the visual display. You can toggle each ATR level's lines, labels, and background zones individually to avoid a cluttered chart and focus only on the levels that matter to your strategy.
Renko BandsThis is renko without the candles, just the endpoint plotted as a line with bands around it that represent the brick size. The idea came from thinking about what renko actually gives you once you strip away the visual brick format. At its core, renko is a filtered price series that only updates when price moves a fixed amount, which means it's inherently a trend-following mechanism with built-in noise reduction. By plotting just the renko price level and surrounding it with bands at the brick threshold distances, you get something that works like regular volatility bands while still behaving as a trend indicator.
The center line is the current renko price, which trails actual price based on whichever brick sizing method you've selected. When price moves enough to complete a brick in the renko calculation, the center line jumps to the new brick level. The bands sit at plus and minus one brick size from that center line, showing you exactly how far price needs to move before the next brick would form. This makes the bands function as dynamic breakout levels. When price touches or crosses a band, you know a new renko brick is forming and the trend calculation is updating.
What makes this cool is the dual-purpose nature. You can use it like traditional volatility bands where the outer edges represent boundaries of normal price movement, and breaks beyond those boundaries signal potential trend continuation or exhaustion. But because the underlying calculation is renko rather than standard deviation or ATR around a moving average, the bands also give you direct insight into trend state. When the center line is rising consistently and price stays near the upper band, you're in a clean uptrend. When it's falling and price hugs the lower band, downtrend. When the center line is flat and price is bouncing between both bands, you're ranging.
The three brick sizing methods work the same way as standard renko implementations. Traditional sizing uses a fixed price range, so your bands are always the same absolute distance from the center line. ATR-based sizing calculates brick range from historical volatility, which makes the bands expand and contract based on the ATR measurement you chose at startup. Percentage-based sizing scales the brick size with price level, so the bands naturally widen as price increases and narrow as it decreases. This automatic scaling is particularly useful for instruments that move proportionally rather than in fixed increments.
The visual simplicity compared to full renko bricks makes this more practical for overlay use on your main chart. Instead of trying to read brick patterns in a separate pane or cluttering your price chart with boxes and lines, you get a single smoothed line with two bands that convey the same information about trend state and momentum. The center line shows you the filtered trend direction, the bands show you the threshold levels, and the relationship between price and the bands tells you whether the current move has legs or is stalling out.
From a trend-following perspective, the renko line naturally stays flat during consolidation and only moves when directional momentum is strong enough to complete bricks. This built-in filter removes a lot of the whipsaw that affects moving averages during choppy periods. Traditional moving averages continue updating with every bar regardless of whether meaningful directional movement is happening, which leads to false signals when price is just oscillating. The renko line only responds to sustained moves that meet the brick size threshold, so it tends to stay quiet when price is going nowhere and only signals when something is actually happening.
The bands also serve as natural stop-loss or profit-target references since they represent the distance price needs to move before the trend calculation changes. If you're long and the renko line is rising, you might place stops below the lower band on the theory that if price falls far enough to reverse the renko trend, your thesis is probably invalidated. Conversely, the upper band can mark levels where you'd expect the current brick to complete and potentially see some consolidation or pullback before the next brick forms.
What this really highlights is that renko's value isn't just in the brick visualization, it's in the underlying filtering mechanism. By extracting that mechanism and presenting it in a more traditional band format, you get access to renko's trend-following properties without needing to commit to the brick chart aesthetic or deal with the complications of overlaying brick drawings on a time-based chart. It's renko after all, so you get the trend filtering and directional clarity that makes renko useful, but packaged in a way that integrates more naturally with standard technical analysis workflows.
Multi-Moving Average (4x)Configurable moving average indicator where user can select up to 4 MA and configure SMA or EMA , color and width.
Nadaraya-Watson Envelope [Dynamic Adaptive Working]LuxAlgo'a kernel channel-based, modified for dynamic stochastic bandwidth adaptation.
Nadaraya-Watson Envelope  , "NWE Adaptive (Working)"
Relative Valuation OscillatorRelative Valuation Oscillator (RVO) Description 
The Valuation_OTC.pine script is a Relative Valuation Oscillator for TradingView that compares the current asset against a reference asset (like Bitcoin, S&P 500, or Gold) to determine if it's relatively overvalued or undervalued.
Key Features:
1. Multiple Calculation Methods:
Simple Ratio - Compares price ratio deviation from average
Percentage Difference - Direct percentage comparison between assets
Ratio Z-Score - Statistical measure (standard deviations from mean)
Rate of Change Comparison - Compares momentum/performance
Normalized Ratio - 0-100 scale centered at zero
2. Customizable Settings:
Reference asset selection (default: BTC/USDT)
Adjustable lookback period (10-500 bars)
Optional smoothing with configurable period
Overbought/oversold level thresholds (default: ±1.5)
3. Trading Signals:
Overvalued - Oscillator above overbought level (red zone)
Undervalued - Oscillator below oversold level (green zone)
Neutral - Between thresholds
Crossover alerts for key levels
Divergence detection (bullish/bearish)
4. Visual Components:
Color-coded oscillator line (green when positive, red when negative)
Optional signal line for additional smoothing
Background shading for valuation zones
Information table showing current metrics and status
Shape markers for crossovers and divergences
5. Alert Conditions:
Overvalued/undervalued alerts
Zero-line crossovers
Divergence signals
This indicator is useful for pairs trading, relative strength analysis, and identifying when an asset is trading at extremes relative to a benchmark asset.
DAMMU AUTOMATICAL AI ENRTY AND TARGET AND EXITMain Components
Supertrend System –
Detects market trend direction (Buy/Sell zones).
→ Green = Uptrend (Buy)
→ Red = Downtrend (Sell)
SMA Filter –
Uses 50 & 200 moving averages to confirm overall trend.
→ Price above both → Bullish
→ Price below both → Bearish
Buy/Sell Signals –
Generated when Supertrend flips direction and SMA confirms.
→ Triangle up = Buy
→ Triangle down = Sell
Take Profit / Stop Loss Levels –
Automatically calculated after Buy/Sell entry.
→ TP1, TP2, SL shown on chart
ADX (Sideways Zone Filter) –
If ADX < 25 → Market sideways → Avoid trades
Shows “No Trade Zone” area
Smart Money Concepts (SMC) Tools –
🔹 Market structure (HH, HL, LH, LL)
🔹 Order blocks (OB)
🔹 Equal highs/lows
🔹 Fair Value Gaps (FVG)
🔹 Premium & Discount zones
Helps find institutional entry points
Visual Display –
Color-coded background (trend zones)
Labels for buy/sell/structure
Optional FVG and order block boxes
Risk Management –
Input-based position sizing, SL & TP management
(to calculate profit levels and minimize loss)
SPX / Silver (XAGUSD) RatioThis script visualizes the S&P 500 Index to Silver ratio (SPX/Silver) — a powerful tool for monitoring the relative strength of equities vs. precious metals over time.
📊 Use Case:
Helps traders assess macro sentiment shifts between risk-on (equities) and risk-off (commodities).
A rising ratio indicates equity outperformance vs Silver, often in growth-driven bull markets.
A falling ratio suggests Silver is outperforming — potentially due to inflation, geopolitical risk, or weakening equities.
⚙️ Data & Calculation:
SPX: SP:SPX (S&P 500 Index)
Silver: TVC:SILVER
Formula:
SPX / Silver
(Both are spot/index prices, updated on daily timeframe)
📈 Interpretation:
📈 Ratio Rising → SPX outperforming Silver → Risk-on sentiment
📉 Ratio Falling → Silver outperforming SPX → Possible flight to safety or inflation hedge
🧠 Ideal For:
Macro trend analysis
Intermarket strategy development
Asset rotation decision-making
Spotting Silver bottoms during SPX/Silver peak zones
Inflection/ Bull Bear/ Weekly R&S VisualizerDisplay: Weekly Support/ Resistance, Inflection Levels, Bullbear
Adjust: Line Color, strength, style, opacity
Add: Zone around Inflection Level
Avivso 150 + ATHThis Pine Script displays a dynamic on-chart watermark and key stock data.
It shows company info, symbol, industry, market cap, ATR(14) with color status, earnings countdown, and distances from the current price to SMA150 and the all-time high.
It also plots SMA 20 and SMA 150 moving-average lines on the chart and supports configurable position, size, and padding for the watermark.






















