BoxesLibLibrary "BoxesLib"
isOverlappingBox(_boxes, _top, _bottom)
Parameters:
_boxes (array)
_top (float)
_bottom (float)
isTooCloseBox(_boxes, _top, _bottom, zoneProximityPct)
Parameters:
_boxes (array)
_top (float)
_bottom (float)
zoneProximityPct (float)
createBox(_boxes, _top, _bottom, _leftBarIndex, _color, _txt, _is_breakout, numberLimit, zoneProximityPct, currentClose, isConfirmed)
Parameters:
_boxes (array)
_top (float)
_bottom (float)
_leftBarIndex (int)
_color (color)
_txt (string)
_is_breakout (bool)
numberLimit (int)
zoneProximityPct (float)
currentClose (float)
isConfirmed (bool)
manageBoxes(_boxes, _is_breakout, currentClose, isConfirmed)
Parameters:
_boxes (array)
_is_breakout (bool)
currentClose (float)
isConfirmed (bool)
インジケーターとストラテジー
Z-PointThe Z Point indicator is a clean and effective tool for tracking key intraday price levels. It focuses on the high and low of a specific target candle to provide daily reference points, helping traders gauge market sentiment and identify potential support and resistance zones.
How It Works:
Previous Day's Range (Gray Box): At the start of a new trading session, the indicator automatically identifies the high/low range of the target candle from the previous day. This range is then projected onto the current day as a gray box, visually highlighting a key area of interest that may act as support or resistance.
Current Day's Levels (Horizontal Lines): Once the target candle for the current day has formed, the gray box is automatically removed. The indicator then plots two new horizontal lines: a green line for that candle's high and a red line for its low. These lines serve as the primary reference levels for the remainder of the day.
Key Features:
Dynamic Reference: Automatically shifts focus from the previous day's range to the current day's levels.
Clean Visuals: Uses a simple box and line system that doesn't clutter the chart.
Intraday Analysis: Perfect for day traders looking to capitalize on reactions to key daily levels.
This indicator is best used on lower timeframes, such as the 5-minute chart.
THE ELVINATORTHE ELVINATOR is my trend-following momentum indicator built on the 20 EMA, 50 EMA, and 200 EMA, designed for trading **XAUUSD during the New York session (9:30–17:00 NY time), Monday through Friday**.
**How to trade it:**
* **Trend filter:** Only take **longs above the 200 EMA** and **shorts below the 200 EMA**. This keeps trades aligned with Gold’s dominant direction.
* **Long setups:** A **20 EMA cross above the 50 EMA** signals bullish momentum. Best entries come after a pullback into the 20–50 EMA zone followed by strong continuation candles.
* **Short setups:** A **20 EMA cross below the 50 EMA** signals bearish momentum. Look for pullbacks into the EMA zone and rejection before continuation lower.
* **Timing:** Focus on NY open and high-volume moves. Avoid choppy conditions and late-session exhaustion.
* **Risk & exits:** Place stops beyond recent swings or EMA structure. Targets can be prior highs/lows or scaled with trend continuation.
THE ELVINATOR is built for **structure, patience, and disciplined execution**, allowing traders to capitalize on Gold’s volatility without chasing noise.
Volume Edge Pro[wjdtks255]Volume Edge Pro: Indicator Description
Volume Edge Pro is an advanced volume analysis tool designed to identify institutional accumulation and significant supply levels. Unlike standard volume bars, this indicator categorizes trading volume into four distinct types based on price action and historical comparisons, helping traders spot high-probability breakout opportunities.
Key Components:
Blue Bars (PPV - Pocket Pivot Volume): Indicates institutional accumulation. It appears when up-day volume exceeds the highest down-day volume of the last 10 trading sessions.
Green Bars (RGV - Recent Green Volume): Represents strong buying pressure where up-day volume is higher than the 50-period moving average.
Red Bars (RRV - Recent Red Volume): Signifies heavy supply or selling pressure where down-day volume is higher than the 50-period moving average.
Grey Bars: Represents standard market volume without significant institutional involvement.
Trading Strategy (How to Trade)
1. Identifying Accumulation (The Base)
Look for multiple Blue Bars (PPV) during a consolidation phase or within a "base." This suggests that "Smart Money" is quietly accumulating shares without significantly driving up the price yet.
2. The Buy Signal
The ideal entry point is when the price breaks out of a consolidation resistance level, especially when the breakout is confirmed by a Blue (PPV) or Green (RGV) bar. The presence of PPV signals within the base increases the reliability of the breakout.
3. Overcoming Supply (The RRV Rule)
When a Red Bar (RRV) appears, it marks a level of "unconsumed supply."
Treat the high of the RRV candle as a resistance level.
A bullish reversal or continuation is confirmed only when the price reclaims the high of the RRV day or when subsequent PPVs/RGVs overwhelm the previous selling volume.
4. Risk Management
If a massive Red Bar (RRV) appears after a long uptrend and the price breaks below the prior support, it may indicate institutional distribution (selling), signaling a time to exit or tighten stop-losses.
Simple ema and sma cross
A simple EMA and SMA cross is an indicator that uses alpha from two moving averages: SMA (simple moving average) and EMA (exponential moving average).
The point where the EMA and SMA cross is usually a good place to enter a position.
The indicator includes smoothing settings to help you find the right calibration for your trading needs.
It also marks signals with triangles for easier use and includes alerts so you never miss a cross.
ATR Bands (MA Distance)ATR Bands (MA Distance) plots volatility-based bands at a multiple of ATR away from a selected moving average.
Unlike percentage envelopes or standard deviation bands, this indicator measures distance from the moving average using ATR, representing the market’s normal “breathing range” rather than statistical probability.
Key Features
The center line is a selectable moving average (EMA, SMA, RMA/Wilder, or WMA).
Upper and lower bands are calculated as:
Moving Average ± ATR × Multiplier
Band width automatically adapts to changing market volatility.
Designed for consistent use across different markets and timeframes without parameter re-optimization.
Non-repainting: all values are calculated only from confirmed historical bars.
Intended Use
ATR Bands (MA Distance) is best used as a context and preparation tool , not as a direct entry or exit signal.
Typical use cases include:
Identifying areas where price is extended relative to its recent volatility.
Visualizing normal vs. stretched price distance from the moving average.
Supporting range-based analysis or trade preparation when combined with other indicators (e.g., oscillators).
Important Notes / How NOT to Use
This indicator does NOT generate buy or sell signals by itself .
Touching or crossing a band does not imply an automatic reversal.
In strong trending markets, price may stay outside the bands for extended periods.
ATR Bands should not be interpreted as overbought/oversold levels on their own.
This indicator does NOT repaint. Once a bar is closed, its values will not change.
For best results:
Use ATR Bands as a preparation zone, then wait for confirmation from your own entry logic.
Disable or ignore band-based mean-reversion ideas during strong trend conditions.
Concept Summary (Short)
ATR Bands (MA Distance) visualize how far price has moved from its moving average in terms of volatility, without repainting and without relying on percentage deviation or statistical assumptions.
Optional Short Description (Preview)
Volatility-based, non-repainting ATR bands plotted at a distance from a moving average.
Designed for market context and trade preparation — not standalone signals.
Sarina - 6 EMA Smart Signals - V12292025Overview
This advanced trend-following indicator combines 6 Exponential Moving Averages (EMA) into three synchronized layers to provide a comprehensive view of market structure, momentum, and potential future direction. Designed with visual clarity and professional analysis in mind, it uses a dynamic "ribbon" system and a composite momentum engine.
Key Features
Triple-Layer Ribbon System: EMAs are paired in three sets (Fast, Medium, Slow). The space between each pair is dynamically colored based on the relationship between price action and momentum.
4-Stage Dynamic Coloring: The fill color isn't just about the trend; it's about strength.
Strong Bullish/Bearish: Trend and Momentum are aligned.
Weak Bullish/Bearish: Trend is present, but momentum is fading.
Composite Trend Projection: Using a physics-based velocity and acceleration algorithm, the indicator plots three non-linear projection curves to forecast potential EMA paths.
Fully Customizable Signals: Includes 12 different signal types (EMA Crossovers and MACD Zero-Cross) for each layer, all toggleable and pre-configured for a clean chart experience.
Scale-Stable UI: Optimized for TradingView’s scaling system, ensuring projection lines stay perfectly aligned with price action during manual chart adjustments.
How to Use
Trend Ribbon: Look for "Strong" colors (Solid Green/Red) for high-probability trend following.
Soft Transparency: Use the opacity settings (35%, 50%, 75%) to overlay multiple layers without cluttering your view.
Projections: Observe the curvature of the projection lines. A flattening curve often precedes a trend reversal or consolidation.
Signal Layers: Enable EMA signals for trend entries and MACD signals for early momentum warnings.
Settings
Global Colors: Customize the 4-stage trend colors to fit your dark or light theme.
Layer Controls: Independent periods for all 6 EMAs and 3 MACD oscillators.
Projection Toggle: Enable/Disable the curve forecasting system.
Historical Returns [BigBeluga]🔵 OVERVIEW
The Historical Returns indicator visualizes daily and monthly return data to help traders assess seasonal performance and volatility behavior. It provides a clean and informative dashboard showing the current month’s daily return bubbles, monthly return curves, and a snapshot of the current month and year performance. This tool is ideal for spotting recurring return patterns and understanding the broader profitability context of a symbol.
🔵 CONCEPTS
Daily Return Bubbles: Each trading day is analyzed for its return percentage, and plotted as a bubble with size proportional to the return magnitude.
Monthly Performance Curves: Average or cumulative returns are calculated and plotted to show how the current month is performing relative to historical averages.
Current Year Return: Current year performance as a single return value, giving traders context on long-term profitability.
Current Month Average Return: Current month average performance as a single return value, giving traders context on short-term profitability.
Extreme Return Labels: Optionally highlights daily returns above +4% or below -4% with labeled percentages for spike recognition.
🔵 FEATURES
Shows daily return bubbles (1%–7%+), color-coded by direction.
Labels monthly returns with the month name and percentage value.
Displays a performance dashboard with:
Daily return heatmap for the current month.
Average return for the current month.
Year-to-date return.
Toggle between average and cumulative modes for monthly return curves.
Clearly marks days with abnormal return spikes using optional labels.
Clean fallback warning if not on a daily chart ("⚠️USE DAILY TIMEFRAME").
Custom color themes for bullish and bearish values.
🔵 HOW TO USE
Use the monthly return curve to compare how the current month is performing against historical averages.
Look for clusters of positive or negative bubbles as signals of strong directional weeks.
Watch extreme return labels for volatility spikes or catalyst days.
Use year-to-date return to assess how the asset is trending in the broader macro cycle.
Combine with other BigBeluga tools to align trades with historically favorable periods.
🔵 CONCLUSION
Historical Returns is your visual companion for return analytics — helping you identify profitable months, detect volatility surges, and understand historical seasonality at a glance. With a clean dashboard and insightful overlays, this tool supports better timing and improved statistical edge in both short- and long-term trades.
NQ vs ES-RTY-YM Divergence MTF OSOpen source script version for my NQ vs ES-RTY-YM Divergence MTF indicator
Nadaraya-Watson Envelope + EMA Filter (Optimized for BTC)Best Way to Use This Nadaraya-Watson EnvelopeThis indicator is not a standalone "holy grail" system — it's a powerful predictive tool that estimates where price is "likely" to go based on historical patterns.Core Idea:The orange line = predicted "fair value" or mean price path
The blue cloud = expected range (dynamic support/resistance)
Price tends to mean-revert to the orange line
Best Practices:Trade bounces in ranging markets:BUY at lower band (green) when price is below orange line
SELL at upper band (red) when price is above orange line
Target: the orange line or opposite band
Trade breakouts in trending markets:If price breaks and closes strongly outside the cloud → potential trend start
Wait for pullback to orange line for entry in trend direction
Best timeframes:5m–15m: Scalping bounces
1H–4H: Swing trading mean reversion
Add confluence for higher win rate:Only take BUY if price is above EMA 200 (uptrend bias)
Combine with volume spike or RSI oversold/overbought
Use with support/resistance levels
Risk management:Stop loss: just outside the envelope
Take profit: at orange line or next band
enjoy
BO Rule: Body & Filter Duplicates** **
**BO Rule: Advanced Breakout & Retest (Body Only + Strict Sequence)**
This indicator is designed for Price Action traders who focus on **Structure Break & Retest** setups. Unlike standard fractal indicators, this script employs a strict "New Price Rule" and "Body-Only" logic to filter out noise and identifying high-probability trend reversals.
**Key Logic & Features:**
1. **Classic Levels (Body Only):**
* Resistance is defined by a Green candle followed by a Red candle.
* Support is defined by a Red candle followed by a Green candle.
* **Crucial:** The script strictly uses Candle **Bodies** (Open/Close) to define levels, ignoring Wicks to avoid fakeouts caused by market volatility.
2. **Strict Sequence (New Price Rule):**
* The "Reset Logic" ensures that once a signal is confirmed, all previous structure levels are considered obsolete.
* The script resets its memory and only looks for *new* structure levels formed *after* the latest confirmed signal.
3. **Breakout & Retest Confirmation:**
* The script waits for a valid breakout of the classic level.
* It then monitors for a **Retest & Rejection**.
* Signal is generated only when price revisits the broken level and closes respecting the new direction.
4. **Trend Filter (No Duplicates):**
* **Option Included:** You can enable "Filter Duplicate Signals" to see only Trend Reversals (e.g., Buy -> Sell -> Buy). This hides consecutive signals in the same direction to keep the chart clean.
5. **MTF Dashboard:**
* Monitor up to 5 different timeframes simultaneously on one chart.
**How to Use:**
* **Green Dashed Line:** Bullish Confirmation (Breakout + Retest).
* **Red Dashed Line:** Bearish Confirmation (Breakdown + Retest).
* **Settings:** You can toggle the "Filter Duplicates" and "New Price Rule" in the settings menu.
-------------------------------------------------------
** **
**BO Rule: 經典水平突破回踩 (實體判斷 + 嚴格序列規則)**
這是一個專為裸K交易者 (Price Action) 設計的突破回踩指標。與傳統指標不同,它採用了嚴格的「新價格規則」與「僅看實體」邏輯,能有效過濾假突破並識別趨勢反轉。
**核心邏輯與功能:**
1. **經典水平 (僅看實體 Body Only):**
* 阻力位:由「綠K」接「紅K」形成。
* 支撐位:由「紅K」接「綠K」形成。
* **重點:** 系統僅使用 K棒實體 (收盤/開盤) 來定義水平,完全忽略影線 (Wicks),以避免影線造成的假訊號。
2. **新價格規則 (嚴格序列):**
* 採用「最新優先」原則。一旦當前訊號確認,之前所有的舊結構水平立即作廢。
* 系統只會尋找在「最新訊號之後」形成的新水平,確保交易邏輯符合當下的市場結構。
3. **突破回踩確認:**
* 偵測到實體突破後,系統會進入監控模式。
* 只有當價格回踩該水平並成功「拒絕」(收盤守住) 時,才會發出訊號。
4. **過濾重複訊號 (只看反轉):**
* **設定選項:** 您可以勾選「過濾重複方向訊號」。
* 勾選後,若當前是多頭,系統會隱藏後續的多頭訊號,直到出現空頭訊號為止 (呈現:多 -> 空 -> 多),讓圖表更乾淨。
5. **多週期 (MTF) 監控:**
* 可同時監控 5 個不同時間級別的突破狀態。
**使用說明:**
* **綠色虛線**:多頭確認 (5 多)。
* **紅色虛線**:空頭確認 (5 空)。
VaRz BTC/Gold Risk MeterVaRz Risk Meter (BTC vs Risk-On & Gold Safe-Haven Proxy)
The VaRz Risk Meter is a macro sentiment oscillator designed to measure Bitcoin’s relative strength and directional bias using key risk-appetite and safe-haven flows.
Indicator Components
VIX → Market fear & volatility benchmark
NASDAQ 100 (NDX) → Primary risk-on proxy (growth/tech capital flow)
Gold (XAUUSD) → Safe-haven strength alternative to USD index
Bitcoin (BTCUSDT) → Used only for normalization reference, not bias calculation
Core Logic
All assets are normalized on a 0–100 scale using a 100-period rolling window to create a balanced comparison across markets.
The Bitcoin Macro Bias Histogram is calculated as:
NASDAQ strength − VIX fear − Gold safe-haven strength
This produces a macro directional regime for Bitcoin:
Market Regimes Interpretation
Indicator State Meaning for BTC
NASDAQ high + VIX low + Gold weak Risk-On environment → Bullish for Bitcoin
Gold strong + VIX rising + NASDAQ weak Risk-Off / flight to safety → Bearish pressure on BTC
All assets near 50 with no trend Neutral / Sideways → Macro indecision
How to Use
This is not a direct entry signal, but a macro bias filter
Best combined with:
Market Structure, Liquidity zones, Orderflow, Volume analysis, and Elliott Wave context
Bias becomes more reliable on higher timeframes (1W, 1M) but works on any chart
Key Insight
Bitcoin behaves as a hybrid risk asset. This indicator helps track when capital is:
Rotating into risk markets (favorable for BTC)
or
Seeking protection in gold and volatility hedges (unfavorable for BTC)
The histogram visually maps these shifts to give traders a clear macro regime awareness in one window.
MTG v2MTG v2 is a complete trend-following trading system that combines:
PSAR (Parabolic SAR) - Trend direction
200 EMA - Trend direction
EMAs (5, 13, 50) - Momentum confirmation
AMA (Adaptive Moving Average) - Intelligent exits
Smart Filters - Volume, ATR, choppy market detection
Purpose: Catch strong trends early and ride them for maximum profit.
CSA Infinity BridgeCSA Infinity Bridge - Major Update: Full Transparency + Stricter Consensus
Update Notes (December 29, 2025):
- Big improvements based on real-user feedback!
- This version eliminates the confusion that sometimes occurred when the dashboard showed near-unanimous agreement (like 13/14) but one indicator was silently disagreeing.
Key Changes:
- All 14 indicators are now fully visible in the dashboard. Added a dedicated "TTM" column for the standalone TTM Wave (previously hidden). No more guessing which indicator is the holdout—you’ll see every single Bull/Bear vote clearly.
- Stricter consensus thresholds for higher-conviction signals:
- Strong Bullish/Bearish now requires 12+ out of 14 (previously 11+)
- Trending ↑/↓ requires 9+ out of 14 (previously 8+)
- This reduces whipsaws and makes LONG/SHORT signals more reliable, especially for novice traders.
Keeps the popular OBV replacement (volume confirmation instead of basic candle color).
- Perfect for anyone who wants a clean, trustworthy consensus dashboard without hidden surprises. Ideal for futures, stocks, crypto—any market with volume.
- Test it, compare it to the previous version, and let me know what you think!
Breakout SignalShow big bars closing on the high or low
This script allows you to find highlighted bars (bullish green and bearish red ) for bars that close with a particular Internal Bar Strength and ATR. I set the default at showing bars with an ATR > ATR10 and the IBS can be effected to show if the bar closes at its high or low.
I also put a EMA filter here. i usually set this quite low to about 7 but can be changed depending on your preference.
NWOG Predictive AnalysisThis indicator answers the question, if it's mid week and NWOG hasn't been returned to yet, what are the odds it still gets hit? It gives you a live probability based on the current day and updates as the week progresses.
NWOG Return AnalysisThis indicator tracks the NWOG and shows what percentage of each weekday price returns to it. It tells you historically how often Monday, Tuesday, Wednesday, etc. see a NWOG touch.
Quality-Controlled Trend Strategy v2 (Expectancy Focused)This script focuses on quality control rather than curve-fitting.
No repainting, no intrabar tricks, no fake equity curves.
It uses confirmed-bar entries, ATR-based risk, and clean trend logic so backtests reflect what could actually be traded live.
If you publish scripts, this is the minimum structure worth sharing.
Why this script exists
TradingView’s public scripts are flooded with:
repainting indicators
no stop-loss logic
curve-fit entries that collapse live
strategies that look good only in hindsight
This script is intentionally boring but honest.
No repainting.
No intrabar tricks.
No fake equity curves
The goal is quality control, not hype.
What this strategy enforces
✔ Confirmed bars only
✔ Single source of truth for indicators
✔ Fixed risk structure
✔ No signal repainting
✔ Clean exits with unique IDs
✔ Works on any liquid market
Trading Logic (simple & auditable)
Trend filter
EMA 50 vs EMA 200
Entry
Pullback to EMA 50
RSI confirms momentum (not oversold/overbought)
Risk
ATR-based stop
Fixed R:R
One position at a time
This is the minimum bar for a strategy to be considered publish-worthy.
Why this helps TradingView quality
Most low-value scripts fail because they:
hide repainting logic
skip exits entirely
use inconsistent calculations
rely on hindsight candles
This strategy forces discipline:
every signal is confirmed
every trade has defined risk
behavior is repeatable across symbols & timeframes
If more scripts followed this baseline, TradingView’s public library would be far more usable.
Valid Rejection Block FinderThis is used to find valid rejection blocks that, 1 candle closes in the right direction of the wick, 2 makes sure the wick sweeps the low of the previous candle, 3 uses ATR to find larger movements and 4, presents a data table of the probability of price coming back into the zones.
On Balance Volume (with Candles)OBV+ is an enhanced On Balance Volume indicator that visualizes volume flow either as a line or candlestick-style OBV bars. It shows whether volume is accumulating or distributing, and includes optional moving-average smoothing and Bollinger Bands on OBV to identify trend direction, consolidation, and breakout strength.
Use-Cases
This indicator is especially useful for:
Bullish setup:
Price sideways + OBV rising → accumulation
Bearish setup:
Price rising + OBV flat/falling → distribution
Breakout confirmation:
Price breakout + OBV breaking BB → high conviction move
Options selling filter:
Flat OBV + compressed BB → range-bound market
MTF EMAs: 200 EMA (1hr & 15m), 8 EMA (5m)Using the 200 ema on 1hr and 15 min timeframe to ID entry points for scalping.
Padder Scalp - Manipulation Triangle + First 15m Session BoxThis indicator combines intraday manipulation detection with session‑based structure and key candlestick pattern labeling to support precision scalp trading.
1. Manipulation Candle Detection (Daily ATR‑Based)
The script calculates the Daily ATR(14) and compares each intraday candle’s range to it.
If a candle’s range is ≥ 20% of the daily ATR, it is flagged as a potential manipulation candle.
A purple triangle is plotted beneath any candle that meets this threshold, helping traders quickly spot abnormal volatility spikes that often precede liquidity grabs or engineered moves.
2. First 15‑Minute RTH Session Box (9:30–9:45 AM)
Designed for use on a 15‑minute chart, the script automatically identifies the first bar of the regular trading session (RTH).
When the 9:30–9:45 candle prints:
- Its high and low are captured
- A session box is created using those levels
- The box extends across the entire trading day
This provides a consistent structural reference point for opening‑range dynamics, liquidity sweeps, and intraday bias.
3. Automatic Box Extension
Once the first RTH candle is detected, the script draws a blue box from that candle’s high/low and continuously extends it to the right for the remainder of the session.
This creates a persistent visual anchor for:
- Breakouts
- Retests
- Rejections
- Mean‑reversion scalps
4. Candlestick Pattern Detection + Labels
The script identifies and labels four high‑value reversal/continuation patterns:
- Bullish Engulfing → green label above the candle
- Bearish Engulfing → red label below the candle
- Hammer → yellow label below the candle
- Inverted Hammer → orange label above the candle
These labels help traders quickly spot actionable price‑action signals without manually scanning every bar.
Overall Purpose
This tool blends volatility‑based manipulation detection, opening‑range structure, and real‑time candlestick pattern recognition into a single, clean visual system.
It’s built for scalpers and intraday traders who rely on:
- Opening‑range levels
- Liquidity cues
- Manipulation signals
- Price‑action confirmation
to time entries with precision.






















