ATR DEEPATR Bottom Indicator:
ATR Bottom is a dynamic support level based on market volatility (ATR) and a long-term moving average. It helps identify a price zone where downside risk significantly increases.
Unlike static levels, this indicator adapts to current market volatility and adjusts as market conditions change.
How it works:
Calculated using a moving average and ATR
The level represents the difference between average price and volatility
Always plotted below price and updates dynamically
Not a standalone entry signal
Interpretation:
Price above the line — market remains stable
Price touching the line — potential reaction or slowdown zone
Close below the line — sign of scenario shift and increased bearish pressure
Important:
Does not predict exact market bottoms
Designed for scenario-based analysis
Best used in combination with other analytical tools
Трендовый анализ
Weekend Highs & Lows (BTC)Weekend highs and lows are generally taken, this indicator will help get stats for that
Volume Weighted Intra Bar LR KurtosisThis indicator analyzes market character by decomposing total
Excess Kurtosis ("Fat Tails") of a SINGLE BAR into four distinct,
interpretable components based on a Linear Regression model.
Key Features:
1. **Intra-Bar LR Kurtosis Decomposition:** For each bar on the chart,
the indicator analyzes the underlying price action on a smaller
timeframe ('Intra-Bar Timeframe'). It fits a Linear Regression
line through the intra-bar data to decompose the 4th Moment:
- **Trend Kurtosis (Gold):** Peakedness of the regression line
itself. High values indicate the price path within the bar
moves in sudden jumps, steps, or gaps (discontinuous path).
- **Residual Kurtosis (Red):** Excess Kurtosis of the noise
around the regression line. Captures "Hidden Tail Risk" or
extreme outliers within the bar relative to the trend.
- **Within-Bar Kurtosis (Blue):** Fat tails derived from the
microstructure of individual intra-bar candles.
- **Interaction Variance (Dark Grey):** The comovement of variance
and mean deviations (volatility clustering relative to trend).
- **Interaction Skewness (Darker Grey):** The comovement of skewness
and mean deviations (asymmetry relative to trend).
2. **Visual Decomposition Logic:** Total Excess Kurtosis is the
primary metric displayed. Since statistical moments are additive,
this indicator calculates the *exact* Total Kurtosis and partitions
the columns based on the Law of Total Moments.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Plots the *total* kurtosis as a
stacked column chart. Stacking logic groups components to
ensure visual clarity of the magnitude.
- **Relative Mode:** Plots the direct *contribution ratio*
(proportion) of each component relative to the total sum,
ideal for identifying the dominant driver (Trend vs. Noise).
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
kurtosis of *returns* rather than absolute prices.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and moment calculations,
emphasizing high-participation moves.
5. **Kurtosis Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *total* kurtosis line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Analysis Lines:** The entire intra-bar analysis can be
run on a higher timeframe (using the `Timeframe` input),
with standard options to handle gaps (`Fill Gaps`) and
prevent repainting (`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Kurtosis magnitude (High Positive / High Negative).
- Character changes (Trend Jumps vs. Noise Outliers).
- Total Kurtosis pivot (High/Low) detection.
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted LR SkewnessThis indicator analyzes market character by decomposing total
skewness (asymmetry) into four distinct, interpretable components
based on a Linear Regression model.
Key Features:
1. **Four-Component Skewness Decomposition:** The indicator
separates market asymmetry based on the 'Estimate Bar Statistics' option.
It leverages the Law of Total Moments to provide an additive
breakdown of the 3rd Statistical Moment:
- **Trend Skewness (Green/Red):** Asymmetry originating from
the slope of the regression line itself. Indicates if the
trend path is geometrically skewed.
- **Residual Skewness (Yellow):** Asymmetry of the noise
around the regression line. Captures "Tail Risk" (e.g.,
sudden spikes against the trend).
- **Within-Bar Skewness (Blue):** Asymmetry derived from the
microstructure of individual bars (requires 'Estimate Bar Statistics').
- **Interaction Skewness (Dark Grey):** Asymmetry caused by the
correlation between price levels and volatility (e.g.,
volatility expanding as price moves in one direction).
*Dominance of this component indicates an unstable, emotional market.*
2. **Visual Decomposition Logic:** Total Skewness is the
primary metric displayed. Since statistical moments are additive,
this indicator calculates the *exact* Total Skewness and partitions
the area to visualize the contribution (weight) of each
structural source to the overall market bias.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *total* skewness as a
stacked area chart, allowing to see the magnitude of tail risk.
Stacking logic groups components with the same sign to ensure
visual clarity.
- **Relative Mode:** Displays the direct *contribution ratio*
(proportion) of each component relative to the total sum,
ideal for identifying the dominant driver of asymmetry.
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
skewness of *returns* rather than absolute prices.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and moment calculations,
emphasizing high-participation moves.
5. **Skewness Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *total* skewness line. This helps identify extremes in
market sentiment or structural bias.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Skewness Lines:** The skewness lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Skewness magnitude (High Positive / High Negative).
- Skewness character changes/emerging/fading.
- Total Skewness pivot (High/Low) detection.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Inside Bar Zones by AAK (V6)📦 Smart Inside Bar Zones
Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.
Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.
🔍 Key Features
Automatic Inside Bar Detection
Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.
Smart Zone Creation
Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.
Unlimited Historical Storage (Data)
All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.
Safe & Optimized Drawing
Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.
Highlight Inside Bars
Optional candle coloring for quick and clear visual confirmation.
Flexible Display Options
Show only the latest zone
Or display multiple zones with automatic recycling
📈 How Traders Use It
Identify consolidation before expansion
Spot compression zones for breakout or fakeout scenarios
Combine with SMC, order flow, support & resistance, or liquidity concepts
Use higher-timeframe zones for directional bias
Use lower-timeframe zones for entries and scalps
⚠️ Important Notes
This indicator does not predict direction — it highlights structure
Zones represent price balance, not buy or sell signals
Best used in confluence with your trading strategy and risk management
🧠 Designed For
Price action traders
SMC / market structure traders
Forex, crypto, indices, and futures
Any timeframe
⚠️ Risk Disclaimer
This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.
Market Structure BOS - Session Based (5m, NY Time) This indicator visualizes market structure using a strict, rule-based
Break of Structure (BOS) logic, calculated on the 5-minute timeframe
and evaluated in New York time.
The script detects swing Highs and Lows based on candle direction
(bullish → bearish for Highs, bearish → bullish for Lows). From each
validated structure point, a horizontal level is drawn at the true
price extreme (wick included). Once created, structure levels never
repaint or move.
A Break of Structure is confirmed only when a candle CLOSES beyond
the most recent valid structure level:
- Bullish BOS: close above the latest High
- Bearish BOS: close below the latest Low
The indicator is trend-aware: once a bullish or bearish BOS is confirmed,
only BOS signals in the same direction are shown until the trend changes.
This prevents duplicate or redundant structure breaks during trends.
Session logic is fully integrated and based on New York time:
- Asia
- London (with pre-open range)
- New York (with pre-open range)
Structure levels and BOS logic can optionally reset at the end of each
New York trading day, keeping the chart clean and session-relevant.
The indicator is designed for traders who focus on intraday price action,
market structure, and session-based behavior without visual clutter.
No labels, alerts, or signals are plotted — only clean structure levels.
Multi-Timeframe S&R V1The Multi-Timeframe S&R V1 is a clean and powerful technical indicator designed to visualize key Support and Resistance (S&R) levels from multiple timeframes directly on your chart.
Instead of drawing lines manually, this tool automates the process by plotting critical levels from the previous day, week, and month.
This indicator is ideal for traders focusing on Price Action, Market Structure (HH/HL), or Mean Reversion strategies.
Key Features:
Daily Levels (D): Displays yesterday's High and Low, along with the current Daily Open. Essential for intraday trading and identifying the daily bias.
Weekly Levels (W): Plots the High and Low from the previous week. These often act as major psychological levels where significant price reactions occur.
Monthly Levels (M): Shows the High and Low of the previous month for a macro perspective on the market.
Dynamic Labels: Each level is clearly labeled on the right side of the chart (e.g., "D-high", "W-low", "M-high") for instant identification.
Fully Customizable: Toggle the visibility of each timeframe (D, W, M) independently via the settings to keep your chart clean and focused.
Visual Hierarchy: Lines are distinguished by varying thicknesses and colors, allowing you to assess the importance of a level at a single glance.
How to Use:
Support & Resistance: Use these lines as potential bounce or breakout zones.
Trend Confirmation: Combine these levels with your own Market Structure analysis (Higher Highs / Higher Lows).
Targeting: Utilize weekly or monthly extremes as Take Profit targets or Stop Loss reference points.
CTR Weekly MA + 1D MA (v1)I built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
Weekly MAs + 1d 21 SMAThis indicator watches for weekly bullish and bearish alignment on your daily chart. It also triggers a long or short when price touches the 1 Day 21 SMA. It helps ensures a high quality trade setup by trading in a lower timeframe (the 1 Day) while working off stronger signals on the 1 Week timeframe, which are the 3 key moving averages (1W 8 EMA, 1W 21SMA, 1W 50SMA).
The trading rule is as followed:
Short Position:
1. Wait for the 1 week moving averages to align bearish (8 EMA < 21 SMA < 50 SMA). All daily candles will then turn bright red.
2. Wait for a pullback to the 1 Day 21 SMA. Once the wick or body touches this SMA, that candle will turn white. This is the signal that will alert you to be ready to enter into a short position.
3.a. If the candle that changed to white is below the 1 Day 21 SMA, you can enter a short position on the opening of the next daily candle.
3.b. If the candle that changed to white is above the 1Day 21 SMA, wait for the close of the next daily candle. If that candle is below the 21 SMA, enter into your short position at the opening of the next daily candle.
For long positions, you do the same as above but in opposite order.
Beta Coefficient & RSI Table (Midcaps vs Majors)Beta Coefficient & RSI Table (Midcaps vs Majors)
This script builds a comprehensive beta comparison framework between midcap assets and majors for benchmarks, enhanced with a simple RSI midline strategy for clean entry and exit signaling.
In addition to beta-based relative analysis, the script:
Computes raw RSI values on midcap assets for standalone trend qualification
Evaluates every midcap/major ratio combination using the same RSI-based regime logic
Produces binary (0 / 1) signals suitable for systematic filtering and automation
Designed with automation in mind, this script is perfect for daily alerts that can send webhooks externally, and is fully compatible to reliably daily close updates for:
Ratio beta comparisons (midcaps vs majors)
Binary RSI crossover signals on each ratio
Base midcap trend state (RSI > 45 indicating an active uptrend) - 45 made for a slightly faster entry signal if used as a preliminary filter
This makes the table ideal for automated system building, signal aggregates, and hands-off portfolio logic.
Full credits to @MarktQuant and @NianiaFrania🐸 for the original script source.
Rishii's EMA Trend EngineThis indicator is a dual-EMA trend framework designed to improve intraday decision-making by filtering out sideways market noise and highlighting only meaningful trend participation.
It uses a fast and slow EMA to define trend direction, while applying an HLC3-based color logic to show whether price is respecting each EMA. Candles turn green or red only when both the trend alignment and price participation conditions are satisfied. Neutral candles can be shown in white to visually remove noise and make valid candles stand out.
Additional filters such as EMA slope detection and optional higher-timeframe bias help avoid false signals during ranging conditions. A background trend zone and first-candle markers after EMA crossover further improve clarity without cluttering the chart.
How it helps
Clearly shows when the market is trending vs sideways
Highlights only those candles where price is truly participating in the trend
Filters out most whipsaws caused by flat EMAs BITSTAMP:BTCUSD
Combines trend bias, momentum, and participation in one clean view
Caution
This is a trend-following tool, not a reversal indicator.
When EMAs are flat and candles turn white, avoid trading
Do not treat every green/red candle as an entry; wait for proper structure.
Always use proper stop-loss and position sizing.
Contango/Backwardation Futures Box Desk - TT ToolsContango / Backwardation Futures Box – TT Tools
This indicator provides a clear, compact, and intuitive view of the Contango / Backwardation structure of a futures curve, displayed directly on the chart through an advanced informational box.
It is designed for discretionary traders, spread traders, and curve analysis, with an optimized visualization for both desktop and mobile use.
The box displays the real-time Contango or Backwardation structure of the futures curve, including:
curve status (Contango / Backwardation / Flat)
percentage spread between the front contracts
prices of the three expiries (Near, Mid, Far) with directional indicators
confirmation or non-confirmation of the curve structure
contract expiration date with remaining days countdown
rollover warning when expiration is approaching
The box is fully optimized for Desktop, Compact, and Mobile layouts, ensuring a clean, adaptive design and always-readable information.
Quick Start Guide
Select the futures contracts
Insert the nearest futures contracts into Front (1), Next (2) and Third (3), starting from the front-month contract.
You can easily find the correct contract using “Change Symbol”, filtering by Futures and selecting the appropriate expiry.
Check the contract expiry
Identify the rollover date directly on the chart using Events → Contract Switch.
This helps you confirm that you are analyzing the correct futures expiration.
Set the NEXT EXPIRY date
Enter the next futures expiration date in the NEXT EXPIRY (exact date) field.
Simply match it with the contract switch shown on the chart to stay perfectly aligned.
Monitor the curve
The box displays in real time:
curve structure (Contango / Backwardation / Flat)
percentage spread between expiries
prices of the three contracts with directional indicators
structure confirmation status
days-to-expiry countdown
visual rollover warning when expiration approaches
👉 Always keep contracts and expiry dates updated to ensure an accurate reading of the futures curve and to anticipate rollover phases correctly.
__________________________________________________________
Backwardation Futures Box – TT Tools
Questo indicatore mostra in modo chiaro, compatto e immediato la struttura Contango / Backwardation di una curva futures, direttamente sul grafico tramite un box informativo avanzato. È pensato per trader discrezionali, spread traders e analisi di curva, con una visualizzazione ottimizzata sia per desktop che per mobile.
Il riquadro box mostra in tempo reale la struttura di Contango o Backwardation della curva futures, includendo:
• stato della curva (Contango / Backwardation / Flat)
• spread percentuale tra le prime scadenze
• prezzi delle tre scadenze (Near, Mid, Far) con indicatori direzionali
• conferma o meno della struttura della curva
• data di scadenza del contratto e countdown ai giorni residui
• avviso di rollover imminente
Il box è ottimizzato per Desktop, Compact e Mobile, con layout adattivo e informazioni sempre leggibili.
Mini guida operativa
Selezione dei contratti
Inserisci nel box Front (1), Next (2) e Third (3) i future più prossimi a scadenza, partendo dal contratto front-month.
Puoi cercare rapidamente il contratto corretto tramite “Cambia simbolo”, filtrando per Futures e selezionando la scadenza desiderata.
Controllo della scadenza
Individua la data di rollover direttamente sul grafico tramite la sezione Eventi → Switch di contratto.
Utilizza questa informazione per verificare di stare analizzando la scadenza corretta.
Impostazione della NEXT EXPIRY
Inserisci nel campo NEXT EXPIRY (data precisa) la data di scadenza del prossimo future.
È sufficiente confrontarla con lo switch di contratto visibile sul grafico per essere allineati correttamente.
Monitoraggio della curva
Il box mostra in tempo reale:
struttura della curva (Contango / Backwardation / Flat)
spread percentuale tra le scadenze
prezzi dei tre contratti con direzione relativa
conferma o meno della struttura
countdown ai giorni residui
alert visivo di rollover imminente
👉 Mantieni sempre aggiornati contratti e data di scadenza per avere una lettura affidabile della curva futures e anticipare correttamente le fasi di rollover.
Volume Weighted LR Z ScoreThis indicator calculates the Volume Weighted Linear Regression
Z-Score (VWLRZS). Unlike a standard Z-Score which measures
deviation from a static mean, this oscillator measures the
statistical distance of price from a dynamic Volume-Weighted
Linear Regression Line (Analysis of Residuals).
Key Features:
1. **Volatility Decomposition:** The indicator separates volatility
based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
standard Regression Residuals using the selected `Source`
for both the regression line (baseline) and the signal.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):**
Uses a hybrid statistical approach:
a) **The Model (Baseline):** Uses an estimator to calculate
the 'within-bar' mean and fits the Linear Regression
through these statistical centers. This creates a
stable, trend-following expectation model.
b) **The Signal (Observation):** Compares the actual `Source`
(e.g., Close) against this regression line.
(Result: A Z-Score that measures deviations from the current
trend slope rather than a flat average).
2. **Visual Decomposition Logic:** Total Standard Deviation (of
Residuals) is the primary metric displayed. Since Standard
Deviations are not linearly additive (sqrt(a+b) != sqrt(a)+sqrt(b)),
this indicator calculates the *exact* Total Z-Score and partitions
the area underneath based on the Variance Ratio. This ensures the
displayed total volatility remains mathematically accurate while
showing relative composition.
3. **Normalization (Exponential Regression):** Includes an optional
'Normalize' mode. When enabled, the indicator calculates the
Linear Regression on logarithmic data. Mathematically, this
transforms the baseline into an **Exponential Regression Curve**,
making it ideal for analyzing assets with compounding growth
characteristics (constant percentage trend).
4. **Full Divergence Suite (Class A, B, C):** The indicator's
primary feature is its integrated divergence engine. It
automatically detects and plots all three major divergence
classes between price and the Z-Score:
- Regular (A): Signals potential trend exhaustion and reversals.
- Hidden (B): Signals potential trend continuations during pullbacks.
- Exaggerated (C): Signals weakness at double tops/bottoms.
5. **Divergence Filtering and Visualization:**
- **Price Tolerance Filter:** Divergence detection is enhanced
with a percentage-based price tolerance (`pivPrcTol`) to
filter out insignificant market noise, leading to more
robust signals.
- **Persistent Visualization:** Divergence markers are plotted
for the entire duration of the signal and are visually
anchored to the oscillator level of the confirming pivot.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library
6. **Note on Confirmation (Lag):** Divergence signals rely on a
pivot confirmation method to ensure they do not repaint.
- The **Start** of a divergence is only detected *after* the
confirming pivot is fully formed (a delay based on
`Pivot Right Bars`).
- The **End** of a divergence is detected either instantly
(if the signal is invalidated by price action) or with
a delay (when a new, non-divergent pivot is confirmed).
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Calculation:** The Z-Score line *itself* can be calculated on a
higher timeframe, with standard options to handle gaps
(`Fill Gaps`) and prevent repainting (`Wait for...`).
- **Limitation:** The Divergence detection engine (`pivDiv`)
is designed for the active timeframe. Using it in MTF mode
is not recommended as step-data can lead to inaccurate
pivot detection.
8. **Integrated Alerts:** Includes a comprehensive set of built-in
alerts for the Z-Score crossing the neutral line, the configured
Threshold levels, and the start/end of all divergence types.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
CTR Weekly MA TradingI built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
Kaste HARSH [Pure]How it works:
Trend component: Measures the percentage distance between fast (12) and slow (26) EMAs
Momentum component: RSI centered at 50 (range -50 to +50)
Result: A smoothed line oscillating around zero—positive values indicate bullish momentum, negative values bearish
Reading the indicator:
Above zero: Uptrend dominance; line above orange signal = strong momentum
Below zero: Downtrend dominance; line below signal = weakening momentum
±20 dotted lines: Overbought/oversold thresholds (adjustable via background colors)
Best used for: Confirming trend direction and spotting momentum divergences without chart clutter. Pure price action alignment—no buy/sell arrows, just raw trend energy.
Profile Edge Trading - Range BreakoutOpening Range Breakout (ORB) & Profile Confluence
The indicator is an all-in-one institutional trading system. It combines the volatility of the session open with the structural context of Market Profile (TPO) to identify high-probability breakout entries while filtering out "bull and bear traps."
What It Does
Most ORB strategies fail because they ignore where the market is trading relative to "Value." This indicator solves that by aligning the Opening Range (OR) with the Previous Day’s Value Area (VAH/VAL/POC).
It triggers Buy/Sell marks only when price breaks the opening range and aligns with the broader profile structure, ensuring you are trading with the institutional trend rather than against it.
Key Features
Smart ORB Signals: Automatic Buy/Sell marks based on Opening Range breakouts, filtered by volume and profile structure.
Dual Chart Modes: * Market Profile (TPO): View the historical distribution of price.
Hybrid Candlestick: Toggle to candlesticks for intraday execution while keeping the profile levels visible.
Profile Confluence Filter: Validates breakouts only if they occur relative to the Previous Day High (VAH), Low (VAL), or Point of Control (POC).
Visual Risk Management: Automatically plots Stop Loss (SL) and Take Profit (TP) levels on the chart the moment a signal triggers.
Customizable Reward: Adjust your desired Risk/Reward ratio (e.g., 1:2, 1:3) directly in the input settings.
Multi-Timeframe Logic: Use TPOs for structural context and candlesticks for precise entry timing.
How to Use
Define the Range: Set your Opening Range time (e.g., first 5, 15, or 30 minutes) in the settings.
Risk/Reward Ratio: Input your Reward Ration (e.g., 1.5, 2 )
For more:
Futures Basis SuiteThe Futures Basis Suite measures the price difference between futures contracts of different expiration months. This difference, called the basis or spread, reveals critical information about supply and demand dynamics, market sentiment, and the cost of carrying a commodity over time.
When futures prices for later months are higher than near-term prices, the market is in contango. When near-term prices exceed later month prices, the market is in backwardation. These two states tell very different stories about what is happening in the physical commodity market.
HOW IT WORKS
The indicator fetches price data from two futures contract months using TradingView continuous contract symbols. For example, GC1 represents the front month gold contract and GC2 represents the second month contract. The indicator calculates the difference between these prices and expresses it in multiple ways: as an absolute dollar value, as a percentage of the front month price, as an annualized rate, and as a statistical z-score.
The core calculation is simple. Basis equals Front Month Price minus Back Month Price. A negative result means the back month is more expensive than the front month, which is contango. A positive result means the front month is more expensive, which is backwardation.
The indicator automatically detects what commodity you are viewing and selects the appropriate futures symbols. You can also manually select from a dropdown list or enter custom symbols if needed.
CONTANGO AND BACKWARDATION EXPLAINED
Contango is the normal state for most commodity markets. When a market is in contango, futures prices increase as you look further into the future. This happens because holding a physical commodity costs money. You need to pay for storage, insurance, and financing. These carrying costs get priced into futures contracts. The further out the contract, the more carrying costs accumulate, so the price is higher.
Backwardation is the opposite and signals something unusual is happening. When a market is in backwardation, near-term prices are higher than future prices. This occurs when there is immediate demand for the physical commodity that exceeds available supply. Buyers are willing to pay a premium to get delivery now rather than wait. This is often called convenience yield because there is value in having the physical commodity in hand.
Backwardation typically occurs during supply disruptions, unexpected demand spikes, low inventory levels, or geopolitical events that threaten supply chains. It is generally considered a bullish signal because it indicates tight physical supply conditions.
SPECIAL NOTE FOR PRECIOUS METALS
Gold and silver are almost always in contango. This is normal and expected. These metals have very low storage costs relative to their value, they do not spoil or degrade, and massive above-ground stockpiles exist. Backwardation in precious metals is extremely rare and historically significant.
For precious metals, the key signal is not whether the market is in contango or backwardation, but how deep the contango is. A flattening contango, where the spread becomes less negative, indicates tightening physical supply and is bullish for prices. A deepening contango indicates ample supply and is neutral to bearish.
When precious metals actually flip to backwardation, it signals severe physical stress in the market. This has only happened a handful of times in modern history, including during the Hunt Brothers silver squeeze in 1980, briefly during the 2008 financial crisis, during COVID supply chain disruptions in 2020, and during the silver squeeze of October 2025.
SCIENTIFIC BACKGROUND
The theory of storage, developed by economists Holbrook Working and Nicholas Kaldor in the 1930s and 1940s, explains the relationship between spot and futures prices. According to this theory, the futures price equals the spot price plus carrying costs minus convenience yield.
Carrying costs include storage fees, insurance premiums, and the interest cost of tying up capital in inventory. These costs are relatively stable and predictable. Convenience yield is the benefit of holding physical inventory, which allows a business to maintain operations without disruption. When inventories are high, convenience yield is low because additional inventory provides little marginal benefit. When inventories are low, convenience yield rises sharply because having physical material becomes critical.
Academic research has documented profitable trading strategies based on term structure signals. A 2011 study published in the Journal of Banking and Finance found that combining momentum signals with term structure signals generated annualized returns of 21 percent, significantly outperforming strategies using only one signal. The strategy involves buying commodities in backwardation and selling commodities in contango.
The term structure also affects the returns of investors holding futures positions over time. This effect is called roll yield. When rolling a futures position from an expiring contract to the next month, investors in contango markets must sell low and buy high, creating negative roll yield. Investors in backwardated markets sell high and buy low, generating positive roll yield. This can significantly impact long-term returns on commodity investments.
ANALYSIS MODES
Basis Spread mode shows the raw dollar difference between contract months. This is useful for seeing the actual cost in currency terms. For a gold contract, a basis of negative 5 means the second month is 5 dollars more expensive per ounce than the front month.
Basis Percentage mode expresses the spread as a percentage of the front month price. This makes it easier to compare across different commodities and time periods. A basis of negative 0.5 percent is a small contango regardless of whether you are looking at gold at 2000 dollars or silver at 30 dollars.
Annualized Basis mode extrapolates the current spread to a yearly rate. If the spread between month 1 and month 2 is negative 0.5 percent and there are 30 days between contracts, the annualized basis would be approximately negative 6 percent. This helps compare the cost of carry to interest rates and evaluate whether the spread is normal given current financing costs.
Z-Score mode normalizes the current basis against its historical distribution. A z-score of zero means the basis is at its historical average. A z-score of positive 2 means the basis is 2 standard deviations above average, indicating unusually strong backwardation or unusually flat contango. A z-score of negative 2 means unusually deep contango. Extreme z-scores often precede mean reversion.
Term Structure mode plots multiple spread comparisons simultaneously, showing the shape of the entire futures curve. This helps visualize whether the curve is uniformly sloped or has kinks and irregularities.
Raw Debug mode displays the underlying contract prices and calculation details for troubleshooting data issues.
IMPORTANT SETTINGS
Symbol Mode determines how the indicator finds the futures contracts to compare. Auto Detect reads the symbol from your chart and constructs the appropriate continuous contract symbols. Dropdown lets you select from a predefined list of common commodities. Manual lets you enter custom ticker symbols directly.
Spread Pair selects which contract months to compare. Front versus 2nd Month compares the nearest contract to the next one, which is the most liquid spread. Front versus 3rd Month captures more of the curve shape but may have less liquidity. Other combinations are available for specific spread trading strategies.
Days Between Contracts affects the annualized basis calculation. Different commodities have different contract cycles. Gold and silver typically have monthly contracts, so 30 days is appropriate. Agricultural commodities may have contracts every 2 or 3 months. Adjust this setting based on the commodity you are analyzing.
Z-Score Length sets the lookback period for calculating the statistical average and standard deviation. A setting of 52 on a daily chart looks back approximately one year. Shorter periods make the z-score more responsive but also more noisy. Longer periods provide more stable readings but may miss regime changes.
Contango Threshold and Backwardation Threshold set the percentage levels where the indicator classifies the market as being in contango or backwardation versus flat. The defaults are negative 0.5 percent for contango and positive 0.5 percent for backwardation. Spreads between these thresholds are classified as flat.
Extreme Z-Score sets the threshold for highlighting statistical extremes. The default of 2.0 corresponds roughly to the 95th percentile, meaning the current spread is more extreme than 95 percent of historical observations.
Invert Spread flips the calculation to show Back Month minus Front Month instead of Front Month minus Back Month. This is useful if you are trading a calendar spread where you are short the front month and long the back month, or if you prefer the convention where positive values indicate contango.
INTERPRETING THE DASHBOARD
The dashboard displays key metrics at a glance. Basis shows the current absolute spread value. Basis percentage shows the spread relative to the front month price. Regime displays whether the market is currently in contango, backwardation, or flat.
Z-Score shows how the current spread compares to history, with labels indicating whether the reading is normal, elevated, or extreme. Front and Back show the actual contract prices being compared. Annualized shows the spread extrapolated to a yearly rate.
Max and Min show the highest and lowest basis percentages observed over the lookback period. These help contextualize whether the current reading is near historical extremes.
The footer shows the data source status, confirming which symbols are being used and whether valid data is available.
HOW TO INTERPRET FOR PRECIOUS METALS
For gold and silver, the indicator will almost always show red indicating contango. This is normal. Focus on these signals instead.
Flattening contango occurs when the basis percentage moves toward zero, becoming less negative. For example, if the basis moves from negative 1.0 percent to negative 0.3 percent, contango is flattening. This indicates tightening physical supply and is bullish for prices. The Z-score will move higher, toward positive values.
Deepening contango occurs when the basis percentage moves further negative. For example, if the basis moves from negative 0.5 percent to negative 1.2 percent, contango is deepening. This indicates ample supply and reduced urgency for physical delivery. It is neutral to bearish. The Z-score will move lower, toward negative values.
Backwardation is extremely rare for precious metals. If the indicator turns green showing positive basis, this is a major event indicating severe physical market stress. Historically, this has preceded significant price rallies.
TRADING APPLICATIONS
Regime flips from contango to backwardation often signal significant shifts in market dynamics. When a commodity that has been in contango for an extended period suddenly flips to backwardation, it may indicate emerging supply tightness or demand strength. This can be an early warning of price rallies.
Extreme z-scores suggest the current spread is unsustainable and likely to revert toward normal levels. If a commodity is in extreme backwardation with a z-score above 2, the spread may narrow as supply conditions normalize. If a commodity is in extreme contango with a z-score below negative 2, the spread may narrow as excess supply gets absorbed.
Comparing basis behavior during price moves provides insight into what is driving the move. If prices rally sharply but the basis remains in contango or even deepens, the rally may be driven by speculative buying rather than physical demand. If prices rally and the basis flattens or flips to backwardation, physical tightness is likely supporting the move.
For investors holding futures positions or commodity ETFs, monitoring the basis helps understand roll yield drag. Deep contango markets impose significant costs on long holders over time. Backwardated markets provide tailwinds to long positions through positive roll yield.
ALERTS
The indicator provides several alert conditions. Regime Flip alerts trigger when the market crosses from contango to backwardation or vice versa. Extreme Z-Score alerts trigger when the spread reaches statistical extremes. Spread Expanding alerts trigger when the basis is widening rapidly, which may indicate increasing market stress.
SUPPORTED COMMODITIES
The indicator supports major futures across multiple asset classes. Metals include gold, silver, and copper traded on COMEX. Energy includes crude oil and natural gas traded on NYMEX. Agriculture includes wheat, corn, and soybeans traded on CBOT. Financials include E-mini S&P 500, E-mini Nasdaq, and Treasury futures traded on CME. Currencies include Euro and Yen futures. Cryptocurrency includes CME Bitcoin futures.
LIMITATIONS
The indicator relies on TradingView continuous contract data, which may have artifacts around contract rollovers. The days between contracts setting is approximate and varies by commodity and market conditions. Very short-term timeframes may show noise in the basis calculation. Some commodities may have limited data history for statistical analysis. The indicator shows the spread between specific contract months, not the full futures curve with all available contracts.
VERSION HISTORY
Version 1 released with six analysis modes, automatic symbol detection, comprehensive dashboard, statistical regime detection, and configurable alerts.
CREDITS
Developed by Robinhodl21 as part of the Grandmaster Indicator Suite. Released under Mozilla Public License 2.0.
Multi-Timeframe EMA LevelsThis indicator will plot 2 different EMA's from 4 different timeframes on your chart. It displays as horizontal dotted lines so does not clutter your chart with loads of MA's. The lines are labeled with timeframe, EMA length and the level value. Levels update in real time.
If you are trading key levels or ma's this plots everything for you on one single chart.
EMA & VWAP Crossover SignalsEMA And VWAP Crossover Signals
Overview
The **EMA & VWAP Crossover Signals** indicator is a comprehensive trading tool that combines the power of Exponential Moving Averages (EMA) and Volume Weighted Average Price (VWAP) to identify high-probability trading opportunities. This indicator automatically detects and classifies bullish and bearish signals based on the relationship between price action, EMAs, and VWAP.
Key Features
Technical Components
- **EMA 9** (Green Line): Fast-moving average for short-term trend identification
- **EMA 21** (Red Line): Slower-moving average for medium-term trend confirmation
- **VWAP** (Blue Line): Volume-weighted average price calculated using HLC/3 (High, Low, Close average)
Signal Types
Standard Signals
- **Bull Signal**: Small green triangle when EMA 9 crosses above EMA 21
- **Bear Signal**: Small red triangle when EMA 9 crosses below EMA 21
Enhanced Signals
- **Big Bull Signal**: Larger green triangle indicating stronger bullish momentum
- **Big Bear Signal**: Larger red triangle indicating stronger bearish momentum
How It Works
Big Bull Conditions (Strong Bullish Signals)
The indicator identifies four scenarios for Big Bull signals:
1. **Direct Breakout**: Bullish EMA crossover occurs when both EMAs are already above VWAP
2. **Delayed Confirmation**: After a bullish EMA crossover below VWAP, the candle closes above VWAP
3. **Simultaneous Break (From Below)**: Bullish EMA crossover and candle close above VWAP happen together while EMA 21 is below VWAP
4. **Simultaneous Break (From Above)**: Bullish EMA crossover with candle closing above both EMAs while VWAP is below the crossover point
Big Bear Conditions (Strong Bearish Signals)
Mirror scenarios for bearish signals:
1. **Direct Breakdown**: Bearish EMA crossover occurs when both EMAs are already below VWAP
2. **Delayed Confirmation**: After a bearish EMA crossover above VWAP, the candle closes below VWAP
3. **Simultaneous Break (From Above)**: Bearish EMA crossover and candle close below VWAP happen together while EMA 21 is above VWAP
4. **Simultaneous Break (From Below)**: Bearish EMA crossover with candle closing below both EMAs while VWAP is above the crossover point
Trading Applications
- **Trend Identification**: Use EMA crossovers to identify trend direction changes
- **Volume Confirmation**: VWAP integration ensures institutional support for moves
- **Entry Timing**: Big signals indicate higher-probability entry points with volume and trend alignment
- **Risk Management**: Standard signals can be used for early alerts, while Big signals confirm stronger setups
Visual Elements
- Clean, color-coded plots for easy identification
- Triangle shapes for quick signal recognition
- Text labels for clarity
- Size differentiation between standard and enhanced signals
Best Practices
- Use Big Bull/Bear signals for higher-confidence trades
- Combine with other analysis tools for confirmation
- Consider timeframe appropriateness (works on all timeframes)
- Watch for signal alignment with overall market structure
- Standard signals can provide early warnings, but Big signals offer better risk/reward
Unique Advantages
- Multi-scenario signal detection captures various market conditions
- Volume integration via VWAP filters out weak moves
- Smart tracking system prevents duplicate signals
- Automatic signal classification saves analysis time
**Disclaimer**: This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always practice proper risk management and combine with fundamental analysis and other technical tools.






















