ZigZag Volume Profile [ChartPrime]⯁ OVERVIEW
ZigZag Volume Profile combines swing structure with volume analytics by plotting a ZigZag of major price swings and overlaying a detailed volume profile around each swing. At the end of each swing, it highlights the Point of Control (POC) — the price level with the highest traded volume — and extends it forward to identify key areas of potential support or resistance.
⯁ KEY FEATURES
ZigZag Swing Detection:
Automatically detects swing highs and lows based on a user-defined length, creating clean visual segments of market structure.
These segments act as boundaries for volume profile calculations.
swingHigh = ta.highest(swingLength)
swingLow = ta.lowest(swingLength)
ZigZag Channel Visualization:
The ZigZag structure is connected with sloped lines, forming a visual “channel” of the price movement.
The ZigZag can optionally, scaled by ATR.
Volume Profile Around Each Swing:
For every completed swing (high to low or low to high), the indicator constructs a full volume profile using user-defined bin counts.
It scans volume across price levels in the swing and plots histogram-style bins using a gradient color to indicate volume magnitude.
Dynamic Bin Width and Slope Adjustment:
Bins are distributed across a vertical ATR-based range, and their width is adjusted based on the percentage of total swing volume.
The volume fill direction is adapted to the swing’s slope for visually aligned plotting.
POC Detection and Extension:
The highest volume bin in each swing is identified as the Point of Control (POC).
This level is plotted with a thicker line and extended horizontally into the future as a key reaction level.
Automatic POC Expiry on Price Interaction:
POC lines are continuously extended unless breached by price.
When price crosses the POC level, the extension is terminated — signaling that the level may have been absorbed.
Clean Volume Bin Visualization:
Bin colors range from green (low volume) to blue (higher volume), with the POC always marked in red by default for easy identification.
Volume percentages are optionally labeled at each bin level.
Flexible Swing Profile Parameters:
Users can control:
Number of volume bins
Bin width
Channel width (ATR factor)
Visibility of the swing channel or POC lines
Efficient Memory Handling:
Old POC lines and volume profiles are automatically removed from memory after a threshold to keep charts clean and performant.
⯁ USAGE
Use ZigZag swings to define market structure visually.
Analyze volume profile around each swing to understand where most trading activity occurred.
Use POC extensions as dynamic support/resistance zones for entries, stops, or take-profits.
Watch for price interaction with extended POC lines — breaks may suggest absorbed liquidity or breakout potential.
Use the ATR-based channel width to adapt profiles based on market volatility.
⯁ CONCLUSION
ZigZag Volume Profile offers a powerful fusion of structure and volume. By plotting detailed volume profiles over each price swing and extending the POC as actionable S/R levels, this tool provides deep insight into market participation zones — giving traders a tactical edge in both ranging and trending environments.
Trend
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.
Time-Price Velocity [QuantAlgo]🟢 Overview
The Time-Price Velocity indicator uses advanced velocity-based analysis to measure the rate of price change normalized against typical market movement, creating a dynamic momentum oscillator that identifies market acceleration patterns and momentum shifts. Unlike traditional momentum indicators that focus solely on price change magnitude, this indicator incorporates time-weighted displacement calculations and ATR normalization to create a sophisticated velocity measurement system that adapts to varying market volatility conditions.
This indicator displays a velocity signal line that oscillates around zero, with positive values indicating upward price velocity and negative values indicating downward price velocity. The signal incorporates acceleration background columns and statistical normalization to help traders identify momentum shifts and potential reversal or continuation opportunities across different timeframes and asset classes.
🟢 How It Works
The indicator's key insight lies in its time-price velocity calculation system, where velocity is measured using the fundamental physics formula:
velocity = priceChange / timeWeight
The system normalizes this raw velocity against typical price movement using Average True Range (ATR) to create market-adjusted readings:
normalizedVelocity = typicalMove > 0 ? velocity / typicalMove : 0
where "typicalMove = ta.atr(lookback)" provides the baseline for normal price movement over the specified lookback period.
The Time-Price Velocity indicator calculation combines multiple sophisticated components. First, it calculates acceleration as the change in velocity over time:
acceleration = normalizedVelocity - normalizedVelocity
Then, the signal generation applies EMA smoothing to reduce noise while preserving responsiveness:
signal = ta.ema(normalizedVelocity, smooth)
This creates a velocity-based momentum indicator that combines price displacement analysis with statistical normalization, providing traders with both directional signals and acceleration insights for enhanced market timing.
🟢 How to Use
1. Signal Interpretation and Threshold Zones
Positive Values (Above Zero): Time-price velocity indicating bullish momentum with upward price displacement relative to normalized baseline
Negative Values (Below Zero): Time-price velocity indicating bearish momentum with downward price displacement relative to normalized baseline
Zero Line Crosses: Velocity transitions between bullish and bearish regimes, indicating potential trend changes or momentum shifts
Upper Threshold Zone: Area above positive threshold (default 1.0) indicating strong bullish velocity and potential reversal point
Lower Threshold Zone: Area below negative threshold (default -1.0) indicating strong bearish velocity and potential reversal point
2. Acceleration Analysis and Visual Features
Acceleration Columns: Background histogram showing velocity acceleration (the rate of change of velocity), with green columns indicating accelerating velocity and red columns indicating decelerating velocity. The interpretation depends on trend context: red columns in downtrends indicate strengthening bearish momentum, while red columns in uptrends indicate weakening bullish momentum
Acceleration Column Height: The height of each column represents the magnitude of acceleration, with taller columns indicating stronger acceleration or deceleration forces
Bar Coloring: Optional price bar coloring matches velocity direction for immediate visual trend confirmation
Info Table: Real-time display of current velocity and acceleration values with trend arrows and change indicators
3. Additional Features:
Confirmed vs Live Data: Toggle between confirmed (closed) bar analysis for stable signals or current bar inclusion for real-time updates
Multi-timeframe Adaptability: Velocity normalization ensures consistent readings across different chart timeframes and asset volatilities
Alert System: Built-in alerts for threshold crossovers and direction changes
🟢 Examples with Preconfigured Settings
Default : Balanced configuration suitable for most timeframes and general trading applications, providing optimal balance between sensitivity and noise filtering for medium-term analysis.
Scalping : High sensitivity setup with shorter lookback period and reduced smoothing for ultra-short-term trades on 1-15 minute charts, optimized for capturing rapid momentum shifts and frequent trading opportunities.
Swing Trading : Extended lookback period with enhanced smoothing and higher threshold for multi-day positions, designed to filter market noise while capturing significant momentum moves on 1-4 hour and daily timeframes.
Dual Supertrend tohungmc tikDual Supertrend is an advanced trend-following indicator that combines two Supertrend strategies — a Large Supertrend and a Small Supertrend — to provide you with more precise entry and exit signals.
This indicator plots two Supertrend lines:
Large Supertrend (Blue and Orange): A broader trend that reacts slower to price movements.
Small Supertrend (Green and Red): A faster trend that responds quicker to market changes.
Key Features:
Customizable ATR Periods and Multipliers for both Large and Small Supertrends.
Buy/Sell Signals: When the Small Supertrend trend changes, and it's aligned with the Large Supertrend, you get reliable buy and sell signals.
Highlighting: The background can be highlighted in green or red, depending on whether the Large Supertrend is in an uptrend or downtrend.
Alerts: Alerts can be set for buy/sell signals or when the trend direction changes.
Use Case:
This indicator is designed for traders looking to follow both long-term and short-term trends. By combining the slower Large Supertrend with the faster Small Supertrend, it gives a more comprehensive view of market trends and better entry/exit points.
Indicator Inputs:
ATR Periods and Multipliers: Control how sensitive the Supertrend reacts to market changes.
Highlighting: Enable/Disable background highlighting.
Buy/Sell Signals: Option to show buy/sell signals based on trend direction changes.
PSAR LRC [CRT Trader]
SAR (Stop and Reverse) is a technical indicator used in financial markets to track trends and identify potential reversal points.
The indicator plots SAR calculations at three different speeds as dot markers above or below the candlesticks. If all three dots are below, it is considered a bullish signal; if they are above, it is considered a bearish signal.
In addition to the indicator, a Linear Regression Channel has been added. These lines can provide information such as trend direction, support, resistance, and potential breakouts.
Price Widget on ScreenSimple yet useful script, to see the PRICE/CHANGE of the chart you are on. I use it in my 6/8 charts screen, so you can see the graph and the price.
MERV: Market Entropy & Rhythm Visualizer [BullByte]The MERV (Market Entropy & Rhythm Visualizer) indicator analyzes market conditions by measuring entropy (randomness vs. trend), tradeability (volatility/momentum), and cyclical rhythm. It provides traders with an easy-to-read dashboard and oscillator to understand when markets are structured or choppy, and when trading conditions are optimal.
Purpose of the Indicator
MERV’s goal is to help traders identify different market regimes. It quantifies how structured or random recent price action is (entropy), how strong and volatile the movement is (tradeability), and whether a repeating cycle exists. By visualizing these together, MERV highlights trending vs. choppy environments and flags when conditions are favorable for entering trades. For example, a low entropy value means prices are following a clear trend line, whereas high entropy indicates a lot of noise or sideways action. The indicator’s combination of measures is original: it fuses statistical trend-fit (entropy), volatility trends (ATR and slope), and cycle analysis to give a comprehensive view of market behavior.
Why a Trader Should Use It
Traders often need to know when a market trend is reliable vs. when it is just noise. MERV helps in several ways: it shows when the market has a strong direction (low entropy, high tradeability) and when it’s ranging (high entropy). This can prevent entering trend-following strategies during choppy periods, or help catch breakouts early. The “Optimal Regime” marker (a star) highlights moments when entropy is very low and tradeability is very high, typically the best conditions for trend trades. By using MERV, a trader gains an empirical “go/no-go” signal based on price history, rather than guessing from price alone. It’s also adaptable: you can apply it to stocks, forex, crypto, etc., on any timeframe. For example, during a bullish phase of a stock, MERV will turn green (Trending Mode) and often show a star, signaling good follow-through. If the market later grinds sideways, MERV will shift to magenta (Choppy Mode), warning you that trend-following is now risky.
Why These Components Were Chosen
Market Entropy (via R²) : This measures how well recent prices fit a straight line. We compute a linear regression on the last len_entropy bars and calculate R². Entropy = 1 - R², so entropy is low when prices follow a trend (R² near 1) and high when price action is erratic (R² near 0). This single number captures trend strength vs noise.
Tradeability (ATR + Slope) : We combine two familiar measures: the Average True Range (ATR) (normalized by price) and the absolute slope of the regression line (scaled by ATR). Together they reflect how active and directional the market is. A high ATR or strong slope means big moves, making a trend more “tradeable.” We take a simple average of the normalized ATR and slope to get tradeability_raw. Then we convert it to a percentile rank over the lookback window so it’s stable between 0 and 1.
Percentile Ranks : To make entropy and tradeability values easy to interpret, we convert each to a 0–100 rank based on the past len_entropy periods. This turns raw metrics into a consistent scale. (For example, an entropy rank of 90 means current entropy is higher than 90% of recent values.) We then divide by 100 to plot them on a 0–1 scale.
Market Mode (Regime) : Based on those ranks, MERV classifies the market:
Trending (Green) : Low entropy rank (<40%) and high tradeability rank (>60%). This means the market is structurally trending with high activity.
Choppy (Magenta) : High entropy rank (>60%) and low tradeability rank (<40%). This is a mostly random, low-momentum market.
Neutral (Cyan) : All other cases. This covers mixed regimes not strongly trending or choppy.
The mode is shown as a colored bar at the bottom: green for trending, magenta for choppy, cyan for neutral.
Optimal Regime Signal : Separately, we mark an “optimal” condition when entropy_norm < 0.3 and tradeability > 0.7 (both normalized 0–1). When this is true, a ★ star appears on the bottom line. This star is colored white when truly optimal, gold when only tradeability is high (but entropy not quite low enough), and black when neither condition holds. This gives a quick visual cue for very favorable conditions.
What Makes MERV Stand Out
Holistic View : Unlike a single-oscillator, MERV combines trend, volatility, and cycle analysis in one tool. This multi-faceted approach is unique.
Visual Dashboard : The fixed on-chart dashboard (shown at your chosen corner) summarizes all metrics in bar/gauge form. Even a non-technical user can glance at it: more “█” blocks = a higher value, colors match the plots. This is more intuitive than raw numbers.
Adaptive Thresholds : Using percentile ranks means MERV auto-adjusts to each market’s character, rather than requiring fixed thresholds.
Cycle Insight : The rhythm plot adds information rarely found in indicators – it shows if there’s a repeating cycle (and its period in bars) and how strong it is. This can hint at natural bounce or reversal intervals.
Modern Look : The neon color scheme and glow effects make the lines easy to distinguish (blue/pink for entropy, green/orange for tradeability, etc.) and the filled area between them highlights when one dominates the other.
Recommended Timeframes
MERV can be applied to any timeframe, but it will be more reliable on higher timeframes. The default len_entropy = 50 and len_rhythm = 30 mean we use 30–50 bars of history, so on a daily chart that’s ~2–3 months of data; on a 1-hour chart it’s about 2–3 days. In practice:
Swing/Position traders might prefer Daily or 4H charts, where the calculations smooth out small noise. Entropy and cycles are more meaningful on longer trends.
Day trader s could use 15m or 1H charts if they adjust the inputs (e.g. shorter windows). This provides more sensitivity to intraday cycles.
Scalpers might find MERV too “slow” unless input lengths are set very low.
In summary, the indicator works anywhere, but the defaults are tuned for capturing medium-term trends. Users can adjust len_entropy and len_rhythm to match their chart’s volatility. The dashboard position can also be moved (top-left, bottom-right, etc.) so it doesn’t cover important chart areas.
How the Scoring/Logic Works (Step-by-Step)
Compute Entropy : A linear regression line is fit to the last len_entropy closes. We compute R² (goodness of fit). Entropy = 1 – R². So a strong straight-line trend gives low entropy; a flat/noisy set of points gives high entropy.
Compute Tradeability : We get ATR over len_entropy bars, normalize it by price (so it’s a fraction of price). We also calculate the regression slope (difference between the predicted close and last close). We scale |slope| by ATR to get a dimensionless measure. We average these (ATR% and slope%) to get tradeability_raw. This represents how big and directional price moves are.
Convert to Percentiles : Each new entropy and tradeability value is inserted into a rolling array of the last 50 values. We then compute the percentile rank of the current value in that array (0–100%) using a simple loop. This tells us where the current bar stands relative to history. We then divide by 100 to plot on .
Determine Modes and Signal : Based on these normalized metrics: if entropy < 0.4 and tradeability > 0.6 (40% and 60% thresholds), we set mode = Trending (1). If entropy > 0.6 and tradeability < 0.4, mode = Choppy (-1). Otherwise mode = Neutral (0). Separately, if entropy_norm < 0.3 and tradeability > 0.7, we set an optimal flag. These conditions trigger the colored mode bars and the star line.
Rhythm Detection : Every bar, if we have enough data, we take the last len_rhythm closes and compute the mean and standard deviation. Then for lags from 5 up to len_rhythm, we calculate a normalized autocorrelation coefficient. We track the lag that gives the maximum correlation (best match). This “best lag” divided by len_rhythm is plotted (a value between 0 and 1). Its color changes with the correlation strength. We also smooth the best correlation value over 5 bars to plot as “Cycle Strength” (also 0 to 1). This shows if there is a consistent cycle length in recent price action.
Heatmap (Optional) : The background color behind the oscillator panel can change with entropy. If “Neon Rainbow” style is on, low entropy is blue and high entropy is pink (via a custom color function), otherwise a classic green-to-red gradient can be used. This visually reinforces the entropy value.
Volume Regime (Dashboard Only) : We compute vol_norm = volume / sma(volume, len_entropy). If this is above 1.5, it’s considered high volume (neon orange); below 0.7 is low (blue); otherwise normal (green). The dashboard shows this as a bar gauge and percentage. This is for context only.
Oscillator Plot – How to Read It
The main panel (oscillator) has multiple colored lines on a 0–1 vertical scale, with horizontal markers at 0.2 (Low), 0.5 (Mid), and 0.8 (High). Here’s each element:
Entropy Line (Blue→Pink) : This line (and its glow) shows normalized entropy (0 = very low, 1 = very high). It is blue/green when entropy is low (strong trend) and pink/purple when entropy is high (choppy). A value near 0.0 (below 0.2 line) indicates a very well-defined trend. A value near 1.0 (above 0.8 line) means the market is very random. Watch for it dipping near 0: that suggests a strong trend has formed.
Tradeability Line (Green→Yellow) : This represents normalized tradeability. It is colored bright green when tradeability is low, transitioning to yellow as tradeability increases. Higher values (approaching 1) mean big moves and strong slopes. Typically in a market rally or crash, this line will rise. A crossing above ~0.7 often coincides with good trend strength.
Filled Area (Orange Shade) : The orange-ish fill between the entropy and tradeability lines highlights when one dominates the other. If the area is large, the two metrics diverge; if small, they are similar. This is mostly aesthetic but can catch the eye when the lines cross over or remain close.
Rhythm (Cycle) Line : This is plotted as (best_lag / len_rhythm). It indicates the relative period of the strongest cycle. For example, a value of 0.5 means the strongest cycle was about half the window length. The line’s color (green, orange, or pink) reflects how strong that cycle is (green = strong). If no clear cycle is found, this line may be flat or near zero.
Cycle Strength Line : Plotted on the same scale, this shows the autocorrelation strength (0–1). A high value (e.g. above 0.7, shown in green) means the cycle is very pronounced. Low values (pink) mean any cycle is weak and unreliable.
Mode Bars (Bottom) : Below the main oscillator, thick colored bars appear: a green bar means Trending Mode, magenta means Choppy Mode, and cyan means Neutral. These bars all have a fixed height (–0.1) and make it very easy to see the current regime.
Optimal Regime Line (Bottom) : Just below the mode bars is a thick horizontal line at –0.18. Its color indicates regime quality: White (★) means “Optimal Regime” (very low entropy and high tradeability). Gold (★) means not quite optimal (high tradeability but entropy not low enough). Black means neither condition. This star line quickly tells you when conditions are ideal (white star) or simply good (gold star).
Horizontal Guides : The dotted lines at 0.2 (Low), 0.5 (Mid), and 0.8 (High) serve as reference lines. For example, an entropy or tradeability reading above 0.8 is “High,” and below 0.2 is “Low,” as labeled on the chart. These help you gauge values at a glance.
Dashboard (Fixed Corner Panel)
MERV also includes a compact table (dashboard) that can be positioned in any corner. It summarizes key values each bar. Here is how to read its rows:
Entropy : Shows a bar of blocks (█ and ░). More █ blocks = higher entropy. It also gives a percentage (rounded). A full bar (10 blocks) with a high % means very chaotic market. The text is colored similarly (blue-green for low, pink for high).
Rhythm : Shows the best cycle period in bars (e.g. “15 bars”). If no calculation yet, it shows “n/a.” The text color matches the rhythm line.
Cycle Strength : Gives the cycle correlation as a percentage (smoothed, as shown on chart). Higher % (green) means a strong cycle.
Tradeability : Displays a 10-block gauge for tradeability. More blocks = more tradeable market. It also shows “gauge” text colored green→yellow accordingly.
Market Mode : Simply shows “Trending”, “Choppy”, or “Neutral” (cyan text) to match the mode bar color.
Volume Regime : Similar to tradeability, shows blocks for current volume vs. average. Above-average volume gives orange blocks, below-average gives blue blocks. A % value indicates current volume relative to average. This row helps see if volume is abnormally high or low.
Optimal Status (Large Row) : In bold, either “★ Optimal Regime” (white text) if the star condition is met, “★ High Tradeability” (gold text) if tradeability alone is high, or “— Not Optimal” (gray text) otherwise. This large row catches your eye when conditions are ripe.
In short, the dashboard turns the numeric state into an easy read: filled bars, colors, and text let you see current conditions without reading the plot. For instance, five blue blocks under Entropy and “25%” tells you entropy is low (good), and a row showing “Trending” in green confirms a trend state.
Real-Life Example
Example : Consider a daily chart of a trending stock (e.g. “AAPL, 1D”). During a strong uptrend, recent prices fit a clear upward line, so Entropy would be low (blue line near bottom, perhaps below the 0.2 line). Volatility and slope are high, so Tradeability is high (green-yellow line near top). In the dashboard, Entropy might show only 1–2 blocks (e.g. 10%) and Tradeability nearly full (e.g. 90%). The Market Mode bar turns green (Trending), and you might see a white ★ on the optimal line if conditions are very good. The Volume row might light orange if volume is above average during the rally. In contrast, imagine the same stock later in a tight range: Entropy will rise (pink line up, more blocks in dashboard), Tradeability falls (fewer blocks), and the Mode bar turns magenta (Choppy). No star appears in that case.
Consolidated Use Case : Suppose on XYZ stock the dashboard reads “Entropy: █░░░░░░░░ 20%”, “Tradeability: ██████████ 80%”, Mode = Trending (green), and “★ Optimal Regime.” This tells the trader that the market is in a strong, low-noise trend, and it might be a good time to follow the trend (with appropriate risk controls). If instead it reads “Entropy: ████████░░ 80%”, “Tradeability: ███▒▒▒▒▒▒ 30%”, Mode = Choppy (magenta), the trader knows the market is random and low-momentum—likely best to sit out until conditions improve.
Example: How It Looks in Action
Screenshot 1: Trending Market with High Tradeability (SOLUSD, 30m)
What it means:
The market is in a clear, strong trend with excellent conditions for trading. Both trend-following and active strategies are favored, supported by high tradeability and strong volume.
Screenshot 2: Optimal Regime, Strong Trend (ETHUSD, 1h)
What it means:
This is an ideal environment for trend trading. The market is highly organized, tradeability is excellent, and volume supports the move. This is when the indicator signals the highest probability for success.
Screenshot 3: Choppy Market with High Volume (BTC Perpetual, 5m)
What it means:
The market is highly random and choppy, despite a surge in volume. This is a high-risk, low-reward environment, avoid trend strategies, and be cautious even with mean-reversion or scalping.
Settings and Inputs
The script is fully open-source; here are key inputs the user can adjust:
Entropy Window (len_entropy) : Number of bars used for entropy and tradeability (default 50). Larger = smoother, more lag; smaller = more sensitivity.
Rhythm Window (len_rhythm ): Bars used for cycle detection (default 30). This limits the longest cycle we detect.
Dashboard Position : Choose any corner (Top Right default) so it doesn’t cover chart action.
Show Heatmap : Toggles the entropy background coloring on/off.
Heatmap Style : “Neon Rainbow” (colorful) or “Classic” (green→red).
Show Mode Bar : Turn the bottom mode bar on/off.
Show Dashboard : Turn the fixed table panel on/off.
Each setting has a tooltip explaining its effect. In the description we will mention typical settings (e.g. default window sizes) and that the user can move the dashboard corner as desired.
Oscillator Interpretation (Recap)
Lines : Blue/Pink = Entropy (low=trend, high=chop); Green/Yellow = Tradeability (low=quiet, high=volatile).
Fill : Orange tinted area between them (for visual emphasis).
Bars : Green=Trending, Magenta=Choppy, Cyan=Neutral (at bottom).
Star Line : White star = ideal conditions, Gold = good but not ideal.
Horizontal Guides : 0.2 and 0.8 lines mark low/high thresholds for each metric.
Using the chart, a coder or trader can see exactly what each output represents and make decisions accordingly.
Disclaimer
This indicator is provided as-is for educational and analytical purposes only. It does not guarantee any particular trading outcome. Past market patterns may not repeat in the future. Users should apply their own judgment and risk management; do not rely solely on this tool for trading decisions. Remember, TradingView scripts are tools for market analysis, not personalized financial advice. We encourage users to test and combine MERV with other analysis and to trade responsibly.
-BullByte
Volume Footprint Anomaly Scanner [PhenLabs]📊 PhenLabs - Volume Footprint Anomaly Scanner (VFAS)
Version: PineScript™ v6
📌 Description
The PhenLabs Volume Footprint Anomaly Scanner (VFAS) is an advanced Pine Script indicator designed to detect and highlight significant imbalances in buying and selling pressure within individual price bars. By analyzing a calculated "Delta" – the net difference between estimated buy and sell volume – and employing statistical Z-score analysis, VFAS pinpoints moments when buying or selling activity becomes unusually dominant. This script was created not in hopes of creating a "Buy and Sell" indicator but rather providing the user with a more in-depth insight into the intrabar volume delta and how it can fluctuate in unusual ways, leading to anomalies that can be capitalized on.
This indicator helps traders identify high-conviction points where strong market participants are active, signaling potential shifts in momentum or continuation of a trend. It aims to provide a clearer understanding of underlying market dynamics, allowing for more informed decision-making in various trading strategies, from identifying entry points to confirming trend strength.
🚀 Points of Innovation
● Z-Score for Delta Analysis : Utilizes statistical Z-scores to objectively identify statistically significant anomalies in buying/selling pressure, moving beyond simple, arbitrary thresholds.
● Dynamic Confidence Scoring : Assigns a multi-star confidence rating (1-4 stars) to each signal, factoring in high volume, trend alignment, and specific confirmation criteria, providing a nuanced view of signal strength.
● Integrated Trend Filtering : Offers an optional Exponential Moving Average (EMA)-based trend filter to ensure signals align with the broader market direction, reducing false positives in ranging markets.
● Strict Confirmation Logic : Implements specific confirmation criteria for higher-confidence signals, including price action and a time-based gap from previous signals, enhancing reliability.
● Intuitive Info Dashboard : Provides a real-time summary of market trend and the latest signal's direction and confidence directly on the chart, streamlining information access.
🔧 Core Components
● Core Delta Engine : Estimates the net buying/selling pressure (bar Delta) by analyzing price movement within each bar relative to volume. It also calculates average volume to identify bars with unusually high activity.
● Anomaly Detection (Z-Score) : Computes the Z-score for the current bar's Delta, indicating how many standard deviations it is from its recent average. This statistical measure is central to identifying significant anomalies.
● Trend Filter : Utilizes a dual Exponential Moving Average (EMA) cross-over system to define the prevailing market trend (uptrend, downtrend, or range), providing contextual awareness.
● Signal Processing & Confidence Algorithm : Evaluates anomaly conditions against trend filters and confirmation rules, then calculates a dynamic confidence score to produce actionable, contextualized signal information.
🔥 Key Features
● Advanced Delta Anomaly Detection : Pinpoints bars with exceptionally high buying or selling pressure, indicating potential institutional activity or strong market conviction.
● Multi-Factor Confidence Scoring : Each signal comes with a 1-4 star rating, clearly communicating its reliability based on high volume, trend alignment, and specific confirmation criteria.
● Optional Trend Alignment : Users can choose to filter signals, so only those aligned with the prevailing EMA-defined trend are displayed, enhancing signal quality.
● Interactive Signal Labels : Displays compact labels on the chart at anomaly points, offering detailed tooltips upon hover, including signal type, direction, confidence, and contextual information.
● Customizable Bar Colors : Visually highlights bars with Delta anomalies, providing an immediate visual cue for strong buying or selling activity.
● Real-time Info Dashboard : A clean, customizable dashboard shows the current market trend and details of the latest detected signal, keeping key information accessible at a glance.
● Configurable Alerts : Set up alerts for bullish or bearish Delta anomalies to receive real-time notifications when significant market pressure shifts occur.
🎨 Visualization
Signal Labels :
* Placed at the top/bottom of anomaly bars, showing a "📈" (bullish) or "📉" (bearish) icon.
* Tooltip: Hovering over a label reveals detailed information: Signal Type (e.g., "Delta Anomaly"), Direction, Confidence (e.g., "★★★☆"), and a descriptive explanation of the anomaly.
* Interpretation: Clearly marks actionable signals and provides deep insights without cluttering the chart, enabling quick assessment of signal strength and context.
● Info Dashboard :
* Located at the top-right of the chart, providing a clean summary.
* Displays: "PhenLabs - VFAS" header, "Market Trend" (Uptrend/Downtrend/Range with color-coded status), and "Direction | Conf." (showing the last signal's direction and star confidence).
* Optional "💡 Hover over signals for details" reminder.
* Interpretation: A concise, real-time summary of the market's pulse and the most recent high-conviction event, helping traders stay informed at a glance.
📖 Usage Guidelines
Setting Categories
⚙️ Core Delta & Volume Engine
● Minimum Volume Lookback (Bars)
○ Default: 9
○ Range: Integer (e.g., 5-50)
○ Description: Defines the number of preceding bars used to calculate the average volume and delta. Bars with volume below this average won't be considered for high-volume signals. A shorter lookback is more reactive to recent changes, while a longer one provides a smoother average.
📈 Anomaly Detection Settings
Delta Z-Score Anomaly Threshold
○ Default: 2.5
○ Range: Float (e.g., 1.0-5.0+)
○ Description: The number of standard deviations from the mean that a bar's delta must exceed to be considered a significant anomaly. A higher threshold means fewer, but potentially stronger, signals. A lower threshold will generate more signals, which might include less significant events. Experiment to find the optimal balance for your trading style.
🔬 Context Filters
Enable Trend Filter
○ Default: False
○ Range: Boolean (True/False)
○ Description: When enabled, signals will only be generated if they align with the current market trend as determined by the EMAs (e.g., only bullish signals in an uptrend, bearish in a downtrend). This helps to filter out counter-trend noise.
● Trend EMA Fast
○ Default: 50
○ Range: Integer (e.g., 10-100)
○ Description: The period for the faster Exponential Moving Average used in the trend filter. In combination with the slow EMA, it defines the trend direction.
● Trend EMA Slow
○ Default: 200
○ Range: Integer (e.g., 100-400)
○ Description: The period for the slower Exponential Moving Average used in the trend filter. The relationship between the fast and slow EMA determines if the market is in an uptrend (fast > slow) or downtrend (fast < slow).
🎨 Visual & UI Settings
● Show Info Dashboard
○ Default: True
○ Range: Boolean (True/False)
○ Description: Toggles the visibility of the dashboard on the chart, which provides a summary of market trend and the last detected signal.
● Show Dashboard Tooltip
○ Default: True
○ Range: Boolean (True/False)
○ Description: Toggles a reminder message in the dashboard to hover over signal labels for more detailed information.
● Show Delta Anomaly Bar Colors
○ Default: True
○ Range: Boolean (True/False)
○ Description: Enables or disables the coloring of bars based on their delta direction and whether they represent a significant anomaly.
● Show Signal Labels
○ Default: True
○ Range: Boolean (True/False)
○ Description: Controls the visibility of the “📈” or “📉” labels that appear on the chart when a delta anomaly signal is generated.
🔔 Alert Settings
Alert on Delta Anomaly
○ Default: True
○ Range: Boolean (True/False)
○ Description: When enabled, this setting allows you to set up alerts in TradingView that will trigger whenever a new bullish or bearish delta anomaly is detected.
✅ Best Use Cases
Early Trend Reversal / Continuation Detection: Identify strong surges of buying/selling pressure at key support/resistance levels that could indicate a reversal or the continuation of a strong move.
● Confirmation of Breakouts: Use high-confidence delta anomalies to confirm the validity of price breakouts, indicating strong conviction behind the move.
● Entry and Exit Points: Pinpoint precise entry opportunities when anomalies align with your trading strategy, or identify potential exhaustion signals for exiting trades.
● Scalping and Day Trading: The indicator’s sensitivity to intraday buying/selling imbalances makes it highly effective for short-term trading strategies.
● Market Sentiment Analysis: Gain a real-time understanding of underlying market sentiment by observing the prevalence and strength of bullish vs. bearish anomalies.
⚠️ Limitations
Estimated Delta: The script uses a simplified method to estimate delta based on bar close relative to its range, not actual order book or footprint data. While effective, it’s an approximation.
● Sensitivity to Z-Score Threshold: The effectiveness heavily relies on the `Delta Z-Score Anomaly Threshold`. Too low, and you’ll get many false positives; too high, and you might miss valid signals.
● Confirmation Criteria: The 4-star confidence level’s “confirmation” relies on specific subsequent bar conditions and previous confirmed signals, which might be too strict or specific for all contexts.
● Requires Context: While powerful, VFAS is best used in conjunction with other technical analysis tools and price action to form a comprehensive trading strategy. It is not a standalone “buy/sell” signal.
💡 What Makes This Unique
Statistical Rigor: The application of Z-score analysis to bar delta provides an objective, statistically-driven way to identify true anomalies, moving beyond arbitrary thresholds.
● Multi-Factor Confidence Scoring: The unique 1-4 star confidence system integrates multiple market dynamics (volume, trend alignment, specific follow-through) into a single, easy-to-interpret rating.
● User-Friendly Design: From the intuitive dashboard to the detailed signal tooltips, the indicator prioritizes clear and accessible information for traders of all experience levels.
🔬 How It Works
1. Bar Delta Calculation:
● The script first estimates the “buy volume” and “sell volume” for each bar. This is done by assuming that volume proportional to the distance from the low to the close represents buying, and volume proportional to the distance from the high to the close represents selling.
● How this contributes: This provides a proxy for the net buying or selling pressure (delta) within that specific price bar, even without access to actual footprint data.
2. Volume & Delta Z-Score Analysis:
● The average volume over a user-defined lookback period is calculated. Bars with volume less than twice this average are generally considered of lower interest.
● The Z-score for the calculated bar delta is computed. The Z-score measures how many standard deviations the current bar’s delta is from its average delta over the `Minimum Volume Lookback` period.
● How this contributes: A high positive Z-score indicates a bullish delta anomaly (significantly more buying than usual), while a high negative Z-score indicates a bearish delta anomaly (significantly more selling than usual). This identifies statistically unusual levels of pressure.
3. Trend Filtering (Optional):
● Two Exponential Moving Averages (Fast and Slow EMA) are used to determine the prevailing market trend. An uptrend is identified when the Fast EMA is above the Slow EMA, and a downtrend when the Fast EMA is below the Slow EMA.
● How this contributes: If enabled, the indicator will only display bullish delta anomalies during an uptrend and bearish delta anomalies during a downtrend, helping to confirm signals within the broader market context and avoid counter-trend signals.
4. Signal Generation & Confidence Scoring:
● When a delta Z-score exceeds the user-defined anomaly threshold, a signal is generated.
● This signal is then passed through a multi-factor confidence algorithm (`f_calculateConfidence`). It awards stars based on: high volume presence, alignment with the overall trend (if enabled), and a fourth star for very strong Z-scores (above 3.0) combined with specific follow-through candle patterns after a cooling-off period from a previous confirmed signal.
● How this contributes: Provides a qualitative rating (1-4 stars) for each anomaly, allowing traders to quickly assess the potential significance and reliability of the signal.
💡 Note:
The PhenLabs Volume Footprint Anomaly Scanner is a powerful analytical tool, but it’s crucial to understand that no indicator guarantees profit. Always backtest and forward-test the indicator settings on your chosen assets and timeframes. Consider integrating VFAS with your existing trading strategy, using its signals as confirmation for entries, exits, or trend bias. The Z-score threshold is highly customizable; lower values will yield more signals (including potential noise), while higher values will provide fewer but potentially higher-conviction signals. Adjust this parameter based on market volatility and your risk tolerance. Remember to combine statistical insights from VFAS with price action, support/resistance levels, and your overall market outlook for optimal results.
SwingTrade ADX Strategy v6This is a swing trading strategy that combines VWAP (Volume Weighted Average Price), ADX (Average Directional Index) for trend strength, and volume ratios to generate long/short entry and exit signals. It's designed for daily charts but can be adapted.
#### Key Features:
- **Entries**: Based on VWAP crossovers, rising/falling delta (price deviation from VWAP), ADX trend confirmation, and volume ratios.
- **Exits**: Dynamic exits when VWAP delta reverses after a peak.
- **Filters**: Optional toggles for VWAP signals, ADX, and volume. Backtest date range for custom periods.
- **Visuals**: VWAP line, signal shapes/labels, and an info panel showing key metrics (VWAP Delta %, ADX, Volume Ratio).
- **Alerts**: Built-in alerts for buy/sell entries and exits.
#### How to Use:
1. Apply to your chart (e.g., stocks, forex, crypto).
2. Adjust parameters in the settings (e.g., ADX threshold, volume period).
3. Enable/disable indicators as needed.
4. Backtest using the date filters and review equity curve.
**Disclaimer**: This is for educational purposes only. Past performance is not indicative of future results. Not financial advice—trade at your own risk. Backtest thoroughly and use with proper risk management.
Feedback welcome! If you find it useful, give it a like.
Indexrate Code BIndexrate Code B is an indicator and part of the Indexrate Code Set of Algorithm, which additionally includes the Indexrate Code A strategy.
The Indexrate Code Set of Algorithms can be used for any trading instruments and on any existing markets (Stock market, Forex, Cryptocurrency market, etc.).
Indexrate Code B consists of a set of indicators, oscillators and signals that are uniquely configured to interact with each other and allow traders to analyze the movement of an asset’s price:
- Momentum
This oscillator measures the amount of change in the price of an asset over a certain period of time. This is a great tool for understanding the strength of a trend and its potential sustainability. When the momentum oscillator is rising, it indicates that the price is moving up and vice versa.
Momentum is an advanced technical analysis tool that helps traders determine the rate of change or momentum of the market. It is typically used to determine the strength or rate at which the price of an asset increases or decreases for a set of returns. This oscillator is considered to be "fast moving" and "sensitive" as it reacts quickly to changes in price momentum. The fast-moving nature of this oscillator helps traders get early signals for potential market entry or exit points.
The Momentum Oscillator analyzes the current price compared to the previous price and adds two additional levels of analysis: Buy and Sell Movements and Extremes.
• Buying and Selling Movements: This oscillator layer helps identify the buying and selling pressure in the market. This can provide traders with valuable information about the possible direction of future price movements. When there is high buying pressure (demand), the price tends to rise, and when there is high selling pressure (supply), the price tends to fall.
• Extremes: This layer helps identify extreme overbought or oversold conditions. When the oscillator enters the overbought zone, it may indicate that price has peaked and could potentially reverse. Conversely, if the oscillator enters an oversold zone, it could indicate that the price is at a low and could potentially rebound.
Momentum usage example
Momentum is a sensitive and fast-moving oscillator that quickly adapts to price changes while tracking long-term momentum, making it easier to spot buying or selling opportunities in trends.
-Difference Momentum
The Momentum wave described above consists of two curves combined into a ribbon. Difference Momentum shows the intersection of these waves. Difference Momentum is an important component of the toolkit. It takes into account both the direction and dynamics of market trends. The waves within this system are fast and responsive, acting independently and offering the most relevant information at the most appropriate moments. Their fast response time ensures that traders receive timely information, which is very important in the fast-paced and dynamic world of trading.
An example of using Difference Momentum
Difference Momentum is able to identify trend reversals and pullbacks, allowing traders to enter or exit trades at optimal times.
Movement of the indicator curve from negative to positive values (from bottom to top) for Long and movement of the curve from positive to negative values (from top to bottom) for Short. As well as the intersection of the center line of the indicator channel (value “0”) in one direction or the other. The values can be observed in the status line.
-StochRSI
StochRSI is a type of momentum oscillator that is commonly used in technical analysis to predict price movements. As the name suggests, it is an enhanced form of the traditional Relative Strength Index (RSI) that provides traders with more timely signals to enter and exit the market.
StochRSI works on similar principles but is designed to provide signals ahead of traditional RSI. This is achieved through more complex mathematical modeling and calculations that aim to identify changes in market dynamics before they happen. It takes into account not only current price action, but also takes into account historical data in such a way that changes in trend directions can be anticipated.
Example of using StochRSI
StochRSI is an enhanced version of the traditional relative strength index, offering overbought or oversold market conditions.
The oscillator wave changes color from green to red. Where the green color serves as a priority for Long positions, and the red color serves as a priority for Short positions. Values in the “80” zone and above indicate the asset is overbought, and values in the “20” zone and below indicate the asset is oversold. The values can be observed in the status line.
-Money Flow Index (MFI)
Money Flow Index (MFI) or Money Flow Index is an indicator from the group of oscillators. It reflects the rate at which funds are invested in and withdrawn from a financial asset. Essentially, it measures the pressure of buyers and sellers. The oscillator calculates incoming and outgoing cash flows.
The Money Flow Index helps traders analyze positive and negative money flows and compare these data with price, which in turn allows them to better see trend strength and turning points.
Example of using Money Flow Index (MFI)
The transition of waves from gray to blue means that money is entering the asset, and vice versa from blue to gray means that money is leaving the asset. This leads to the conclusion that when money enters an asset, it becomes more expensive, and when money leaves an asset, it becomes cheaper. A hint of this movement gives the trader additional confirmation of the received signal. The bar at the top of the indicator duplicates the movement of Money Flow Index (MFI) waves for accurate visualization of these transitions. At the same time, when the wave is in blue color (Long), then purchases are considered a priority, and when the wave is in gray color (Short), then sales are considered a priority.
-Trend Score WMA
The Trend Score WMA indicator is an indicator that uses a weighted moving average (WMA). When calculating, each candle is assigned its own weight, which is calculated depending on the selected period. The indicator quickly reacts to market changes. Trend Score WMA is good for quick trading within a day or several days.
The indicator curve resembles a broken line directed up or down, into blue zones (Long) at the top and gray zones (Short) at the bottom. The maximum indicator values are 83 and -83.
Example of using Trend Score WMA
This is an indicator of trend direction. The movement of the indicator curve shows the movement of the trend in real time. The indicator curve moves from bottom to top, from the gray Short zone to the blue Long zone and from top to bottom, from the blue Long zone to the gray Short zone. It is also worth considering that finding a wave in the maximum values of both Long and Short zones may mean the continuation of stronger trend movements.
-Signals
Indexrate Code B(i), shows the direction of price movement, trend breaks, overbought and oversold zones of an asset and creates corresponding signals.
When the Momentum waves intersect, the Difference Momentum wave crosses the zero mark in the status line and the center of the channel boundary (white lines on the indicator having values of 60 and -60), a signal appears in the form of a column of the corresponding color (blue - Long, gray - Short), as well as a cross of the corresponding color appears.
When Momentum Waves intersect and simultaneously cross the channel boundary at a value of 60 or -60, a square of the corresponding color appears. This could mean stronger price movements.
If Momentum waves move from high peaks to lower ones, this also serves as signals for a change in price movement.
When working with the Indexrate Code B(i) indicator, it is necessary to take into account the totality of indicators of other indicators and oscillators to confirm the indicator signals, as shown in their examples.
The Indexrate Code Set of Algorithms is suitable for conservative traders who evaluate their success in the long term, and not in short-term excess profits.
IT IS IMPORTANT TO KNOW that no indicator is capable of 100% predicting a successful trade.
The market is a collection of people. It is thanks to human psychology that shapes the forces of supply and demand that financial markets exist (Charles Dow Theory).
Forecasting based on the analysis of mathematical algorithms (indicators) uses data from past trading - the price of the previous period of time and the volume of previous trading. It is these two indicators that are used by modern technical analysis.
The Indexrate Code Set of Algorithm is based on algorithms that evaluate trends, prices and volume indicators. Besides human psychology, which requires an assessment of the exact preceding periods for a specific timeframe, and not an assessment of the entire period from the moment of listing of a trading instrument on a specific exchange. Since market indicators completely change throughout the trading period and the exchange trading volume also changes.
All updates to the Indexrate Code Set of Algorithm will be free.
Trading is trading on probabilities. Investing is trading on opportunity. Nobody knows the future - Always protect your profits!
Russian translation
Indexrate Code В - это индикатор являющийся частью Комплекта алгоритмов Indexrate Code, включающего в себя дополнительно стратегию Indexrate Code А(s).
Комплект алгоритмов Indexrate Code, может быть использован для любых торговых инструментов и на любых существующих рынках (Фондовый рынок, Форекс, Криптовалютный рынок и тд).
Indexrate Code В состоит из совокупности индикаторов, осцилляторов и сигналов, настроенных уникальным образом для взаимодействия между собой и позволяющих трейдерам комплексно анализировать движение цены актива:
- Momentum
Этот осциллятор измеряет величину изменения цены актива за определенный промежуток времени. Это отличный инструмент для понимания силы тренда и его потенциальной устойчивости. Когда осциллятор импульса растет, это говорит о том, что цена движется вверх и наоборот.
Momentum - это продвинутый инструмент технического анализа, который помогает трейдерам определить скорость изменения или импульс рынка. Обычно он используется для определения силы или скорости, с которой цена актива увеличивается или уменьшается для набора доходностей. Этот осциллятор считается «быстродвижущимся» и «чувствительным», поскольку он быстро реагирует на изменения ценового импульса. Быстродвижущийся характер этого осциллятора помогает трейдерам получать ранние сигналы для потенциальных точек входа или выхода из рынка.
Осциллятор Momentum анализирует текущую цену по сравнению с предыдущей ценой и добавляет два дополнительных уровня анализа: «Движения покупки и продажи» и «Экстремумы».
Движения покупки и продажи: этот слой осциллятора помогает определить давление покупателей и продавцов на рынке. Это может предоставить трейдерам ценную информацию о возможном направлении будущих движений цен. Когда существует высокое давление покупателей (спрос), цена имеет тенденцию расти, а когда существует высокое давление продавцов (предложение), цена имеет тенденцию падать.
Экстремумы: этот слой помогает определить экстремальные условия перекупленности или перепроданности. Когда осциллятор входит в зону перекупленности, это может указывать на то, что цена достигла максимума и потенциально может развернуться. И наоборот, если осциллятор входит в зону перепроданности, это может указывать на то, что цена находится на минимуме и потенциально может отскочить.
Пример использования Momentum
Momentum — это чувствительный и быстро движущийся осциллятор, который быстро адаптируется к изменениям цен, отслеживая при этом долгосрочный импульс, что облегчает обнаружение возможностей покупки или продажи в трендах.
-Difference Momentum
Волна Momentum описанная выше, состоит из двух кривых объединенных в ленту. Difference Momentum, показывает пересечение этих волн. Difference Momentum является важным компонентом набора инструментов. Он учитывает как направление, так и динамику рыночных тенденций. Волны внутри этой системы быстрые и отзывчивые, действуют независимо и предлагают наиболее подходящую информацию в наиболее подходящие моменты. Их быстрое время реагирования гарантирует, что трейдеры получают своевременную информацию, что очень важно в быстро меняющемся и динамичном мире торговли.
Пример использования Difference Momentum.
Difference Momentum способен определять развороты и откаты тренда, позволяя трейдерам входить или выходить из сделок в оптимальные моменты.
Движение кривой индикатора с отрицательных значений в положительные (снизу вверх) для Long и движение кривой с положительных значений в отрицательные (сверху вниз) для Short. А также пересечение центральной линии канала индикатора (значение "0") в одну или в другую сторону. Значения можно наблюдать в строке статуса.
-StochRSI
StochRSI это тип осциллятора импульса, который обычно используется в техническом анализе для прогнозирования движения цен. Как следует из названия, это расширенная форма традиционного индекса относительной силы (RSI), которая предоставляет трейдерам более своевременные сигналы для входа и выхода из рынка.
StochRSI работает по аналогичным принципам, но предназначен для предоставления сигналов, опережающих традиционный RSI. Это достигается за счет более сложного математического моделирования и расчетов, целью которых является выявление изменений в динамике рынка до того, как они произойдут. Он учитывает не только текущее ценовое действие, но также учитывает исторические данные таким образом, чтобы можно было предвидеть изменения в направлениях тренда.
Пример использования StochRSI
StochRSI — это расширенная версия традиционного индекса относительной силы, предлагающая рыночные условия перекупленности или перепроданности.
Волна осциллятора меняет цвет с зеленого на красный. Где зеленый цвет служит приоритетом для позиций Long, а красный цвет приоритетом для позиций Short. Значение в зоне "80" и выше показывают перекупленность актива, а значение в зоне "20" и ниже, показывают перепроданность актива. Значения можно наблюдать в строке статуса.
-Money Flow Index (MFI)
Money Flow Index (MFI) или Индекс денежного потока, — индикатор из группы осцилляторов. Он отражает интенсивность, с которой денежные средства вкладываются в финансовый актив и выводятся из него. По сути, измеряет давление продавцов и покупателей. Осциллятор высчитывает входящие и выходящие денежные потоки.
Money Flow Index помогает трейдерам проанализировать положительные и отрицательные потоки денег и сравнить эти данные с ценой, что в свою очередь позволяет лучше видеть силу тренда и разворотные моменты.
Пример использования Money Flow Index (MFI)
Переход волн из серого цвета в голубой означает, что деньги входят в актив, а наоборот из голубого цвета в серый означает, что деньги из актива выходят. Отсюда следует вывод, что когда деньги входят в актив, он дорожает, а когда деньги выходят из актива, то он дешевеет. Намек на это движение, дает трейдеру дополнительное подтверждение полученного сигнала. Полоса в верхней части индикатора, дублирует движение волн Money Flow Index (MFI) для точности визуализации этих переходов. При этом, когда волна находится в голубом цвете (Long), то приоритетней считаются покупки, а когда волна находится в сером цвете (Short), то приоритетней считаются продажи.
-Trend Score WMA
Индикатор Trend Score WMA - это индикатор использующий взвешенную скользящую среднюю (WMA). При расчете каждой свече присваивается свой вес, который рассчитывается в зависимости от выбранного периода. Индикатор быстро реагирует на изменения рынка. Trend Score WMA хорошо подходит для быстрой торговли в течение дня или нескольких дней.
Кривая индикатора напоминает ломаную линию, направленную вверх или вниз, в зоны голубого цвета (Long) наверху и серого цвета (Short) внизу. Максимальными значениями индикатора являются 83 и -83.
Пример использования Trend Score WMA
Это индикатор направленности тренда. Движение кривой индикатора показывает движение тенденции в реальном времени. Кривая индикатора двигается снизу вверх, от серой зоны Short в голубую зону Long и сверху вниз, от голубой зоны Long до серой зоны Short. Стоит также учесть, что нахождение волны в максимальных значениях зон, как Long так и Short, может означать продолжение более сильных движений тенденции.
-Signals
Indexrate Code В(i), показывает направления движения цены, сломы тренда, зоны перекупленности и перепроданности актива и создает соответствующие сигналы.
Когда волны Momentum пересекаются, волна Difference Momentum пересекает нулевую отметку в строке статуса и центр границы канала (белые линии на индикаторе имеющие значение 60 и -60), появляется сигнал в виде столба соответствующего цвета (голубой - Long, серый - Short), а также появляется крест соответствующего цвета.
Когда Волны Momentum пересекаются и одновременно переходят границу канала в значении 60 или -60, появляется квадрат соответствующего цвета. Это может означать более сильные движения цены.
Если волны Momentum двигаются от высоких пиков к более низким, это тоже служит сигналам к изменению движения цены.
При этом работе с индикатором Indexrate Code В(i), необходимо учитывать совокупность показателей других индикаторов и осцилляторов для подтверждения сигналов индикатора, как показано в их примерах.
Комплект алгоритмов Indexrate Code, подходит консервативным трейдерам, оценивающим свой успех в долгосрочном перспективе, а не в краткосрочной сверх прибыли.
ВАЖНО ЗНАТЬ, что ни один индикатор не способен на 100% предсказать успешную сделку.
Рынок - это совокупность людей. Именно благодаря психологии людей, формирующей силы спроса и предложения, существуют финансовые рынки (Теория Чарльза Доу).
Прогнозирование на основе анализа математических алгоритмов (индикаторов), использует данные прошлых торгов - цену предыдущего периода времени и объем предыдущих торгов. Именно эти два показателя и используются современным техническим анализом.
В основе Комплекта алгоритмов Indexrate Code, лежат алгоритмы оценивающие тенденции, цены и показатели объема. А также психология людей, которая требует оценки точных предшествующих периодов для конкретного таймфрейма, а не оценка всего периода с момента листинга торгового инструмента на конкретной бирже. Так как показатели рынка полностью изменяются на всем торговом периоде и также меняется биржевой объем торгов.
Все обновления Комплекта алгоритмов Indexrate Code, будут бесплатны.
Трейдинг - это торговля на вероятностях. Инвестиции - это торговля на возможностях. Никто не знает будущего - Всегда защищайте свою прибыль.
The Visualized Trader (Fractal Timeframe)The **The Visualized Trader (Fractal Timeframe)** indicator for TradingView is a tool designed to help traders identify strong bullish or bearish trends by analyzing multiple technical indicators across two timeframes: the current chart timeframe and a user-selected higher timeframe. It visually displays trend alignment through arrows on the chart and a condition table in the top-right corner, making it easy to see when conditions align for potential trade opportunities.
### Key Features
1. **Multi-Indicator Analysis**: Combines five technical conditions to confirm trend direction:
- **Trend**: Based on the slope of the 50-period Simple Moving Average (SMA). Upward slope indicates bullish, downward indicates bearish.
- **Stochastic (Stoch)**: Uses Stochastic Oscillator (5, 3, 2) to measure momentum. Rising values suggest bullish momentum, falling values suggest bearish.
- **Momentum (Mom)**: Derived from the MACD fast line (5, 20, 30). Rising MACD line indicates bullish momentum, falling indicates bearish.
- **Dad**: Uses the MACD signal line. Rising signal line is bullish, falling is bearish.
- **Price Change (PC)**: Compares the current close to the previous close. Higher close is bullish, lower is bearish.
2. **Dual Timeframe Comparison**:
- Calculates the same five conditions on both the current timeframe and a user-selected higher timeframe (e.g., daily).
- Helps traders see if the trend on the higher timeframe aligns with the current chart, providing context for stronger trade decisions.
3. **Visual Signals**:
- **Arrows on Chart**:
- **Current Timeframe**: Blue upward arrows below bars for bullish alignment, red downward arrows above bars for bearish alignment.
- **Higher Timeframe**: Green upward triangles below bars for bullish alignment, orange downward triangles above bars for bearish alignment.
- Arrows appear only when all five conditions align (all bullish or all bearish), indicating strong trend potential.
4. **Condition Table**:
- Displays a table in the top-right corner with two rows:
- **Top Row**: Current timeframe conditions (Trend, Stoch, Mom, Dad, PC).
- **Bottom Row**: Higher timeframe conditions (labeled with "HTF").
- Each cell is color-coded: green for bullish, red for bearish.
- The table can be toggled on/off via input settings.
5. **User Input**:
- **Show Condition Boxes**: Toggle the table display (default: on).
- **Comparison Timeframe**: Choose the higher timeframe (e.g., "D" for daily, default setting).
### How It Works
- The indicator evaluates the five conditions on both timeframes.
- When all conditions are bullish (or bearish) on a given timeframe, it plots an arrow/triangle to signal a strong trend.
- The condition table provides a quick visual summary, allowing traders to compare the current and higher timeframe trends at a glance.
### Use Case
- **Purpose**: Helps traders confirm strong trend entries by ensuring multiple indicators align across two timeframes.
- **Example**: If you're trading on a 1-hour chart and see blue arrows with all green cells in the current timeframe row, plus green cells in the higher timeframe (e.g., daily) row, it suggests a strong bullish trend supported by both timeframes.
- **Benefit**: Reduces noise by focusing on aligned signals, helping traders avoid weak or conflicting setups.
### Settings
- Access the indicator settings in TradingView to:
- Enable/disable the condition table.
- Select a higher timeframe (e.g., 4H, D, W) for comparison.
### Notes
- Best used in trending markets; may produce fewer signals in choppy conditions.
- Combine with other analysis (e.g., support/resistance) for better decision-making.
- The higher timeframe signals (triangles) provide context, so prioritize trades where both timeframes align.
This indicator simplifies complex trend analysis into clear visual cues, making it ideal for traders seeking confirmation of strong momentum moves.
MA Table [RanaAlgo]The "MA Table " indicator is a comprehensive and visually appealing tool for tracking moving average signals in TradingView. Here's a short summary of its usefulness:
Key Features:
Dual MA Support:
Tracks both EMA (Exponential Moving Average) and SMA (Simple Moving Average) signals (10, 20, 30, 50, 100 periods).
Users can toggle visibility for EMA/SMA separately.
Clear Signal Visualization:
Displays Buy (▲) or Sell (▼) signals based on price position relative to each MA.
Color-coded (green for buy, red for sell) for quick interpretation.
Customizable Table Design:
Adjustable position (9 placement options), colors, text size, and border styling.
Alternating row colors improve readability.
Optional MA Plots:
Can display the actual MA lines on the chart for visual confirmation (with distinct colors/styles).
Usefulness:
Quick Overview: The table consolidates multiple MA signals in one place, saving time compared to checking each MA individually.
Trend Confirmation: Helps confirm trend strength when multiple MAs align (e.g., price above all MAs → strong uptrend).
Flexible: Suitable for both short-term (10-20 period) and long-term (50-100 period) traders.
Aesthetic: Professional design enhances chart clarity without clutter.
Ideal For:
Traders who rely on moving average crossovers or price-MA relationships.
Multi-timeframe analysis when combined with other tools.
Beginners learning MA strategies (clear visual feedback).
RSI Shift Zone [ChartPrime]OVERVIEW
RSI Shift Zone is a sentiment-shift detection tool that bridges momentum and price action. It plots dynamic channel zones directly on the price chart whenever the RSI crosses above or below critical thresholds (default: 70 for overbought, 30 for oversold). These plotted zones reveal where market sentiment likely flipped, helping traders pinpoint powerful support/resistance clusters and breakout opportunities in real time.
⯁ HOW IT WORKS
When the RSI crosses either the upper or lower level:
A new Shift Zone channel is instantly formed.
The channel’s boundaries anchor to the high and low of the candle at the moment of crossing.
A mid-line (average of high and low) is plotted for easy visual reference.
The channel remains visible on the chart for at least a user-defined minimum number of bars (default: 15) to ensure only meaningful shifts are highlighted.
The channel is color-coded to reflect bullish or bearish sentiment, adapting dynamically based on whether the RSI breached the upper or lower level. Labels with actual RSI values can also be shown inside the zone for added context.
⯁ KEY TECHNICAL DETAILS
Uses a standard RSI calculation (default length: 14).
Detects crossovers above the upper level (trend strength) and crossunders below the lower level (oversold exhaustion).
Applies the channel visually on the main chart , rather than only in the indicator pane — giving traders a precise map of where sentiment shifts have historically triggered price reactions.
Auto-clears the zone when the minimum bar length is satisfied and a new shift is detected.
⯁ USAGE
Traders can use these RSI Shift Zones as powerful tactical levels:
Treat the channel’s high/low boundaries as dynamic breakout lines — watch for candles closing beyond them to confirm fresh trend continuation.
Use the midline as an equilibrium reference for pullbacks within the zone.
Visual RSI value labels offer quick checks on whether the zone formed due to extreme overbought or oversold conditions.
CONCLUSION
RSI Shift Zone transforms a simple RSI threshold crossing into a meaningful structural tool by projecting sentiment flips directly onto the price chart. This empowers traders to see where momentum-based turning points occur and leverage those levels for breakout plays, reversals, or high-confidence support/resistance zones — all in one glance.
Fibonacci Sequence Moving Average [BackQuant]Fibonacci Sequence Moving Average with Adaptive Oscillator
1. Overview
The Fibonacci Sequence Moving Average indicator is a two‑part trading framework that combines a custom moving average built from the famous Fibonacci number set with a fully featured oscillator, normalisation engine and divergence suite. The moving average half delivers an adaptive trend line that respects natural market rhythms, while the oscillator half translates that trend information into a bounded momentum stream that is easy to read, easy to compare across assets and rich in confluence signals. Everything from weighting logic to colour palettes can be customised, so the tool comfortably fits scalpers zooming into one‑minute candles as well as position traders running multi‑month trend following campaigns.
2. Core Calculation
Fibonacci periods – The default length array is 5, 8, 13, 21, 34. A single multiplier input lets you scale the whole family up or down without breaking the golden‑ratio spacing. For example a multiplier of 3 yields 15, 24, 39, 63, 102.
Component averages – Each period is passed through Simple Moving Average logic to produce five baseline curves (ma1 through ma5).
Weighting methods – You decide how those five values are blended:
• Equal weighting treats every curve the same.
• Linear weighting applies factors 1‑to‑5 so the slowest curve counts five times as much as the fastest.
• Exponential weighting doubles each step for a fast‑reacting yet still smooth line.
• Fibonacci weighting multiplies each curve by its own period value, honouring the spirit of ratio mathematics.
Smoothing engine – The blended average is then smoothed a second time with your choice of SMA, EMA, DEMA, TEMA, RMA, WMA or HMA. A short smoothing length keeps the result lively, while longer lengths create institution‑grade glide paths that act like dynamic support and resistance.
3. Oscillator Construction
Once the smoothed Fib MA is in place, the script generates a raw oscillator value in one of three flavours:
• Distance – Percentage distance between price and the average. Great for mean‑reversion.
• Momentum – Percentage change of the average itself. Ideal for trend acceleration studies.
• Relative – Distance divided by Average True Range for volatility‑aware scaling.
That raw series is pushed through a look‑back normaliser that rescales every reading into a fixed −100 to +100 window. The normalisation window defaults to 100 bars but can be tightened for fast markets or expanded to capture long regimes.
4. Visual Layer
The oscillator line is gradient‑coloured from deep red through sky blue into bright green, so you can spot subtle momentum shifts with peripheral vision alone. There are four horizontal guide lines: Extreme Bear at −50, Bear Threshold at −20, Bull Threshold at +20 and Extreme Bull at +50. Soft fills above and below the thresholds reinforce the zones without cluttering the chart.
The smoothed Fib MA can be plotted directly on price for immediate trend context, and each of the five component averages can be revealed for educational or research purposes. Optional bar‑painting mirrors oscillator polarity, tinting candles green when momentum is bullish and red when momentum is bearish.
5. Divergence Detection
The script automatically looks for four classes of divergences between price pivots and oscillator pivots:
Regular Bullish, signalling a possible bottom when price prints a lower low but the oscillator prints a higher low.
Hidden Bullish, often a trend‑continuation cue when price makes a higher low while the oscillator slips to a lower low.
Regular Bearish, marking potential tops when price carves a higher high yet the oscillator steps down.
Hidden Bearish, hinting at ongoing downside when price posts a lower high while the oscillator pushes to a higher high.
Each event is tagged with an ℝ or ℍ label at the oscillator pivot, colour‑coded for clarity. Look‑back distances for left and right pivots are fully adjustable so you can fine‑tune sensitivity.
6. Alerts
Five ready‑to‑use alert conditions are included:
• Bullish when the oscillator crosses above +20.
• Bearish when it crosses below −20.
• Extreme Bullish when it pops above +50.
• Extreme Bearish when it dives below −50.
• Zero Cross for momentum inflection.
Attach any of these to TradingView notifications and stay updated without staring at charts.
7. Practical Applications
Swing trading trend filter – Plot the smoothed Fib MA on daily candles and only trade in its direction. Enter on oscillator retracements to the 0 line.
Intraday reversal scouting – On short‑term charts let Distance mode highlight overshoots beyond ±40, then fade those moves back to mean.
Volatility breakout timing – Use Relative mode during earnings season or crypto news cycles to spot momentum surges that adjust for changing ATR.
Divergence confirmation – Layer the oscillator beneath price structure to validate double bottoms, double tops and head‑and‑shoulders patterns.
8. Input Summary
• Source, Fibonacci multiplier, weighting method, smoothing length and type
• Oscillator calculation mode and normalisation look‑back
• Divergence look‑back settings and signal length
• Show or hide options for every visual element
• Full colour and line width customisation
9. Best Practices
Avoid using tiny multipliers on illiquid assets where the shortest Fibonacci window may drop under three bars. In strong trends reduce divergence sensitivity or you may see false counter‑trend flags. For portfolio scanning set oscillator to Momentum mode, hide thresholds and colour bars only, which turns the indicator into a heat‑map that quickly highlights leaders and laggards.
10. Final Notes
The Fibonacci Sequence Moving Average indicator seeks to fuse the mathematical elegance of the golden ratio with modern signal‑processing techniques. It is not a standalone trading system, rather a multi‑purpose information layer that shines when combined with market structure, volume analysis and disciplined risk management. Always test parameters on historical data, be mindful of slippage and remember that past performance is never a guarantee of future results. Trade wisely and enjoy the harmony of Fibonacci mathematics in your technical toolkit.
Weighted Multi-Mode Oscillator [BackQuant]Weighted Multi‑Mode Oscillator
1. What Is It?
The Weighted Multi‑Mode Oscillator (WMMO) is a next‑generation momentum tool that turns a dynamically‑weighted moving average into a 0‑100 bounded oscillator.
It lets you decide how each bar is weighted (by volume, volatility, momentum or a hybrid blend) and how the result is normalised (Percentile, Z‑Score or Min‑Max).
The outcome is a self‑adapting gauge that delivers crystal‑clear overbought / oversold zones, divergence clues and regime shifts on any market or timeframe.
2. How It Works
• Dynamic Weight Engine
▪ Volume – emphasises bars with exceptional participation.
▪ Volatility – inverse ATR weighting filters noisy spikes.
▪ Momentum – amplifies strong directional ROC bursts.
▪ Hybrid – equal‑weight blend of the three dimensions.
• Multi‑Mode Smoothing
Choose from 8 MA types (EMA, DEMA, HMA, LINREG, TEMA, RMA, SMA, WMA) plus a secondary smoothing factor to fine‑tune lag vs. responsiveness.
• Normalization Suite
▪ Percentile – rank vs. recent history (context aware).
▪ Z‑Score – standard deviations from mean (statistical extremes).
▪ Min‑Max – scale between rolling high/low (trend friendly).
3. Reading the Oscillator
Zone Default Level Interpretation
Bull > 80 Acceleration; momentum buyers in control
Neutral 20 – 80 Consolidation / no edge
Bear < 20 Exhaustion; sellers dominate
Gradient line/area automatically shades from bright green (strong bull) to deep red (strong bear).
Optional bar‑painting colours price bars the same way for rapid chart scanning.
4. Typical Use‑Cases
Trend Confirmation – Set Weight = Hybrid, Smoothing = EMA. Enter pullbacks only when WMMO > 50 and rising.
Mean Reversion – Weight = Volatility, reduce upper / lower bands to 70 / 30 and fade extremes.
Volume Pulse – Intraday futures: Weight = Volume to catch participation surges before breakout candles.
Divergence Spotting – Compare price highs/lows to WMMO peaks for early reversal clues.
5. Inputs & Styling
Calculation: Source, MA Length, MA Type, Smoothing
Weighting: Volume period & factor, Volatility length, Momentum period
Normalisation: Method, Look‑back, Upper / Lower thresholds
Display: Gradient fills, Threshold lines, Bar‑colouring toggle, Line width & colours
All thresholds, colours and fills are fully customisable inside the settings panel.
6. Built‑In Alerts
WMMO Long – oscillator crosses up through upper threshold.
WMMO Short – oscillator crosses down through lower threshold.
Attach them once and receive push / e‑mail notifications the moment momentum flips.
7. Best Practices
Percentile mode is self‑adaptive and works well across assets; Z‑Score excels in ranges; Min‑Max shines in persistent trends.
Very short MA lengths (< 10) may produce jitter; compensate with higher “Smoothing” or longer look‑backs.
Pair WMMO with structure‑based tools (S/R, trend lines) for higher‑probability trade confluence.
Disclaimer
This script is provided for educational purposes only. It is not financial advice. Always back‑test thoroughly and manage risk before trading live capital.
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]Strategy Overview
This is an experimental trend-following strategy combining directional movement indicators, momentum filters, and time-based exits. Built for low timeframes like BTCUSDT 5m, it aims to detect clean directional setups while managing risk tightly.
Indicator Components
• DI+/DI- + ADX – Confirms trend direction and strength
• RSI (14) – Momentum filter (entries only if RSI > 55 or < 45)
• MACD Histogram – Confirms momentum shift in signal direction
• Candle Body % Filter – Screens for strong price commitment bars
• EMA 600 & EMA 2400 – Defines long-term trend alignment
• Time-Based Stop – Closes trade if it doesn’t move 0.75% in 85 bars
• Reward:Risk – 1% stop-loss, 7.5:1 reward-to-risk
• One Trade per EMA Cross – Only trades first valid signal per trend shift
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• EMA600 > EMA2400
• Occurs within 25 bars of an EMA crossover
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• EMA2400 > EMA600
• Occurs within 25 bars of an EMA crossover
Exit Logic
• Stop-loss: 1% from entry
• Take-profit: 7.5x risk
• Time-stop: Trade closed if price doesn’t move 0.75% in 85 bars
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.04% per trade
• Timeframe: 5-minute
• Tested on: BTCUSDT
• ⚠️ Early-stage strategy — trade count may be low depending on market context. This is shared for educational use and community feedback.
Notes
• This script is experimental and educational
• Please forward-test in a demo environment before using it live
• Open-source for learning and improvement — contributions welcome!
Candle close on high time frameOVERVIEW
This indicator plots persistent closing levels of higher time frame candles (H1, H4, and Daily) on the active intraday chart in real time. Unlike similar tools, it offers granular control over line projection length, fully independent toggles per timeframe, and a built-in mechanism that automatically limits the total number of historical levels to avoid chart clutter and performance issues.
CONCEPTS
Key levels from higher time frames often act as areas where price reacts or consolidates. By projecting each candle's exact closing price forward as a horizontal reference, traders can quickly identify dynamic support and resistance zones relevant to the current price action. This indicator enables seamless multi-timeframe analysis without the need to manually switch chart intervals or re-draw lines.
FEATURES
Independent Time Frame Selection: Enable or disable H1, H4, and Daily levels individually to tailor the analysis.
Custom Extension Length: Each timeframe's closing level can be projected forward for a user-defined number of bars.
Performance Optimization: The script maintains an internal limit (default: 100) on the number of active lines. When this threshold is exceeded, the oldest lines are removed automatically.
Visual Differentiation: Colors for each timeframe are fully customizable, enabling immediate recognition of level origin.
Immediate Update: New levels appear as soon as a higher timeframe candle closes, ensuring real-time reference.
USAGE
From the indicator inputs, select which timeframes you want to track.
Adjust the extension lengths to fit your trading style and time horizon.
Customize the line colors for clarity and personal preference.
Use these projected levels as part of your confluence criteria for entries, exits, or stop placement.
Combine with trend indicators or price action tools to enhance your multi-timeframe strategy.
ORIGINALITY AND ADDED VALUE
While similar scripts exist that plot higher timeframe levels, this implementation differs in:
Its efficient automatic cleanup of old lines to preserve chart performance.
The independent extension and color settings per timeframe.
Immediate reaction to new candle closes without repainting.
Simplicity of use combined with precise customization.
This combination makes it a practical and flexible tool for traders who rely on clear HTF level visualization without manual drawing or the limitations of built-in TradingView tools.
LICENSE
This script is published open-source under the Mozilla Public License 2.0.
Kase Convergence Divergence [BackQuant]Kase Convergence Divergence
The Kase Convergence Divergence is a sophisticated oscillator designed to measure directional market strength through the lens of volatility-adjusted log return structures. Inspired by Cynthia Kase’s work on statistical momentum and price projection ranges, this unique indicator offers a hybrid framework that merges signal processing, multi-length sweep logic, and adaptive smoothing techniques.
Unlike traditional momentum oscillators like MACD or RSI, which rely on static moving average differences, KCD introduces a dual-process system combining:
Kase-style statistical range projection (via log returns and volatility),
A sweeping loop of lookback lengths for robustness,
First and second derivative modes to capture both velocity and acceleration of price movement.
Core Logic & Computation
The KCD calculation is centered on two volatility-normalized transforms:
KSDI Up: Measures how far the current high has moved relative to a past low, normalized by return volatility.
KSDI Down: Measures how far the current low has moved relative to a past high, also normalized.
For every length in a user-defined sweep range (e.g., 25–35), both KSDI_up and KSDI_dn are computed, and their maximum values across the loop are retained. The difference between these two max values produces the raw signal:
KPO (Kase Projection Oscillator): Measures directional skew.
KCD (Kase Convergence Divergence): Defined as KPO – MA(KPO) — similar in spirit to MACD but structurally different.
Users can choose to visualize either the first derivative (KPO) , or the second derivative (KCD) , depending on market conditions or strategy style.
Key Features
✅ Multi-Length Sweep Logic: Improves signal reliability by aggregating statistical range projections across a set of lookbacks.
✅ Advanced Smoothing Modes: Supports DEMA, HMA, TEMA, LINREG, WMA and more for dynamic adaptation.
✅ Dual Derivative Modes: Choose between speed (first derivative) or smoothness (second derivative) to fit your trading regime.
✅ Color-Encoded Signal Bands: Heatmap-style oscillator coloring enhances visual feedback on trend strength.
✅ Candlestick Painting: Optional bar coloring makes it easy to spot trend shifts on the main chart.
✅ Adaptive Fill Zones: Green and red fills between the oscillator and zero line help distinguish bullish and bearish regimes at a glance.
Practical Applications
📈 Trend Confirmation: Use KCD as a secondary confirmation layer after breakout or pullback entries.
📉 Momentum Shifts: Crossover and crossunder of the zero line highlight potential regime changes.
📊 Strategy Filters: Incorporate into algos to avoid trendless or mean-reverting environments.
🧪 Derivative Switching: Flip between KPO and KCD modes depending on whether you want to measure acceleration or deceleration of price flow.
Alerts & Signals
Two built-in alerts help you catch regime shifts in real time:
Long Signal: Triggered when the selected oscillator crosses above zero.
Short Signal: Triggered when it crosses below zero.
These events can be used to generate entries, exits, or trend validation cues in multi-layer systems.
Conclusion
The Kase Convergence Divergence goes beyond traditional oscillators by offering a volatility-normalized, derivative-aware signal engine with enhanced visual dynamics. Its sweeping architecture and dynamic fill logic make it especially powerful for identifying trending environments, filtering chop, and adding statistical rigor to your trading toolkit.
Whether you’re a discretionary trader seeking precision, or a quant looking to model more robust return structures, KCD offers a creative yet analytically grounded solution.
Golden Ratio Trend Persistence [EWT]Golden Ratio Trend Persistence
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Overview
The Golden Ratio Trend Persistence is a dynamic tool designed to identify the strength and persistence of market trends. It operates on a simple yet powerful premise: a trend is likely to continue as long as it doesn't retrace beyond the key Fibonacci golden ratio of 61.8%.
This indicator automatically identifies the most significant swing high or low and plots a single, dynamic line representing the 61.8% retracement level of the current move. This line acts as a "line in the sand" for the prevailing trend. The background color also changes to provide an immediate visual cue of the current market direction.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Power of the Golden Ratio (61.8%)
The golden ratio (ϕ≈1.618) and its inverse (0.618, or 61.8%) are fundamental mathematical constants that appear throughout nature, art, and science, often representing harmony and structure. In financial markets, this ratio is a cornerstone of Fibonacci analysis and is considered one of the most critical levels for price retracements.
Market movements are not linear; they progress in waves of impulse and correction. The 61.8% level often acts as the ultimate point of support or resistance. A trend that can hold this level demonstrates underlying strength and is likely to persist. A breach of this level, however, suggests a fundamental shift in market sentiment and a potential reversal.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to Use This Indicator
This indicator is designed for clarity and ease of use.
Identifying the Trend : The visual cues make the current trend instantly recognizable.
A teal line with a teal background signifies a bullish trend. The line acts as dynamic support.
A maroon line with a maroon background signifies a bearish trend. The line acts as dynamic resistance.
Confirming Trend Persistence : As long as the price respects the plotted level, the trend is considered intact.
In an uptrend, prices should remain above the teal line. The indicator will automatically adjust its anchor to new, higher lows, causing the support line to trail the price.
In a downtrend, prices should remain below the maroon line.
Spotting Trend Reversals : The primary signal is a trend reversal, which occurs when the price closes decisively beyond the plotted level.
Potential Sell Signal : When the price closes below the teal support line, it indicates that buying pressure has failed, and the uptrend is likely over.
Potential Buy Signal : When the price closes above the maroon resistance line, it indicates that selling pressure has subsided, and a new uptrend may be starting.
Think of this tool as an intelligent, adaptive trailing stop that is based on market structure and the time-tested principles of Fibonacci analysis.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input Parameters
You can customize the indicator's sensitivity through the following inputs in the settings menu:
Pivot Lookback Left : This number defines how many bars to the left of a candle must be lower (for a pivot high) or higher (for a pivot low) to identify a potential swing point. A higher value will result in fewer, but more significant, pivots being detected.
Pivot Lookback Right : This defines the number of bars that must close to the right before a swing point is confirmed. This parameter prevents the indicator from repainting. A higher value increases confirmation strength but also adds a slight lag.
Fibonacci Ratio : While the default is the golden ratio (0.618), you can adjust this to other key Fibonacci levels, such as 0.5 (50%) or 0.382 (38.2%), to test for different levels of trend persistence.
Adjusting these parameters allows you to fine-tune the indicator for different assets, timeframes, and trading styles, from short-term scalping to long-term trend following.
Adaptive Causal Wavelet Trend FilterThe Adaptive Causal Wavelet Trend Filter is a technical indicator implementing causal approximations of wavelet transform properties for better trend detection with adaptive volatility response.
The Adaptive Causal Wavelet Trend Filter (ACWTF) applies mathematical principles derived from wavelet analysis to financial time series, providing robust trend identification with minimal lag. Unlike conventional moving averages, it preserves significant price movements while filtering market noise through signal processing that i describe below.
I was inspired to build this indicator after reading " Wavelet-Based Trend Identification in Financial Time Series " by In, F., & Kim, S. 2013 and reading about Mexican Hat wavelet filters.
The ACWTF maintains optimal performance across varying market regimes without requiring parameter adjustments by adapting filter characteristics to current volatility conditions.
Mathematical Foundation
Inspired by the Mexican Hat wavelet (Ricker wavelet), this indicator implements causal approximations of wavelet filters optimized for real-time financial analysis. The multi-resolution approach identifies features at different scales and the adaptive component dynamically adjusts filtering characteristics based on local volatility measurements.
Key mathematical properties include:
Non-linear frequency response adaptation
Edge-preserving signal extraction
Scale-space analysis through dual filter implementation
Volatility-dependent coefficient adjustment, which I love
Filter Methods
Adaptive: Implements a volatility-weighted combination of multiple filter types to optimize the time-frequency resolution trade-off
Hull: Provides a causal approximation of wavelet edge detection properties with forward-projection characteristics
VWMA: Incorporates volume information into the filtering process for enhanced signal detection
EMA Cascade: Creates a multi-pole filter structure that approximates certain wavelet scaling properties
Suggestion: try all as they will provide slightly different signals. Try also different time-frames.
Practical Applications
Trend Direction Identification: Clear visual trend direction with reduced noise and lag
Regime Change Detection: Early identification of significant trend reversals
Market Condition Analysis: Integrated volatility metrics provide context for current market behavior
Multi-timeframe Confirmation: Alignment between primary and secondary filters offers additional confirmation
Entry/Exit Timing: Filter crossovers and trend changes provide potential trading signals
The comprehensive information panel provides:
Current filter method and trend state
Trend alignment between timeframes
Real-time volatility assessment
Price position relative to filter
Overall trading bias based on multiple factors
Implementation Notes
Log returns option provides improved statistical properties for financial time series
Primary and secondary filter lengths can be adjusted to optimize for specific instruments and timeframes
The indicator performs particularly well during trend transitions and regime changes
The indicator reduces the need for using additional indicators to check trend reversion
Volume MAs Oscillator | Lyro RSVolume MAs Oscillator | Lyro RS
Overview
The Volume MAs Oscillator is a powerful volume‑adjusted momentum tool that combines custom‑weighted moving averages on volume‑weighted price with smoothed deviation bands. It offers dynamic insights into trend direction, overbought/oversold conditions, and relative valuation — all within a single indicator
Key Features
Volume‑Adjusted Moving Averages: Moving averages can be volume‑weighted using the following formula: a moving average of (Price × Volume) divided by a moving average of Volume. This formula is applied across more than 14 different moving averages; however, it is not used with the VWMA, as VWMA is inherently a volume-weighted moving average.
Percentage Oscillator: Displays the normalized difference: (source – MA) / MA * 100, centered around zero for easy interpretation of strength and direction.
Deviation Bands: Builds upper and lower bands from standard deviation of the oscillator over a selected lookback, with distinct positive/negative multipliers and optional smoothing to reduce noise.
Inputs: Band Length, Band Smoothing, Positive Band Multiplier, Negative Band Multiplier.
Multi‑Mode Signal System:
1. Trend Mode – Colors oscillator according to breaks above (bullish) or below (bearish) respective bands.
2. Reversion Mode – Inverses color logic: signals overextensions beyond bands as reversion opportunities, greys inside the bands.
3. Valuation Mode – Applies a gradient color scale (UpC ⇄ DnC) to reflect relative valuation strength.
Customizable Visuals: Select from 5 pre‑set palettes—Classic, Mystic, Major Themes, Accented, Royal—or define your own custom bullish/bearish colors.
Chart enhancements include color‑coded oscillator line, deviation bands, glow‑effect midline at zero, background shading and candlestick/bar coloring aligned to signal mode.
Built‑In Signals: Automatically plots ▲ oversold and ▼ overbought markers upon crosses of lower/upper bands (in trend or reversion modes), enhancing signal clarity.
How It Works
MA Calculation – Applies the selected MA type to price × volume (normalized by MA of volume) or direct VWMA.
Oscillator Output – Calculates the % difference of source vs. derived MA.
Band Construction – Computes rolling standard deviation; applies user‑defined multipliers; smooths bands with exponential blending.
Mode-Dependent Coloring & Signals –
• Trend: Highlights strength trends via band cross coloring.
• Reversion: Flags extremes beyond bands as potential pullbacks.
• Valuation: Uses gradient to reflect oscillator’s position relative to recent range.
Signal Markers – Deploys arrows and color rules to flag overbought (▼) or oversold (▲) conditions when bands are breached.
Practical Use
Trend Confirmation – In Trend Mode, use upward price_diff cross above upper band as bullish; downward cross below lower band as bearish.
Mean Reversion – In Reversion Mode, fading extremes beyond bands may precede a retracement.
Relative Valuation – Valuation Mode shines when assessing how extended price_diff is, with gradient colors indicating valuation zones.
Bars/candles color‑coded to oscillator state boosts clarity of market tone and allows for rapid visual scanning.
Customization
Adjust MA type/length to tune responsiveness vs. smoothing.
Configure band settings for volatility sensitivity.
Toggle between signal modes for trend-following or reversion strategies.
Stylish visuals: pick or customize color schemes to match your chart setup.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
TrendBoxThis indicator is called "TrendBox," designed to help traders analyze daily price ranges using several technical indicators. Below is a breakdown of its functionality, purpose, and key components:
Purpose
The script overlays indicators on a chart to assess whether the price is above or below key levels and moving in a trend.
VIX-based expected range (index fund targeted)
- This helps calculate the expected dealers range based on VIX implications. You can expect to see ranges be bought on and sold on. Moving outside this range creates heightened volatility and most of the time a gamma squeeze follows.
VWAP (Volume Weighted Average Price)
- This allows you to understand the mid point or average pricing of the daily session. If you're paying a premium or getting a discount on the daily session.
Daily Market Open
- Identifying the market open price is a key level on a daily session and allows you to identify some level of intraday trend.
Daily 4-period VWMA
- This is a crucial role of our indicator and showing short term time frame bias. Seeing price move over the top of our daily 4 level establishes a short term trend and can be used as a distribution guide, closing positions when we see longer time frame candles close under it. Vice versa for shorting.
It also displays a status box (optional) summarizing whether the price is above or below these levels, helping traders quickly evaluate market conditions.
Market Shift Levels [ChartPrime]Market Shift Levels
This indicator detects trend shifts and visualizes key market structure turning points using Hull Moving Average logic. It highlights potential areas of support and resistance where price is likely to react, empowering traders to spot early trend transitions.
Market Shift Levels are horizontal zones that mark the moment of a directional change in market behavior. These shifts are based on crossovers between two smoothed Hull Moving Averages (HMA), allowing the indicator to detect potential reversals with minimal lag.
Once a shift is detected:
A dashed horizontal Market Shift Level is plotted at the low (for bullish shift) or high (for bearish shift) of the candle.
These levels often become key reaction points during pullbacks and trend retests.
Volume or price labels are added when price wicks into these levels, helping traders gauge the strength of rejection or acceptance.
⯁ KEY FEATURES
Uses HMA-based logic to detect when price momentum shifts.
Plots clean Market Shift Levels (MSLs) that act as dynamic support and resistance.
Automatically colors bars and candles based on the price positioning relative to levels.
Labels wick-based retests with either:
Volume data of the 3-bar cluster (default).
Price level if toggled.
⯁ HOW TO USE
Look for trend shifts where the HMA crossover triggers a new level — this marks a possible structural pivot .
Use the horizontal level as a dynamic support or resistance zone — especially when price returns with wick rejections.
Watch for volume labels near the level — higher values signal stronger rejection and potential continuation.
Combine with confluence tools like Smart Money concepts or Fibonacci levels for added edge.
⯁ EXAMPLE SETUPS
After a bullish shift, wait for price to return and wick into the level — if volume spikes and candle closes strong, it’s a retest confirmation entry .
After a bearish shift, bearish wick rejections with volume may signal short re-entry zones .
⯁ CONCLUSION
The Market Shift Levels indicator offers a visual and data-backed approach to spotting trend reversals and critical retest zones. It’s a simple yet powerful tool to structure your trades around objective, repeatable market behavior — all in real-time.