Trailing Cumulative Volume DeltaShort Description:
A dynamic volume delta indicator that calculates a trailing sum of net buying/selling pressure over a user-defined number of recent bars, offering a more adaptive view of order flow momentum compared to fixed-anchor CVD.
Overview:
The Trailing Cumulative Volume Delta (TCVD) indicator provides a powerful way to analyze market sentiment by tracking the net difference between buying and selling volume. Unlike traditional Cumulative Volume Delta (CVD) indicators that typically reset at fixed intervals (e.g., daily, weekly), the TCVD calculates a rolling sum of volume delta over a specified number of recent bars. This "trailing" approach offers a more fluid and responsive measure of recent order flow dynamics.
How it Works:
Per-Bar Delta Calculation: For each bar on your chart, the indicator first calculates the net Volume Delta. This is done by looking at a finer, user-configurable Lower Timeframe (e.g., 1-minute data for a 15-minute chart bar) to determine the aggressive buying vs. selling volume within that bar.
Trailing Sum: The indicator then sums these individual per-bar net deltas over a user-defined Trailing Bars lookback period. For example, if "Trailing Bars" is set to 20, the TCVD value will represent the cumulative net delta of the last 20 bars.
Visualization:
The TCVD is plotted in a "MACD-Columns-Style" in a separate pane.
Teal: When the TCVD value is increasing (suggesting growing net buying pressure or diminishing net selling pressure over the trailing period).
Red: When the TCVD value is decreasing (suggesting growing net selling pressure or diminishing net buying pressure over the trailing period).
White: When it is returning to the mean.
How to Interpret and Use TCVD:
Trend Strength & Momentum:
A rising TCVD suggests that, on average over the trailing period, buying pressure is dominant or strengthening. This can confirm bullish price action or indicate underlying strength.
A falling TCVD suggests that selling pressure is dominant or strengthening, potentially confirming bearish price action or indicating weakness.
Divergences:
Unlike other Divergences, the CVD has two different types of Divergences: a) Absorption and b) Exhaustion. You only want to trade the Absorption pattern.
Zero Line Crossovers:
TCVD crossing above the zero line can indicate a shift towards net positive buying pressure over the lookback period.
TCVD crossing below the zero line can indicate a shift towards net positive selling pressure.
Confirmation: Use TCVD to confirm breakouts or breakdowns. A price breakout accompanied by a strongly rising TCVD is generally more reliable.
Key Settings:
Trailing Bars: (Default: 10)
Determines the number of recent bars to include in the cumulative delta sum.
Shorter periods make the TCVD more responsive to immediate changes.
Longer periods provide a smoother, longer-term view of order flow.
Use custom timeframe: (Checkbox, Default: false)
Allows you to override the automatic selection of the lower timeframe for delta calculation.
Timeframe for Delta Calculation: (Default: "1" - 1 minute)
Specifies the lower timeframe data used to calculate the volume delta for each individual chart bar.
Choosing a very fine timeframe (e.g., seconds) can provide high precision but may be limited by data availability or processing load.
If "Use custom timeframe" is unchecked, the script attempts to choose a sensible default based on your chart's timeframe (e.g., "1S" for second charts, "1" for intraday, "5" for daily, "60" for weekly+).
Examples:
Confirming Breakout Strength:
Price breaks out above a significant resistance level.
If the TCVD is also sharply rising and has perhaps crossed above its zero line, it provides confirmation that strong buying interest is fueling the breakout, increasing confidence in its validity.
Important Notes:
This indicator requires reliable volume data from your broker/data feed to function correctly. If your chart does not have volume, or if the volume data is unreliable, the TCVD will not be accurate.
Like all indicators, TCVD is best used as part of a comprehensive trading strategy, in conjunction with price action analysis and other indicators or tools.
Experiment with the Trailing Bars and Timeframe for Delta Calculation settings to find what best suits your trading style, the asset you are analyzing, and the chart timeframe you are using.
Feel free to modify this, add your personal touch, or include specific screenshots when you publish!
Cerca negli script per "weekly"
Precision LevelsThis open-source Support and Resistance Indicator helps traders plot key price levels where the market may reverse or consolidate. By plotting support and resistance zones based on historical price action, it provides clear visual cues for potential entry and exit points across various timeframes.
Customizable Settings: Adjust visual styles to suit your trading strategy.
Multi-Timeframe Support: View and plot levels from higher timeframes using the monthly and weekly levels.
User-Friendly: Lightweight design with clear plotting for easy integration into any setup.
How It Works:
The indicator plots simple Support and resistance. Zones are labeled monthly, weekly, and daily
Usage:
Apply the indicator to your chart.
Enter a value for each support and resistance level. Drag and Adjust on the chart to your liking.
Use the plotted levels to identify potential reversals, breakouts, or stop-loss placements.
Combine with other tools (e.g., trendlines or oscillators) for confirmation.
Note: This is the open-source version of my previously protected Support and Resistance Indicator. The protected version is flagged and hidden from community and no longer maintained. Feel free to explore and modify the code to fit your needs! For feedback or suggestions, leave a comment below or message me direct.
Solar Cycle (SOLAR)SOLAR: SOLAR CYCLE
🔍 OVERVIEW AND PURPOSE
The Solar Cycle indicator is an astronomical calculator that provides precise values representing the seasonal position of the Sun throughout the year. This indicator maps the Sun's position in the ecliptic to a normalized value ranging from -1.0 (winter solstice) through 0.0 (equinoxes) to +1.0 (summer solstice), creating a continuous cycle that represents the seasonal progression throughout the year.
The implementation uses high-precision astronomical formulas that include orbital elements and perturbation terms to accurately calculate the Sun's position. By converting chart timestamps to Julian dates and applying standard astronomical algorithms, this indicator achieves significantly greater accuracy than simplified seasonal approximations. This makes it valuable for traders exploring seasonal patterns, agricultural commodities trading, and natural cycle-based trading strategies.
🧩 CORE CONCEPTS
Seasonal cycle integration: Maps the annual solar cycle (365.242 days) to a continuous wave
Continuous phase representation: Provides a normalized -1.0 to +1.0 value
Astronomical precision: Uses perturbation terms and high-precision constants for accurate solar position
Key points detection: Identifies solstices (±1.0) and equinoxes (0.0) automatically
The Solar Cycle indicator differs from traditional seasonal analysis tools by incorporating precise astronomical calculations rather than using simple calendar-based approximations. This approach allows traders to identify exact seasonal turning points and transitions with high accuracy.
⚙️ COMMON SETTINGS AND PARAMETERS
Pro Tip: While the indicator itself doesn't have adjustable parameters, it's most effective when used on higher timeframes (daily or weekly charts) to visualize seasonal patterns. Consider combining it with commodity price data to analyze seasonal correlations.
🧮 CALCULATION AND MATHEMATICAL FOUNDATION
Simplified explanation:
The Solar Cycle indicator calculates the Sun's ecliptic longitude and transforms it into a sine wave that peaks at the summer solstice and troughs at the winter solstice, with equinoxes at the zero crossings.
Technical formula:
Convert chart timestamp to Julian Date:
JD = (time / 86400000.0) + 2440587.5
Calculate Time T in Julian centuries since J2000.0:
T = (JD - 2451545.0) / 36525.0
Calculate the Sun's mean longitude (L0) and mean anomaly (M), including perturbation terms:
L0 = (280.46646 + 36000.76983T + 0.0003032T²) % 360
M = (357.52911 + 35999.05029T - 0.0001537T² - 0.00000025T³) % 360
Calculate the equation of center (C):
C = (1.914602 - 0.004817T - 0.000014*T²)sin(M) +
(0.019993 - 0.000101T)sin(2M) +
0.000289sin(3M)
Calculate the Sun's true longitude and convert to seasonal value:
λ = L0 + C
seasonal = sin(λ)
🔍 Technical Note: The implementation includes terms for the equation of center to account for the Earth's elliptical orbit. This provides more accurate timing of solstices and equinoxes compared to simple harmonic approximations.
📈 INTERPRETATION DETAILS
The Solar Cycle indicator provides several analytical perspectives:
Summer Solstice (+1.0): Maximum solar elevation, longest day
Winter Solstice (-1.0): Minimum solar elevation, shortest day
Vernal Equinox (0.0 crossing up): Day and night equal length, spring begins
Autumnal Equinox (0.0 crossing down): Day and night equal length, autumn begins
Transition rates: Steepest near equinoxes, flattest near solstices
Cycle alignment: Market cycles that align with seasonal patterns may show stronger trends
Confirmation points: Solstices and equinoxes often mark important seasonal turning points
⚠️ LIMITATIONS AND CONSIDERATIONS
Geographic relevance: Solar cycle timing is most relevant for temperate latitudes
Market specificity: Seasonal effects vary significantly across different markets
Timeframe compatibility: Most effective for longer-term analysis (weekly/monthly)
Complementary tool: Should be used alongside price action and other indicators
Lead/lag effects: Market reactions to seasonal changes may precede or follow astronomical events
Statistical significance: Seasonal patterns should be verified across multiple years
Global markets: Consider opposite seasonality in Southern Hemisphere markets
📚 REFERENCES
Meeus, J. (1998). Astronomical Algorithms (2nd ed.). Willmann-Bell.
Hirshleifer, D., & Shumway, T. (2003). Good day sunshine: Stock returns and the weather. Journal of Finance, 58(3), 1009-1032.
Hong, H., & Yu, J. (2009). Gone fishin': Seasonality in trading activity and asset prices. Journal of Financial Markets, 12(4), 672-702.
Bouman, S., & Jacobsen, B. (2002). The Halloween indicator, 'Sell in May and go away': Another puzzle. American Economic Review, 92(5), 1618-1635.
CoT MK OI-Short Percentile OscillatorCoT MK OI-Short Percentile Oscillator is a weekly indicator that tracks overall market participation and commercial hedger pessimism by plotting total Open Interest and the ratio of Commercials’ short positions to Open Interest. It fetches both data series on a 1-week resolution, then calculates the user-defined upper and lower percentiles (default 80%/20%) over a configurable lookback period (default 208 weeks) entirely within the weekly timeframe. The main plots show rounded Open Interest in blue and Commercials Short/OI% in red, while the red upper bands flag overbought or over-hedged extremes and the green lower bands highlight underbought or under-hedged conditions. Traders use these percentile bands to identify when crowd participation or hedger pessimism reaches extremes that often presage market turns.
TK47 36 ChambersTK47 36 Chambers is a precision-crafted EMA (Exponential Moving Average) tool designed to help traders align with multi-timeframe trends while keeping price action clear and uncluttered. Built around the powerful 36 EMA, this script plots the current timeframe’s high, low, and median EMAs as a visual "chamber" or cloud, giving instant feedback on intrabar dynamics.
Shoutout to Insilico, who introduced the 36 EMA as a core trend-following tool — this indicator wouldn’t exist without that spark.
How It Works
Core EMA:
The central element is the 36-period EMA, applied to close, high, and low prices on your current chart.
These three EMAs form a channel or “chamber” that acts as a dynamic zone of control.
The cloud between the high and low EMA can optionally be filled to help visualize volatility.
Higher Timeframe EMAs (HTF EMAs):
Optionally displays Daily, Weekly, 4H, and 1H EMAs (all using the same configurable EMA length, default: 36).
These are interpolated smoothly between HTF candles, creating elegant transitions and avoiding jumpy plotting.
Helps traders spot broader trend bias directly on lower timeframe charts without switching views.
Customizations
Adjustable colors for each EMA layer (current + HTFs).
Toggle cloud fill on/off.
Toggle visibility of each HTF line.
Option to show labels at the edge of the chart (e.g., “W” for Weekly) for clarity.
Use Cases
Confirming trend direction across multiple timeframes.
Identifying pullback entries or mean reversion zones.
Combining with candlestick patterns, liquidity sweeps, or oscillator divergence for high-probability entries.
Notes
All EMAs use the same configurable length to keep things clean and consistent.
Interpolation ensures the HTF EMAs remain smooth and aligned with the LTF candles.
The fill between high and low EMA gives a visual representation of the market’s breathing room — useful for spotting expansions and contractions.
CoT MK_Speculators PercentileCoT MK Speculators Percentile
This indicator visualizes the weekly positioning of Non-Commercial traders (Speculators) from the CFTC’s Legacy CoT report, plotting their Long, Short, and Net positions alongside user-defined percentile bands.
• Data Source: Weekly Non-Commercial Long and Short positions via the TradingView CoT Library.
• Percentile Bands: Calculates the chosen upper and lower percentiles (default 80% and 20%) of each series over a configurable lookback period (default 208 weeks).
• Negative Shorts: Optionally inverts Short values so that larger Short exposure appears deeper below zero, improving symmetry with Long data.
• Usage:
• Speculators Long/Short/Net: Show raw or inverted position curves.
• Upper Percentile (red): Marks extreme Speculator exposure (bearish contrarian zone).
• Lower Percentile (green): Identifies low Speculator engagement (bullish contrarian zone).
Traders use these percentile bands as contrarian signals: extreme Speculator positioning often precedes market reversals.
Context MTF [Th16rry]Context MTF
A multi-timeframe trend context indicator that overlays an Exponential Moving Average (EMA) and a Weighted Moving Average (WMA) whose look-back periods adapt automatically to your chart’s timeframe. Inspired by Mike Bellafore and Brian Shannon (Multi timeframe analysis)
🔍 Overview
Context MTF helps you quickly gauge the prevailing trend and its strength by plotting two complementary moving averages in a single view:
* EMA (solid line) for smooth, responsive trend direction
* WMA (dotted line) for emphasis on recent price action
By automatically selecting period lengths that reflect meaningful market cycles, Context MTF provides intuitive context at a glance:
| Timeframe | Period | Market Cycle Represented |
| :--------: | :----: | :----------------------: |
| Daily (D) | 63 | Quarterly trend |
| Weekly (W) | 52 | Yearly trend |
| 1H (60) | 126 | Monthly trend |
| 15m (15) | 130 | Weekly trend |
| 5m (5) | 78 | Last 24 hours |
⚙️ How It Works
1. Automatic Period Selection
The script detects your chart’s timeframe and applies the appropriate look-back for both EMA and WMA.
2. Solid vs. Dotted
* EMA is drawn as a continuous solid line.
* WMA is rendered as a dotted line of the same color, highlighting short-term momentum within the broader trend.
3. Visual Trend Context
* Widening Gap : Indicates strengthening trend momentum.
* Convergence/Overlap : Suggests a market in consolidation or range.
🎯 Benefits
* Multi-Timeframe Context in a single pane—no need to switch charts.
* Instant trend strength assessment by comparing EMA vs. WMA divergence.
* Clear identification of range conditions when averages align.
* Fully automated period adjustment —set and forget.
⚙️ Settings
* Color : Shared color for both lines (default blue).
* Line Width : Adjustable via script inputs (default 2).
* Dotted WMA : Simulated using built-in dotted line styling for precise rendering.
Use Context MTF to enhance trend-based strategies, confirm breakout momentum, or filter ranging markets. Ideal for swing traders, day traders, and anyone who values clear, time-aligned trend information on every timeframe.
Camarilla Pivot Plays█ OVERVIEW
This indicator implements the Camarilla Pivot Points levels and a system for suggesting particular plays. It only calculates and shows the 3rd, 4th, and 6th levels, as these are the only ones used by the system. In total, there are 12 possible plays, grouped into two groups of six. The algorithm constantly evaluates conditions for entering and exiting the plays and indicates them in real time, also triggering user-configurable alerts.
█ CREDITS
The Camarilla pivot plays are defined in a strategy developed by Thor Young, and the whole system is explained in his book "A Complete Day Trading System" . The indicator is published with his permission, and he is a user of it. The book is not necessary in order to understand and use the indicator; this description contains sufficient information to use it effectively.
█ FEATURES
Automatically draws plays, suggesting an entry, stop-loss, and maximum target
User can set alerts on chosen ticker to call these plays, even when not currently viewing them
Highly configurable via many options
Works for US/European stocks and US futures (at least)
Works correctly on both RTH and ETH charts
Automatically switches between RTH and ETH data
Optionally also shows the "other" set of pivots (RTH vs ETH data)
Configurable behaviour in the pre-market, not active in the post-market
Configurable sensitivity of the play detection algorithm
Can also show weekly and monthly Camarilla pivots
Well-documented options tooltips
Sensible defaults which are suitable for immediate use
Well-documented and high-quality open-source code for those who are interested
█ HOW TO USE
The defaults work well; at a minimum, just add the indicator and watch the plays being called. To avoid having to watch securities, by selecting the three dots next to the indicator name, you can set an alert on the indicator and choose to be alerted on play entry or exit events—or both. The following diagram shows several plays activated in the past (with the "Show past plays" option selected).
By default, the indicator draws plays 5 days back; this can be changed up to 20 days. The labels can be shifted left/right using the "label offset" option to avoid overlapping with other labels in this indicator or those of another indicator.
An information box at the top-right of the chart shows:
The data currently in use for the main pivots. This can switch in the pre-market if the H/L range exceeds the previous day's H/L, and if it does, you will see that switch at the time that it happens
Whether the current day's pivots are in a higher or lower range compared to the previous day's. This is based on the RTH close, so large moves in the post-market won't be reflected (there is an advanced option to change this)
The width of the value relationship in the current day compared to the previous day
The currently active play. If multiple plays are active in parallel, only the last activated one is shown
The resistance pivots are all drawn in the same colour (red by default), as are the support pivots (green by default). You can change the resistance and support colours, but it is not possible to have different colours for different levels of the same kind. Plays will always use the correct colour, drawing over the pivots. For example, R4 is red by default, but if a play treats R4 as a support, then the play will draw a green line (by default) over the red R4 line, thereby hiding it while the play is active.
There are a few advanced parameters; leave these as default unless you really know what they do. Please note the script is complicated—it does a lot. You might need to wait a few seconds while it (re)calculates on new tickers or when changing options. Give it time when first loading or changing options!
█ CONCEPTS
The indicator is focused around daily Camarilla pivots and implements 12 possible plays: 6 when in a higher range, 6 when in a lower range. The plays are labelled by two letters—the first indicates the range, the second indicates the play—as shown in this diagram:
The pivots can be calculated using only RTH (Regular Trading Hours) data, or ETH (Extended Trading Hours) data, which includes the pre-market and post-market. The indicator implements logic to automatically choose the correct data, based on the rules defined by the strategy. This is user-overridable. With the default options, ETH will be used when the H/L range in the previous day's post-market or current day's pre-market exceeds that of the previous day's regular market. In auto mode, the chosen pivots are considered the main pivots for that day and are the ones used for play evaluation. The "other" pivots can also be shown—"other" here meaning using ETH data when the main pivots use RTH data, and vice versa.
When displaying plays in the pre-market, since the RTH open is not yet known (and that value is needed to evaluate play pre-conditions), the pre-market open is used as a proxy for the RTH open. After the regular market opens, the correct RTH open is used to evaluate play conditions.
█ NOTE FOR FUTURES
Futures always use full ETH data in auto mode. Users may, however, wish to use the option "Always use RTH close," which uses the 3 p.m. Central Time (CME/Chicago) as a basis for the close in the pivot calculations (instead of the 4 p.m. actual close).
Futures don't officially have a pre-market or post-market like equities. Let's take ES on CME as an example (CME is in Chicago, so all times are Central Time, i.e., 1 hour behind Eastern Time). It trades from 17:00 Sunday to 16:00 Friday, with a daily pause between 16:00 and 17:00. However, most of the trading activity is done between 08:30 and 15:00 (Central), which you can tell from the volume spikes at those times, and this coincides with NYSE/NASDAQ regular hours (09:30–16:00 Eastern). So we define a pseudo-pre-market from 17:00 the previous day to 08:30 on the current day, then a pseudo-regular market from 08:30 to 15:00, then a pseudo-post-market from 15:00 to 16:00.
The indicator then works exactly the same as with equities—all the options behave the same, just with different session times defined for the pre-, regular, and post-market, with "RTH" meaning just the regular market and "ETH" meaning all three. The only difference from equities is that the auto calculation mode always uses ETH instead of switching based on ETH range compared to RTH range. This is so users who just leave all the defaults are not confused by auto-switching of the calculation mode; normally you'll want the pivots based on all the (ETH) data. However, both "Force RTH" and "Use RTH close with ETH data" work the same as with equities—so if, in the calculations, you really want to only use RTH data, or use all ETH H/L data but use the RTH close (at 15:00), you can.
█ LIMITATIONS
The pivots are very close to those shown in DAS Trader Pro. They are not to-the-cent exact, but within a few cents. The reasons are:
TradingView uses real-time data from CBOE One, so doesn't have access to full exchange data (unless you pay for it in TradingView), and
the close/high/low are taken from the intraday timeframe you are currently viewing, not daily data—which are very close, but often not exactly the same. For example, the high on the daily timeframe may differ slightly from the daily high you'll see on an intraday timeframe.
I have occasionally seen larger than a few cents differences in the pivots between these and DAS Trader Pro—this is always due to differences in data, for example a big spike in the data in TradingView but not in DAS Trader Pro, or vice versa. The more traded the stock is, the less the difference tends to be. Highly traded stocks are usually within a few cents. Less traded stocks may be more (for example, 30¢ difference in R4 is the highest I've seen). If it bothers you, official NYSE/NASDAQ data in TradingView is quite inexpensive (but even that doesn't make the 8am candle identical).
The 6th Camarilla level does not have a standard definition and may not match the level shown on other platforms. It does match the definition used by DAS Trader Pro.
The indicator is an intraday indicator (despite also being able to show weekly and monthly pivots on an intraday chart). It deactivates on a daily timeframe and higher. It is untested on sub-minute timeframes; you may encounter runtime errors on these due to various historical data referencing issues. Also, the play detection algorithm would likely be unpredictable on sub-minute timeframes. Therefore, sub-minute timeframes are formally unsupported.
The indicator was developed and tested for US/European stocks and US futures. It may or may not work as intended for stocks and futures in different locations. It does not work for other security types (e.g., crypto), where I have no evidence that the strategy has any relevance.
Opening Range and Market BoundariesOpening Range and Market Boundaries
This versatile and insightful indicator combines two powerful concepts frequently used by professional traders: Opening Range Analysis and Market Boundaries derived from previous high/low levels. It is specifically designed to support intraday trading strategies and helps you identify key price zones for entries, exits, and breakout confirmations.
🔍 Features & Utility
1. Opening Range Box
What it does:
Highlights the high and low of the first candle after market open (9:15 AM IST) with a shaded box. This box spans the full trading session, from 9:15 AM to 3:30 PM, representing the key price range where the initial balance is formed.
Timeframe Compatibility:
The Opening Range box is optimized for 1-minute to 1-hour charts. It is most effective on lower timeframes (1m, 5m, 15m, 30m) where intraday price movements and breakout patterns can be clearly observed.
Usage Tips:
Breakouts above or below the Opening Range box can signal potential directional bias for the rest of the trading day.
Price consolidating within the range may indicate a choppy or range-bound session.
Works well with volume and momentum indicators for confirmation.
2. Market Boundaries
What it does:
Plots horizontal lines at:
Previous Day High/Low
Previous Week High/Low
Previous Month High/Low
Why it matters:
These levels act as natural support and resistance zones, and are commonly watched by institutional traders, making them crucial for:
Spotting reversals or breakouts
Planning stop-loss and target zones
Avoiding trades around high-rejection areas
Customization Options:
Toggle ON/OFF for Daily, Weekly, and Monthly levels.
Independent colors and line thickness for each level, enabling you to distinguish between different timeframes easily.
🛠️ How to Use Effectively
Use during market open:
Switch to a 5-minute or 15-minute chart during the first few candles of the session. Observe the Opening Range box formation and plan trades based on breakout direction.
Confluence Trading:
Look for price action near previous session highs/lows in confluence with the Opening Range box edges. These intersections often become high-probability zones for breakouts or reversals.
Session Preparation:
Before the market opens, analyze where the price is relative to past high/low boundaries. If it's near a weekly/monthly level, be cautious — those areas can cause whipsaws or false breakouts.
Avoid low-volume breakouts:
Use this indicator in conjunction with volume tools or price action confirmation to validate the strength of a move outside the Opening Range or Market Boundaries.
📌 Summary
This indicator is designed for intraday traders, scalpers, and swing traders who want a reliable structure to guide their decisions. It visually marks the opening balance of the market and essential higher timeframe boundaries, helping you trade with discipline and precision.
Stochastics + VixFix Buy/Sell SignalsThis script is designed for long-term investors using ETFs on a weekly timeframe, where catching high-probability bottoms is the goal. It combines the Stochastic Oscillator with the Williams VixFix to identify moments of extreme fear and potential reversals.
A Buy signal is triggered when:
Stochastic %K drops below 20
VixFix forms a green spike (suggesting a panic-driven market flush)
A Sell signal is triggered when:
Stochastic %K rises above 90
VixFix falls below 5 (indicating excessive complacency)
Catching tops is much harder than catching bottoms.
These Sell signals are not designed to fully exit positions. Instead, they suggest trimming a small portion of ETF holdings — simply to free up liquidity for future opportunities.
This strategy is ideal for:
Long-term ETF investors
Weekly charts
Systematic decision-making in volatile markets
Use in conjunction with macro indicators, sector rotation, and valuation frameworks for best results.
Leonid's Bitcoin Macro & Liquidity Regime Tracker🧠 Macro Overlay Score (Bitcoin Liquidity Regime Tracker)
This indicator combines the most important macroeconomic and on-chain inputs into a single unified score to help investors identify Bitcoin’s long-term cycle phases. Each input is normalized into a 0–100 score and blended using configurable weights to generate a dynamic, forward-looking macro regime tracker.
✅ Best used on the **Bitcoin All Time History Index with Weekly resolution** (`INDEX:BTCUSD`) for maximum historical context and signal clarity.
---
📈 Why Macro?
Macro liquidity conditions — interest rates, monetary expansion, dollar strength, credit risk — drive Bitcoin cycles . Risk assets like BTC thrive during periods of:
Monetary easing
Liquidity injections
Expansionary central bank policy
This overlay surfaces those periods *before* price follows. It captures cycle shifts in the business cycle, monetary policy, and investor sentiment — making it ideal for long-term allocators, macro-aligned investors, and cycle-focused BTC holders.
🔔 This is **not** designed for short-term or swing trading. It is optimized for **macro trend confirmation and regime awareness** — not fast entry/exit signals.
---
🔍 What It Tracks
Macro Inputs:
- 🏭 ISM 3M Trend (Business Cycle)
- 💹 CPI YoY (Inverted Inflation)
- 💵 M2 YoY + M2 Acceleration
- 🇨🇳 China M2 (Global Liquidity)
- 💱 DXY 3M Trend (USD Strength)
- 🏦 TGA & RRP YoY (Treasury / MMF Flows)
- 🏛 Fed Balance Sheet (WALCL)
- 💳 High Yield Spread (Credit Conditions)
- 💧 Net Liquidity Composite = WALCL – TGA – RRP
On-Chain Inputs:
- ⚠️ MVRV Ratio (Valuation Cycles)
- 🚀 Mayer Multiple Acceleration (200DMA Momentum)
---
🧩 How It Works
Each input is:
Normalized to a 0–100 score
Weighted by importance (fully configurable)
Combined into a **composite Macro Score**, then normalized across history
The chart will display:
🔷 A 0–100 **Macro Score Line**
🧭 **Cycle Phase classification**: Accumulation, Expansion, Distribution, Capitulation
📊 Optional **debug table** with all sub-scores
---
🧠 Interpreting the Signal
| Signal Type | Meaning |
|-------------------|---------------------------------------------|
| Macro Score ↑ | Liquidity improving → Bullish regime forming |
| Macro Score ↓ | Liquidity deteriorating → Caution warranted |
| Score < 40 & Rising | 🔵 Accumulation cycle likely beginning |
| Score > 70 & Falling | 🟡 Distribution / Macro exhaustion |
| Net Liquidity ↑ | Strong driver of BTC upside historically |
---
❓ FAQ
Q: Why did the Macro Score peak in March 2021, but Bitcoin topped in November?
> The indicator reflects **macro liquidity**, not price momentum. M2 growth slowed, DXY bottomed, and the Fed stopped expanding WALCL by Q1 2021 — all signs of macro exhaustion. BTC continued on **residual momentum**, but the smart money began exiting months earlier.
Q: What does the score range mean?
- 0–25 : Tight liquidity, unfavorable conditions
- 50 : Neutral environment
- 75–100 : Strong easing, liquidity surge
Q: Is this good for short-term signals?
> No. This is a **macro-level overlay**, best used for 3–12 month context shifts, not day trades.
Q: Can I adjust the weights?
> Yes. You can tune the influence of each input to match your thesis (e.g., overweight on-chain, or global liquidity).
Q: Do I need special data access?
> No. All symbols are public TradingView datasets (FRED, CryptoCap, etc.). Just use this on a BTC chart like `BTCUSD`.
---
✅ How to Use
- Load on **`INDEX:BTCUSD`**, set to **Weekly timeframe**
- Confirm long-term bottoms when score is low and rising (Accumulation → Expansion)
- Watch for tops when score is high and falling (Distribution → Capitulation)
- Combine with price structure, realized profit/loss, and market sentiment
---
🚀 If you're serious about understanding Bitcoin's macro regime, this is your alpha map. Share it, clone it, and build on it.
VWAP table with color
## 📊 VWAP Table with Color – Clear VWAP Deviation at a Glance
This script displays a **VWAP (Volume-Weighted Average Price)** table in a non-intrusive, color-coded panel on your chart. It helps you **quickly assess where the current price stands relative to VWAP**, classified into sigma bands (standard deviations). The goal is to provide valuable VWAP insight **without cluttering the chart with multiple lines**.
---
### 🔍 Purpose & Concept
VWAP is a powerful tool used by institutional traders to measure the average price an asset has traded at throughout the day, based on both volume and price.
In this script:
- We **do not plot traditional VWAP lines** with multiple ±1σ, ±2σ, etc., on the chart.
- Instead, we **summarize VWAP and its relative position in a table**, color-coded by deviation.
- This provides the **same information**, but in a **cleaner, minimal, and visually digestible format**.
---
### 🧠 VWAP Deviation Classification
The script calculates how far the current price is from the VWAP, in units of **standard deviation (σ)**.
The formula is:
```plaintext
VWAP Delta σ = (Current Price - VWAP) / Standard Deviation
```
This gives you a normalized value for deviation from VWAP, and it is **clamped between -3 and +3** to avoid extreme outliers.
Each range is color-coded and classified as:
| VWAP Δσ | Zone | Interpretation | Color |
|---------|---------------|------------------------------------------|--------------|
| -3σ | Far Below | Strongly below VWAP – potentially oversold | 🔴 Red |
| -2σ | Below | Below VWAP – bearish territory | 🟠 Orange |
| -1σ | Slightly Below| Slightly under VWAP – weak signal | 🟡 Yellow |
| 0σ | At VWAP | Price is around VWAP – neutral zone | ⚪ Gray |
| +1σ | Slightly Above| Slightly above VWAP – weak bullish | 🟢 Lime Green |
| +2σ | Above | Above VWAP – bullish signal | 🟢 Green |
| +3σ | Far Above | Strongly above VWAP – potentially overbought | 🟦 Teal |
This **compact summary in the table** provides a clear situational view while keeping the chart clean.
---
### ⚙️ User Customization
Users can configure:
- **VWAP σ Multiplier** (default 0.1) to set the width of the optional VWAP band on the chart.
- **Table Position** (Top Center, Bottom Right, etc.).
- **Text Size** and **Text Color**.
- **Hide VWAP logic**: VWAP data can be hidden automatically on higher timeframes (e.g., daily or weekly).
- **Enable/disable the VWAP ±σ band lines** (optional visual aid).
---
### 📐 Technical Highlights
- VWAP is recalculated each day using `ta.vwap(hlc3, isNewPeriod, 1)`.
- The band width uses standard deviation and the selected multiplier: `VWAP ± σ * multiplier`.
- Table updates dynamically with the new VWAP values each day.
- To **avoid floating-point rounding issues**, `vwapDelta` is rounded before comparison, ensuring correct background color display.
---
### ✅ Why Use This?
- Keeps your chart **visually clean and readable**.
- Gives **immediate context** to current price action relative to VWAP.
- Helps **discretionary traders** or **scalpers** decide whether price is stretched too far from the mean.
- Easier than tracking multiple σ bands manually.
---
### Example Usage:
- On intraday timeframes, you can identify price exhaustion as it hits ±2σ or ±3σ.
- On a 5-minute chart, if price touches `+3σ`, you may consider taking profits on longs.
- On reversal setups, watch for price at `-3σ` with bullish divergence.
---
### 🧩 Future Enhancements (Optional Ideas)
- Add alerts for when `vwapDelta` crosses thresholds like ±2σ or ±3σ.
- Let user select the timeframe for VWAP source (e.g., 1H, 5M, etc.).
- Extend to display VWAP on session or weekly basis.
---
Let me know if you want a version of this script formatted and cleaned up for direct TradingView publication (with annotations, credits, and formatting). Would you like that?
Multi 10 Symbol Scanner Table V1Script Summary: "Multi 10 Symbol Scanner Table V1"
This TradingView indicator acts as a powerful market scanner dashboard. Instead of plotting signals on your main price chart, its primary purpose is to display a table summarizing the technical status of up to 10 different assets (stocks, crypto, forex pairs, etc.) that you choose.
Think of it as a watchlist on steroids. It analyzes each symbol you enter based on a consistent set of rules you define and presents the results side-by-side in the table for quick comparison.
Here's what the table shows for each symbol you add:
Symbol: The ticker name of the asset being scanned.
Actual Price: The current market price of that asset.
Price vs. MAs: Indicates the short-term trend based on whether the price (on the chart's current timeframe) is above two moving average lines ("Above Both"), below them ("Below Both"), or in between ("Mixed"). This column is color-coded (Green/Red/Gray).
RSI Value: Shows the current RSI (Relative Strength Index) number, a measure of momentum (calculated on the chart's current timeframe).
RSI Status: Tells you if the RSI is currently "Overbought," "Oversold," or "Neutral" based on the levels you set. This column is color-coded (Red/Green/Gray).
SIG NOW: A combined "immediate signal" based on the Price vs. MAs and RSI Status conditions (calculated on the chart's current timeframe). It shows "BUY," "SELL," or "NEUTRAL" and is color-coded (Green/Red/Gray).
ALERT: Flags unusual trading volume activity (calculated on the chart's current timeframe). It shows "SPIKE" for high volume, "DUMP" for low volume, or "NONE." This column is color-coded (Orange/Purple/Gray).
LTS (TF1), LTS (TF2), LTS (TF3): These three columns show separate Long-Term Signals for each asset. Each signal is calculated independently using Bollinger Bands on a different, higher timeframe that you specify (e.g., Daily, Weekly, Monthly). It shows "BUY," "SELL," or "NEUTRAL" along with the price at which that signal occurred on that specific higher timeframe. These columns are also color-coded (Green/Red/Gray).
In essence: This script lets you monitor multiple assets simultaneously from one place, checking their short-term trend, momentum, volume activity, and longer-term signals across three different time perspectives, all updated in real-time within the table.
Important Note: This script only displays information in the table. It does not plot any lines or signals on your main chart, nor does it generate built-in TradingView alerts. It's purely a visual dashboard for scanning.
How to Adjust the Script Settings
You can customize the scanner through its "Settings" panel in TradingView. Here’s how to adjust each part:
1. Symbols (Enter Ticker IDs like 'BINANCE:BTCUSDT')
Symbol 1 to Symbol 10: These are the 10 slots where you enter the assets you want to scan.
How to Enter: You need the full Ticker ID, often including the exchange prefix. Examples: NASDAQ:AAPL, BINANCE:BTCUSDT, FX:EURUSD, NYSE:GME. You can find these using TradingView's symbol search.
Leaving Blank: If you don't need all 10 slots, just leave the extra ones blank. The table will only show rows for the symbols you've entered.
2. Indicator Settings (Chart Timeframe)
These settings define the rules for the analysis performed using the timeframe of the chart you currently have open. These rules are applied to all symbols in your list for the "Price vs MAs," "RSI," "SIG NOW," and "ALERT" columns.
MA Source: Choose which price point (Close, Open, High, Low, etc.) the moving averages should be based on. (Default: Close)
Short MA Period: Set the number of bars for the shorter-term moving average. A smaller number reacts faster. (Default: 20)
Long MA Period: Set the number of bars for the longer-term moving average. A larger number shows a smoother trend. (Default: 50)
RSI Source: Choose which price point the RSI momentum calculation should use. (Default: Close)
RSI Period: Set the number of bars for the RSI calculation. (Default: 14)
RSI Overbought Level: The RSI level above which an asset is considered "Overbought" in the table. (Default: 70)
RSI Oversold Level: The RSI level below which an asset is considered "Oversold" in the table. (Default: 30)
SIG NOW RSI Buy Min: The minimum RSI value required (along with price being above MAs) to show a "BUY" signal in the "SIG NOW" column. (Default: 55)
SIG NOW RSI Sell Max: The maximum RSI value required (along with price being below MAs) to show a "SELL" signal in the "SIG NOW" column. (Default: 45)
Volume Lookback (LBV): How many bars (on the chart's timeframe) to look back to calculate the average volume for the Spike/Dump alerts. (Default: 3)
Volume MA Type: The type of averaging method used for the volume calculation. (Default: EMA)
3. Volume Alert Settings
These control the sensitivity of the "ALERT" column (Spike/Dump detection) for all symbols.
Volume Alert Sensitivity: Choose a preset:
"Normal": Standard thresholds.
"Sensitive": Easier to trigger alerts.
"Highly Sensitive": Easiest to trigger alerts.
"Custom": Uses the manual multipliers below.
Custom Spike Multiplier (>1): (Only used if Sensitivity is "Custom") Volume must be this many times greater than average to trigger SPIKE. (e.g., 1.5 = 50% higher).
Custom Dump Multiplier (<1): (Only used if Sensitivity is "Custom") Volume must be this many times smaller than average to trigger DUMP. (e.g., 0.7 = 30% lower).
4. Long Term Signal (LTS) Settings
These settings control the calculations for the three independent "LTS" columns in the table. Each LTS column analyzes data from a specific higher timeframe you choose.
LTS Timeframe 1 / 2 / 3: Select the higher timeframes (e.g., 'D' for Daily, 'W' for Weekly, 'M' for Monthly) for each of the three LTS calculations. These will determine the data used for the corresponding LTS columns in the table.
LTS BB Source: The price source used for the Bollinger Band calculation on the selected LTS timeframes. (Default: Close)
LTS BB Length: The period (number of bars on the chosen LTS timeframe) used for the Bollinger Band calculation. (Default: 20)
LTS BB StdDev: The standard deviation multiplier for the Bollinger Bands used in the LTS calculations. (Default: 2.0)
5. Table Settings
These control the appearance of the scanner table itself.
Table Position: Choose which corner or side of the chart the table should appear on.
Decimal Places (Non-Price): How many decimal places to show for values like the RSI number in the table.
Table Text Size: Adjust the font size inside the table cells ("tiny", "small", "normal", "large", "huge").
By adjusting these settings, you can tailor the scanner to focus on the assets, timeframes, and technical conditions that matter most to your trading strategy. Remember to enter valid ticker symbols for the assets you want to track.
Chart Plotter & Scanner Table V1Script Summary: "Chart Plotter & Scanner Table V1"
This TradingView indicator is designed to give you a comprehensive analysis of the single stock, crypto, or asset currently displayed on your chart. It does this in two main ways:
Visual Signals on the Chart: It draws helpful information directly onto your price chart:
Trend Lines: Plots two moving average lines (one short-term, one long-term) to help you visualize the current price trend.
Buy/Sell Markers ("SIG NOW"): Shows triangle markers below the price (green for potential Buy) or above the price (red for potential Sell) when specific conditions related to price trend and momentum (RSI) are met.
Volume Activity Markers ("ALERT"): Displays small labels ("S" for Spike, "D" for Dump) when the trading volume is unusually high or low compared to its recent average, indicating potentially significant market activity.
Long-Term Signal Markers ("LTS"): Shows small shapes (circles, diamonds, squares) to indicate potential long-term Buy or Sell signals derived from analyzing price action on up to three different, higher timeframes (like Daily, Weekly, Monthly) that you choose.
Status Summary Table: It displays a neat table on your chart (you choose the corner) that acts like a dashboard, summarizing the key findings for the current asset:
Symbol & Price: Shows the ticker symbol and the latest price.
Price vs. Trend: Tells you if the current price is above both trend lines ("Above Both"), below both ("Below Both"), or in between ("Mixed"), with color-coding (Green/Red/Gray).
Momentum (RSI): Shows the current RSI value and its status ("Overbought", "Oversold", or "Neutral"), with color-coding (Red/Green/Gray).
Immediate Signal ("SIG NOW"): Displays the current Buy, Sell, or Neutral status based on the combined trend and momentum rules, with color-coding (Green/Red/Gray).
Volume Alert ("ALERT"): Shows if there's a volume Spike, Dump, or None, with color-coding (Orange/Purple/Gray).
Long-Term Signals (LTS): Shows the Buy, Sell, or Neutral status calculated from each of the three chosen higher timeframes, including the price at which the signal occurred on that timeframe, with color-coding (Green/Red/Gray).
Essentially, this script combines short-term trend and momentum analysis with volume activity monitoring and longer-term perspective signals, presenting the information clearly on your chart and in a summary table for quick assessment. It also allows you to create TradingView alerts based on these signals.
How to Adjust the Script Settings
You can customize how this script works through its "Settings" panel in TradingView. Here’s a breakdown of each section:
1. Indicator Settings (Chart Timeframe)
These settings control the main calculations done on your current chart's timeframe.
MA Source: Choose which price point (Close, Open, High, Low, etc.) the moving averages should be based on. (Default: Close)
Short MA Period: Set the number of bars for the shorter-term moving average. A smaller number makes it react faster to price changes. (Default: 20)
Long MA Period: Set the number of bars for the longer-term moving average. A larger number shows a smoother, longer-term trend. (Default: 50)
RSI Source: Choose which price point the RSI momentum calculation should use. (Default: Close)
RSI Period: Set the number of bars for the RSI calculation. (Default: 14)
RSI Overbought Level: The RSI level above which the asset is considered potentially "Overbought". (Default: 70)
RSI Oversold Level: The RSI level below which the asset is considered potentially "Oversold". (Default: 30)
SIG NOW RSI Buy Min: The minimum RSI value required (along with price being above MAs) to trigger a "SIG NOW" Buy signal. (Default: 55)
SIG NOW RSI Sell Max: The maximum RSI value required (along with price being below MAs) to trigger a "SIG NOW" Sell signal. (Default: 45)
Volume Lookback (LBV): How many bars to look back to calculate the average volume for the Spike/Dump alerts. (Default: 3)
Volume MA Type: The type of averaging method used for the volume calculation (EMA is generally preferred for responsiveness). (Default: EMA)
2. Volume Alert Settings
These control how sensitive the Volume Spike/Dump alerts are.
Volume Alert Sensitivity: Choose a preset sensitivity level:
"Normal": Standard thresholds for spike/dump detection.
"Sensitive": Requires less deviation from the average volume to trigger an alert.
"Highly Sensitive": Triggers alerts on even smaller volume deviations.
"Custom": Ignores the presets and uses the manual multipliers below.
Custom Spike Multiplier (>1): (Only used if Sensitivity is "Custom") How many times greater than the average volume the current volume must be to trigger a SPIKE. (e.g., 1.5 means 50% higher).
Custom Dump Multiplier (<1): (Only used if Sensitivity is "Custom") How many times smaller than the average volume the current volume must be to trigger a DUMP. (e.g., 0.7 means 30% lower).
3. Long Term Signal (LTS) Settings
These settings control the calculations for the three independent Long-Term Signals, which look at higher timeframes.
LTS Timeframe 1/2/3: Select the higher timeframes (e.g., 'D' for Daily, 'W' for Weekly, 'M' for Monthly) for each of the three LTS calculations.
LTS BB Source: The price source used for the Bollinger Band calculation on the LTS timeframes. (Default: Close)
LTS BB Length: The period (number of bars on the LTS timeframe) used for the Bollinger Band calculation. (Default: 20)
LTS BB StdDev: The standard deviation multiplier for the Bollinger Bands used in the LTS calculation. (Default: 2.0)
4. Plotting Settings
These control what is visually displayed on the price chart itself.
Plot MAs?: Checkbox to show or hide the two moving average lines.
Plot SIG NOW Markers?: Checkbox to show or hide the green/red triangle Buy/Sell markers.
Plot ALERT Markers?: Checkbox to show or hide the "S" / "D" volume Spike/Dump labels.
Plot LTS Markers?: Checkbox to show or hide the long-term signal markers (circles, diamonds, squares).
Plot LTS Markers For: Dropdown to choose whether to show markers for only LTS TF1, TF2, TF3, or "All" of them.
5. Table Settings
These control the appearance and content of the summary table.
Show Status Table?: Checkbox to show or hide the entire summary table.
Table Position: Choose which corner or side of the chart the table should appear on.
Decimal Places (Non-Price): How many decimal places to show for values like the RSI number in the table.
Table Text Size: Adjust the font size inside the table cells.
Setting Up Alerts:
This script creates the conditions for alerts. To actually receive notifications:
Click the "Alert" button (clock icon) in TradingView's top toolbar or right-click on the chart.
In the "Condition" dropdown, select the script name ("Chart Plotter & Scanner Table V1").
You will see a list of available alert conditions created by the script (e.g., "SIG NOW Buy Alert", "RSI Overbought Alert", "LTS TF1 Buy Alert", etc.). Choose the one you want.
Configure the rest of the alert settings (Options, Actions, Message) as desired.
Click "Create". Repeat for any other signals you want alerts for.
By adjusting these settings, you can fine-tune the indicator to match your trading style, the specific asset you are analyzing, and the timeframes you are interested in.
Market Timing(Mastersinnifty)Overview
Market Timing (Mastersinnifty) is a proprietary visualization tool designed to help traders study historical market behavior through structural pattern similarity.
The script analyzes the most recent session’s price action and identifies the closest-matching historical sequence among thousands of past patterns. Once a match is found, the script projects the subsequent historical price path onto the current chart for easy visual reference.
Unlike traditional indicators, Market Timing (Mastersinnifty) does not generate trade signals. Instead, it offers a unique historical scenario analysis based on quantified structural similarity.
---
How It Works
- The script captures the last 20 closing prices and compares them to historical price sequences from the past 8000 bars.
- Similarity is computed using the Euclidean distance formula (sum of squared differences) between the current pattern and historical candidates.
- Upon finding the most similar past pattern, the subsequent historical movement is normalized relative to session opening and plotted onto the current chart using projection lines.
- The projection automatically adapts to intraday, daily, weekly, or monthly timeframes, with the option for manual or automatic projection length settings.
- Session start detection is handled automatically based on volume thresholds and price-time analysis to adjust for market openings across different instruments.
---
Key Features
- Historical Pattern Matching: Quantitative matching of the most similar past price structure.
- Dynamic Projections: Visualizes likely historical scenarios based on past market behavior.
- Auto/Manual Projection Length: Flexible control over the number of projected bars.
- Multi-Timeframe Support: Works seamlessly across intraday, daily, weekly, and monthly charts.
- Purely Visual Context: Designed to support human decision-making without replacing it with automatic trade signals.
---
Who Can Benefit
- Traders studying market structure repetition and price symmetry.
- Visual thinkers who prefer scenario-based planning over fixed indicator systems.
- Intraday, swing, and position traders looking for historical context to complement price action, volume, and momentum studies.
---
How to Use
- Apply the script to any asset — including indices, stocks, commodities, forex, or crypto.
- Select your preferred timeframe.
- Choose "Auto" or "Custom" for the projection length.
- Observe the projected lines:
- Upward slope = Historical bullish continuation.
- Downward slope = Historical bearish continuation.
- Flat movement = Historical sideways movement.
- Combine insights with volume, support/resistance, and price action for better decision-making.
---
Important Notes
- This script does not predict the future. It offers a visual reference based on historical similarity.
- Always validate projected scenarios with live market conditions.
- Market structure evolves; past behavior may not repeat under new market dynamics.
- Use this tool for educational and research purposes only.
---
Disclaimer
This is not financial advice. The Market Timing (Mastersinnifty) tool is intended for research and educational purposes only. Trading involves risk, and past performance does not guarantee future results. Always apply sound risk management practices.
Opening/Closing Range [Pro] (jdam18)Indicator Summary
The Opening/Closing Range indicator systematically captures and displays the Opening Range (OR) (9:30am ET) and Closing Range (CR) (3:50pm ET) for each trading session with flexible historical tracking and visual customization options.
Key functionalities include:
Opening and Closing Ranges: Dynamically plots the OR and CR session boxes with options for high/low lines, midline (equilibrium) plotting, and customizable extension to the current bar.
Extensions: Automatically generates extension levels above and below the range based on user-defined multipliers, facilitating clearer identification of price expansion levels.
Merging Logic: Optionally merges overlapping OR and CR ranges into unified boxes, enhancing clarity when sessions overlap significantly. Merged boxes may display a consolidated central line (CE) and visual extensions.
Event Horizons: Detects and highlights meaningful price gaps ("Event Horizons") between non-overlapping ranges, with optional subdivision into quarters and eighths for detailed gap structure analysis.
Weekly Extensions: Independently tracks Monday and Wednesday Opening and Closing Ranges, projecting expansion levels for the week.
Weekly Extension Table: Provides an optional summary table displaying the status of Monday and Wednesday extensions, range size, and the current location of price relative to key extension thresholds. Table positioning is customizable.
The script is designed to be performance-conscious, modular, and highly configurable, supporting intraday timeframes up to 15 minutes, and providing comprehensive visualizations to aid in market structure analysis and trading decisions.
STDZ - Global Trading Sessions📊 STDZ - Global Trading Sessions (GTS)
STDZ - Global Trading Sessions (GTS) is an indicator that overlays global market session data directly on your intraday charts. It visualizes trading sessions from different time zones, helping intraday traders quickly assess volatility, session ranges, and structural market behavior across global financial centers. The default setting is enough to cover all the major stock markets opening time including:
• Asia: Sydney, Tokyo, Hong Kong
• Europe: Frankfurt, London
• North America: New York
⸻
🚀 Features
• 🔹 Session Visualization: Up to 3 configurable trading sessions with customizable:
• Session time windows
• Time zones (IANA or GMT format)
• Colors
• Session labels
• 🔹 Session Metrics:
• Open, High, Low, and Average lines
• Session range measurement
• 🔹 Statistics Table:
• Live display of each session’s range
• Daily and Weekly True Range / ATR
• 🔹 Session Open Highlights: Vertical lines for weekly changes to contextualize price action
• 🔹 Dynamic Chart Objects: Lines, boxes, and labels update in real time as sessions progress
• 🔹 🕒 Timezone-aware session rendering (supports daylight saving)
Daily Percent Change LabelDaily Percent Change Label
Overview
This Pine Script displays the percentage change from the previous day's closing price as a text label near the current price level on the chart. It works seamlessly across any timeframe (daily, hourly, minute charts) by referencing the daily chart's previous close, making it perfect for traders tracking daily performance.
The label is displayed with a semi-transparent background (green for positive changes, red for negative changes) and white text, ensuring a clean and readable appearance.
Features
Accurate Daily Percent Change: Calculates the percentage change based on the previous day's closing price, even on intraday timeframes (e.g., 1-hour, 5-minute).
Dynamic Label: Shows the percentage change as a label aligned with the current price, updating in real-time.
Color-Coded Background: Semi-transparent green background for positive changes and red for negative changes.
Customizable: Adjust label position, size, color, and style to fit your preferences.
Minimal Impact: No additional plots or graphs, keeping the chart uncluttered.
How to Use
Add the Script:
Copy and paste the script into the Pine Editor in TradingView.
Click "Add to Chart" to apply it.
Check the Output:
A text label (e.g., "+2.34%" or "-1.56%") appears near the current price with a semi-transparent background.
The label is colored green (positive) or red (negative) and updates in real-time.
Switch Timeframes:
Works on any timeframe. The percentage change is always calculated relative to the previous day's close.
Customization Options
Modify the label.new function to customize the label:
Label Position:
Change style=label.style_label_left to label.style_label_right or label.style_label_down to adjust label placement.
Adjust bar_index with an offset (e.g., bar_index + 1) to move the label horizontally.
Text Color:
Modify textcolor=color.white to another color (e.g., color.rgb(255, 255, 0) for yellow).
Background Color:
Adjust color=percent_change >= 0 ? color.new(color.green, 50) : color.new(color.red, 50) to change transparency (e.g., color.new(color.green, 0) for no transparency).
Text Size:
Change size=size.normal to size.small or size.large for smaller or larger text.
Code Details
Timeframe Handling: Uses request.security with the "D" timeframe to fetch the previous day's closing price, ensuring accuracy on intraday charts.
Performance: Updates only on the last bar (barstate.islast) for optimal performance.
Dynamic Styling: Background color changes based on the direction of the price change.
Notes
The label is positioned near the current price for easy reference. To move it closer to the Y-axis, adjust the bar_index offset.
For different reference points (e.g., weekly close), modify the request.security timeframe (e.g., "W" for weekly).
Ensure the script is copied correctly without extra spaces or characters. Use a plain text editor (e.g., Notepad) for copying.
Feedback
Please share your feedback or customizations in the comments! If you find this script helpful, give it a thumbs-up or let others know how you're using it. Happy trading!
MACD Bullish Cross Alert📘 Indicator Description – MACD Bullish Cross Alert
This indicator is designed to detect bullish momentum shifts using the classic MACD (Moving Average Convergence Divergence) crossover strategy.
Key Features:
Calculates the MACD Line and Signal Line using customizable inputs (default: 12, 26, 9).
Triggers an alert when the MACD Line (blue) crosses above the Signal Line (orange).
Helps identify early bullish trend reversals or momentum entry points.
Ideal for swing traders, position traders, and crypto investors using the weekly timeframe.
How to Use:
Add to any chart and set the timeframe to 1W (weekly).
Create an alert using the built-in MACD Bullish Crossover condition.
Combine with price action, volume, or RSI for higher conviction entries.
Use Cases:
Spotting early entry points after long downtrends.
Confirming a trend reversal in high timeframes.
Generating high-probability entries in trend-following systems.
Bijnor Pivot ExtendedOverview: The Bijnor Pivot Extended (BP+) indicator is a powerful visual tool designed to help traders identify key price levels using Fibonacci-based pivots. It dynamically plots Support and Resistance levels based on your chosen timeframe (Daily, Weekly, or Monthly) and displays them only for the current session, reducing chart clutter and improving focus.
🔧 Features:
📆 Pivot Timeframe Selection: Choose between Daily, Weekly, or Monthly pivots.
🎯 Fibonacci Pivot Levels:
Central Pivot (P)
Resistance: R1, R2, R3, R4 (Extended)
Support: S1, S2, S3, S4 (Extended)
🎨 Full Customization:
Toggle labels and prices on/off
Position labels to the left or right
Change line width and individual colors for pivot, support, and resistance lines
🧠 Smart Line Plotting:
Lines are drawn only during the selected session, keeping your chart clean
🕹️ Max Performance: Optimized to stay lightweight with max_lines_count and max_labels_count set to 500
🧭 How to Use It:
Use this indicator to:
Plan entries and exits around key Fibonacci pivot zones
Identify overbought/oversold zones at R3/R4 and S3/S4
Enhance your intraday, swing, or positional trading setups
Combine with price action, candlestick patterns, or volume for maximum edge.
✅ Bonus:
This script is ideal for traders looking for a minimalist yet powerful pivot framework, with extended levels for breakout or reversal scenarios.
Quarterly Theory ICT 04 [TradingFinder] SSMT 4Quarter Divergence🔵 Introduction
Sequential SMT Divergence is an advanced price-action-based analytical technique rooted in the ICT (Inner Circle Trader) methodology. Its primary objective is to identify early-stage divergences between correlated assets within precise time structures. This tool not only breaks down market structure but also enables traders to detect engineered liquidity traps before the market reacts.
In simple terms, SMT (Smart Money Technique) occurs when two correlated assets—such as indices (ES and NQ), currency pairs (EURUSD and GBPUSD), or commodities (Gold and Silver)—exhibit different reactions at key price levels (swing highs or lows). This lack of alignment is often a sign of smart money manipulation and signals a lack of confirmation in the ongoing trend—hinting at an imminent reversal or at least a pause in momentum.
In its Sequential form, SMT divergences are examined through a more granular temporal lens—between intraday quarters (Q1 through Q4). When SMT appears at the transition from one quarter to another (e.g., Q1 to Q2 or Q3 to Q4), the signal becomes significantly more powerful, often aligning with a critical phase in the Quarterly Theory—a framework that segments market behavior into four distinct phases: Accumulation, Manipulation, Distribution, and Reversal/Continuation.
For instance, a Bullish SMT forms when one asset prints a new low while its correlated counterpart fails to break the corresponding low from the previous quarter. This usually indicates absorption of selling pressure and the beginning of accumulation by smart money. Conversely, a Bearish SMT arises when one asset makes a higher high, but the second asset fails to confirm, signaling distribution or a fake-out before a decline.
However, SMT alone is not enough. To confirm a true Market Structure Break (MSB), the appearance of a Precision Swing Point (PSP) is essential—a specific candlestick formation on a lower timeframe (typically 5 to 15 minutes) that reveals the entry of institutional participants. The combination of SMT and PSP provides a more accurate entry point and better understanding of premium and discount zones.
The Sequential SMT Indicator, introduced in this article, dynamically scans charts for such divergence patterns across multiple sessions. It is applicable to various markets including Forex, crypto, commodities, and indices, and shows particularly strong performance during mid-week sessions (Wednesdays and Thursdays)—when most weekly highs and lows tend to form.
Bullish Sequential SMT :
Bearish Sequential SMT :
🔵 How to Use
The Sequential SMT (SSMT) indicator is designed to detect time and structure-based divergences between two correlated assets. This divergence occurs when both assets print a similar swing (high or low) in the previous quarter (e.g., Q3), but in the current quarter (e.g., Q4), only one asset manages to break that swing level—while the other fails to reach it.
This temporal mismatch is precisely identified by the SSMT indicator and often signals smart money activity, a market phase transition, or even the presence of an engineered liquidity trap. The signal becomes especially powerful when paired with a Precision Swing Point (PSP)—a confirming candle on lower timeframes (5m–15m) that typically indicates a market structure break (MSB) and the entry of smart liquidity.
🟣 Bullish Sequential SMT
In the previous quarter, both assets form a similar swing low.
In the current quarter, one asset (e.g., EURUSD) breaks that low and trades below it.
The other asset (e.g., GBPUSD) fails to reach the same low, preserving the structure.
This time-based divergence reflects declining selling pressure, potential absorption, and often marks the end of a manipulation phase and the start of accumulation. If confirmed by a bullish PSP candle, it offers a strong long opportunity, with stop-losses defined just below the swing low.
🟣 Bearish Sequential SMT
In the previous quarter, both assets form a similar swing high.
In the current quarter, one asset (e.g., NQ) breaks above that high.
The other asset (e.g., ES) fails to reach that high, remaining below it.
This type of divergence signals weakening bullish momentum and the likelihood of distribution or a fake-out before a price drop. When followed by a bearish PSP candle, it sets up a strong shorting opportunity with targets in the discount zone and protective stops placed above the swing high.
🔵 Settings
⚙️ Logical Settings
Quarterly Cycles Type : Select the time segmentation method for SMT analysis.
Available modes include: Yearly, Monthly, Weekly, Daily, 90 Minute, and Micro.
These define how the indicator divides market time into Q1–Q4 cycles.
Symbol : Choose the secondary asset to compare with the main chart asset (e.g., XAUUSD, US100, GBPUSD).
Pivot Period : Sets the sensitivity of the pivot detection algorithm. A smaller value increases responsiveness to price swings.
Activate Max Pivot Back : When enabled, limits the maximum number of past pivots to be considered for divergence detection.
Max Pivot Back Length : Defines how many past pivots can be used (if the above toggle is active).
Pivot Sync Threshold : The maximum allowed difference (in bars) between pivots of the two assets for them to be compared.
Validity Pivot Length : Defines the time window (in bars) during which a divergence remains valid before it's considered outdated.
🎨 Display Settings
Show Cycle :Toggles the visual display of the current Quarter (Q1 to Q4) based on the selected time segmentation
Show Cycle Label : Shows the name (e.g., "Q2") of each detected Quarter on the chart.
Show Bullish SMT Line : Draws a line connecting the bullish divergence points.
Show Bullish SMT Label : Displays a label on the chart when a bullish divergence is detected.
Bullish Color : Sets the color for bullish SMT markers (label, shape, and line).
Show Bearish SMT Line : Draws a line for bearish divergence.
Show Bearish SMT Label : Displays a label when a bearish SMT divergence is found.
Bearish Color : Sets the color for bearish SMT visual elements.
🔔 Alert Settings
Alert Name : Custom name for the alert messages (used in TradingView’s alert system).
Message Frequency :
All: Every signal triggers an alert.
Once Per Bar: Alerts once per bar regardless of how many signals occur.
Per Bar Close: Only triggers when the bar closes and the signal still exists.
Time Zone Display : Choose the time zone in which alert timestamps are displayed (e.g., UTC).
Bullish SMT Divergence Alert : Enable/disable alerts specifically for bullish signals.
Bearish SMT Divergence Alert : Enable/disable alerts specifically for bearish signals
🔵 Conclusion
The Sequential SMT (SSMT) indicator is a powerful and precise tool for identifying structural divergences between correlated assets within a time-based framework. Unlike traditional divergence models that rely solely on sequential pivot comparisons, SSMT leverages Quarterly Theory, in combination with concepts like liquidity sweeps, market structure breaks (MSB) and precision swing points (PSP), to provide a deeper and more actionable view of market dynamics.
By using SSMT, traders gain not only the ability to identify where divergence occurs, but also when it matters most within the market cycle. This empowers them to anticipate major moves or traps before they fully materialize, and position themselves accordingly in high-probability trade zones.
Whether you're trading Forex, crypto, indices, or commodities, the true strength of this indicator is revealed when used in sync with the Accumulation, Manipulation, Distribution, and Reversal phases of the market. Integrated with other confluence tools and market models, SSMT can serve as a core component in a professional, rule-based, and highly personalized trading strategy.
CoffeeShopCrypto High Timeframe Dynamic Order BlocksThis indicator automates the detection of significant order blocks in real time, from higher timeframes (Daily, Weekly, Monthly) and dynamically adapts their zone boundaries to your current chart timeframe regardless of what you change it to. By analyzing market structure across multiple time horizons, it identifies institutional-level supply/demand zones and precisely recalculates their parameters to match your active chart's resolution - whether you're viewing 1-minute or 4-hour candles or even higher.
Key Technical Features:
Multi-Timeframe Analysis: Scans daily/weekly/monthly data to identify the most significant order blocks that influence all lower timeframes
Adaptive Zone Calculation: Automatically recalculates zone boundaries when you change timeframes, maintaining accurate price levels and candle formations specific to your chart
Smart Price Action Filtering: Isolates only the relevant candles that formed each order block within your current timeframe's context
Structural Precision: Adjusts zone width and position based on the actual candle wicks/bodies that created the order block in your active timeframe.
What they look like when calculated instantly.
About Order Blocks (Market Structure Perspective):
Order blocks represent concentrated areas where institutional traders executed significant positions, creating imbalances in market structure.
These zones become:
Bullish Order Blocks: Demand areas where aggressive buying overwhelmed sellers, often appearing as consolidation before strong upward movements.
Bearish Order Blocks: Supply zones where distribution activity preceded substantial downward moves.
How It Works Differently:
The indicator identifies these critical areas by analyzing the relationship between consecutive candles' opens, highs, lows, and closes - particularly focusing on break-of-structure patterns that confirm zone validity.
Traditional order block indicators simply copy higher timeframe zones to lower charts. These common orderblocks are said be found as the candle before the candle that caused a huge market swing. In a break long, you would look backwards to find the first previous bearish candle. The opposite find would be for a break short.
This is a most unreliable method in finding orderblocks and simply is not true.
Zone Extensions. Choose how far into the future you want your zone to go to. There is no wrong number but you don't want to go too far.
This scripts performs true multi-timeframe analysis by:
Detecting the original order block formation conditions on HTFs
Drilling down to find the exact "candle sequence" that created the zone in your current timeframe.
Continuously monitoring for structural breaks that invalidate zones
Automatically adjusting all visual elements when you switch timeframes
Usage Benefits:
Eliminates manual timeframe switching to identify significant zones
Maintains visual consistency when changing chart resolutions
Provides cleaner charts by only showing relevant order blocks
Adapts to any market (Forex, Stocks, Crypto) and any timeframe combination
Breached Zones. The zone becomes invalidated but the Supply or Demand line is still relevant.
Note on Trading:
While this indicator precisely identifies order block locations, trading methodologies using these zones depend on individual strategy preferences. The tool focuses exclusively on accurate technical detection and adaptive visualization across timeframes.
How to Use Them:
As long as you don't have price action breach of a Bullish Zone Demand Floor you can keep using that zone as a bullish orderblock until its Demand Floor has been breached.
This also means you can still use its Demand Floor as a support level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a supply floor left to use as support.
As long as you don't have price action breach of a Bearish Zone Supply Wall you can keep using that zone as a bearish orderblock until its Supply Wall has been breached.
This also means you can still use its Supply Wall as a resistance level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a resistance level.
Once either has been breached, you would find liquidity behind the zone of the ordreblock. This is where price will seek support or resistance depending on the zone type.
Orderblocks has a BODY and who knew they could be so cute. I mean look at this structure.
This is how they are built and what their levels represent.
Liquidity Zones Alerts"Liquidity Zones Alerts" is a powerful smart-money-based indicator designed to detect key liquidity grabs and provide high-probability reversal signals using a combination of market structure, volume, volatility, and candlestick confirmation.
🧠 How It Works
The core logic of this indicator is built around the Smart Money Concepts:
🔺 Liquidity Sweeps: Detects when price takes out previous daily or weekly highs/lows, suggesting stop hunts or engineered liquidity moves by institutional players.
📈 Volume Filter: Ensures signals only appear during above-average volume, filtering out noise and low-interest moves.
⚡ Volatility Filter: Flags high-range candles relative to the average, catching flash crashes/spikes that often precede strong reversals.
🔄 Engulfing Candle Confirmation: Confirms entry with a bullish or bearish engulfing pattern after liquidity is taken — increasing signal reliability.
🧭 Premium/Discount Zone Logic: Trades are filtered to ensure longs are only taken in discount zones, and shorts in premium zones, using a 20-period market range for context.
📌 Features
✅ Daily & Weekly liquidity zones toggle
✅ Visual signals with clean 🔻(short) & 🔺(long) arrows
✅ Auto-detection of flash crashes
✅ Alerts on both long and short setups
✅ Optional previous high/low level plotting for context
✅ Background highlighting of valid signal candles
✅ Multi-timeframe friendly and compatible with any asset
🛠️ Use Case
Whether you're a scalper or a swing trader, this tool helps you spot institutional entry zones before the move happens. It works especially well when combined with your existing bias or supply/demand zones.
💬 “Price doesn't move randomly — it hunts liquidity. This indicator shows you where and when it happens.”