MSTY-WNTR Rebalancing SignalMSTY-WNTR Rebalancing Signal
## Overview
The **MSTY-WNTR Rebalancing Signal** is a custom TradingView indicator designed to help investors dynamically allocate between two YieldMax ETFs: **MSTY** (YieldMax MSTR Option Income Strategy ETF) and **WNTR** (YieldMax Short MSTR Option Income Strategy ETF). These ETFs are tied to MicroStrategy (MSTR) stock, which is heavily influenced by Bitcoin's price due to MSTR's significant Bitcoin holdings.
MSTY benefits from upward movements in MSTR (and thus Bitcoin) through a covered call strategy that generates income but caps upside potential. WNTR, on the other hand, provides inverse exposure, profiting from MSTR declines but losing in rallies. This indicator uses Bitcoin's momentum and MSTR's relative strength to signal when to hold MSTY (bullish phases), WNTR (bearish phases), or stay neutral, aiming to optimize returns by switching allocations at key turning points.
Inspired by strategies discussed in crypto communities (e.g., X posts analyzing MSTR-linked ETFs), this indicator promotes an active rebalancing approach over a "set and forget" buy-and-hold strategy. In simulated backtests over the past 12 months (as of August 4, 2025), the optimized version has shown potential to outperform holding 100% MSTY or 100% WNTR alone, with an illustrative APY of ~125% vs. ~6% for MSTY and ~-15% for WNTR in one scenario.
**Important Disclaimer**: This is not financial advice. Past performance does not guarantee future results. Always consult a financial advisor. Trading involves risk, and you could lose money. The indicator is for educational and informational purposes only.
## Key Features
- **Momentum-Based Signals**: Uses a Simple Moving Average (SMA) on Bitcoin's price to detect bullish (price > SMA) or bearish (price < SMA) trends.
- **RSI Confirmation**: Incorporates MSTR's Relative Strength Index (RSI) to filter signals, avoiding overbought conditions for MSTY and oversold for WNTR.
- **Visual Cues**:
- Green upward triangle for "Hold MSTY".
- Red downward triangle for "Hold WNTR".
- Yellow cross for "Switch" signals.
- Background color: Green for MSTY, red for WNTR.
- **Information Panel**: A table in the top-right corner displays real-time data: BTC Price, SMA value, MSTR RSI, and current Allocation (MSTY, WNTR, or Neutral).
- **Alerts**: Configurable alerts for holding MSTY, holding WNTR, or switching.
- **Optimized Parameters**: Defaults are tuned (SMA: 10 days, RSI: 15 periods, Overbought: 80, Oversold: 20) based on simulations to reduce whipsaws and capture trends effectively.
## How It Works
The indicator's logic is straightforward yet effective for volatile assets like Bitcoin and MSTR:
1. **Primary Trigger (Bitcoin Momentum)**:
- Calculate the SMA of Bitcoin's closing price (default: 10-day).
- Bullish: Current BTC price > SMA → Potential MSTY hold.
- Bearish: Current BTC price < SMA → Potential WNTR hold.
2. **Secondary Filter (MSTR RSI Confirmation)**:
- Compute RSI on MSTR stock (default: 15-period).
- For bullish signals: If RSI > Overbought (80), signal Neutral (avoid overextended rallies).
- For bearish signals: If RSI < Oversold (20), signal Neutral (avoid capitulation bottoms).
3. **Allocation Rules**:
- Hold 100% MSTY if bullish and not overbought.
- Hold 100% WNTR if bearish and not oversold.
- Neutral otherwise (e.g., during choppy or extreme markets) – consider holding cash or avoiding trades.
4. **Rebalancing**:
- Switch signals trigger when the hold changes (e.g., from MSTY to WNTR).
- Recommended frequency: Weekly reviews or on 5% BTC moves to minimize trading costs (aim for 4-6 trades/year).
This approach leverages Bitcoin's influence on MSTR while mitigating the risks of MSTY's covered call drag during downtrends and WNTR's losses in uptrends.
## Setup and Usage
1. **Chart Requirements**:
- Apply this indicator to a Bitcoin chart (e.g., BTCUSD on Binance or Coinbase, daily timeframe recommended).
- Ensure MSTR stock data is accessible (TradingView supports it natively).
2. **Adding to TradingView**:
- Open the Pine Editor.
- Paste the script code.
- Save and add to your chart.
- Customize inputs if needed (e.g., adjust SMA/RSI lengths for different timeframes).
3. **Interpretation**:
- **Green Background/Triangle**: Allocate 100% to MSTY – Bitcoin is in an uptrend, MSTR not overbought.
- **Red Background/Triangle**: Allocate 100% to WNTR – Bitcoin in downtrend, MSTR not oversold.
- **Yellow Switch Cross**: Rebalance your portfolio immediately.
- **Neutral (No Signal)**: Panel shows "Neutral" – Hold cash or previous position; reassess weekly.
- Monitor the panel for key metrics to validate signals manually.
4. **Backtesting and Strategy Integration**:
- Convert to a strategy script by changing `indicator()` to `strategy()` and adding entry/exit logic for automated testing.
- In simulations (e.g., using Python or TradingView's backtester), it has outperformed buy-and-hold in volatile markets by ~100-200% relative APY, but results vary.
- Factor in fees: ETF expense ratios (~0.99%), trading commissions (~$0.40/trade), and slippage.
5. **Risk Management**:
- Use with a diversified portfolio; never allocate more than you can afford to lose.
- Add stop-losses (e.g., 10% trailing) to protect against extreme moves.
- Rebalance sparingly to avoid over-trading in sideways markets.
- Dividends: Reinvest MSTY/WNTR payouts into the current hold for compounding.
## Performance Insights (Simulated as of August 4, 2025)
Based on synthetic backtests modeling the last 12 months:
- **Optimized Strategy APY**: ~125% (by timing switches effectively).
- **Hold 100% MSTY APY**: ~6% (gains from BTC rallies offset by downtrends).
- **Hold 100% WNTR APY**: ~-15% (losses in bull phases outweigh bear gains).
In one scenario with stronger volatility, the strategy achieved ~4533% APY vs. 10% for MSTY and -34% for WNTR, highlighting its potential in dynamic markets. However, these are illustrative; real results depend on actual BTC/MSTR movements. Test thoroughly on historical data.
## Limitations and Considerations
- **Data Dependency**: Relies on accurate BTC and MSTR data; delays or gaps can affect signals.
- **Market Risks**: Bitcoin's volatility can lead to false signals (whipsaws); the RSI filter helps but isn't perfect.
- **No Guarantees**: This indicator doesn't predict the future. MSTR's correlation to BTC may change (e.g., due to regulatory events).
- **Not for All Users**: Best for intermediate/advanced traders familiar with ETFs and crypto. Beginners should paper trade first.
- **Updates**: As of August 4, 2025, this is version 1.0. Future updates may include volume filters or EMA options.
If you find this indicator useful, consider leaving a like or comment on TradingView. Feedback welcome for improvements!
Indicators and strategies
Night Session HighlighterYou can adjust the start/end times and highlight settings directly from the indicator's input parameters.
Accumulation Phase DetectorClean Accumulation Phase Indicator — Description
This TradingView indicator visually identifies the Accumulation Phase in price action, based on the Wyckoff methodology and volume-price analysis. The Accumulation Phase is where insiders or "smart money" gradually build positions before a significant price breakout.
Key Features:
Range Detection: The indicator calculates a price range over a configurable period (Range Length). It marks this range on the chart with red horizontal lines representing support and resistance.
Volume Spike Identification: It detects unusually high volume relative to the average volume over the same period (Volume Spike Multiplier). These spikes highlight potential insider buying activity.
Accumulation Phase Highlighting: When price action remains within the detected range and volume spikes occur, the indicator considers the market to be in an accumulation phase. Volume bars during this phase are colored blue for easy visualization.
Campaign Start & End Labels: The indicator places a "Campaign starts" label at the beginning of the accumulation phase and a "Campaign ends - warehouse full" label when the accumulation ends. This mimics the idea that insiders fill their “warehouses” before a breakout.
Breakout Detection: Once accumulation ends, the indicator monitors for a price breakout above the resistance level and places a "Breakout" label at the breakout bar.
How to Use:
Adjust the Range Length and Volume Spike Multiplier inputs to suit the timeframe and instrument you’re analyzing.
Watch for the blue volume bars within the red range lines to identify the accumulation phase.
Use the campaign labels to identify when the phase starts and ends.
Watch for the breakout label as a potential entry signal.
Choch Pattern Levels [BigBeluga] + AlertsThis version of Choch Pattern Levels includes built-in alert conditions for both ChoCh Up and ChoCh Down patterns. You can now set TradingView alerts directly when either pattern occurs, with optional visual markers (triangles) plotted on the chart.
Based on the original script by BigBeluga, licensed under CC BY-NC-SA 4.0. This is a modified version with alert conditions added.
Hann Window FIR Filter Ribbon [BigBeluga]🔵 OVERVIEW
The Hann Window FIR Filter Ribbon is a trend-following visualization tool based on a family of FIR filters using the Hann window function. It plots a smooth and dynamic ribbon formed by six Hann filters of progressively increasing length. Gradient coloring and filled bands reveal trend direction and compression/expansion behavior. When short-term trend shifts occur (via filter crossover), it automatically anchors visual support/resistance zones at the nearest swing highs or lows.
🔵 CONCEPTS
Hann FIR Filter: A finite impulse response filter that uses a Hann (cosine-based) window for weighting past price values, resulting in a non-lag, ultra-smooth output.
hannFilter(length)=>
var float hann = na // Final filter output
float filt = 0
float coef = 0
for i = 1 to length
weight = 1 - math.cos(2 * math.pi * i / (length + 1))
filt += price * weight
coef += weight
hann := coef != 0 ? filt / coef : na
Ribbon Stack: The indicator plots 6 Hann FIR filters with increasing lengths, creating a smooth "ribbon" that adapts to price shifts and visually encodes volatility.
Gradient Coloring: Line colors and fill opacity between layers are dynamically adjusted based on the distance between the filters, showing momentum expansion or contraction.
Dynamic Swing Zones: When the shortest filter crosses its nearest neighbor, a swing high/low is located, and a triangle-style level is anchored and projected to the right.
Self-Extending Levels: These dynamic levels persist and extend until invalidated or replaced by a new opposite trend break.
🔵 FEATURES
Plots 6 Hann FIR filters with increasing lengths (controlled by Ribbon Size input).
Automatically colors each filter and the fill between them with smooth gradient transitions.
Detects trend shifts via filter crossover and anchors visual resistance (red) or support (green) zones.
Support/resistance zones are triangle-style bands built around recent swing highs/lows.
Levels auto-extend right and adapt in real time until invalidated by price action.
Ribbon responds smoothly to price and shows contraction or expansion behavior clearly.
No lag in crossover detection thanks to FIR architecture.
Adjustable sensitivity via Length and Ribbon Size inputs.
🔵 HOW TO USE
Use the ribbon gradient as a visual trend strength and smooth direction cue.
Watch for crossover of shortest filters as early trend change signals.
Monitor support/resistance zones as potential high-probability reaction points.
Combine with other tools like momentum or volume to confirm trend breaks.
Adjust ribbon thickness and length to suit your trading timeframe and volatility preference.
🔵 CONCLUSION
Hann Window FIR Filter Ribbon blends digital signal processing with trading logic to deliver a visually refined, non-lagging trend tool. The adaptive ribbon offers insight into momentum compression and release, while swing-based levels give structure to potential reversals. Ideal for traders who seek smooth trend detection with intelligent, auto-adaptive zone plotting.
Time-Decaying Percentile Oscillator [BackQuant]Time-Decaying Percentile Oscillator
1. Big-picture idea
Traditional percentile or stochastic oscillators treat every bar in the look-back window as equally important. That is fine when markets are slow, but if volatility regime changes quickly yesterday’s print should matter more than last month’s. The Time-Decaying Percentile Oscillator attempts to fix that blind spot by assigning an adjustable weight to every past price before it is ranked. The result is a percentile score that “breathes” with market tempo much faster to flag new extremes yet still smooth enough to ignore random noise.
2. What the script actually does
Build a weight curve
• You pick a look-back length (default 28 bars).
• You decide whether weights fall Linearly , Exponentially , by Power-law or Logarithmically .
• A decay factor (lower = faster fade) shapes how quickly the oldest price loses influence.
• The array is normalised so all weights still sum to 1.
Rank prices by weighted mass
• Every close in the window is paired with its weight.
• The pairs are sorted from low to high.
• The cumulative weight is walked until it equals your chosen percentile level (default 50 = median).
• That price becomes the Time-Decayed Percentile .
Find dispersion with robust statistics
• Instead of a fragile standard deviation the script measures weighted Median-Absolute-Deviation about the new percentile.
• You multiply that deviation by the Deviation Multiplier slider (default 1.0) to get a non-parametric volatility band.
Build an adaptive channel
• Upper band = percentile + (multiplier × deviation)
• Lower band = percentile – (multiplier × deviation)
Normalise into a 0-100 oscillator
• The current close is mapped inside that band:
0 = lower band, 50 = centre, 100 = upper band.
• If the channel squeezes, tiny moves still travel the full scale; if volatility explodes, it automatically widens.
Optional smoothing
• A second-stage moving average (EMA, SMA, DEMA, TEMA, etc.) tames the jitter.
• Length 22 EMA by default—change it to tune reaction speed.
Threshold logic
• Upper Threshold 70 and Lower Threshold 30 separate standard overbought/oversold states.
• Extreme bands 85 and 15 paint background heat when aggressive fade or breakout trades might trigger.
Divergence engine
• Looks back twenty bars.
• Flags Bullish divergence when price makes a lower low but oscillator refuses to confirm (value < 40).
• Flags Bearish divergence when price prints a higher high but oscillator stalls (value > 60).
3. Component walk-through
• Source – Any price series. Close by default, switch to typical price or custom OHLC4 for futures spreads.
• Look-back Period – How many bars to rank. Short = faster, long = slower.
• Base Percentile Level – 50 shows relative position around the median; set to 25 / 75 for quartile tracking or 90 / 10 for extreme tails.
• Deviation Multiplier – Higher values widen the dynamic channel, lowering whipsaw but delaying signals.
• Decay Settings
– Type decides the curve shape. Exponential (default 1.16) mimics EMA logic.
– Factor < 1 shrinks influence faster; > 1 spreads influence flatter.
– Toggle Enable Time Decay off to compare with classic equal-weight stochastic.
• Smoothing Block – Choose one of seven MA flavours plus length.
• Thresholds – Overbought / Oversold / Extreme levels. Push them out when working on very mean-reverting assets like FX; pull them in for trend monsters like crypto.
• Display toggles – Show or hide threshold lines, extreme filler zones, bar colouring, divergence labels.
• Colours – Bullish green, bearish red, neutral grey. Every gradient step is automatically blended to generate a heat map across the 0-100 range.
4. How to read the chart
• Oscillator creeping above 70 = market auctioning near the top of its adaptive range.
• Fast poke above 85 with no follow-through = exhaustion fade candidate.
• Slow grind that lives above 70 for many bars = valid bullish trend, not a fade.
• Cross back through 50 shows balance has shifted; treat it like a micro trend change.
• Divergence arrows add extra confidence when you already see two-bar reversal candles at range extremes.
• Background shading (semi-transparent red / green) warns of extreme states and throttles your position size.
5. Practical trading playbook
Mean-reversion scalps
1. Wait for oscillator to reach your desired OB/ OS levels
2. Check the slope of the smoothing MA—if it is flattening the squeeze is mature.
3. Look for a one- or two-bar reversal pattern.
4. Enter against the move; first target = midline 50, second target = opposite threshold.
5. Stop loss just beyond the extreme band.
Trend continuation pullbacks
1. Identify a clean directional trend on the price chart.
2. During the trend, TDP will oscillate between midline and extreme of that side.
3. Buy dips when oscillator hits OS levels, and the same for OB levels & shorting
4. Exit when oscillator re-tags the same-side extreme or prints divergence.
Volatility regime filter
• Use the Enable Time Decay switch as a regime test.
• If equal-weight oscillator and decayed oscillator diverge widely, market is entering a new volatility regime—tighten stops and trade smaller.
Divergence confirmation for other indicators
• Pair TDP divergence arrows with MACD histogram or RSI to filter false positives.
• The weighted nature means TDP often spots divergence a bar or two earlier than standard RSI.
Swing breakout strategy
1. During consolidation, band width compresses and oscillator oscillates around 50.
2. Watch for sudden expansion where oscillator blasts through extreme bands and stays pinned.
3. Enter with momentum in breakout direction; trail stop behind upper or lower band as it re-expands.
6. Customising decay mathematics
Linear – Each older bar loses the same fixed amount of influence. Intuitive and stable; good for slow swing charts.
Exponential – Influence halves every “decay factor” steps. Mirrors EMA thinking and is fastest to react.
Power-law – Mid-history bars keep more authority than exponential but oldest data still fades. Handy for commodities where seasonality matters.
Logarithmic – The gentlest curve; weight drops sharply at first then levels off. Mimics how traders remember dramatic moves for weeks but forget ordinary noise quickly.
Turn decay off to verify the tool’s added value; most users never switch back.
7. Alert catalogue
• TD Overbought / TD Oversold – Cross of regular thresholds.
• TD Extreme OB / OS – Breach of danger zones.
• TD Bullish / Bearish Divergence – High-probability reversal watch.
• TD Midline Cross – Momentum shift that often precedes a window where trend-following systems perform.
8. Visual hygiene tips
• If you already plot price on a dark background pick Bullish Color and Bearish Color default; change to pastel tones for light themes.
• Hide threshold lines after you memorise the zones to declutter scalping layouts.
• Overlay mode set to false so the oscillator lives in its own panel; keep height about 30 % of screen for best resolution.
9. Final notes
Time-Decaying Percentile Oscillator marries robust statistical ranking, adaptive dispersion and decay-aware weighting into a simple oscillator. It respects both recent order-flow shocks and historical context, offers granular control over responsiveness and ships with divergence and alert plumbing out of the box. Bolt it onto your price action framework, trend-following system or volatility mean-reversion playbook and see how much sooner it recognises genuine extremes compared to legacy oscillators.
Backtest thoroughly, experiment with decay curves on each asset class and remember: in trading, timing beats timidity but patience beats impulse. May this tool help you find that edge.
Bollinger Levels Table - Horizontal Support ZonesBollinger Levels Table - Horizontal Support Zones Indicator (with Customizable Options)
The "Bollinger Levels Table - Horizontal Support Zones" indicator is a comprehensive tool designed to help you identify potential support areas on your chart using moving averages and Bollinger Bands. The indicator displays an organized table of key price levels and draws horizontal lines on the chart, providing clear visibility of potential support zones.
What Does This Indicator Do?
This indicator aims to simplify support analysis by consolidating and displaying significant price levels derived from three different Bollinger Band settings: BB10, BB20, and BB50. It calculates both the Mid-line (Basis) and the Lower Band for each of these settings.
Furthermore, the indicator automatically arranges these levels from highest to lowest in an easy-to-read table, assigning a "Payment" label to each level. These "Payments" are simply labels to help you track the levels in descending order.
How Does This Indicator Work?
Bollinger Band Calculations: The indicator uses the standard Bollinger Band formula:
Mid-line (Basis): A Simple Moving Average (SMA) of the closing price over a specified period.
Standard Deviation (Dev): The standard deviation of the closing price over the same period, multiplied by a Multiplier.
Lower Band: The Mid-line minus the Standard Deviation.
These calculations are applied to three different periods: 10, 20, and 50, providing a variety of potential support levels based on different timeframes. You can adjust the values for these lengths (10, 20, 50) and the Multiplier through the indicator's settings.
Table Construction: A dynamic table is created on the chart (which can be positioned in the top or bottom right corner based on the current price's position). This table displays:
Indicator: The name of the Bollinger Band level (e.g., BB10 Mid, BB20 Lower).
Price: The exact price value of that level.
Payments: A label indicating the level's order in the table.
Level Ordering: All calculated levels are dynamically sorted from highest to lowest to present them in a logical order within the table.
Horizontal Line Plotting: Horizontal lines are drawn on the chart for each selected level, providing a visual representation of the potential support areas. These lines are colored black and have a consistent width for easy identification.
How to Use This Indicator:
This indicator is intended to provide potential entry points or accumulation zones for trades, especially for traders employing Dollar-Cost Averaging (DCA) strategies or building positions in stages. The levels displayed in the table and on the chart can represent potential support levels where one might consider initiating or adding to a position.
In the indicator's settings, you'll find important options:
Multiplier: Controls the width of the Bollinger Bands (default 2.0).
BB Lengths: Allows you to adjust the periods for the moving averages (default 20, 50, 10).
Visible Levels: This is the new feature! Here, you can select which levels you wish to see in the table and on the chart. Simply check or uncheck the boxes next to each level (BB10 Mid, BB10 Lower, and so on) to customize the indicator's display according to your strategy and needs.
Underlying Concepts:
This indicator is based on the principle that Bollinger Bands can act as dynamic support and resistance zones.
Mid-line (SMA): Often functions as a medium-term support or resistance.
Lower Band: Typically indicates that the price is relatively low and may find support, making it a potential area for buying or starting to build a position.
By combining different Bollinger Band timeframes (10, 20, 50), the indicator gives you a multi-timeframe perspective on support areas, helping you identify the most relevant levels for your strategy.
Note: While the indicator provides "Payments" for the levels, this is purely a sequential labeling within the table to assist your position-building strategy. There is no actual payment functionality associated with this indicator.
RatioTOTAL3/US02YDisplays the normalized ratio of TOTAL3 (altcoin market cap excluding BTC and ETH) to the US 2-Year Treasury Yield (US02Y), shown as % change.
Candle Channel█ OVERVIEW
The "Candle Channel" indicator is a versatile technical analysis tool that plots a price channel based on the Simple Moving Average (SMA) of candlestick midpoints. The channel bands, calculated based on candlestick volatility, form dynamic support and resistance levels that adapt to price movements. The script generates signals for reversals from the bands and SMA breakouts, making it useful for both short-term and long-term traders. By adjusting the SMA length, the channel can vary in nature—from a wide channel encapsulating price movement to narrower support/resistance or trend-following bands. The channel width can be further customized using a scaling parameter, allowing adaptation to different trading styles and markets.
█ MECHANISM
Band Calculation
The indicator is based on the following calculations:
Candlestick Midpoint: Calculated as the arithmetic average of the candle’s high and low prices: (high + low) / 2.
Simple Moving Average (SMA): The average of candlestick midpoints over a specified length (default: 20 candles), forming the channel’s centerline.
Average Candle Height: Calculated as the average difference between the high and low prices (high - low) over the same SMA length, serving as a measure of market volatility.
Band Scaling: The user specifies a percentage of the average candle height (default: 200%), which is multiplied by the average height to create an offset. The upper band is SMA + offset, and the lower band is SMA - offset.Example: For an average candle height of 10 points and 200% scaling, the offset is 20 points, meaning the bands are ±20 points from the SMA.
Channel Characteristics: The SMA length determines the channel’s dynamics. Shorter SMA values (10–30) create a wide channel that contains price movement, ideal for scalping or short-term trading. Longer SMA values (above 30, e.g., 50–100) transform the channel into narrower support/resistance or trend-following bands, suitable for longer-term analysis. Band scaling further adjusts the channel width to match market volatility.
Signals
Reversal from Bands: Signals are generated when the price closes outside the band (above the upper or below the lower) and then returns to the channel, indicating a potential trend reversal.
SMA Breakout: Signals are generated when the price crosses the SMA upward (bullish signal) or downward (bearish signal), suggesting potential trend changes.
Visualization
Centerline: The SMA of candlestick midpoints, displayed as a thin line.
Channel Bands: Upper and lower channel boundaries, with customizable colors.
Fill: Options include a gradient (smooth color transition between bands) or solid color. The fill can also be disabled for greater clarity.
█ FEATURES AND SETTINGS
SMA Length: Determines the moving average period (default: 20). Values of 10–30 are suitable for a wide channel containing price movement, ideal for short-term timeframes. Longer values (e.g., 50–100) create narrower support/resistance or trend-following bands, better suited for higher timeframes.
Band Scaling: Percentage of the average candle height (default: 200%). Adjusts the channel width to match market volatility—smaller values (e.g., 50–100%) for narrower bands, larger values (e.g., 200–300%) for wider channels.
Fill Type: Gradient, solid, or no fill, allowing customization to user preferences.
Colors: Options to change the colors of bands, fill, and signals for better readability.
Signals: Options to enable/disable reversal signals from bands and SMA breakout signals.
█ HOW TO USE
Add the script to your chart in TradingView by clicking "Add to Chart" in the Pine Editor.
Adjust input parameters in the script settings:
SMA Length: Set to 10–30 for a wide channel containing price movement, suitable for scalping or short-term trading. Set above 30 (e.g., 50–100) for narrower support/resistance or trend-following bands.
Band Scaling: Adjust the channel width to market volatility. Smaller values (50–100%) for tighter support/resistance bands, larger values (200–300%) for wider channels containing price movement.
Fill Type and Colors: Choose a gradient for aesthetics or a solid fill for clarity.
Analyze signals:
Reversal Signals: Triangles above (bearish) or below (bullish) candles indicate potential reversal points.
SMA Breakout Signals: Circles above (bearish) or below (bullish) candles indicate trend changes.
Test the indicator on different instruments and timeframes to find optimal settings for your trading style.
█ LIMITATIONS
The indicator may generate false signals in highly volatile or consolidating markets.
On low-liquidity charts (e.g., exotic currency pairs), the bands may be less reliable.
Effectiveness depends on properly matching parameters to the market and timeframe.
Moving Average Shift [Quantora]Title: Moving Average Shift
Description:
The Moving Average Shift is a dynamic technical analysis tool designed to help traders better visualize trend strength and direction using a combination of customizable moving averages and a volatility-adjusted oscillator.
🔧 Features:
Multi-Type Moving Average Selection
Choose from SMA, EMA, SMMA (RMA), WMA, and VWMA for your main signal line.
ZLSMA Trio
Three Zero-Lag Smoothed Moving Averages (ZLSMA) with adjustable lengths and colors provide a smoother trend-following structure without the delay of traditional MAs.
EMA Ribbon (50/100/200)
Add clarity to long-term trend direction with layered Exponential Moving Averages in key institutional periods.
Volatility-Adjusted Oscillator
A color-changing oscillator calculated from the normalized deviation between price and the selected MA. This helps identify trend shifts and momentum buildups.
Custom MA Line Widths and Styling
Full control over the width and appearance of all MA lines for visual clarity.
Bar & Candle Coloring
Bars and candles dynamically change color based on the relationship between price and the selected MA — helping you quickly assess bullish/bearish conditions.
📈 How It Helps:
Spot early trend shifts through the oscillator.
Confirm trades using the alignment between ZLSMAs and EMAs.
Quickly assess current trend conditions using color-coded price bars.
RatioTOTAL3/BTCShows the normalized ratio of TOTAL3 (altcoin market cap excluding BTC and ETH) divided by BTC price, as % change.
Volatility Wick Trap — Smart Reversal EngineThe Volatility Wick Trap — Smart Reversal Engine is a precision reversal detection tool designed for traders who rely on smart money footprints, volatility compression, and liquidity wick exhaustion to time entries near market turns.
💡 Core Components:
Volatility Squeeze Detection: Identifies candles where range compresses significantly compared to the 14-period average true range, highlighting potential breakout zones.
Liquidity Wick Exhaustion: Detects candles with dominant upper or lower wicks, signaling failed liquidity grabs or stop hunts.
Contextual EMA Filter: Uses a 21-period EMA to filter signals, improving accuracy by aligning with market structure bias.
🔍 How It Works:
Green diamond lines mark bullish hidden reversal zones.
Red diamond lines mark bearish hidden reversal traps.
These lines only appear when volatility compresses and wick traps are confirmed within the trend context.
✅ Clean. Minimal. Tactical.
Ideal for scalpers, swing traders, and smart money enthusiasts looking to fade emotional price spikes.
Futures Risk Contract TableFutures risk table for NQ MNQ YM MYM ES and MES
changeable capital and risk percentage along with points.
EMA9/EMA50 Cross Alert (2H Only)התראה לקרוס של ממוצע נא אקספוננציאלי 9 ו 50 ל 2 הכיוונים בטיים פרם של שעתיים.
Alert for a collapse of the 9 and 50 exponential moving averages in both directions on a two-hour time frame.
Choch Pattern Levels [BigBeluga] + AlertsChoch Pattern Levels highlights key structural breaks that can mark the start of new trends. By combining precise break detection with volume analytics and automatic cleanup, it provides actionable insights into the true intent behind price moves — giving traders a clean edge in spotting early reversals and key reaction zones. Added support for alarms.
Choch Pattern Levels [BigBeluga] + AlertsChoch Pattern Levels highlights key structural breaks that can mark the start of new trends. By combining precise break detection with volume analytics and automatic cleanup, it provides actionable insights into the true intent behind price moves — giving traders a clean edge in spotting early reversals and key reaction zones. Added alarms support.
Simple VWAPPlots a simple Volume Weighted Average Price (VWAP) line with a thicker style for better visibility on the chart
20-Candle ATR in Pips (5m only)This custom indicator displays the Average True Range (ATR) over the last 20 candles on a 5-minute chart, specifically designed for pairs where 1 pip = 0.01.
Key features:
📐 Calculates a simple moving average of the true range over the last 20 five-minute candles.
📋 Outputs the ATR value in a clean table with a green background and white text.
⚠️ Designed exclusively for the 5-minute timeframe – prompts you to switch if you’re on a different one.
📏 Values are shown in pips (e.g., “ATR (20 candles): 9.83 pips”).
This tool is ideal for short-term volatility tracking, scalping strategies, and identifying market conditions where price is expanding or contracting.
COT INDEX
// Users & Producers: Commercial Positions
// Large Specs (Hedge Fonds): Non-commercial Positions
// Retail: Non-reportable Positions
//@version=5
int weeks = input.int(26, "Number of weeks", minval=1)
int upperExtreme = input.int(80, "Upper Threshold in %", minval=50)
int lowerExtreme = input.int(20, "Lower Threshold in %", minval=1)
bool hideCurrentWeek = input(true, "Hide the current week until market close")
bool markExtremes = input(false, "Mark long and short extremes")
bool showSmallSpecs = input(true, "Show small speculators index")
bool showProducers = input(true, "Show producers index")
bool showLargeSpecs = input(true, "Show large speculators index")
indicator("COT INDEX", shorttitle="COT INDEX", format=format.percent, precision=0)
import TradingView/LibraryCOT/2 as cot
// Function to fix some symbols.
var string Root_Symbol = syminfo.root
var string CFTC_Code_fixed = cot.convertRootToCOTCode("Auto")
if Root_Symbol == "HG"
CFTC_Code_fixed := "085692"
else if Root_Symbol == "LBR"
CFTC_Code_fixed := "058644"
// Function to request COT data for Futures only.
dataRequest(metricName, isLong) =>
tickerId = cot.COTTickerid('Legacy', CFTC_Code_fixed, false, metricName, isLong ? "Long" : "Short", "All")
value = request.security(tickerId, "1D", close, ignore_invalid_symbol = true)
if barstate.islastconfirmedhistory and na(value)
runtime.error("Could not find relevant COT data based on the current symbol.")
value
// Function to calculate net long positions.
netLongCommercialPositions() =>
commercialLong = dataRequest("Commercial Positions", true)
commercialShort = dataRequest("Commercial Positions", false)
commercialLong - commercialShort
netLongLargePositions() =>
largeSpecsLong = dataRequest("Noncommercial Positions", true)
largeSpecsShort = dataRequest("Noncommercial Positions", false)
largeSpecsLong - largeSpecsShort
netLongSmallPositions() =>
smallSpecsLong = dataRequest("Nonreportable Positions", true)
smallSpecsShort = dataRequest("Nonreportable Positions", false)
smallSpecsLong - smallSpecsShort
calcIndex(netPos) =>
minNetPos = ta.lowest(netPos, weeks)
maxNetPos = ta.highest(netPos, weeks)
if maxNetPos != minNetPos
100 * (netPos - minNetPos) / (maxNetPos - minNetPos)
else
na
// Calculate the Commercials Position Index.
commercialsIndex = calcIndex(netLongCommercialPositions())
largeSpecsIndex = calcIndex(netLongLargePositions())
smallSpecsIndex = calcIndex(netLongSmallPositions())
// Conditional logic based on user input
plotValueCommercials = hideCurrentWeek ? (timenow >= time_close ? commercialsIndex : na) : (showProducers ? commercialsIndex : na)
plotValueLarge = hideCurrentWeek ? (timenow >= time_close ? largeSpecsIndex : na) : (showLargeSpecs ? largeSpecsIndex : na)
plotValueSmall = hideCurrentWeek ? (timenow >= time_close ? smallSpecsIndex : na) : (showSmallSpecs ? smallSpecsIndex : na)
// Plot the index and horizontal lines
plot(plotValueCommercials, "Commercials", color=color.blue, style=plot.style_line, linewidth=2)
plot(plotValueLarge, "Large Speculators", color=color.red, style=plot.style_line, linewidth=1)
plot(plotValueSmall, "Small Speculators", color=color.green, style=plot.style_line, linewidth=1)
hline(upperExtreme, "Upper Threshold", color=color.green, linestyle=hline.style_solid, linewidth=1)
hline(lowerExtreme, "Lower Threshold", color=color.red, linestyle=hline.style_solid, linewidth=1)
/// Marking extremes with background color
bgcolor(markExtremes and (commercialsIndex >= upperExtreme or largeSpecsIndex >= upperExtreme or smallSpecsIndex >= upperExtreme) ? color.new(color.gray, 90) : na, title="Upper Threshold")
bgcolor(markExtremes and (commercialsIndex <= lowerExtreme or largeSpecsIndex <= lowerExtreme or smallSpecsIndex <= lowerExtreme) ? color.new(color.gray, 90) : na, title="Lower Threshold")
3-1-3 PatternThis Pine Script indicator analyzes and visualizes a specific candlestick pattern called the "3-1-3 Pattern" across multiple timeframes. Here's what it does:
Core Functionality
Pattern Detection: The script looks for a 7-bar candlestick pattern:
Bearish 3-1-3: 3 red candles + 1 green candle + 3 red candles
Bullish 3-1-3: 3 green candles + 1 red candle + 3 green candles
Visual Output
When a 3-1-3 pattern is detected, the script:
Creates a colored box around the middle bar (bar 3) of the pattern
Adds a small label showing the pattern type ("Bear 1H" or "Bull 4H", etc.)
Extends the box forward until the price breaks above the pattern's high or below its low
Pattern Management
The script actively manages the patterns by:
Tracking active patterns for each timeframe separately
Removing expired patterns when price breaks the pattern's high/low levels
Extending boxes to the current time to keep them visible
Practical Use
This indicator helps traders:
Spot reversal patterns across multiple timeframes simultaneously
See confluence when patterns align on different timeframes
Track pattern validity (boxes disappear when invalidated by price action)
Essentially, it's a multi-timeframe pattern recognition tool that automatically identifies and tracks these specific 7-bar reversal patterns on your chart.
5 SMA/EMA and Zigzag- Chỉ báo gộp của 2 chỉ báo 5 đường MA/EMA/WMA và đường zigzag
- Các thông số đường EMA và zigzag mặc định đã được đặt theo thông số khoá học Fibo
- 5 đường MA có thể lựa chọn loại đường SMA, EMA, WMA, VWM và được bật mặc định 3 đường EMA 8, 13, 21 và có thể thay đổi màu đường định dạng đường. Và giao cắt của đường EMA 10 và 21 được đánh dấu bằng các dấu chấm tròn.
- Đường zigzag được đặt thông số mặc định là 3.
Màu đường và độ dày đường zigzag có thể thay đổi từ bảng lựa chọn, kiểu đường thì phải thay đổi trong code.
- Bảng giá trị RSI, MA RSI thì đang để 7 khung thời gian. Muốn tắt bớt thì phải tắt trong code
Và giá trị của RSI và MA RSI sẽ không đúng với các Tf 5, 15, 30 nếu Tf của chart lớn hơn TF này (do tradingview) . Vd TF chart là 15m thì giá trị RSI trong bảng của khung 5m không đúng, Tf chart là 60m thì giá trị RSI của 30m, 15m , 5m trong bảng là không đúng. TF chart là 4H thì giá trị trong bảng của khung 5m, 15m 30m không đúng, còn giá trị của 1H, 2H, 3H vẫn đúng.
This is a combined indicator of two separate indicators: a 5-line MA/EMA/WMA indicator and a ZigZag indicator.
The default parameters for the EMA and ZigZag lines are set according to the Fibo course settings.
For the 5 moving averages, you can choose between SMA, EMA, WMA, and VWM. By default, 3 EMA lines (8, 13, 21) are enabled, and their colors and styles can be customized. The crossover between EMA 10 and EMA 21 is marked with circular dots.
The default setting for the ZigZag line is 3.
The color and thickness of the ZigZag line can be changed via the input panel, but the line style must be modified in the code.
The RSI and MA RSI value table is currently set to display across 7 timeframes. To reduce the number of timeframes shown, you will need to edit the code manually.
Note: The RSI and MA RSI values will not be accurate for timeframes 5m, 15m, and 30m if the chart's timeframe is higher than these (due to limitations in TradingView).
For example:
If the chart is on 15m, the RSI value for the 5m frame in the table will be incorrect.
If the chart is on 60m, then RSI values for 30m, 15m, and 5m will be incorrect.
If the chart is on 4H, the RSI values for 5m, 15m, and 30m will be incorrect, but the values for 1H, 2H, and 3H will still be correct.
Daily High/Low Close Breakout - GOLD### **Daily High/Low Close Breakout Indicator**
This indicator is a powerful tool for identifying potential breakout opportunities based on the previous day's price action. It's built on a unique time-based logic that defines key support and resistance levels for the trading day.
---
### **How the Indicator Works**
The indicator operates in two main phases:
1. **Calculation Period (00:00 to 16:30 Tehran Time):** The indicator first observes the price action from the start of the day until 16:30. During this time, it records the highest and lowest **closing prices** of all candles. The chart background is shaded gray to visually mark this period.
2. **Trading Period (16:30 to 16:30 the next day):** At 16:30, the highest and lowest close levels are finalized and drawn as horizontal lines. These levels then become the primary breakout zones for the next 24 hours. The indicator will generate signals whenever the price crosses these lines.
---
### **Trading Signals**
The indicator uses a simple and effective crossover logic for its signals:
* **BUY Signal:** A signal is generated when a candle's closing price **crosses above** the high close line.
* **SELL Signal:** A signal is generated when a candle's closing price **crosses below** the low close line.
---
### **Important Usage Guidelines**
For optimal performance, please follow these specific recommendations:
* **Timeframe:** This indicator is designed and optimized to be used exclusively on the **15-minute timeframe**. Using it on other timeframes may produce inconsistent or unreliable results.
* **Primary Asset:** The logic for this indicator was developed and backtested primarily for **Gold (XAUUSD)**. Its performance and win rate have been observed to be the most consistent on this asset.
* **Asset Restriction:** It is strongly recommended to **avoid using this indicator on other currency pairs or assets**, as it has not been optimized for their specific market behavior.
---
### **Disclaimer**
*This indicator is provided for informational and educational purposes only. It is not financial advice. Past performance is not a guarantee of future results. All trading decisions should be based on your own research and risk analysis. Always use proper risk management.*
Fisher Crossover StrategyThe Fisher Crossover Strategy is a popular technical trading method that uses the Fisher Transform indicator developed by John Ehlers. This indicator mathematically converts price data into a normal Gaussian distribution, making market turning points sharper and easier to identify. The strategy is based on two lines: the Fisher line, which is the main transformed price value, and the Trigger line, which is a one-period lag of the Fisher line. Traders use the crossover of these lines to determine buy and sell opportunities.
A buy signal is generated when the Fisher line crosses above the Trigger line, indicating that bullish momentum may be starting, while a sell signal occurs when the Fisher line crosses below the Trigger line, suggesting a possible bearish reversal. Signals that occur relative to the zero line are often considered stronger; for example, a buy signal below the zero line may indicate a deeper market reversal. The strategy is simple to follow and can be applied to various markets including stocks, forex, commodities, and cryptocurrencies.
However, like all crossover strategies, it can produce false signals during sideways or ranging markets. To reduce whipsaws, traders often combine the Fisher Crossover Strategy with other tools such as support and resistance levels, volume analysis, or moving averages. Proper risk management with stop-loss and take-profit levels is also essential. Overall, the Fisher Crossover Strategy is valued for its clear entry and exit rules and its ability to highlight potential market reversals earlier than many other indicators.