VSTrade OMCThe indicator calculates the ratio of Open Interest (OI) of a futures contract to the market capitalization (Market Cap) of the spot asset. OI is the number of open (unclosed) futures positions in the market, expressed in contracts. Market Cap is the total value of the asset (price * circulating supply). The ratio shows how "overheated" or "attractive" the futures market is relative to the size of the asset.This is not a direct trading signal but a tool for analyzing liquidity, speculation, and market sentiment. Interpretation depends on the context (asset, timeframe, market conditions).
Индикатор рассчитывает отношение Open Interest (OI) фьючерсного контракта к рыночной капитализации (Market Cap) спотового актива. OI — это количество открытых (незакрытых) фьючерсных позиций на рынке, выраженное в контрактах. Market Cap — общая стоимость актива (цена * circulating supply). Отношение (ratio) показывает, насколько "перегрет" или "интересен" рынок фьючерсов относительно размера актива.
Это не прямой торговый сигнал, а инструмент для анализа ликвидности, спекуляции и рыночных настроений. Интерпретация зависит от контекста (актива, таймфрейма, рыночных условий).
Göstergeler ve stratejiler
Global Risk Terminal – Multi-Asset Macro Sentiment IndicatorDescription:
The Global Risk Terminal is a sophisticated macro sentiment indicator that synthesizes signals from three key cross-asset relationships to produce a single, actionable risk appetite score. It is designed to help traders and investors identify whether global markets are in a risk-on (growth-seeking) or risk-off (defensive) regime. The indicator analyzes the behavior of commodities, equities, bonds, and currencies to generate a comprehensive view of market conditions.
Indicator Output:
The Global Risk Terminal produces a normalized risk score ranging from -1 to +1:
Positive values indicate risk-on conditions (growth assets favored)
Negative values indicate risk-off conditions (safe-haven assets favored)
Core Components:
Growth Pulse (Copper to Gold Ratio, HG/GC)
Purpose: Measures investor preference for industrial growth versus safe-haven assets.
Interpretation:
Rising ratio → Copper outperforming gold → Risk-on environment
Falling ratio → Gold outperforming copper → Risk-off environment
Flat ratio → Transitional market phase
Technical Implementation: Dual moving average slope method (fast MA default 20, slow MA default 40). Positive slope = +1, negative slope = -1, flat slope = 0
Equity Rotation (Russell 2000 to S&P 500 Ratio, RTY/ES)
Purpose: Tracks rotation between small-cap and large-cap equities, revealing market risk appetite.
Interpretation:
Rising ratio → Small-caps outperforming → Strong risk-on
Falling ratio → Large-caps outperforming → Defensive positioning
Technical Implementation: Dual moving average slope method (same as Growth Pulse)
Flow Gauge (10-Year Treasury to US Dollar Index, ZN/DXY)
Purpose: Captures liquidity conditions and cross-asset capital flows.
Interpretation:
Rising ratio → Treasury prices rising or USD weakening → Liquidity expansion, risk-on environment
Falling ratio → Treasury prices falling or USD strengthening → Liquidity contraction, risk-off environment
Technical Implementation: Dual moving average slope method
Composite Risk Score Calculation:
Analyze each component for trend using dual moving averages
Assign signal values: +1 (risk-on), -1 (risk-off), 0 (neutral)
Average the three signals:
Risk Score = (Growth Pulse + Equity Rotation + Flow Gauge) / 3
Optional smoothing with exponential moving average (default 3 periods) to reduce noise
Interpreting the Risk Score:
+0.66 to +1.0: Full risk-on – favor cyclical sectors, small-caps, growth strategies
+0.33 to +0.66: Moderate risk-on – mostly bullish environment, watch for fading momentum
-0.33 to +0.33: Neutral/transition – markets in flux, signals mixed, exercise caution
-0.66 to -0.33: Cautious risk-off – favor defensive sectors, reduce high-beta exposure
-1.0 to -0.66: Full risk-off – strong defensive positioning, prioritize safe-haven assets
How to Use the Global Risk Terminal to Frame Trades:
Aligning Trades with Market Regime
Risk-On (+0.33 and above): Look for buying opportunities in cyclical stocks, high-beta equities, commodities, and emerging markets. Use long entries for swing trades or intraday positions, following confirmed price action.
Risk-Off (-0.33 and below): Shift focus to defensive sectors, large-cap quality stocks, U.S. Treasuries, and safe-haven currencies. Prefer short entries or reduced exposure in risky assets.
Entry and Exit Framing
Use the risk score as a macro filter before executing trades:
Example: The risk score is +0.7 (strong risk-on). Prefer long positions in equities or commodities that are showing bullish confirmation on your regular chart.
Conversely, if the risk score is -0.7 (strong risk-off), avoid aggressive longs and consider short or defensive trades.
Watch for threshold crossings (+/-0.33, +/-0.66) as potential inflection points for adjusting position size, stop-loss levels, or sector rotation.
Confirming Trade Decisions
Combine the Global Risk Terminal with price action, volume, and trend indicators:
If equities rally but the risk score is declining, this may indicate a fragile rally driven by few leaders—trade cautiously.
If equities fall but the risk score is rising, consider counter-trend entries or buying dips.
Risk Management and Position Sizing
Strong alignment across components → increase position size and hold with wider stops
Mixed or neutral signals → reduce exposure, tighten stops, or avoid new trades
Defensive regimes → rotate into stable, low-volatility assets and increase cash buffer
Framing Trades Across Timeframes
Use the indicator as a strategic guide rather than a precise timing tool. Even without the MTF table:
Daily trend alignment → Guide swing trade bias
Shorter timeframe price action → Refine entry points and stop placement
Example: Daily chart shows +0.6 risk score → identify high-probability long setups using intraday technical patterns (breakouts, trend continuation).
Sector and Asset Rotation
Risk-On: Focus on cyclical sectors (financials, industrials, materials, energy), small-caps, high-beta instruments
Risk-Off: Focus on defensive sectors (utilities, consumer staples, healthcare), large-caps, safe-haven instruments
Alert Integration
Set alerts on the risk score to notify you when markets move from neutral to risk-on or risk-off regimes. Use these alerts to plan entries, exits, or portfolio adjustments in advance.
Customization Options:
Moving Average Length (5–100): Adjust sensitivity of trend detection
Score Smoothing (1–10): Reduce noise or see raw risk score
Visual Themes: Six preset themes (Cyber, Ocean, Sunset, Monochrome, Matrix, Custom)
Display Options: Show or hide component dashboards, main header, risk level lines, gradient fill, and component signals
Label Size: Tiny, Small, Normal, Large
Alert Conditions:
Risk score crosses above +0.66 → Strong risk-on
Risk score crosses below -0.66 → Strong risk-off
Risk score crosses zero → Neutral line
Risk score crosses above +0.33 → Moderate risk-on
Risk score crosses below -0.33 → Moderate risk-off
Data Sources:
HG1! – Copper Futures (COMEX)
GC1! – Gold Futures (COMEX)
RTY1! – Russell 2000 E-mini Futures (CME)
ES1! – S&P 500 E-mini Futures (CME)
ZN1! – 10-Year U.S. Treasury Note Futures (CBOT)
DXY – U.S. Dollar Index (ICE)
Notes and Limitations:
Works best during clear macro regimes and aligned trends
Use with price action, volume, and other technical tools
Not a standalone trading system; serves as a macro context filter
Equal weighting assumes all three components are equally important, but market conditions may vary
Past performance does not guarantee future results
Conclusion:
The Global Risk Terminal consolidates complex cross-asset signals into a simple, actionable score that informs market regime, portfolio positioning, sector rotation, and trading decisions. Its user-friendly layout and extensive customization options make it suitable for traders of all experience levels seeking macro-driven insights. By framing trades around risk score thresholds and combining macro context with tactical execution, traders can identify higher-probability opportunities and optimize position sizing, entries, and exits across a wide range of market conditions.
Fractal Closes📘 Fractal Closes
Description:
Fractal Closes is a minimal, time-based indicator that shows which higher-timeframe cycles (1 D → 11 D) are closing within the next 24 hours.
It helps you instantly identify daily and multi-day fractal completions without switching charts — keeping your focus on timing, structure, and confluence.
Features
Scans 1 D → 11 D fractal periods automatically.
Displays only the cycles closing today (within 24 h).
Works consistently across all chart timeframes.
Transparent, minimal bottom-right table — no clutter.
Ideal For:
Traders who want to track short-term cycle completions (1-to-11-day) for time-based confluence, session alignment, or timing reversals.
Fractal ModelFractal Model - Higher Timeframe Analysis with Market Structure Labeling
A higher timeframe candle visualization tool enhanced with fractal pattern detection and market structure labeling system for pivot-based price action analysis.
What This Script Does:
This indicator displays higher timeframe candles on your current chart and identifies key pivot formations using a systematic labeling approach. It helps traders understand market structure and potential reversal points through comprehensive pivot analysis.
Key Features:
• Higher Timeframe Visualization: Shows HTF candles without switching timeframes
• Market Structure Labeling: Identifies pivot components with C2, C3, and C4 labels
• Fractal Pattern Detection: Marks areas where price is likely to form wicks based on pivot logic
• Sweep Confirmation: Detects when price sweeps previous levels but closes opposite
• Fair Value Gap Detection: Identifies imbalance zones between candle ranges
• Alert System: Sends alerts when fractal pattern formations are confirmed using pivot logic
• Silver Fractal Pattern Alerts: Special alerts during specific market hours
How Market Structure Labeling Works:
The labeling system identifies pivot formations based on their structure:
• C2: The pivot candle that "sticks out" - this is the candle that creates the pivot point using standard pivot logic
• C3: The distribution candle that follows a 3-candle pivot formation - this is where we expect distribution or sharp moves after the sticking out candle
• C4: The distribution candle that follows a 4+ candle pivot formation - this is where we expect distribution or sharp moves after the sticking out candle (used when the pivot extends beyond 3 candles)
CISD (Candle In Series Distribution):
CISD represents price recovering from the aggressive move that went into a higher timeframe candle extreme. It's the price action that follows after a significant move into a HTF level, showing how the market distributes or consolidates after the initial aggressive move.
Fair Value Gaps (FVG):
FVG identifies imbalance zones between candle ranges where price left a gap. These zones often act as support/resistance levels and are areas where price tends to return to fill the imbalance.
Volume Imbalance (VI):
Volume Imbalance detection identifies areas where there's an imbalance in volume between candles, often indicating institutional activity or significant order flow changes.
Projections:
The indicator calculates projection levels based on the range of the series that was broken. These projections extend from the break point and can help identify potential target levels for price movement.
Sweep Logic:
A sweep occurs when price breaks a previous high or low but then closes back in the opposite direction, creating a "wick" or "liquidity grab." This often indicates that the level was tested and rejected, potentially leading to a reversal.
Silver Fractal Patterns:
Special fractal patterns that occur during specific market hours (4th-5th candle of the trading day or 4th candle after 1PM ET). These patterns have additional confirmation requirements and are considered higher probability setups due to their timing in relation to market structure.
Position Sizing:
The indicator includes position sizing calculations based on risk parameters, helping traders determine appropriate position sizes based on their account balance and risk tolerance.
Alert System:
The indicator provides alerts when:
• Fractal pattern formations are created and confirmed
• Price sweeps fractal pattern levels with proper confirmation
• Silver fractal pattern formations occur during specific market hours
• Fractal pattern sweep confirmations are triggered
Practical Usage:
1. Add the indicator to your chart
2. Watch for fractal pattern formations (highlighted zones)
3. Look for C2, C3, C4 labels to understand pivot structure
4. Use sweep confirmations for entry timing
5. Set up alerts for fractal pattern confirmations and sweeps
Technical Implementation:
Logarithmic Midpoint Calculation:
The fractal pattern levels are calculated using logarithmic midpoint analysis:
• Log Values: log_high = ln(high), log_low = ln(low), log_open = ln(open), log_close = ln(close)
• Wick Analysis: upper_wick = log_high - max(log_open, log_close), lower_wick = min(log_open, log_close) - log_low
• Body Size: body_size = |log_close - log_open|
• Midpoint Logic: If max(upper_wick, lower_wick) > body_size, use wick-based midpoint; otherwise use (log_high + log_low)/2
• Final Level: Fractal pattern level = exp(log_mid_level)
Fractal Pattern Formation Conditions:
The indicator detects several types of fractal patterns:
Standard Patterns:
• Standard Bearish: last_closed.h > prev_closed.h AND last_closed.c < prev_closed.h
• Standard Bullish: last_closed.l < prev_closed.l AND last_closed.c > prev_closed.l
Expansive Patterns (Higher timeframe context):
• Expansive Bearish: prev_closed.h > prev_prev_closed.h AND last_closed.c < max(prev_closed.o, prev_closed.c)
• Expansive Bullish: prev_closed.l < prev_prev_closed.l AND last_closed.c > min(prev_closed.o, prev_closed.c)
Pro-trend Patterns (Midpoint-based):
• Pro-trend Bearish: last_closed.h > mid_level AND last_closed.h < prev_closed.o AND last_closed.c < prev_closed.l
• Pro-trend Bullish: last_closed.l < mid_level AND last_closed.l > prev_closed.o AND last_closed.c > prev_closed.h
Sweep Confirmation Logic:
• Pivot Detection: Uses ta.pivothigh(high, 1, 2) and ta.pivotlow(low, 1, 2)
• Touch Detection: Price must touch fractal pattern level (high > level OR open > level) AND close opposite
• Confirmation Requirements: Pivot must form before touch, close must break beyond pivot level
• Alert Trigger: Sweep confirmed when all conditions are met
Silver Fractal Pattern Conditions:
Special fractal patterns during specific market hours (4th-5th candle of day or 4th candle after 1PM ET) with additional confirmation requirements.
HTF Auto-Detection:
Automatically selects appropriate higher timeframes: 1m→15m, 3m→30m, 5m→1h, 15m→4h, 30m-1h→1D, 4h-8h→1W, 1D→1M.
Based on HTF Candles by Fadi, enhanced with fractal pattern detection, sweep logic, market structure labeling system, and comprehensive alert functionality.
Note: This tool is for educational purposes and should be used in conjunction with proper risk management and market analysis.
Nate spy bottom indicatorit uses the DJI 20d moving average chart and a long signal is triggered when the 3dma goes above 25
K線 vs ATR 倍數 + 快訊Candle vs ATR Multiples + News Pulse
This indicator compares each candle’s true range and body size to configurable multiples of the Average True Range (ATR) to identify statistically significant bursts and exhaustion moves, then overlays a lightweight “news pulse” filter to help you avoid trading directly into high-volatility announcements. For every bar, the script labels (1) ATR-Impulse when the candle range exceeds X×ATR, (2) Body-Drive when the real body exceeds Y×ATR, and (3) Exhaustion when a large wick appears after an ATR-Impulse in the opposite direction. Optional “magnet” lines plot recent swing highs/lows reached during ATR events to visualize likely retests. Alerts trigger on first touch of any state: Impulse Long/Short, Body-Drive Long/Short, Exhaustion Long/Short, and News Window Active. Inputs include ATR length and type, impulse/body multipliers, wick ratio threshold, lookback for magnet levels, and a news buffer (minutes before/after events). Typical use: trade with trend on Body-Drive breakouts; fade stretched moves on Exhaustion only outside the news buffer; tighten risk near magnets. This tool is designed for discretionary price-action traders who want quantified confirmation: it does not autotrade or guarantee profitability. Always validate on multiple timeframes, account for slippage, and combine with structure (HH/HL, LH/LL), liquidity, and session context.
TOPPER CARORPATI (Non-Repaint, Lookahead On)________________________________________
Warning:
• While this indicator aids in decision-making and risk management, no indicator is 100% accurate.
• Always consider broader market conditions and apply sound risk management techniques.
Clock/Price/Change %/Volume/Countdown (Row)📊 Clock / Price / Change % / Volume / Countdown (Row)
Author: CodyBear
Type: Overlay Utility Dashboard
Version: Pine Script v5
🧩 Overview
This indicator displays a compact and informative row at the top of your chart, giving you real-time updates on key market metrics including:
⏰ Current Time (adjustable for your local timezone)
📈 Live Price with directional icon (up/down/neutral)
📊 Price Change Percentage from previous candle
⏳ Countdown until the current bar closes (optional)
📉 Volume data with comparison to the previous bar (optional)
⚙️ Customization Options
Set your UTC Offset to display the correct local time
Choose your preferred font size (small, normal, large)
Show or hide Volume and Countdown Timer
Customize background and text colors
📌 Features
Simple, clean, and non-intrusive overlay at the top-center of your chart
Dynamic icons and color changes based on live market conditions
Great for scalpers, intraday traders, and anyone needing a quick glance dashboard
IPOSubLibraryLibrary "IPOSubLibrary1"
setIPOSubMap(m)
Parameters:
m (map)
getIPOSub(ticker)
Parameters:
ticker (string)
ETH ETFs AUM📘 Description: ETH ETFs AUM Tracker
This indicator tracks the Assets Under Management (AUM) and daily inflows/outflows of the main U.S.-listed Ethereum ETFs, allowing you to monitor institutional capital flows into Ethereum-based investment products over time.
It uses official financial statement data obtained via TradingView’s request.financial() function.
🧩 Overview
The script aggregates the daily AUM changes from selected Ethereum ETFs to estimate the total net inflow/outflow of capital entering or leaving ETH funds.
It also accumulates those daily flows to display the total cumulative AUM balance, helping you visualize long-term trends in institutional participation and sentiment toward Ethereum.
Two visualization modes are available:
Balance view: plots the cumulative total AUM over time.
Inflows view: plots daily inflows/outflows as colored bars, plus a smoothed moving average line.
⚙️ Inputs Explained
Base Settings
Base Multiplier (base_multi) – Scaling factor applied to AUM data. Keep it at 1 for raw USD values, or use larger divisors (e.g., 1e6 or 1e9) to express values in millions or billions.
Smoothing (c_smoothing) – Number of periods for the simple moving average used to smooth daily inflows/outflows.
Show Balance (showBalance) – Toggles display of the cumulative AUM line (aggregated total inflows).
Show Inflows (showInflows) – Toggles display of daily inflow and outflow columns and their smoothed mean line.
ETF Selection
You can enable or disable each ETF from the calculation individually:
Invesco Galaxy Ethereum ETF (QETH)
Grayscale Ethereum Mini Trust (ETH)
Fidelity Ethereum Fund (FETH)
WisdomTree Physical Ethereum (ARKB)
Bitwise Ethereum ETF (ETHW)
Franklin Ethereum Trust (EZET)
VanEck Ethereum Trust (ETHV)
21Shares Core Ethereum ETF (CETH)
iShares (BlackRock) Ethereum Trust (ETHA)
Grayscale Ethereum Trust (ETHE)
Each toggle determines whether the ETF’s daily AUM changes are included in the aggregated totals.
📊 Displayed Values
Green Columns → Positive daily inflows (AUM increased).
Red Columns → Negative daily outflows (AUM decreased).
Orange Line → Smoothed average of daily net flows.
Blue Line (if enabled) → Total cumulative AUM (aggregated sum over time).
💡 Usage Notes
The indicator is best viewed on the daily timeframe, as ETF AUM updates once per trading day.
Missing data points for newer or smaller ETFs are automatically skipped.
Data accuracy depends on TradingView’s financial data feed and the respective exchange reporting frequency.
Combine this indicator with ETH/USD price action or on-chain data to study relationships between institutional capital movement and market direction.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It does not constitute financial advice or investment recommendations.
All ETF data is sourced through TradingView’s official request.financial() function, and accuracy is subject to third-party data providers.
Billionaire Gold ClubBillionaire Gold Club
Obey the rules, and you will always win.
Overview
Use Billionaire Gold Club when trading Gold (XAUUSD).
Follow the long-term bullish bias of gold and focus only on Buy opportunities.
Do not look for Sell signals — this tool is built to tell you when to enter and when to wait.
Instructions
Plot 7MA and 200MA on your chart.
When 7MA crosses above 200MA, treat it as a BUY signal. Enter long positions.
When 7MA crosses below 200MA, mark it as Stand by. Do not sell. Wait for the next BUY signal.
Usage Rules
Trade only on 15-minute or higher timeframes.
If you use it on timeframes below 15 minutes, treat it as day trading and close your trade within the same day. Do not hold overnight.
Aim for long-term holding. Keep your lot size small and protect your account.
Signal Guide
🟢 BUY Signal → Enter the trend.
🟠 Stand by Signal → Stop buying. Wait patiently.
Alerts
Set an alert on BUY Signal to know when a Golden Cross is confirmed.
Set an alert on Stand by Signal to know when a Death Cross is confirmed.
Always set alerts to Once per bar close.
Billionaire Gold Club はゴールド(XAUUSD)専用に設計されたトレード支援インジケーターです。
ゴールドの長期的な上昇バイアスを前提とし、Buy シグナルのみを重視します。
Sell シグナルは排除し、「仕込み」と「様子見」に特化しています。
ルールを守れば必ず勝てるというとてもシンプルなコンセプトで構築されています。
仕組み
7MA(短期移動平均線) と 200MA(長期移動平均線) を表示
ゴールデンクロス(7MAが200MAを上抜け)
→ BUY サイン(緑背景・BUYラベル)
デッドクロス(7MAが200MAを下抜け)
→ Stand by サイン(オレンジ背景・Stand byラベル)
使い方
推奨時間足:15分足以上(特に4時間足・日足・週足が最適)
短期足(15分未満)での使用:持ち越さずデイトレードでの使用をしましょう
長期保有を目的とした設計のため、ロットサイズには十分注意してください
このルールを守れば、かなり高い確率で勝つことができます
シグナル解釈
🟢 BUY サイン
→ 長期トレンド再開の仕込みポイント
🟠 Stand by サイン
→ 調整フェーズ。「次の買い場待ち」を意味します
アラート機能
BUY Signal:ゴールデンクロス確定時に通知
Stand by Signal:デッドクロス確定時に通知
アラートは「バー確定ごと(Once per bar close)」で設定してください
健闘を祈ります。頑張りましょう
BTC ETFs AUM📘 Description: BTC ETFs AUM Tracker
This indicator tracks the Assets Under Management (AUM) and daily inflows/outflows of the main U.S.-listed Bitcoin ETFs, allowing you to visualize institutional capital movement into Bitcoin products over time.
It uses official financial statement data provided by TradingView’s request.financial() function.
🧩 Overview
The script adds up the daily AUM changes from selected Bitcoin ETFs to estimate the total net inflow/outflow of capital into spot BTC funds.
It also accumulates those flows over time to display the total aggregated AUM balance, giving you a clearer sense of market direction and institutional sentiment.
Two display modes are available:
Balance view: plots the cumulative sum of net inflows (total ETF AUM).
Inflows view: shows daily inflows (green) and outflows (red) as histogram columns, together with a smoothed moving average line.
⚙️ Inputs Explained
Base Settings
Base Multiplier (base_multi) – Scaling factor applied to all AUM values. Leave at 1 for USD units, or adjust to display values in millions (1e6) or billions (1e9).
Smoothing (c_smoothing) – Period length for the simple moving average used to calculate the smoothed mean inflow/outflow line.
Show Balance (showBalance) – When enabled, displays the total cumulative AUM balance (sum of all net inflows over time).
Show Inflows (showInflows) – When enabled, displays the daily inflows/outflows as colored columns.
ETF Selection
You can toggle which ETFs are included in the calculation:
IBIT (BlackRock)
GBTC (Grayscale)
FBTC (Fidelity)
ARKB (ARK/21Shares)
BITB (Bitwise)
EZBC (Franklin Templeton)
BTCW (WisdomTree)
BTCO (Invesco Galaxy)
BRRR (Valkyrie)
HODL (VanEck)
Each switch determines whether the ETF’s AUM and daily flow data are included in the total calculation.
📊 Displayed Values
Green Columns → Positive daily net inflows (AUM increased).
Red Columns → Negative daily net outflows (AUM decreased).
Orange Line → Smoothed moving average of net flows, used to identify persistent inflow/outflow trends.
Blue Line (if enabled) → Total cumulative AUM balance (sum of all historical flows).
💡 Usage Notes
Works best on daily timeframe, since ETF data is typically updated once per trading day.
Not all ETFs have identical data history; missing data points are automatically skipped.
The indicator doesn’t represent official fund NAV or guarantee data accuracy — it visualizes TradingView’s public financial feed.
You can combine this tool with price action or on-chain metrics to analyze institutional Bitcoin flows.
🧠 Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice, and no investment decisions should be based solely on this indicator.
Data accuracy depends on TradingView’s financial data sources and exchange reporting frequency.
Sessions backend frameworkSessions_Library — Session Timing Utilities (Pine v6)
Purpose
A lightweight helper library for indicator development that converts session strings (HHMM-HHMM) into same-day start/stop timestamps and provides a best-effort UTC offset resolver based on syminfo.timezone. This library does not draw, alert, or trade and must be called by a parent script.
Core Functions
- extractHourMinute(sessionInput): Returns from a "HHMM" string.
- ExtractStartStopTimestamp(sessionInput): Accepts "HHMM-HHMM" and returns using the current date.
- GetUTCOffset(): Maps common TradingView time zones to an integer UTC offset with fallbacks for UTC± and Etc/GMT± patterns.
Key Notes
- Backend-only tools: no signals, alerts, or order execution are included.
- Designed for educational, research, and indicator-development purposes.
- Time zone offsets are best-effort and simplified to whole hours; behavior may vary with regional DST rules and half-hour regions.
- No external data requests and no user data handling.
Usage
1) Import the library into your indicator.
2) Pass session strings like "0930-1030" to ExtractStartStopTimestamp for intraday windows.
3) Use GetUTCOffset to align logic across chart and exchange time. Visualization and alerting remain in the parent script.
Disclaimer
This library provides no financial advice, recommendations, or performance guarantees. Use at your own risk for research and educational development only.
Timebender Cycles - 90minutes🌀 Timebender Cycles — NY Midnight→Midnight (Full Custom Stable Edition)
Author: Timebender
Framework: Pine Script v6 (Verified Stable)
Timezone: America/New_York (Fixed)
🌗 Overview
The Timebender Cycles indicator is a precision-engineered temporal grid built for professional traders who value time structure as much as price structure.
It divides each New York trading day (00:00 → 00:00) into multiple dynamic time cycles — allowing you to visually align order flow, market rhythm, and liquidity windows across intraday sessions.
Designed to be ultra-clean, fast, and highly customizable — this grid lets you see time like never before.
⚙️ Core Features
✅ NY Midnight→Midnight Session — resets automatically each new day.
✅ Nine Independent Time Cycles:
15 Hours
12 Hours
9 Hours
6 Hours
3 Hours
90 Minutes
30 Minutes
10 Minutes
3 Minutes
✅ Full Customization per Cycle:
Individual color, line style (solid, dashed, dotted), and thickness.
Toggle visibility of each cycle.
✅ Minimalist Performance:
Built under strict Pine v6 compliance.
Optimized line handling and auto-cleanup (no overload).
Only today’s grid shown — nothing redundant.
✅ Auto-Reset Logic:
The indicator automatically clears old data at every New York midnight, ensuring only the current trading day remains visible.
🧩 Best Used For
Time-based confluence mapping (ICT-style intraday precision)
Liquidity cycles and killzone tracking
Intraday swing rhythm visualization
Building high-probability time models aligned with session structures
🧠 How It Works
Each vertical cycle line represents a repeating interval within the current trading day.
Larger cycles (3H, 6H, 12H, 15H) establish macro time rhythm, while smaller ones (90m → 3m) highlight microstructure and reaction windows.
Every interval is plotted in real-time — precisely synchronized with New York time.
🧱 Technical Specs
Language: Pine Script v6
Overlay: Yes
Max Lines: 500 (Auto-managed)
Performance: Sub-millisecond execution
Compatibility: All timeframes
⚡ Why “Timebender”?
Because it’s not about predicting — it’s about perceiving time differently.
This grid lets you bend perception, align your trading flow to cyclical timing, and synchronize decision-making with the natural cadence of market energy.
🏁 Version History
v1.0 — Stable Build: Verified clean, no errors or warnings.
Full NY → NY daily cycle handling.
Individual cycle customization and visibility toggles.
Automatic array purge and line management.
💬 Final Note
"Price is the effect. Time is the cause."
— Timebender
Timing and Sessions backend frameworkTiming_Library — Timing Utilities (Pine v6)
Purpose
A lightweight timing toolkit for indicator development. It parses session strings, returns start/stop timestamps for the current day, and resolves a UTC offset for common TradingView time zones. The library itself does not draw, alert, or place trades and must be called by a parent indicator.
Core Functions
- extractHourMinute(sessionInput): Parses "HHMM" into .
- ExtractStartStopTimestamp(sessionInput): Accepts "HHMM-HHMM" and returns for the current date.
- GetUTCOffset(): Maps syminfo.timezone to an integer UTC offset (hours), with fallback parsing for UTC± patterns.
Key Notes
- Backend-only helper library: no signals, no alerts, no order execution.
- Designed for educational, research, and indicator-development purposes.
- No external data requests and no user data handling.
- Time zone handling is best-effort; behavior may vary with regional DST rules.
Usage
1) Import this library into your indicator.
2) Provide session inputs like "0930-1030" to ExtractStartStopTimestamp for same-day timestamps.
3) Use GetUTCOffset to align session logic or convert between local and exchange time where needed. Visualization and alerting remain in the parent script.
Disclaimer
This library does not provide financial advice, trade recommendations, or performance guarantees. Use at your own risk for research and educational development only.
Initial Daily Range backend frameworkIDR_Library — Back-End Logic (Pine v6)
Purpose
This library provides the backend framework for implementing DR/IDR (Initial Daily Range) strategies.
It manages range data, retest logic, and optional visualization elements such as midlines and bands.
The library by itself does not draw, alert, or trade — it requires an external indicator that calls its functions.
Core Functionality
- SessionActive(): Tracks high/low/close data for the initial session range and updates zone boxes.
- DrawMidLine(): Calculates Fibonacci-based internal levels (upper/mid/lower) and optionally draws them.
- ExtendBands(): Extends the drawn lines and boxes dynamically over time.
- CheckForRetest(): Detects and validates retest sequences (First Leaving → Retest → Second Leaving).
- ResetVals(), GetNewDrIdr(): Utility functions for initialization and reset handling.
Data Structures
- CandleData, DrIdr, DrIdrSettings, Retest, RetestZone, RetestZones
Key Notes
- This library is modular and backend-only: it produces no visual output or alerts unless instructed by the parent script.
- It does not contain any financial signals or trading logic.
- Designed purely for educational, research, and indicator-development purposes.
- No external data requests or user information handling.
Usage
1. Import the library into a separate indicator script.
2. Create an instance of DrIdr and configure DrIdrSettings.
3. Call SessionActive(), DrawMidLine(), and ExtendBands() during your session.
4. Use CheckForRetest() to track range retest behavior; handle visualization and alerting in your indicator.
Disclaimer
This library does not provide financial advice, trade recommendations, or guaranteed performance.
Use at your own risk and only for research or educational development.
Last All-Time High (ATH) — By yarinit shows the recant all time high and then you can detact where was the recant all time high without searching it
GOLD SL CANDLEPIPS🟡 GOLD SL Distance + Position Size (500 $ Fixed Risk)
This indicator displays two essential pieces of information directly on the chart:
1. The Stop-Loss distance — measured from the candle close to the end of the wick.
• For long trades, the distance is calculated from the close to the low.
• For short trades, it’s from the high to the close.
• The result is shown as a clean numeric value, placed just above or below each candle, without any lines or labels cluttering the chart.
2. The required position size (in lots) to risk a fixed amount of 500 USD on that distance.
• This script includes a GOLD preset, based on the standard value of 10 USD per point per lot.
• The calculation follows this rule:
Lots = round(500 / (Distance_in_points × 10))
→ Equivalent to Lots = round(50 / Stop_in_points).
• Example:
• If the wick is 5 points, the script shows “5 | 10” → 5 pt stop = 10 lots for a 500 USD risk.
• If the wick is 8 points, it shows “8 | 6”, matching the official GOLD risk table.
⸻
⚙️ Main Features
• Works with Points, Ticks, or Pips (unit selectable).
• Shows both Stop-Loss distance and corresponding lot size near the candle.
• Fully customizable colors, font size, and text transparency.
• Offsets allow you to move the numbers vertically or horizontally on the chart.
• Option to display values for the current candle only, or for the last N candles.
• The GOLD preset can be disabled to use a custom value per unit (e.g., $/pip/lot, $/tick/lot).
⸻
🧠 Ideal Use Case
This tool is designed for Gold (XAU/USD) traders who want to:
• Instantly see their Stop-Loss distance in real time,
• And know exactly how many lots to use to maintain a consistent 500 USD risk per trade.
It’s a clean, minimalist money-management indicator that helps you stay precise, consistent, and disciplined in your risk control — without leaving the chart.
Initial Daily Range Back-End LibraryLibrary "IDR_Lib"
Back-End Logic for DR/IDR Strategy
SessionActive(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
DrawMidLine(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
ExtendBands(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
CheckForRetest(drIdr, settings, RetestZones, currentUpperThreshold, currentLowerThreshold)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
RetestZones (RetestZones)
currentUpperThreshold (float)
currentLowerThreshold (float)
ResetVals(drIdr)
Parameters:
drIdr (DrIdr)
GetNewDrIdr()
CandleData
Fields:
High (series float)
HighClose (series float)
Low (series float)
LowClose (series float)
BarIndex (series int)
DrIdrSettings
Fields:
CloseColor (series color)
UpperLineColor (series color)
MidLineColor (series color)
LowerLineColor (series color)
UpperBandColor (series color)
LowerBandColor (series color)
UpperLineWidth (series int)
MidLineWidth (series int)
LowerLineWidth (series int)
MarkCandles (series bool)
RetestZone
Fields:
UpperBorder (series float)
LowerBorder (series float)
StartBar (series int)
InZoneValid (series bool)
InZoneBar (series int)
InZoneBox (series box)
BreakoutValid (series bool)
BreakoutBar (series int)
BreakoutBox (series box)
RetestZones
Fields:
ArrRetestZones (array)
ArrRetestZonesLength (series int)
Retest
Fields:
FirstLeaving (series bool)
FirstLeavingBar (series int)
RetestOccured (series bool)
RetestBar (series int)
SecondLeaving (series bool)
Bullish (series bool)
Bearish (series bool)
RetestValid (series bool)
RangeValid (series bool)
DrIdr
Fields:
StartHour (CandleData)
Retest (Retest)
CloseZoneBox (series box)
UpperZoneBox (series box)
LowerZoneBox (series box)
UpperLine (series line)
UpperLevel (series float)
MidLine (series line)
MidLevel (series float)
LowerLine (series line)
LowerLevel (series float)
Session Boxes & Key Levels (Daily Prev HL)Session Boxes & Key Levels
Draws intraday session ranges and key higher-timeframe levels to aid structure and bias.
Session boxes: Shades the Asia, Europe, and US sessions with live-updating highs/lows. Timezone is user-selectable.
Previous Day levels (PDH/PDL): Plots yesterday’s Daily high and low, auto-extends across the current day.
Previous Week levels (PWH/PWL): Plots last week’s high and low, auto-extends across the current week.
Works on any timeframe and updates in real time; labels are added for quick identification.
Use it to spot session ranges, liquidity sweeps, and reactions at prior day/week extremes.
ADX and DI [AlexKo]ADX and DI indicator.
Plots +DI, −DI, and ADX to gauge trend strength and direction. DI Length controls the directional movement calculation; ADX Smoothing sets the RMA period for ADX; ADX Threshold draws a reference line for identifying strong-trend regimes. A rising ADX indicates strengthening trend; +DI above −DI suggests bullish momentum, and vice versa.
DR_IDR_LibraryLibrary "DR_IDR_Library"
Back-End Logic for DR/IDR Strategy
SessionActive(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
DrawMidLine(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
ExtendBands(drIdr, settings, drawDRIDRs)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
drawDRIDRs (bool)
CheckForRetest(drIdr, settings, RetestZones, currentUpperThreshold, currentLowerThreshold)
Parameters:
drIdr (DrIdr)
settings (DrIdrSettings)
RetestZones (RetestZones)
currentUpperThreshold (float)
currentLowerThreshold (float)
ResetVals(drIdr)
Parameters:
drIdr (DrIdr)
GetNewDrIdr()
CandleData
Fields:
High (series float)
HighClose (series float)
Low (series float)
LowClose (series float)
BarIndex (series int)
DrIdrSettings
Fields:
CloseColor (series color)
UpperLineColor (series color)
MidLineColor (series color)
LowerLineColor (series color)
UpperBandColor (series color)
LowerBandColor (series color)
UpperLineWidth (series int)
MidLineWidth (series int)
LowerLineWidth (series int)
MarkCandles (series bool)
RetestZone
Fields:
UpperBorder (series float)
LowerBorder (series float)
StartBar (series int)
InZoneValid (series bool)
InZoneBar (series int)
InZoneBox (series box)
BreakoutValid (series bool)
BreakoutBar (series int)
BreakoutBox (series box)
RetestZones
Fields:
ArrRetestZones (array)
ArrRetestZonesLength (series int)
Retest
Fields:
FirstLeaving (series bool)
FirstLeavingBar (series int)
RetestOccured (series bool)
RetestBar (series int)
SecondLeaving (series bool)
Bullish (series bool)
Bearish (series bool)
RetestValid (series bool)
RangeValid (series bool)
DrIdr
Fields:
StartHour (CandleData)
Retest (Retest)
CloseZoneBox (series box)
UpperZoneBox (series box)
LowerZoneBox (series box)
UpperLine (series line)
UpperLevel (series float)
MidLine (series line)
MidLevel (series float)
LowerLine (series line)
LowerLevel (series float)
NSF/NBF Boxes📘 NSF / NBF Extended Boxes (Wyckoff–VSA Smart Zones)
This indicator automatically detects No Supply (NSF) and No Buying / No Demand (NBF) bars using Wyckoff–VSA principles and marks them with extended boxes and a dashed 50% midline.
🟢 NSF (No Supply) — Bullish accumulation signal
🔴 NBF (No Demand) — Bearish distribution signal
Each box extends forward in time to highlight key supply/demand zones, while the dashed midline represents the equilibrium level within that bar.
When price later retests this 50% level, the script triggers a visual marker and an alert condition, helping you spot potential reversals or continuation confirmations.
🧠 Core Features
Automatic detection of No Supply / No Demand bars
Extended boxes with adjustable length and auto-extension
Midline (50%) retest alerts for precise trade timing
Optional EMA trend filter, volume check, and close bias
Works even on symbols without volume data (crypto, indices, FX)
“Test Mode” included for easy visualization and debugging
⚙️ Usage Tips
Use on 5m–4h charts for crypto or stocks to spot professional activity.
Combine with Wyckoff, VSA, or Smart Money Concepts to confirm accumulation/distribution phases.
Look for NSF retests near support in a downtrend → possible long entry.
Look for NBF retests near resistance in an uptrend → possible short entry.
🧩 Parameters
Ignore Volume: disables volume filters for markets with missing data
Use EMA Trend Filter: only confirm signals in direction of trend
Auto-extend Boxes: keeps zones projecting into future bars
Retest Alerts: triggers when price touches midline after formation
💡 Author’s Note
This tool visualizes the often-hidden behavior of smart money absorption and weak demand exhaustion.
Use it as part of a complete trading plan — not as a standalone buy/sell signal