Classic Daily SMAs SkinnyThe Classic Daily SMAs indicator plots multiple daily simple moving averages (SMAs) on any intraday chart while preserving the classic old-school look.Indicador Pine Script®por LetsGoOilers2
Crossing Moving Averages with ADX Filter)crossing mas with adx filter (leave it off) use for stirs (ZQ, SR3, 2-year bills, Euribor, SONIA) and FX or anything that trends 20 and 120 used by medium term ctas as per Socgen 50 and 200 for long term trendsEstratégia Pine Script®por BangtheClose665
Triple MTF MA Painter - Directional TogglesThis Pine Script is a **multi-filter trend-following indicator**. It acts as a "gatekeeper," only allowing a signal to fire when price action, momentum, and volume (if selected) all align in the same direction across up to three different moving averages and timeframes. Here is a breakdown of how the logic flows from the code to your chart: ### 1. The Triple-Filter Architecture The code uses three independent Moving Average (MA) engines. You can configure each one to be a different type: * **SMA/EMA:** For standard price smoothing. * **VWMA:** To ensure the trend is backed by high trading volume. * **ZLEMA:** To catch price reversals with almost zero lag. Each MA also has a **Multi-Timeframe (MTF)** capability. This means you can be on a 5-minute chart but only see signals when the price is above the **Daily** or **4-Hour** trend line. ### 2. The Logic Filter (The "Gate") The script calculates whether the current price is "cleared" for a signal: * **Bullish Condition:** Price must be above MA 1 **AND** MA 2 **AND** MA 3. * **Bearish Condition:** Price must be below MA 1 **AND** MA 2 **AND** MA 3. > **Note:** If you toggle an MA "OFF" in the settings, the code intelligently ignores it so it doesn't block your signals. ### 3. Price Action Trigger Even if the price is above all three MAs, the code won't fire a signal until it sees a specific candle pattern: * **Bullish Trigger:** The current bar's High and Low must both be higher than the previous bar's High and Low. * **Bearish Trigger:** The current bar's High and Low must both be lower than the previous bar's High and Low. ### 4. The State Machine (The "Memory") To prevent the chart from becoming cluttered with 20 labels in a row during a long trend, I implemented a **State Machine**. * Once a **Bullish** signal triggers, the script "remembers" it. * It will refuse to show another Bullish signal until a **Bearish** signal occurs to reset the cycle. * This ensures you only see the **first** valid entry point of a new trend. ### 5. UI and Customization The code is designed to be user-friendly without needing to look at the script: * **Directional Toggles:** You can hide all bearish signals if you only want to go long. * **Visual Toggles:** You can turn off the bar coloring if it interferes with your other indicators, keeping only the labels. * **Source Selection:** You can choose to calculate the MAs based on `Close`, `Open`, or even the `HL2` (midpoint of the bar). --- ### Summary of Workflow 1. **Check MAs:** Is price above/below all active MAs? 2. **Check Timeframe:** Are the higher timeframe trends in agreement? 3. **Check Pattern:** Did the current candle break the previous candle's range? 4. **Check History:** Is this a new trend direction, or are we already in one? 5. **Output:** If all checks pass, paint the bar and drop a label. Would you like me to add a **Stop Loss / Take Profit** calculation to the labels so you know exactly where to exit the trade?Indicador Pine Script®por Trading_Andrea3
EMA 10/20/50/100/200This indicator displays five commonly used Exponential Moving Averages: EMA 10 (Purple): Short-term momentum EMA 20 (Red): Short-term trend EMA 50 (Orange): Medium-term trend EMA 100 (Aqua): Medium-term trend EMA 200 (Blue): Long-term trend Features: ✓ All EMAs plotted directly on price chart ✓ Color-coded for easy identification ✓ EMA 200 highlighted with thicker line ✓ No repainting - uses standard TradingView calculationsIndicador Pine Script®por rastovp6
Live Ratio Tracker & Alert📊 Live Ratio Tracker & Alert (v6) Overview The Live Ratio Tracker & Alert is a powerful utility designed for pairs traders, macro analysts, and investors who monitor the relative strength between two assets. Whether you are tracking the Gold/Silver ratio, BTC/S&P500, or your favorite stock against its sector lead, this tool provides a real-time visual anchor and automated alerts. Instead of switching back and forth between charts, this indicator calculates the ratio instantly and displays it as a dynamic label that follows the price action. 🚀 Key Features Real-Time Ratio Calculation: Automatically fetches data from a secondary symbol (e.g., TVC:GOLD) and divides the current chart price by the secondary price. Dynamic Visual Label: A clean, customizable label appears to the right of the latest candle, showing the live ratio and your set target. Integrated Alert System: Get notified the moment a specific ratio level is crossed. Supports "Crossing," "Crossing Up," and "Crossing Down" logic. Fully Customizable UI: Adjust colors, text size, and label offsets to match your chart theme. Pine Script v6 Optimized: Built using the latest standards for better performance and reliability. 📖 How to Use 1. Setting Up the Comparison Open the indicator settings. In the Compare Against (Denominator) field, type the ticker you want to compare the current chart to (e.g., if you are on BTCUSD and want the BTC/GOLD ratio, enter TVC:GOLD). Tooltip: Use the search icon to find the exact exchange ticker for the most accurate results. 2. Configuring Alerts Alert Ratio Level: Enter the decimal value you are watching (e.g., 0.025). Alert Type: Choose if you want to be notified only when the ratio breaks above, below, or moves in either direction. Tooltip: After setting the level in the inputs, remember to create a standard TradingView alert and select this indicator as the condition. 3. Customizing the Display Label Offset: Use this to move the label further to the right so it doesn't overlap with the price action. Size & Colors: Switch between "Small" or "Huge" text depending on your screen resolution and personal preference. 💡 Pro Tips for Traders Relative Strength: Use this to identify which asset is outperforming during a market rally. Mean Reversion: If the ratio reaches a historical extreme (e.g., Gold/Silver ratio at 100+), use the alert to prepare for a potential reversal trade. Overlay Mode: This indicator is set to overlay=true, meaning it stays on your main price chart for a clutter-free workspace.Indicador Pine Script®por tcspirit1
Multi MA with Vector Candles, FVG, Key LevelsThis all-in-one indicator combines Vector Candles, Moving Averages, Key Levels, and Fair Value Gaps into a single, clean chart overlay. It is designed to help traders identify momentum, trend direction, and important price levels without cluttering the screen. Key Features: 1. Vector Candles (Volume) Color-coded candles based on volume and spread analysis. Helps identify high-volume institutional moves (Green/Red) vs. normal market activity (Gray). 2. Moving Averages (MAs) Includes 4 customizable Moving Averages (EMA, SMA, TEMA). Features fixed labels at the end of the lines for easy identification of trend direction. 3. Key Levels & Sessions Automatically plots essential support and resistance levels. Includes Session Highs/Lows (Asia, London, New York), Daily Opens, and Weekly/Monthly Highs/Lows. 4. Fair Value Gaps (FVG) Automatically highlights bullish and bearish imbalances. Smart Cleanup: FVG boxes are automatically removed from the chart once the price touches (mitigates) them, keeping your view clean.Indicador Pine Script®por abuaceAtualizado 27
250/300/350 Weekly SMA250/300/350 Weekly Simple Moving Averages for long term trends.Indicador Pine Script®por gregoravAtualizado 5
Holy Grail by Linda Bradford Raschke Holy Grail - Linda Raschke (v6) Trend-following pullback strategy inspired by Linda Bradford Raschke & Larry Connors' classic "Holy Grail" setup from Street Smarts: High Probability Short-Term Trading Strategies. Captures high-probability continuations in strong trends by entering on low-risk pullbacks to the 20-period EMA after ADX confirms trend strength. Overview: This open-source Pine v6 strategy implements the famous "Holy Grail" setup — ironically named for its elegant simplicity. It uses only two core indicators (14-period ADX + 20-period EMA/SMA) to identify strong trends and enter on the resumption after a pullback. Designed for swing and intraday trading on trending instruments like indices (DAX, Dow, NQ, ES), forex majors, or stocks. The strategy: Filters for strong, rising trends (ADX > 30 and increasing) Waits for price to touch the 20 MA during a retracement Places simulated stop-entry orders (buy above high / sell below low of the touch bar) Applies tight initial stops + ATR-based trailing to let winners run Includes an additional exit when trend momentum fades (ADX < user-defined weak level) Best suited for 15-min to daily timeframes in volatile, directional markets. Concepts & Core Rules (from Street Smarts): Trend Strength Filter : 14-period ADX must be > threshold (default 30) and rising (ADX > ADX ) to confirm a strong trend — avoids choppy/range-bound conditions. Pullback Identification : In uptrends (close > MA), price retraces to touch the 20 MA (low ≤ MA). In downtrends (close < MA), price rallies to touch (high ≥ MA). Entry : Buy-stop above the high of the pullback bar (longs) or sell-stop below the low (shorts) — simulates breakout confirmation of trend resumption. Risk Management : Initial stop at the pullback bar's extreme (low for longs, high for shorts). Trailing stop activates using ATR multiplier. Exits : No fixed targets — trail profits + close position if ADX falls below a "weak" level (default 25), indicating potential trend exhaustion. This implementation adds modern touches: optional EMA vs SMA, ATR trailing, background trend coloring, and setup labels for easy visual confirmation. How to Use : Add to chart (works on any symbol/timeframe; best on trending ones like indices or forex). Look for green background + "HG L" label (long setup) or red background + "HG S" label (short setup). The strategy places orders on the next bar after a valid pullback — review backtest results in the Strategy Tester tab. Adjust inputs for your market/timeframe (e.g., lower ADX threshold on lower timeframes if needed). Important: This is not financial advice. Always backtest thoroughly, forward-test on demo, and use proper risk management (1-2% per trade max). Inputs : ADX Length (default 14) ADX Threshold (default 30) — must exceed and rise ADX Exit Weak (default 25) — closes when trend fades EMA Length (default 20) Use EMA instead of SMA (toggle) Trailing ATR Multiplier (default 2.5) ATR Length for trailing (default 14) Plots & Visuals : Orange 20 MA line "HG L" / "HG S" labels on setup bars Green/red background tint during strong trend conditions Notes & Limitations : Simulation Note: Pine Script cannot place persistent broker-style stop orders across bars; entries use limit ≈ stop-entry on the next bar (close approximation — many traders place manual stops in live trading). Prefers first pullback after ADX rise (highest probability); later pullbacks may work but are not filtered here. Performs best in trending, volatile conditions — avoid ranging/choppy markets (ADX filter helps). No pyramiding (one position at a time); no fixed R:R targets (focus on trailing winners). Backtest results vary by symbol/timeframe — optimize cautiously and avoid curve-fitting. Inspired by public domain rules from Street Smarts (1996) — this is an independent adaptation with Pine v6 improvements for clarity and flexibility. If you find this useful, consider liking/favoriting. Feedback welcome — happy to add alerts, fixed targets, or "first pullback only" logic in future updates! Original open-source release — feel free to study/modify.Estratégia Pine Script®por uzair2join13
ADX + MA (BcK) ADX + MA (BcK) overlays a configurable moving average on the ADX line to help you read trend strength more clearly and spot shifts in momentum. 1- What it shows ADX (red): trend strength (higher = stronger trend, lower = weaker / ranging conditions) ADX MA (blue): smoothing of ADX using your chosen MA type and length to reduce noise and highlight changes in trend strength 2- Inputs DI Length: length used to compute +DI/−DI ADX Smoothing: smoothing length for ADX (Wilder-style smoothing as per standard DMI/ADX) MA Length: period of the moving average applied to ADX MA Type: choose between SMA, EMA, RMA (Wilder), or WMA 3- How to use When ADX is above its MA , trend strength is generally improving. When ADX drops below its MA , trend strength is generally weakening. Use it alongside your preferred direction tool (+DI/−DI, price structure, or other filters). This indicator focuses on strength , not direction. *Note: This indicator does not generate buy/sell signals by itself and is best used as a trend-strength filter.*Indicador Pine Script®por bassemkhalilAtualizado 4
Edo EMA Core CrossEdo EMA Core Cross Edo EMA Core Cross is a clean and minimal open-source indicator designed to highlight key EMA crossover events directly on the price chart. Its purpose is simple: show structural shifts in market momentum through the interaction of exponential moving averages, without adding unnecessary visual noise. The indicator monitors three essential crossover structures: EMA 9 / EMA 20 EMA 20 / EMA 50 EMA 50 / EMA 200 The shorter-term crosses (9/20 and 20/50) reflect changes in short-term momentum and acceleration. The 50/200 cross represents a major structural shift in long-term direction and is visually differentiated due to its macro importance. Conceptually, exponential moving averages act as dynamic equilibrium levels. When a faster EMA crosses above a slower EMA, it indicates increasing bullish pressure. When it crosses below, it indicates increasing bearish pressure. This tool does not attempt to predict price. It visualizes transitions that are already occurring, allowing traders to align with structural changes rather than anticipate them blindly. Edo EMA Core Cross is especially useful for: Trend confirmation Momentum validation Macro bias alignment Systematic rule building Backtesting crossover-based strategies Because it is intentionally lightweight, it integrates cleanly with price action, support and resistance analysis, volume tools, or higher timeframe bias models. This script is fully open-source. The complete code is publicly available for study, modification, and integration into custom strategies. No hidden calculations. No black-box logic. Designed for traders who value structural clarity over visual complexity. Indicador Pine Script®por EdoLab-Markets2213
MA Momentum Strength - Neutral Box AreasMA Momentum Strength visually expresses trend direction, momentum quality, and market regime directly on price using a painted brush-style line and neutral consolidation boxes. It blends short-, medium-, and long-term moving average alignment (9 / 50 / 200) into a single momentum strength score, allowing traders to instantly see whether the market is strong, weak, or balanced — without clutter. Neutral strength periods are highlighted as box areas, often signaling consolidation, balance, or potential breakouts. Designed for clarity, context, and clean decision-making across all markets and timeframes. HOW TO USE (VERY SHORT) Strong color = strong trend Boxes = low conviction / consolidation Trade with momentum, avoid noise Use as a trend filter, not a signal generator KEY FEATURES (BULLET STYLE) Multi-MA momentum scoring (9 / 50 / 200) Painted, brush-style price visualization Strength-based color intensity Automatic neutral zone boxes SMA / EMA toggle Fully customizable colors Works on any timeframe or market 🧪 STRATEGY USAGE NOTE (OPTIONAL SECTION) This indicator is best used as a context and confirmation tool: Combine with price action for entries Use boxes to identify compression and balance Avoid counter-trend trades during strong painted momentum Look for expansion after neutral zones RELEASE NOTES / CHANGELOG (FIRST VERSION) v1.0 — Initial Release Multi-timeframe MA momentum scoring Painted price line with strength-based color intensity Neutral consolidation box detection User-defined neutral strength range SMA / EMA support Optimized for clarity and performance OPTIONAL DISCLAIMER (TRADINGVIEW-STYLE) This indicator is intended for educational and analytical purposes only and does not provide buy or sell signals. Always combine with proper risk management and independent analysis. FINAL NOTE (OPTIONAL CLOSING LINE) Built to help traders see momentum, not guess it.Indicador Pine Script®por CryptooCommander9
Nova_Stream Indicator V16.1Technical Documentation: Nova_Stream V16.1 Core Methodology Nova_Stream is a multi-layered trend analysis framework designed for Version 6 of Pine Script. It operates by analyzing the convergence and divergence of two distinct moving average clusters against a long-term institutional baseline. Unlike standard oscillators, Nova_Stream evaluates market "velocity" through linear regression and volatility-adjusted distance metrics. The Multi-Wave Engine The system processes price data through 12 specific Exponential Moving Averages (EMAs), divided into two functional groups: Momentum Cluster (Traders Group): Six blue EMAs (Periods 3 to 15) tracking immediate liquidity and short-term trend shifts. Value Cluster (Investors Group): Six orange EMAs (Periods 50 to 100) representing the core psychological support and resistance zones of the market. The Backbone (Institutional Filter): A 200-period EMA that acts as a global trend switch. For a signal to be valid, price action must maintain a specific relationship with this line to ensure institutional alignment. The Intelligent Dashboard (UI Engine) The integrated dashboard serves as a real-time data processor. It translates complex mathematical states into a readable format: Market Status: Uses Linear Regression to determine the slope of the Backbone. If the slope is within the slopeThreshold, the market is classified as RANGE. Squeeze Radar: Monitors the distance between the Momentum and Value clusters. A "Squeeze" alert is triggered when the distance is less than a fraction of the ATR, signaling potential volatility expansion. Correction Risk: Measures the standard deviation of price from the Value Cluster. High deviation triggers an OVERBOUGHT/OVERSOLD warning to prevent entries at exhaustion points. Volume Flow: A cumulative net-volume tracker that filters out low-conviction price moves. Alert System Architecture Nova_Stream includes a comprehensive alert suite based on alertcondition. These are designed to be used for both "Execution" and "Risk Management". Nova/SuperNova Signals: Triggered when all technical layers (Trend, Volume, and MTF) align. Safe Exit (SF): A specialized alert for closing positions. It triggers when the price shows exhaustion (Overbought/Oversold) and loses its momentum relative to the exitWave. Multi-Timeframe (MTF) Verification To increase the probability of success, the script includes a built-in MTF filter. It automatically fetches the trend state of a higher timeframe (e.g., 1-hour trend for a 10-minute chart) to ensure the user is not trading against the dominant market direction. Disclaimer: This script is an educational and analytical tool only. It is not intended to be financial advice, and should not be used as the sole basis for any investment decision. Trading involves significant risk, and past performance is not indicative of future results. The author of this script shall not be held liable for any financial losses incurred through the use of this tool. Always perform your own due diligence and consult with a certified financial professional before trading.Indicador Pine Script®por shadi1982iphone9
VWAP Gate (1m aligned ORB5)VWAP Gate v2.3 is a 1-minute aligned, session-aware VWAP regime filter (“gate”) designed to keep VWAP trades out of flat/choppy conditions and focus only on periods where VWAP is moving with structure. It plots a Session Anchored VWAP (RTH) with an ε touch zone, optionally plots an Overnight Anchored VWAP, and can mark VWAP retest entry signals only when the gate is active and price action confirms. This is an overlay tool for discretionary execution and rule-based filtering. It does not manage exits, risk, or position sizing. Core idea (what it does) VWAP works best when the market has directional order flow and fails in mean-reverting chop. This indicator attempts to separate those regimes by requiring: VWAP has actually moved (slope/magnitude filter) Price is not constantly flipping around VWAP (chop filter) Price is holding on one side of VWAP by a realistic buffer (hold/acceptance filter) Only when these conditions persist does the Gate turn ON, enabling a “tradeable VWAP” environment. All calculations are done on 1-minute data using request.security(..., "1", ...) so the behavior stays consistent across chart timeframes. What is plotted 1) Session AVWAP (RTH Anchored VWAP) A manually computed VWAP that resets at the start of the RTH session (default 09:30–16:00 New York). It is plotted as “Session AVWAP” and changes color based on gate state and directional readiness (see “Colors” below). 2) VWAP ε Touch Zone (retest band) Two lines around Session VWAP: VWAP ε Upper = VWAP + ε VWAP ε Lower = VWAP − ε The band between them is filled. This creates a practical “touch zone” for retests and rejection closes. ε (epsilon) is adaptive to instrument microstructure: ε = max(minTicksEps × tickSizePts, spreadPts × epsSpreadMult) This prevents treating tiny touches (often just spread/noise) as meaningful VWAP interactions. 3) Overnight AVWAP (optional) If enabled, plots an Overnight anchored VWAP computed over the defined overnight session (default 00:00–09:30 New York). Useful for mapping overnight fair value into the open. 4) ORB(5) High/Low (optional) Plots the Opening Range Breakout (5 minutes) high/low (default 09:30–09:35 New York). Optionally draws an ε band around ORB levels (ORB ± ε) to account for noise/spread around key levels. 5) VWAP Retest Entry Markers (optional) When the gate is active, the tool can print: “L” for a long retest entry “S” for a short retest entry These are filters + triggers, not guaranteed trades. Gate logic (when trading is allowed) A) VWAP Move / Slope filter The indicator measures VWAP displacement over lookbackMin minutes: VWAP_move = |VWAP_now − VWAP_lookback| It must exceed thresholds tied to: Recent price range: thrRange = kRange × (highestHigh − lowestLow over lookback) Spread: thrSpr = kSpread × spreadPts Threshold mode Strict AND: VWAP_move must beat both thresholds Loose: VWAP_move must beat max(thrRange, thrSpr) Purpose: block low-energy sessions where VWAP drift is too small vs noise. B) Chop filter (VWAP flips) The indicator counts how often price flips sides of VWAP during the lookback window (with a small buffer to reduce micro-noise flips). If flips exceed maxCrossesN, the environment is classified as chop and the gate cannot activate. Purpose: avoid mean-reverting “ping-pong” around VWAP. C) Gate confirmation (anti-flicker / hysteresis) The gate requires persistence: Gate turns ON after onConfirmBars consecutive passes Gate turns OFF after offConfirmBars consecutive fails Purpose: prevent rapid ON/OFF switching in borderline conditions. Directional “Hold” readiness (LONG vs SHORT bias) Even when the gate is ON, the indicator requires acceptance away from VWAP: Define δ (delta buffer): δ = max(2 ticks, spreadPts × holdDeltaMult) Then: HoldLong = price has stayed > (VWAP + δ) for holdBars 1-minute closes HoldShort = price has stayed < (VWAP − δ) for holdBars 1-minute closes Additionally, direction must agree with VWAP slope: Long requires VWAP slope > 0 Short requires VWAP slope < 0 Purpose: avoid “false bias” when price temporarily deviates but VWAP is drifting the other way. VWAP Retest Entry signals (L / S) Entry markers trigger only when all are true: Gate is active Inside your Trade Window (default 09:40–11:00 New York) HoldLongOk / HoldShortOk is true Price touches the ε zone: low ≤ VWAP+ε AND high ≥ VWAP−ε Then closes away from VWAP (“rejection close”) by a fraction of ε: Long rejection: close > VWAP + (ε × rejCloseFrac) Short rejection: close < VWAP − (ε × rejCloseFrac) Optional: Require pullback can require the previous close to already be on the trend side (to avoid first-touch chaos). Colors (quick regime read) The Session VWAP line and ε zone communicate state: Gray: gate inactive / no-trade regime Yellow: gate active but no clean long/short hold yet (standby) Lime: gate active + long hold confirmed (long bias) Red: gate active + short hold confirmed (short bias) Optional background tint can reinforce gate state, and optional shading can gray out bars outside the trade window. Important notes / limitations Set spreadPts and tickSizePts correctly for your instrument. ε and δ depend on them; wrong values distort the entire filter. The indicator uses 1-minute computations across all chart timeframes for consistent behavior. This tool is a regime filter + entry trigger, not a complete trading system (no exits, no sizing, no expectancy validation included). If volume is missing/invalid, the script substitutes a minimal volume value for VWAP calculations. Suggested use Use Prop VWAP Gate to: Avoid VWAP trading in flat/choppy opens Focus attention when VWAP is moving and price is holding with structure Execute VWAP retest setups inside a controlled time window Combine with ORB(5) and overnight VWAP for key reference levelsIndicador Pine Script®por MPR8613
EMA/SMA RibbonThis indicator plots a two-line moving-average ribbon built from: 15-period EMA calculated on OHLC4 (Open+High+Low+Close)/4, with no offset 22-period SMA calculated on OHLC4, plotted with an offset of +6 bars The space between the two averages is filled to form a ribbon: Green ribbon when the EMA is above the SMA (using the SMA’s plotted/offset position so the color matches what you see on the chart) Red ribbon when the SMA is above the EMA Notes / Behavior: The indicator uses the chart timeframe (no custom timeframe logic). Because the SMA is intentionally shifted forward by 6 bars, the ribbon color is calculated against the visually aligned SMA so the color reflects the displayed relationship between the two lines. No crossover markers or dots are plotted (ribbon-only). How to use: Use the ribbon color as a quick visual trend bias: Green generally suggests bullish bias (EMA leading above the shifted SMA) Red generally suggests bearish bias (EMA below the shifted SMA)Indicador Pine Script®por MPR86Atualizado 5
EMA Trend & Efficiency ValidatorEMA Tester by GKJ validating the EMA efficiency against the chop and its trendIndicador Pine Script®por dukefriend0015
Bitcoin Relative Strength: BTC vs Any Asset [Customizable]# Bitcoin Relative Strength: BTC vs Any Asset ## 📖 Description **Compare Bitcoin's performance against ANY asset on TradingView** — S&P 500, Nasdaq, Gold, DXY, Ethereum, or any other ticker of your choice. This indicator calculates and plots the **BTC / Asset ratio**, showing how many units of the chosen comparison asset one Bitcoin is worth. A rising ratio means Bitcoin is outperforming the selected asset; a falling ratio means it is underperforming. ### 🔑 Key Features - **BTC vs Any Asset** — select any TradingView ticker as the comparison asset (SPX, NDX, GOLD, DXY, ETH, and more) - **Dual Moving Averages** — EMA / SMA / WMA / VWMA / RMA with customizable lengths to identify trend direction - **Bollinger Bands** — detect volatility compression and breakout zones on the ratio - **RSI of Ratio** — identify overbought / oversold conditions in relative strength - **Percentage Change** — adjustable lookback period (1–365 days) to quantify recent momentum - **Trend Coloring** — dynamic bullish / bearish / neutral coloring based on ratio vs MA - **Fill Zones** — optional fill between the ratio line and MA for easy visual trend spotting - **Info Table** — real-time data panel showing ratio, individual prices, % change, trend, and MA values - **Built-in Alerts** — MA crossovers, Golden / Death crosses, Bollinger breakouts, and RSI extremes - **Fully Customizable** — colors, line widths, transparency, table position, text size, and more ### 📊 How to Use 1. **Add the indicator** to any chart. 2. Open **Settings → Data Sources** and choose your preferred Bitcoin ticker (e.g., BINANCE:BTCUSD) and comparison asset (e.g., SP:SPX, TVC:GOLD, FOREXCOM:DXY). 3. Enable optional overlays: Moving Averages, Bollinger Bands, RSI, or the Info Table. 4. Set alerts for key events like MA crossovers or Bollinger breakouts. ### 💡 Interpretation | Ratio Direction | Meaning | |---|---| | 📈 Rising | Bitcoin outperforms the comparison asset | | 📉 Falling | Bitcoin underperforms the comparison asset | | ▲ Above MA | Bullish relative trend | | ▼ Below MA | Bearish relative trend | | Golden Cross (MA1 × MA2) | Long-term bullish shift | | Death Cross (MA1 × MA2) | Long-term bearish shift | ### ⚠️ Disclaimer This indicator is for **educational and informational purposes only**. It does not constitute financial advice. Always do your own research before making investment decisions. **Indicator by:** iCD_creator **Version:** 1.0 **Pine Script™ Version:** 6 --- Updates & Support For questions, suggestions, or bug reports, please comment below or message the author. **Like this indicator? Leave a 👍 and share your feedback!** --- **#Bitcoin #BTC #RelativeStrength #BTCRatio #BTCvsSPX #BTCvsGold #BTCvsDXY #BTCvsETH #CryptoAnalysis #TechnicalAnalysis #TradingView #PineScript #Cryptocurrency #BitcoinDominance #CryptoIndicator #BTCStrength #MacroAnalysis #RatioChart #BitcoinVs #IntermarketAnalysis #CryptoTrading #BTCTrend #BTCSentiment #BitcoinPerformance #AltcoinRatio** Indicador Pine Script®por iCD_creator4
Volume-Based Moving AverageTitle: Volume-Based Moving Average Description: The Volume-Based Moving Average is a versatile tool that calculates price averages based on cumulative traded volume, highlighting the price levels where significant market participation has occurred. By combining volume-weighted averages with slope confirmation, it helps traders detect trending conditions and potential reversals in real time. Key Features: • Volume- Based Average: Computes moving averages based on a volume-period lookback. • Multi-Source Flexibility: Supports different price inputs, including Close, HL2, HLC3, OHLC4, or High & Low, giving traders control over calculation style. • Slope Confirmation: Detects sustained upward or downward trends by confirming slope direction over multiple bars, reducing noise from short-term fluctuations. • Dynamic Coloring: Average lines change color based on trend direction, providing instant visual cues for bullish or bearish momentum. Inputs & Settings: • Target Volume for cumulative calculation • Price Source options (Close, HL2, HLC3, OHLC4, High & Low) • Slope Confirmation Bars to determine sustained trend direction • Color customization based on trend slope Usage: This indicator helps traders: • Identify key price levels supported by high trading volume • Spot emerging bullish or bearish trends based on slope confirmation • Filter out short-term noise in fast-moving markets • Enhance trend-following or volume-based trading strategies • Explore the market from a new, original perspective How to Calibrate: 1. Open your preferred trading timeframe 2. Use the following volume amounts to get a ballpark estimate for your trading speed: 1,000,000; 500,000; 250,000; 100,000; 50,000; 25,000; 10,000; 5,000 3. Adjust to personal preference. Technical Notes: • If the moving average does not adjust and is anchored to candles, the broker you are using may not be providing the volume data needed for this to work. Try switching to a different broker for your instrument. • If the moving average does not show at all, your volume input needs to be reduced (depends on amount of loopback data your broker provides. Again, you may need to check out a different broker if this issue occurs. • Designed for standard OHLC charts; non-standard chart types may produce inconsistent results. • Past signals do not guarantee future market behavior; always combine with proper risk management. • Experiment with volume calibration before using in live trades.Indicador Pine Script®por The_Forex_Steward44
Ultimate RegimeUltimate Regime | MisinkoMaster Ultimate Regime is an advanced market environment classification tool designed to identify whether an asset is currently operating in a trending or mean-reverting regime. Instead of focusing on entry signals, the indicator concentrates on answering a more fundamental question: what type of market are we trading right now? By continuously evaluating market structure, volatility behavior, and directional persistence, the script provides a unified regime view that helps traders adapt strategy selection, risk management, and trade expectations to current conditions. This makes Ultimate Regime particularly valuable for traders using multiple systems, algorithmic frameworks, or discretionary approaches that perform differently depending on market state. Core Concept Markets alternate between expansion phases where directional movement dominates and contraction phases where price oscillates around equilibrium. Strategies built for one condition often underperform in the other. Ultimate Regime solves this by aggregating several environment measurements into a single regime score that expresses whether the market currently favors: • Trend continuation strategies • Breakout participation • Momentum trading or instead • Range trading • Mean reversion strategies • Oscillation-based setups The indicator therefore acts as a decision filter rather than a trade trigger. Key Features Unified regime classification combining multiple market characteristics Automatic detection of trending vs mean-reverting environments Smooth regime transitions to reduce noise and false flips Visual histogram representing regime strength Automatic chart candle coloring based on environment On-chart regime change labeling for clarity Configurable lookback and smoothing controls Works across all timeframes and asset classes Suitable for discretionary and systematic traders Designed for integration into multi-indicator workflows How It Works (Conceptual) Instead of relying on a single measurement, Ultimate Regime evaluates several dimensions of market behavior simultaneously, such as: • Price expansion versus contraction • Volatility shifts • Directional persistence • Structural movement characteristics These components are normalized and combined into a composite regime value. The result is then smoothed to ensure regime changes reflect genuine environment shifts rather than short-term fluctuations. When the combined regime value turns positive, the market is considered to favor directional movement. When it turns negative, price behavior favors oscillation and mean reversion. The internal weighting and transformation methods remain proprietary in the invite-only version. Regime States Explained Trending Regime Indicates directional dominance where price tends to move persistently in one direction. Momentum and breakout systems typically perform better under these conditions. Mean Reverting Regime Indicates oscillatory behavior where price frequently returns toward equilibrium zones. Range strategies and reversal setups often become more effective. Neutral Transitions Short transition periods may occur during regime changes as the environment reorganizes before committing to a dominant state. Visual Components Regime Histogram A histogram displays regime strength and direction, making it easy to gauge whether trending or reverting behavior dominates. Colored Candles Price candles automatically change color according to regime classification, allowing instant environment recognition directly on the chart. Regime Change Labels Labels appear when regime shifts occur, helping traders visually track transitions between trending and mean-reverting phases. Reference Thresholds Visual guide levels help users understand regime extremes and neutral zones. Inputs Overview Source Selects the price data used for regime analysis. High-Low Difference Lookback Controls how far back structural price expansion is evaluated. ATR Lookback Adjusts how volatility expansion or contraction is measured. Standard Deviation Lookback Defines the evaluation window for statistical price dispersion. ADX Lookback Controls directional persistence measurement sensitivity. Smoothing Period Applies smoothing to regime calculations, balancing responsiveness and stability. Higher smoothing reduces noise but delays regime changes. Lower smoothing reacts faster but may increase regime flipping. Usage Guidelines Use Ultimate Regime as a strategy filter rather than a direct entry signal. Trending regime environments generally favor: • Breakout systems • Momentum entries • Trend-following approaches • Pullback continuation trades Mean-reverting environments generally favor: • Range trading • Support and resistance reversals • Oscillation strategies • Counter-trend setups Regime analysis works best when combined with entry and risk tools rather than used standalone. Practical Applications Strategy selection switching between trend and range systems Position sizing adjustments based on environment strength Filtering trades that conflict with prevailing market behavior Algorithmic system optimization Portfolio regime monitoring Timeframe alignment analysis Parameter Tuning Notes Lower lookback values increase responsiveness but may produce faster regime changes. Higher lookback values stabilize regime detection for swing or position trading. Short smoothing periods work better for intraday trading. Longer smoothing periods help long-term traders avoid noise. Optimal settings vary by asset volatility and timeframe. Best Practices Combine regime detection with price structure and confirmation tools. Avoid forcing trend systems in reverting environments and vice versa. Use regime awareness to improve trade selection discipline. Backtest strategies separately for trending and mean-reverting periods. Summary Ultimate Regime provides a structured and adaptive view of market conditions by classifying whether the environment favors trend continuation or mean reversion. By separating environment analysis from trade signals, traders gain clarity in strategy selection and improve consistency across changing market conditions. The invite-only version preserves proprietary calculation methods while delivering a robust regime detection framework suitable for discretionary traders, system developers, and algorithmic strategies alike.Indicador Pine Script®por MisinkoMaster34
Standard Deviation Supertrend | GForgeStandard Deviation Supertrend ~ 𝒢𝐹𝑜𝓇𝑔𝑒 A Supertrend indicator that replaces ATR with Standard Deviation for volatility measurement, combined with a selectable Moving Average anchor for noise reduction. ━━━━━━━━━━━━━━━━━━━━━━━━ What This Indicator Does This is a trend-following overlay that plots a single trailing line on your chart. When price is above the line, the trend is bullish. When price crosses below, the trend flips bearish. Signals fire on each flip. The core mechanic is identical to the classic Supertrend — ratcheting bands that tighten in the direction of the trend and only reset when price breaks through the opposite side. ━━━━━━━━━━━━━━━━━━━━━━━━ Why Standard Deviation Instead of ATR ATR measures the average candle range. It treats all bars the same — a strong directional candle and a choppy gap produce equal ATR contributions. Standard Deviation measures how far price disperses from its mean. During clean directional moves, prices cluster on one side of the mean, producing low StdDev and tighter bands. During erratic, sideways price action, prices scatter around the mean, producing high StdDev and wider bands. The result: the trailing stop naturally tightens when the trend is clean and loosens when conditions are noisy. This is adaptive behavior that ATR-based Supertrends don't provide. ━━━━━━━━━━━━━━━━━━━━━━━━ Two Smoothing Layers Raw Supertrend inputs can be noisy. A single wick or volatile candle can jerk the trailing band and cause a premature flip. This indicator addresses that with two optional smoothing layers: Anchor MA — applies a Moving Average to the price source before bands are calculated. Instead of building bands around raw hl2 (which reacts to every wick), the bands are built around a smoother baseline. 11 MA types are available: • None (hl2) — raw, classic Supertrend behavior • SMA, EMA, WMA — standard options with varying lag • HMA — very low lag, can overshoot on reversals • DEMA, TEMA — reduced lag variants of EMA • VWMA — volume-weighted, naturally anchors to high-volume levels • RMA — Wilder's smoothing, very stable • ALMA — Gaussian-weighted with tunable offset and sigma • T3 — Tillson, extremely smooth with adjustable volume factor StdDev Smoothing — applies an EMA to the raw Standard Deviation output before it scales the bands. This prevents abrupt band width changes when a volatile bar enters or exits the lookback window. Set to 1 to disable. Together, these improve parameter robustness — small changes to settings produce smaller changes in output, meaning the indicator is less likely to break under slight parameter variation. ━━━━━━━━━━━━━━━━━━━━━━━━ Settings Overview • Anchor Source — price input for the Supertrend. hl2 is the classic default. • StdDev Length — lookback period for the Standard Deviation calculation. • StdDev Multiplier — band width. Higher values require a larger move to flip direction. This serves the same purpose as a "threshold" in oscillator-based indicators. • Anchor MA Type / Length — which Moving Average smooths the anchor, and its period. • StdDev Smoothing — EMA period applied to the raw StdDev. 1 = no smoothing. • ALMA Offset / Sigma — only active when ALMA is selected. • T3 Volume Factor — only active when T3 is selected. • Current settings work best on BTC 1D ━━━━━━━━━━━━━━━━━━━━━━━━ Visual Elements • Glow trail — the Supertrend line pulses with a layered glow that changes color on trend direction. • Trend fill — gradient fill between price and the trailing line. • Inactive band — shown as crosses, marking where the opposite flip point sits. • Anchor MA line — subtle reference line showing the smoothed anchor (hidden when set to None). • Bar coloring — candles colored by current trend direction. • Signal diamonds — dual-layer markers (halo + core) on trend flips. All visual elements can be toggled on or off individually. 13 color themes are included. ━━━━━━━━━━━━━━━━━━━━━━━━ ⚠️ Disclaimer This indicator is a technical analysis tool, not financial advice. It does not guarantee profitable results. Past performance on any asset or timeframe does not indicate future results. No indicator can predict market direction with certainty. Always use proper risk management. Do not rely on any single indicator for trading decisions. Test thoroughly on your chosen instruments and timeframes before applying to live markets. You are solely responsible for your own trading decisions and outcomes. ━━━━━━━━━━━━━━━━━━━━━━━━ Developed by 𝒢𝐹𝑜𝓇𝑔𝑒Indicador Pine Script®por GForge77
Interactive TA↕️ Interactive TA is a proof-of-concept indicator that enables moving average selection directly on the chart through an interactive selector, without opening the settings panel. Drag the selector marker vertically to switch between SMA, EMA, VWMA, HMA, and DEMA — the selected moving average updates on the price overlay in real time. Built as an educational framework for interactive technical analysis in PineScript, the indicator demonstrates how TradingView's price input can be repurposed as a draggable on-chart control, establishing a template for developers to build interactive indicators, dashboards, and selection tools beyond what PineScript natively offers. 💡 CONCEPT 💡 PineScript currently offers no command buttons, toggles, or selection controls that operate directly on the chart. All indicator configuration is handled through the settings panel, requiring the user to open a dialog, adjust values, and close it before seeing the result. This workflow, while functional, interrupts the analytical process and disconnects the user from the chart during configuration changes. Interactive TA demonstrates a workaround to this limitation. The indicator uses input.price — a PineScript function originally designed for anchoring price levels on a chart — as a vertically draggable selector. By mapping the vertical position of this price input to discrete zones, each corresponding to a different moving average type, the indicator transforms a simple price anchor into a functional control element. The lower pane of the chart serves as the control surface. A selector marker is displayed with labeled zones on the right side, each representing a moving average type (SMA, EMA, VWMA, HMA, DEMA). The currently active zone is highlighted, and the selected moving average is plotted on the upper price chart using force_overlay , with its type and length displayed in the top-right corner. Dragging the selector marker into a different zone immediately switches the active moving average in real time. This approach demonstrates that interactive technical analysis — where chart elements respond to direct user manipulation rather than static settings — is achievable within PineScript's existing capabilities. The moving average selector is intentionally simple; it exists to illustrate the interactive pattern itself, which can be extended to virtually any indicator parameter or selection logic. 🔶 HOW TO USE 🔶 Add the indicator to your chart. The lower pane displays the selector with labeled zones, and the upper chart displays the currently selected moving average. Click and drag the orange selector marker up or down to move it into the zone of the desired moving average type. Release the drag. The moving average on the upper chart updates immediately to reflect the new selection. Interactive Selector : The arrows indicate the drag points where the user can click and slide the selector line vertically to switch between moving average types. The currently selected type (VWMA) is highlighted in orange, and the corresponding moving average is plotted on the upper chart. Pane sizing: The lower pane can be resized by dragging the horizontal divider between the upper and lower panes. This allows the user to adjust the vertical spacing of the zone labels for comfort and readability. Making the lower pane taller spreads the labels out; making it shorter compresses them. This is standard TradingView behavior and provides an additional layer of visual customization. Pane scale: The numeric values on the lower pane's vertical axis are internal zone coordinates used for selector positioning and do not represent price. 🛠️ SETTINGS 🛠️ MA Length : Sets the period for the moving average calculation. Default is 50. MA Color : Sets the color of the moving average line on the upper chart. Selector Color : Sets the color of the selector pointer, zone highlight, and the type label on the upper chart. Auto-Generated By PineScript : System input created by the interactive selector. No adjustment needed. 🔑 PRACTICAL ADVANTAGES 🔑 The ability to adjust indicator parameters directly on the chart, without leaving the visual context of price action, offers practical advantages for technical analysis: Rapid comparison. Switching between moving average types to evaluate their behavior on the same price action takes a single drag gesture rather than multiple clicks through the settings panel. This enables quick side-by-side evaluation of how different calculations respond to the same market conditions. Reduced context switching. Opening the settings dialog shifts attention away from the chart. Interactive controls keep the analyst's focus on price action while making adjustments, preserving the visual continuity of the analysis. Faster live workflow. During active market sessions, the difference between a one-second drag and a multi-step settings change can affect the pace of analysis. Interactive controls compress the decision-to-observation cycle. Education and presentation. When demonstrating technical analysis concepts to others, the ability to switch between indicator types in real time — visibly, on the chart — is more effective than toggling settings behind a dialog. The audience sees the change happen, which reinforces understanding of how different indicators behave. Exploration. Interactive controls lower the friction of experimentation. When switching between options is effortless, analysts are more likely to explore alternatives they might otherwise skip, potentially discovering indicator configurations better suited to current market conditions. DEMA (50) : Selected via the interactive slider. The selector is positioned in the DEMA zone, with the corresponding label highlighted and the double exponential moving average plotted on the upper chart. EMA (50) : Selected on the same chart and timeframe. The selector has been dragged to the EMA zone, switching the overlay without changing any settings. Comparing the two charts reveals how the EMA responds differently to the same price action. 🔮 EXPANDING THE CONCEPT 🔮 Interactive TA is released as a proof of concept and an open invitation to the PineScript development community. The interactive pattern demonstrated here — mapping a draggable price input to discrete zones that drive indicator logic — is not limited to moving average selection. The same framework can be adapted to control virtually any aspect of a technical analysis tool. Timeframe or source selection controlled by an on-chart slider Strategy mode switching between parameter presets Alert threshold adjustment through direct chart interaction Multi-indicator dashboards where a single control determines which overlay is visible Sensitivity or risk level tuning without opening settings These are starting points, not boundaries. The framework is deliberately generic — a draggable position mapped to an array of options — and developers are encouraged to extend it in directions not anticipated here. As the community explores and builds upon this workaround, the case for native support becomes increasingly evident. Definable slider ranges, anchored control elements, minimum and maximum value constraints, step intervals, and discrete input types would significantly expand the potential for building interactive analytical tools in PineScript. ⚠️ NOTE ⚠️ Interactive TA is a proof-of-concept indicator designed for educational purposes and as a development framework. It demonstrates an innovative approach to on-chart interactivity in PineScript and is intended to serve as a template for further development by the community. The included moving average selector is a demonstration of the interactive pattern, not a standalone trading tool. It is not intended as financial advice or a trading signal generator. Users and developers are encouraged to adapt, extend, and build upon this framework to suit their own analytical needs.Indicador Pine Script®por xxattaxx15
EMA Rainbow (3 Bands, 9 EMAs)found this strategy from "TRADER DNA" on you tube. He uses some other platform. Nothing on TV seemed close so I made this. I have had good success using 9/21/50 emas on 4h charts for stocks. Here is his video on EMA Rainbow Strategy: www.youtube.com Indicador Pine Script®por frac805076
200 EMA StackAllows user to have up to 5 200 EMA's on different timeframesIndicador Pine Script®por EDAllan0
EMA 20/50/100/200EMA 20/50/100/200 Indicator This indicator plots four Exponential Moving Averages (EMA) on your chart simultaneously — the 20, 50, 100, and 200 period EMAs — each in a distinct color for quick visual reference. How it works: Each EMA smooths price action over its respective period, helping traders identify trend direction and momentum. Shorter EMAs (20, 50) react faster to price changes, while longer EMAs (100, 200) reflect the broader trend. Label feature: A small colored label is displayed at the right edge of each EMA line, clearly marking which line corresponds to which period — no more guessing which line is which. Color coding: 🔴 Red → EMA 20 (fastest) 🟠 Orange → EMA 50 🔵 Aqua → EMA 100 🔵 Blue → EMA 200 (slowest) Common use cases: trend following, dynamic support/resistance levels, golden cross & death cross signals, and multi-timeframe confluence analysis.Indicador Pine Script®por ramazankaansahin115