COT: CTA POSITIONINGCOT: CTA POSITIONING
A comprehensive Commitment of Traders (COT) indicator that tracks institutional money manager positioning across futures markets. This indicator displays CTA (Commodity Trading Advisor) net positioning as a percentile rank, helping traders identify potential market extremes and contrarian opportunities.
Key Features:
Multi-Market Coverage: Automatically detects and displays COT data for 60+ futures contracts across equity indices, bonds, currencies, cryptocurrencies, metals, energy, grains, livestock, and softs
Percentile Rank Display: Shows CTA net positioning (long minus short) as a percentile over a customizable lookback period (default 156 weeks ≈ 3 years)
Extreme Zones: Visual highlighting of potential reversal zones when CTAs reach positioning extremes (>80th percentile = bearish, <20th percentile = bullish)
Liquidity Analysis Table (optional): Displays detailed positioning breakdown including:
Gross long and short positions
Net positioning
20-day average volume
Net position as % of average daily volume
Estimated days to unwind net position
Methodology:
The indicator pulls CFTC Commitment of Traders data from both Financial Traders (COT3) and Disaggregated (COT2) reports, focusing specifically on leveraged money managers (CTAs/hedge funds). It calculates:
Net Positioning = CTA Longs - CTA Shorts
Net as % of Open Interest
Percentile rank of current net positioning vs. lookback period
Interpretation:
High readings (>80): CTAs are extremely net long - potential bearish reversal signal
Low readings (<20): CTAs are extremely net short - potential bullish reversal signal
Works best as a contrarian indicator on weekly timeframes
Consider liquidity metrics to assess position size relative to market capacity
Settings:
Lookback Period: Adjustable percentile calculation window (default 156 periods)
Show Table: Toggle detailed positioning and liquidity data display
Supported Markets:
Equity Indices (ES, NQ, RTY, YM), Treasuries (ZT, ZF, ZN, ZB, UB), Currencies (6E, 6J, 6B, 6C, 6A), Crypto (BTC, ETH), Metals (GC, SI, HG, PL, PA), Energy (CL, NG, RB, HO, BZ), Grains (ZC, ZW, ZS, ZM, ZL), Livestock (LE, HE, GF), and Softs (SB, CT, KC, CC, OJ)
Note: COT data is released weekly on Fridays and reflects positions as of Tuesday close. This indicator works best on daily or weekly timeframes.
Data sourced from CFTC Commitment of Traders reports via TradingView's COT library.
Indicators and strategies
SMT DivergencePlots "SMT Divergence" labels.
Mouse over the label to display additional information.
8-Year Cycle 8-Year Cycle Indicator — Description
Overview:
The 8-Year Cycle Indicator visually highlights repeating 8-year macro cycles on a chart, commonly used for gold, miners, or other long-term assets. It helps traders and investors understand early, mid, and late phases of each cycle to better plan positioning and risk management.
Features:
Each cycle is 8 years long by default.
Each year in the cycle can be assigned a custom color for granular visualization.
The last 4 years of a cycle can optionally be highlighted to indicate the late-cycle phase, historically associated with peaks and higher volatility.
Vertical lines mark the start of each cycle.
Labels display the full cycle period (e.g., 1981–1988).
Background shading per year makes it easy to distinguish early, mid, and late cycle stages.
Use Cases:
Identifying accumulation and topping periods in gold or related assets.
Understanding long-term macro trends.
Providing visual context for risk management in multi-year cycles.
Complementing other technical or macro indicators for strategic positioning.
Time Pattern Analyzer - Multi Mode [fmb]This is a lightweight session-behaviour overlay that helps you spot whether a market tends to move up or down at specific days or times.
- Two analysis modes
Weekday: Breaks performance down by Mon–Fri
Hour of Day: Breaks performance down by 0–23 and can also track a single exact time (hour + minute), like 09:30
- Visual timing markers (optional)
Draws vertical lines on the chart for the selected day(s) or time(s)
Line colour reflects the bar direction: green (up), red (down), grey (neutral)
Fully adjustable width and style (solid, dotted, dashed)
- Flexible “green vs red” definition
Body mode: Close > Open (candle body direction)
Previous close mode: Close > Close (momentum vs prior bar)
- Stats table (optional)
For each day or hour, the table shows:
Count (sample size)
% Green
% Red
Average % move (average return for that bucket)
Table can be positioned anywhere on the chart (top/bottom, left/centre/right)
Use cases
- Quickly identify recurring tendencies like “Mondays are strongest” or “first hour is choppy,” and validate timing ideas with clear counts and averages instead of guesswork.
Note: This tool reports historical tendencies, not predictions. Always account for regime changes, news risk, and liquidity.
Std Dev Channel [fmb]What it is
A professional regression channel that combines standard deviation divisions, an extreme price envelope, and a trend quality gauge. It is designed for fast read-and-act decisions on any timeframe, with sensible presets and log-space math for instruments that trend exponentially.
Why it’s different
Most channels draw fixed ±1σ and ±2σ around a regression line. This tool adds:
- Fibonacci-spaced σ divisions for precise scaling
- An objective MaxEnvelope of actual extremes with optional 1.272 and 1.618 extensions
- Pearson’s R labelling that classifies the trend as Strong Up, Moderate, Weak, or Strong Down
- A log-space option so channels behave correctly on long trends and high beta charts
How it works
Base line
- Linear regression of the last Length bars, drawn as a ray.
- Optional colour change by regime using Pearson’s R.
Divisions (StdDev or MaxEnvelope)
- StdDev basis: σ of residuals around the regression line.
- MaxEnvelope basis: distances from the base line to the farthest highs and lows in the lookback.
- Divisions can be Fibonacci multiples (0.382, 0.618, 1.000, 1.272 by default) or uniform steps.
Outer rails
- ENV 1.0 touches the farthest highs and lows within the window.
- Optional extensions at 1.272 and 1.618 highlight stretch and breakout zones.
Trend quality (Pearson’s R)
- R is computed on the same series and window.
- Default thresholds: Strong when |R| ≥ 0.70, Weak when |R| < 0.40.
- The label reads: R 0.XXX • Class, plotted near the most recent base value.
Log-space math
- When enabled, the model runs on ln(price) and converts the outputs back to price.
- Safer on multi-year charts and large percentage trends.
Presets
- Swing: Length 125, StdDev basis, Fib divisions, ENV 1.0 and 1.272 on
- Intraday: Length 240, StdDev basis, simple ±1 and ±2 style divisions, ENV off by default
- Position: Length 200, StdDev basis, compact Fib set for higher timeframes
You can turn preset overrides off to make every input respond instantly.
Inputs you will actually use
- Length, Source, Log-space ON or OFF
- Basis: StdDev or MaxEnvelope
- Divisions: Fib list or Step and Max multiple
- Outer rails: show ENV 1.0, show 1.272, show 1.618
- Labels and sizes, extend left or right
- Hide divisions or outer rails automatically when the regime is Weak
Alerts included
- Close crosses above or below ENV 1.0
- Close crosses above or below ENV 1.272 and 1.618 (if enabled)
Practical playbook
Trend following
- In Strong Uptrend: buy pullbacks near 0.382 to 0.618 above the base with stops just beyond the next lower division.
- In Strong Downtrend: sell bounces into 0.382 to 0.618 below the base with stops just beyond the next upper division.
Mean reversion
- When R is Moderate or Weak, fade moves that tag ENV 1.0 back toward the base.
- If price closes through an ENV extension, treat it as potential regime change and stand down on fades.
Breakouts
- A close through ENV 1.0 with R rising toward Strong often precedes trend acceleration.
- Use the next division or the 1.272 rail as the first target and trail on the base.
Tips
- Keep Length stable across symbols you compare. Consistency beats curve fitting.
- Use log-space on multi-year equities and crypto. Use linear for short intraday work.
- If you want a classic look, disable Fib and rails, set Step 1.0 and Max 2.0.
Notes
- The tool draws more lines when Fib divisions are active. If it feels busy, show divisions only and hide labels, or keep ENV 1.0 plus one extension.
- Pearson’s R is descriptive, not predictive. Combine with price structure and volume for entries.
Multi-Sigma Bands [fmb]Multi-Sigma Bands plots standard deviation (sigma) bands around a selectable basis (SMA, EMA, RMA, or Linear Regression). It’s designed to help you spot when price is behaving “normally” versus when it’s stretching into statistically extended territory.
What it shows
- Basis: the central reference line (your chosen basis type)
- ±1σ zone: the common range where price spends much of its time
- ±2σ zone: extended range where moves often become more emotional or trend-driven
- ±3σ zone: extreme range where price is statistically stretched (risk increases)
How to read it
- Inside ±1σ
- Often normal behaviour and mean-reverting price action around the basis.
- Between ±1σ and ±2σ
- A meaningful extension. In trends, price can “walk” these areas for longer than expected.
- Between ±2σ and ±3σ
- Rare extension. Can signal exhaustion, blow-off behaviour, or capitulation depending on direction and context.
How traders typically use it
- Trend context
- In strong uptrends, price may ride the upper bands (+1σ to +2σ) repeatedly.
- In strong downtrends, the lower bands (-1σ to -2σ) can act the same way.
- Bands show statistical stretch, not automatic reversal signals.
- Extension and risk framing
- The farther price is from the basis, the more “stretched” it is.
- That usually means chasing becomes riskier and entries require tighter confirmation.
- Range behaviour
- Ranges often oscillate around the basis, with frequent returns toward the middle zone.
Settings
- Source: what price series to use (Close by default)
- Length: lookback used for both basis and standard deviation
- Basis: SMA, EMA, RMA, or LinReg
- Stdev smoothing: optional smoothing on standard deviation for cleaner bands
- σ multipliers: customise σ1, σ2, σ3 (defaults: 1, 2, 3)
- Force Monthly Data (optional): calculate bands using a higher-timeframe source to reduce noise and focus on macro structure
Disclaimer
This indicator is for informational and educational purposes only and is not financial advice. Always use risk management and confirm with market structure and trend context.
Last Year's Close [fmb]This tool plots last year’s closing price as a clean stepline on the daily chart and turns it into a simple regime map. Each year is coloured by its own performance and the line flips in real time as price trades above or below that level.
- Plots last year’s close for each bar of the current year as a horizontal step line
- Works strictly on the 1D timeframe (the script will warn you otherwise)
- Year classification: if December closes above January’s open, that year is bullish; if it closes below, that year is bearish
- Horizontal and closing vertical segments are coloured green for bullish years and red for bearish years
- Inside the active year the colour updates dynamically: green while price is above last year’s close, red while price trades below it
- User inputs for bullish and bearish colours (default: soft green/red with 30 % opacity), so it can blend into any chart theme
- Uses the symbol’s own price scale, so the line always moves and scales together with the candles
Alert (New Feature)
The script includes a built-in alert condition that fires when price comes within a user-defined percentage of last year’s close.
Add the indicator to your chart (on 1D).
In Inputs, set the proximity percentage you want (default 10 %).
Create an alert on this script and choose:
- Condition: Price near last year's close
- Your preferred expiry and notification settings.
Use it to quickly see when a market is reclaiming or losing last year’s closing level, to anchor yearly mean-reversion trades, or to sanity-check how far a move has stretched relative to where the last calendar year finished.
RSI Level Candles [fmb]RSI Level Candles
What it is
RSI Level Candles is a minimal, high-signal overlay that keeps your attention on price. It paints candles by RSI regime and adds tiny edge dots to highlight extreme momentum. The design goal is speed and clarity with no clutter.
Why it was built
Most RSI tools sit in a separate pane and introduce noise with extra lines, labels, and overlapping thresholds. This indicator moves the information onto price itself. You see regime directly on the candles and only the most important alerts when RSI is in extreme territory.
What it does
Candles change color according to RSI. Above the neutral high (default 60) they turn green. At the high extreme (default 70, or 80 if you prefer) they turn lime. Between 40 and 60 you may show a soft yellow neutral band or leave candles unpainted. Below the neutral low (default 40) candles turn red, and at or below the low extreme (default 30, or 20 if you prefer) they turn maroon. The indicator also prints small dots at the top and bottom of the pane to spotlight extremes. A green dot appears at the top on any bar with RSI at or above the high extreme. A red dot appears at the bottom on any bar with RSI at or below the low extreme.
How this helps
You get an instant read on momentum regime without leaving the price chart. Extremes are easy to spot which helps manage chase or exhaustion risk. The neutral band behavior helps distinguish trend days from range days and supports cleaner add or trim decisions within an existing trend.
Best practices
Treat 60 and 40 as momentum gates. Above 60 favors a long bias and additive entries on pullbacks. Below 40 favors a defensive posture on longs or a short bias. Use extremes for management rather than automatic reversal calls. In strong trends RSI can remain extreme for extended periods. Look for a change in market structure or a clear reclaim of 60 or 40 before shifting bias. Combine this overlay with simple structure and trend filters such as support and resistance, a 20 or 50 period moving average, and volume or volatility context.
Inputs
You can set RSI source and length, choose neutral low and high, and choose extreme low and high. The neutral band can be shown in soft yellow between 40 and 60 or turned off entirely. You can also toggle candle painting on or off if you only want the extreme dots.
Reading the colors
Lime indicates the extreme bullish zone. Green indicates bullish momentum. Yellow indicates the optional neutral band. Red indicates bearish momentum. Maroon indicates the extreme bearish zone. A small green dot at the top means the bar is in the high extreme. A small red dot at the bottom means the bar is in the low extreme.
Use cases
For trend following, stay aligned with the prevailing regime while avoiding overreactions to small fluctuations. For swing entries, buy pullbacks while RSI holds above 40 in uptrends, and fade bounces that stall under 60 in downtrends. For risk control, trim strength that pushes into extremes and stalls, then re-add on momentum reclaims.
Limitations
RSI measures momentum, not direction by itself. Do not use it in isolation. Extremes can persist during strong trends, so wait for structure or momentum re-tests before changing bias. Very illiquid symbols can create noisy signals.
Notes
Dots are designed to appear on every bar that sits inside the extreme zones. If you prefer single entry dots, change the logic to look for crosses rather than conditions. There is no separate RSI pane, no text labels, and no cross markers. The objective is simplicity and speed.
Return Skew (Directional Asymmetry)This indicator measures the asymmetry of returns over a rolling window, specifically evaluating whether positive returns dominate negative returns in magnitude rather than frequency. The purpose of this indicator is to identify assets whose upside moves are structurally stronger than their downside moves, indicating convex return behaviour. Unlike trend or momentum indicators, return skew captures the quality of price movement, distinguishing between assets that grind upward versus those that experience explosive upside relative to drawdowns. By requiring positive return skew, this indicator helps avoid assets that are rising through frequent small gains but are vulnerable to sharp downside moves, thereby favouring assets exhibiting genuine asymmetric upside potential.
MACD Cross Overlay v.6d.mark165's MACD Cross Overlay updated to Pine Editor ver. 6 with a Timeframe option added. All credit to him. Shows MACD crossovers as well as MACD status (positive/negative) overlay.
For some reason the overlay is striped when viewed on a lower timeframe than the MACD (i.e. 1 minute MACD on 10 second chart). If anyone knows how to fix this please tell me.
BTC/M2 Fire Sniffer (Liquidity Range Z-Score)Howdy Fella. Great to see you here, exploring the true data in CRYPTOCAP:BTC analysis.
To ensure a perfect view on the markets, here are a few tips on how to fine tune the Fire Sniffer:
- Z-Score Lookback: 40
- Liquidity Ratio SuperSmoother Length: 8
- Z-score SuperSmoother Length: 132
Set the ranges as following:
Mean: -0.53
Liquidity Cycle Top: 0.8
Liquidity Cycle Bottom: -0.65
With that, you are set to go. Enjoy and make sure to let me know your thoughts on the script. You can contact me on X: @thebitcoinfrontier
Volatility Heatmap & ATR Pane# Volatility Heatmap & Synchronized ATR Pane
This indicator provides a comprehensive view of multi-symbol volatility, displaying a dynamic heatmap table and a synchronized ATR (Average True Range) panel. It is designed to help traders identify periods of abnormal market activity or "volatility squeezes" across multiple assets simultaneously.
## Methodology & Calculation:
The core metric of this tool is **Relative Volatility (Rel. Vol %)**. It compares the current ATR to its historical baseline to determine if the current price movement is expanding or contracting relative to the norm.
The calculation logic is as follows:
1. **ATR Calculation:** We calculate the ATR over a user-defined period (default is 14).
2. **Baseline SMA:** We calculate a Simple Moving Average of that ATR (default is 50).
3. **Relative Percentage:**
$$Rel. Vol \% = (Current ATR / SMA(ATR)) * 100$$
## Key Features:
* **Multi-Symbol Dashboard:** Monitor up to 10 custom symbols (e.g., BINANCE:BTCUSDT, BINANCE:ETHUSDT) in a single table.
* **No-Repaint MTF Logic:** Uses `request.security()` with `lookahead = barmerge.lookahead_off` to ensure data integrity and prevent any historical rewriting.
* **Dynamic Status Alerts:**
* **SLEEPING (<70%):** Extremely low volatility.
* **NORMAL (100-130%):** Standard market movement.
* **EXTREME (>200%):** Significant volatility spike, often preceding trend exhaustion or breakouts.
* **Synchronized Pane:** The bottom panel displays the raw ATR and its average for the chart's current symbol, perfectly aligned with the dashboard's timeframe.
## How to Use:
1. Add the script to your chart.
2. In the settings, input your preferred symbols under the "Symbols 1-10" section.
3. Use the "Volatility Timeframe" input to lock the calculation to a specific timeframe (e.g., 1D) or leave it empty to sync with your current chart.
4. Watch the "Rel. Vol %" column to spot assets that are starting to "wake up" (moving from Blue/Low to Green/Rising).
Implied Volatility Bands"S&P 500" => vol_sym := "TVC:VIX"
"BTC" => vol_sym := "DERIBIT:DVOL" // Or use "VOLMEX:BVIV" as alternative
"Gold" => vol_sym := "CBOE:GVZ"
"Silver" => vol_sym := "CBOE:VXSLV"
ADX DMI SqueezeOverview
This indicator combines:
ADX / DMI → Measures trend strength and direction
ADX Squeeze Histogram → Shows when the trend is accelerating or “squeezing” for a breakout
Triangles → Highlight potential expansion points
Optional DI+ / DI− lines → Show bullish/bearish dominance
ADX Threshold Lines (15 / 20) → Help filter weak trends
Early ADX Acceleration Dots → Provide an early heads-up before a squeeze fires
It can be used standalone or alongside other trend tools like VWAP for better entry timing.
Entry Guidelines
Long Trades (Buy):
Histogram above 0
Green triangle appears
ADX rising or above threshold (15/20 recommended)
Optional: DI+ > DI− confirms bullish strength
Short Trades (Sell):
Histogram above 0
Red triangle appears
ADX rising or above threshold (15/20 recommended)
Optional: DI− > DI+ confirms bearish strength
Avoid trades if:
Histogram negative
Triangles appear but ADX below threshold or trend not confirmed by DI linesOptional Filters
Require ADX acceleration: Only shows signals when ADX is increasing → avoids late or false entries
VWAP Bias: Session-anchored institutional positioning (best for open & intraday scalps).
MA Bias: Time-based trend direction (best for continuation & trend days).
Tips
Best on 30-min or higher timeframes for swing/short-term trend trades
Can be combined with VWAP Moving averages , support/resistance, or Bollinger Bands
Use DI lines toggle if you want extra visual trend confirmation
Adjust DMI length (sensitivity) and ADX smoothing for your preferred timeframe
Interpretation
Histogram turning green above 0 + triangle → strong bullish move forming
Histogram turning red above 0 + triangle → strong bearish move forming
ADX above 20 → strong trend, more reliable
ADX below 15 → weak trend, signals less reliable
In short:
Long = Green bars above 0 + Green triangle
Short = Red bars above 0 + Red triangle
Confirm with ADX above threshold and optionally DI lines
yesterday
RSL Buy Signal Alert the relative Strength Index from Levy is checked. If it is above a dynamic value, an alert is triggered
ICT MOC Macro (Time + Price) - Live Signals + 3:30/MOC/SLTPict moc strat basically it works by determining the bias of market on closer orders at 3:30-3:50.
DonkeyKong 3 minuteTis is a test script for ema movement
Deselect the yellow for quicker entry and exit for 3 minute
Institutional Volume RSI [Adaptive]The Institutional Volume RSI is a next-generation momentum oscillator designed to solve the two biggest problems with standard RSI: Price Deception and Static Thresholds.
Standard RSI uses fixed 70/30 levels to define "Overbought" and "Oversold." This is flawed because in a strong institutional trend, the market can stay "Overbought" for weeks. Selling just because RSI hit 70 is a guaranteed way to lose money.
This tool fixes that.
It replaces static lines with Adaptive Volatility Bands . These bands breathe with the market—expanding during trends and contracting during squeezes—giving you a dynamic, statistically significant view of true momentum.
How It Works
The engine runs on three institutional concepts:
1. Volume-Weighted Source (VWMA) 📊
We calculate RSI based on Volume Weighted Moving Average , not just Close price.
Low Volume Move: RSI ignores it (Fakeout).
High Volume Move: RSI reacts aggressively (True Momentum).
2. Adaptive Volatility Bands 🌊
Instead of fixed lines, we use dynamic bands (similar to Bollinger Bands) applied directly to the RSI.
The Trend Ride: As long as the RSI line stays inside or above the Upper Band, the trend is strong. Do not sell.
The Squeeze: When the bands contract (get tight), it signals that volatility is dead and a massive explosive move is imminent.
3. Dynamic Sentiment Coloring 🎨
Green Line: RSI is above the baseline (Bullish Control).
Red Line: RSI is below the baseline (Bearish Control).
White Dots: These appear when RSI breaks outside the bands, signaling an extreme statistical anomaly (often a climax top or bottom).
The "Elastic Snap" Strategy
Recommended Companion: Hooke's Law: Market Elasticity
This indicator is the perfect "Trigger" for a Mean Reversion system. We recommend pairing it with a Reversal indicator (like Hooke's Law) to create a complete Setup + Trigger system.
The Strategy Rules:
1. The Setup (The Stretch) 📏
Wait for your Reversal Indicator (e.g., Hooke's Law) to identify an overextended market condition (Overbought/Oversold).
Context: The rubber band is stretched tight.
2. The Trigger (The Snap) 🔫
Do not enter blindly! Look at the IV-RSI :
For Shorts: Wait for the RSI line to turn RED . This confirms that momentum has actually rolled over.
For Longs: Wait for the RSI line to turn GREEN . This confirms that buyers have stepped in.
3. The Filter (The Safety) 🛡️
If price hits your Stop Loss level before the IV-RSI changes color, cancel the trade . This prevents you from shorting a strong trend that is simply "melting up" without volume exhaustion.
Settings & Configuration
RSI Length: Default is 14.
Source Type: VWMA (Volume Weighted) is recommended for institutional analysis.
Bands Multiplier: Default is 2.0 (Standard Deviation). Increasing this to 2.5 will make the "White Dot" extremes rarer and more significant.
Disclaimer
Trading involves a high level of risk and is not suitable for all investors. The content provided here is for educational purposes only and does not constitute financial advice. Past performance is not indicative of future results. The author (abgthecoder) is not responsible for any financial losses incurred from the use of this indicator. Always use proper risk management and never trade with money you cannot afford to lose. This tool is provided "as is" with open source code for the benefit of the trading community.
UTC-5 Time MarkersFor model 110 of DTT use flout with this as a bias and you will catch high wr high rr trades for this certain time window of continuation or reversal






















