Currency Valuation V2This indicator values currencies against DXY. Using the daily chart annd the differences in the price of the DXY in certain bars.
Indicatori e strategie
5-Min ORB (1m) — Asia, London, NY — v6.6Awesome—here’s a ready-to-use Pine Script v5 indicator for a 5-Minute Opening Range Breakout (ORB) across Asia, London, and New York, designed to be applied on the 1-minute chart. It:
Marks the first 5 minutes of each session
Draws the ORB box (high/low)
Infers bias from that 5-minute candle (close vs. open)
Triggers buy/sell signals only in the bias direction when price breaks the ORB
Includes alerts, per-session enable toggles, custom timezones & session windows
PulseRPO Zero-Lag BandsPulseRPO is a momentum and volatility timing suite built on a zero-lag Relative Price Oscillator. It pairs an RPO (fast vs slow MA spread, in %) with adaptive volatility envelopes that tighten or widen as conditions change, so you can spot true momentum bursts, exhaustion and “quiet-before-the-move” squeezes—without the usual MA lag.
What it shows
Zero-Lag RPO: Choose EMA, SMA, WMA, RMA, HMA or ZLEMA for the base, then apply ZLEMA/DEMA/TEMA/HMA zero-lag smoothing to cut delay.
Adaptive Bands: StdDev, ATR, Range or Hybrid volatility; bands auto-tighten in high vol and widen in quiet regimes.
Dynamic OB/OS: Levels scale with current regime so extremes mean something even as volatility shifts.
Signal & Histogram: Classic signal cross plus histogram for quick read of acceleration vs deceleration.
Squeeze Paint: Subtle background highlight when band width compresses below its average.
Divergences & Triggers: Optional bullish/bearish divergence tags, plus band-cross and signal-cross alerts out of the box.
How to use it (general guide)
Momentum entries: Look for RPO crossing up its signal from below or snapping out of a squeeze; extra weight if it also re-enters from below the lower band.
Trend continuation: RPO riding outside the upper (or lower) band with rising histogram = power move; trail risk on pullbacks to the signal line.
Exhaustion / fades: Taps beyond dynamic OB/OS or band re-entries can mark mean-revert windows—confirm with price/volume.
Risk filter: During squeeze, size down and prepare for expansion; after expansion, respect extremes.
Tweak the MA type, band method and zero-lag strength to match your timeframe. PulseRPO is designed to be a self-contained read: regime → setup → trigger → alert.
Tristan's W%R StrategyOverview:
This strategy uses the raw Williams %R oscillator to automatically generate buy and sell signals based on overbought and oversold levels. It is session-aware, allowing you to restrict trades to specific market hours (New York, London, or Asia).
Key Features:
Buy Signal: Fires whenever the raw Williams %R is at or below the oversold level (default −100).
Sell Signal: Fires whenever the raw Williams %R is at or above the overbought level (default 0).
Session Filtering: Only triggers trades during the selected session (All, New York, London, or Asia).
Pyramiding: Allows multiple trades to stack, so every qualifying signal results in a new trade.
Alerts: Optional alerts for automation via webhook or broker integration.
Session Highlight: Background shading indicates when the selected session is active.
How to Use:
Set the Williams %R length, overbought, and oversold levels to match your trading style.
Select the session you want the strategy to be active in (New York, London, or Asia).
Enable alerts if you plan to automate trades with an API.
Add the strategy to your chart. It will execute trades automatically whenever the raw %R meets the configured thresholds during the selected session.
Adjust pyramiding if you want to limit the number of stacked trades per session.
Note:
This script uses the raw W%R signal vs the smoothed one because I found it to be more accurate for automated trading.
Every qualifying signal results in a trade, even if positions are already open.
Swing Impulse Fib Reversal + Structure Trail v6 (Fixed final)Auto RRR 1:1 1:2 1:3 Trading Script (Pine Script v6)
Take your trading to the next level with this fully automated Pine Script strategy designed for TradingView. The script enters trades automatically based on bullish and bearish price signals, and manages risk and reward with precision using predefined 1:1, 1:2, and 1:3 RRR targets.
Key Features:
Automatic Entries: Trades are placed automatically when bullish or bearish conditions are met.
Dynamic SL and TP: Stop-loss is calculated using ATR, and three take profit levels are set automatically at 1:1, 1:2, and 1:3 risk/reward ratios.
Partial Take Profits: Supports splitting positions into multiple TP levels with customizable percentages.
Trailing Stop: Moves stop-loss to break-even or to TP1 once it’s reached, locking in profits.
Visual Aids: Shows SL and TP levels directly on the chart for easy reference.
Simple Configuration: Adjustable ATR multiplier, number of TPs, partial percentages, and trailing parameters.
Perfect for scalpers and swing traders alike, this script helps automate trade management while maintaining flexibility and clarity. Whether you’re testing strategies or trading live, it ensures you capture profits efficiently while controlling risk.
Compatible: TradingView Pine Script v6
Flip to GreenPurpose:
This indicator applies a Lorentzian-distance–based machine-learning model to classify market conditions and highlight probable momentum shifts.
Where traditional indicators react to price movement, this one uses statistical pattern recognition to predict when momentum is likely to flip direction — the classic “flip to green” signal.
Concept:
Financial markets don’t move linearly; they bend and distort around major catalysts (news, FOMC meetings, earnings, etc.) in a way similar to how gravity warps space-time.
This indicator accounts for that distortion by measuring distance in Lorentzian space instead of the usual Euclidean space.
In simple terms: it adapts to volatility “warping,” allowing the model to detect structural momentum changes that normal math misses.
Core logic:
Imports two custom libraries:
MLExtensions for machine-learning utilities
KernelFunctions for advanced distance calculations
Computes relationships among multiple features (e.g., RSI, ADX, or other inputs).
Uses Lorentzian geometry to weight how recent price-time behavior influences current classification.
Outputs a visual “flip” cue when the probability of trend reversal exceeds threshold confidence.
Why it matters:
Most indicators measure what has already happened.
Lorentzian Classification attempts to capture what’s about to happen by comparing the present market state to a trained historical distribution under warped “price-time” geometry.
It’s particularly useful for spotting early accumulation or exhaustion zones before they become obvious on standard momentum tools.
Recommended use:
Run it as a background trend classifier or color overlay.
Combine it with volume-based confirmation tools (e.g., Dollar Volume Ownership Gauge) and structural analysis.
A “flip to green” suggests buyers are regaining control; a fade or flip to red implies control returning to sellers.
Daily 200EMA on Intraday ChartsThis indicator shows the 200 EMA from the Daily Chart onto an intraday chart of your choice
Flexible MA Crossrotemtuyunmhv kebh unfhrv ak nbhu, ftar vo jumu, t, vnnumg bg fkph ngkv uaucru, gkph nyv
EMA 10/20This serves to include the EMA 10 and EMA 20 in one indicator rather than use 2 separate indicators for convenience purpose.
testLibLibrary "testLib"
TODO: add library description here
mySMA(x)
TODO: add function description here
Parameters:
x (int) : TODO: add parameter x description here
Returns: TODO: add what function returns
livremySMATestLibLibrary "livremySMATestLib"
TODO: add library description here
mySMA(x)
TODO: add function description here
Parameters:
x (int) : TODO: add parameter x description here
Returns: TODO: add what function returns
Index of Civilization DevelopmentIndex of Civilization Development Indicator
This Pine Script (version 6) creates a custom technical indicator for TradingView, titled Index of Civilization Development. It generates a composite index by averaging normalized stock market performances from a selection of global country indices. The normalization is relative to each index's 100-period simple moving average (SMA), scaled to a percentage (100% baseline). This allows for a comparable "development" or performance metric across diverse markets, potentially highlighting trends in global economic or "civilizational" progress based on equity markets.The indicator plots as a single line in a separate pane (non-overlay) and is designed to handle up to 40 symbols to respect TradingView's request.security() call limits.Key FeaturesComposite Index Calculation: Fetches the previous bar's close (close ) and its 100-period SMA for each selected symbol.
Normalizes each: (close / SMA(100)) * 100.
Averages the valid normalizations (ignores invalid/NA data) to produce a single "Index (%)" value.
Symbol Selection Modes:Top N Countries: Selects from a predefined list of the top 50 global stock indices (by market cap/importance, e.g., SPX for USA, SHCOMP for China). Options: Top 5, 15, 25, or 50.
Democratic Countries: ~38 symbols from democracies (e.g., SPX, NI225, NIFTY; based on democracy indices ≥6/10, including flawed/parliamentary systems).
Dictatorships: ~12 symbols from authoritarian/hybrid regimes (e.g., SHCOMP, TASI, IMOEX; scores <6/10).
Customization:Line color (default: blue).
Line width (1-5, default: 2).
Line style: Solid line (default), Stepline, or Circles.
Data Handling:Uses request.security() with lookahead enabled for real-time accuracy, gaps off, and invalid symbol ignoring.
Runs calculations on every bar, with max_bars_back=2000 for historical depth.
Arrays are populated only on the first bar (barstate.isfirst) for efficiency.
Predefined Symbol Lists (Examples)Top 50: SPX (USA), SHCOMP (China), NI225 (Japan), ..., BAX (Bahrain).
Democratic: Focuses on free-market democracies like USA, Japan, UK, Canada, EU nations, Australia, etc.
Dictatorships: Authoritarian markets like China, Saudi Arabia, Russia, Turkey, etc.
Usage TipsAdd to any chart (e.g., daily/weekly timeframe) to view the composite line.
Ideal for macro analysis: Compare democratic vs. authoritarian performance, or track "top world" equity health.
Potential Limitations: Relies on TradingView's symbol availability; some exotic indices (e.g., KWSEIDX) may fail if not supported. The 40-symbol cap prevents errors.
Interpretation: Values >100 indicate above-trend performance; <100 suggest underperformance relative to recent averages.
This script blends financial data with geopolitical categorization for a unique "civilization index" perspective on global markets. For modifications, ensure symbol tickers match TradingView's format.
Friday’s Close – Futures Weekend AnchorPurpose:
This indicator highlights the US futures weekend close price — the exact level where CME markets end trading on Friday at 4:00 PM CT / 5:00 PM ET.
It’s designed primarily for crypto traders who want to compare weekend market behavior to the traditional finance (TradFi) close.
Why it matters:
Crypto trades 24/7, but global liquidity and sentiment still pivot around the Friday futures close. During the weekend, crypto can “drift” relative to traditional markets — this line shows exactly where the week ended for Wall Street, giving you a clean reference point until futures reopen on Sunday evening.
Features
Precise Friday close capture (CME weekend close minute, not just daily bar)
Works on any ticker — especially useful for BTC, ETH, or other crypto assets
Adjustable for time zone (New York / Chicago / custom)
Option to select prior weeks with weekOffset
Draws a single clean line from Friday’s close forward — no clutter, no vertical stitches
Optional right-edge label with the close value and timestamp
Usage Tips
Keep the chart’s timezone in sync with your anchor (America/New_York = 5 PM ET, America/Chicago = 4 PM CT).
Use weekOffset = 1 to view last week’s Friday close.
Combine with volume, funding, or open interest indicators to see how weekend moves relate to the TradFi close.
Ideal for weekend analysis — shows whether crypto is trading rich or cheap vs. the Friday benchmark before futures reopen.
Recommended For
Crypto traders, analysts, and quant enthusiasts who monitor TradFi–crypto decoupling or weekend premium behavior.
Market Sentiment Suite: PCCE + VIX + Signals📊 Market Sentiment Suite: PCCE + VIX + Signals
Identify fear, greed, and turning points in the market.
This script combines the CBOE Put/Call Ratio (PCCE) with the VIX volatility index percentile to visualize crowd sentiment and highlight potential market tops and bottoms.
🔍 Key Features
Dual-indicator design: PCCE + normalized VIX percentile
Color-coded zones for Greed (<0.6) and Fear (>1.2)
Automatic alert signals when sentiment reaches extremes
Live sentiment table displaying real-time PCCE and VIX data
Works seamlessly on SPX, SPY, QQQ, or any major index
🧠 How to Use
When PCCE > 1.2 and VIX percentile > 80%, fear is extreme → possible market bottom
When PCCE < 0.6 and VIX percentile < 20%, greed is extreme → possible market top
Perfect for contrarian traders, sentiment analysts, and swing traders
✨ Best Timeframe: Daily
⚙️ Markets: SPX / SPY / QQQ / Global Indexes
📈 Type: Contrarian Sentiment Indicator
ES VWAP Overlay for SPX VWAP indicator for SPX. Since SPX does not have volume (index) it's using /es to mimic SPX volume. I find it good for day trading
Treasury Cash-Futures Basis Estimator (stable)An estimation of the Treasury Cash-Futures Basis with help from GPT
UTBotLibrary "UTBot"
is a powerful and flexible trading toolkit implemented in Pine Script. Based on the widely recognized UT Bot strategy originally developed by Yo_adriiiiaan with important enhancements by HPotter, this library provides users with customizable functions for dynamic trailing stop calculations using ATR (Average True Range), trend detection, and signal generation. It enables developers and traders to seamlessly integrate UT Bot logic into their own indicators and strategies without duplicating code.
Key features include:
Accurate ATR-based trailing stop and reversal detection
Multi-timeframe support for enhanced signal reliability
Clean and efficient API for easy integration and customization
Detailed documentation and examples for quick adoption
Open-source and community-friendly, encouraging collaboration and improvements
We sincerely thank Yo_adriiiiaan for the original UT Bot concept and HPotter for valuable improvements that have made this strategy even more robust. This library aims to honor their work by making the UT Bot methodology accessible to Pine Script developers worldwide.
This library is designed for Pine Script programmers looking to leverage the proven UT Bot methodology to build robust trading systems with minimal effort and maximum maintainability.
UTBot(h, l, c, multi, leng)
Parameters:
h (float) - high
l (float) - low
c (float)-close
multi (float)- multi for ATR
leng (int)-length for ATR
Returns:
xATRTS - ATR Based TrailingStop Value
pos - pos==1, long position, pos==-1, shot position
signal - 0 no signal, 1 buy, -1 sell
DAMMU Swing Trading PRODammu Scalping Pro – Short Notes
1️⃣ Purpose:
Scalping and swing trading tool for 15-min and 1-min charts.
Designed for trend continuation, pullbacks, and reversals.
Works well with Heikin Ashi candles (optional).
2️⃣ Core Components:
EMAs:
Fast: EMA5-12
Medium: EMA12-36 Ribbon
Long: EMA75/89 (1-min), EMA180/200 (15-min), EMA540/633
Price Action Channel (PAC): EMA-based High, Low, Close channel.
Fractals: Regular & filtered (BW) fractals for swing recognition.
Higher Highs / Lower Highs / Higher Lows / Lower Lows (HH, LH, HL, LL).
Pivot Points: Optional display with labels.
3️⃣ Bar Coloring:
Blue: Close above PAC
Red: Close below PAC
Gray: Close inside PAC
4️⃣ Alerts:
Swing Buy/Sell arrows based on PAC breakout and EMA200 filter.
Optional “Big Arrows” mode for visibility.
Alert messages: "SWING_UP" and "SWING_DN"
5️⃣ Workflow / Usage Tips:
Set chart to 15-min (for trend) + 1-min (for entry).
Optionally enable Heikin Ashi candles.
Trade long only above EMA200, short only below EMA200.
Watch for pullbacks into EMA channels or ribbons.
Confirm trend resumption via PAC breakout & bar color change.
Use fractals and pivot points to draw trendlines and locate support/resistance.
6️⃣ Optional Filters:
Filter PAC signals with 200 EMA.
Filter fractals for “Pristine/Ideal” patterns (BW filter).
7️⃣ Visuals:
EMA ribbons, PAC fill, HH/LL squares, fractal triangles.
Pivot labels & candle numbering for patterns.
8️⃣ Notes:
No extra indicators needed except optionally SweetSpot Gold2 for major S/R levels.
Suitable for scalping pullbacks with trend confirmation.
If you want, I can make an even shorter “one-screen cheat sheet” with colors, alerts, and EMAs, perfect for real-time charT
Global Risk-On / Risk-Off: Global 2s10s + Credit SpreadGlobal Risk-On / Risk-Off: Global 2s10s + Credit Spread
Daily Close Cross Above SMA 20 (Low)Daily closing price crosses above SMA 20 low, signals a bullish trend.