Position Sizing Based on 42-Day Volatility (20 Holdings)200% position sizing for 20 holdings. Just go up 100% until all spots are taken may be less then 20 stocks.
Volatility
Position Sizing Based on 42-Day Volatility (20 Holdings, 1x Cap)Position sizing based on 20 stocks with 1x cap. Fully invested no leverage.
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
HMM Trend Strength Meter (3-State)Strong Up-Trend: p_up > 0.6–0.7 → look for BUY setups
Strong Down-Trend: p_dn > 0.6–0.7 → look for SELL setups
Range/Sideways: p_side > 0.6 → consider mean-reversion entries
Adjust your own threshold (e.g. 0.7–0.8) to control signal frequency.
Price Exhaustion Envelope [BackQuant]Price Exhaustion Envelope
Visual preview of the bands:
What it is
The Price Exhaustion Envelope (PEE) is a multi‑factor overextension detector wrapped inside a dynamic envelope framework. It measures how “tired” a move is by blending price stretch, volume surges, momentum and acceleration, plus optional RSI divergence. The result is a composite exhaustion score that drives both on‑chart signals and the adaptive width of three optional envelope bands around a smoothed baseline. When the score spikes above or below your chosen threshold, the script can flag exhaustion, paint candles, tint the background and fire alerts.
How it works under the hood
Exhaustion score
Price component: distance of close from its mean in standard deviation units.
Volume component: normalized volume pressure that highlights unusual participation.
Momentum component: rate of change and acceleration of price, scaled by their own volatility.
RSI divergence (optional): bullish and bearish divergences gently push the score lower or higher.
Mode control: choose Price, Volume, Momentum or Composite. Composite averages the main pieces for a balanced view.
Energy scale (0 to 100)
The composite score is pushed through a logistic transform to create an “energy” value. High energy (above 70 to 80) signals a move that may be running hot, while very low energy (below 20 to 30) points to exhaustion on the downside.
Envelope engine
Baseline: EMA of price over the main lookback length.
Width: base width is standard deviation times a multiplier.
Type selector:
• Static keeps the width fixed.
• Dynamic expands width in proportion to the absolute exhaustion score.
• Adaptive links width to the energy reading so bands breathe with market “heat.”
Smoothing: a short EMA on the width reduces jitter and keeps bands pleasant to trade around.
Band architecture
You can toggle up to three symmetric bands on each side of the baseline. They default to 1.0, 1.6 and 2.2 multiples of the smoothed width. Soft transparent fills create a layered thermograph of extension. The outermost band often maps to true blow‑off extremes.
On‑chart elements
Baseline line that flips color in real time depending on where price sits.
Up to three upper and lower bands with progressive opacity.
Triangle markers at fresh exhaustion triggers.
Tiny warning glyphs at extreme upper or lower breaches.
Optional bar coloring to visually tag exhausted candles.
Background halo when energy > 80 or < 20 for instant context.
A compact info table showing State, Score, Energy, Momentum score and where price sits inside the envelope (percent).
How to use it in trading
Mean reversion plays
When price pierces the outer band and an exhaustion marker prints, look for reversal candles or lower‑timeframe confirmation to fade the move back toward the baseline.
For conservative entries, wait for the composite score to roll back under the threshold or for energy to drop from extreme to neutral.
Set stops just beyond the extreme levels (use extreme_upper and extreme_lower as natural invalidation points). Targets can be the baseline or the opposite inner band.
Trend continuation with smart pullbacks
In strong trends, the first tag of Band 1 or Band 2 against the dominant direction often offers low‑risk continuation entries. Use energy readings: if energy is low on a pullback during an uptrend, a bounce is more likely.
Combine with RSI divergence: hidden bullish divergence near a lower band in an uptrend can be a powerful confirmation.
Breakout filtering
A breakout that occurs while the composite score is still moderate (not exhausted) has a higher chance of follow‑through. Skip signals when energy is already above 80 and price is punching the outer band, as the move may be late.
Watch env_position (Envelope %) in the table. Breakouts near 40 to 60 percent of the envelope are “healthy,” while those at 95 percent are stretched.
Scaling out and risk control
Use exhaustion alerts to trim positions into strength or weakness.
Trail stops just outside Band 2 or Band 3 to stay in trends while letting the envelope expand in volatile phases.
Multi‑timeframe confluence
Run the script on a higher timeframe to locate exhaustion context, then drill down to a lower timeframe for entries.
Opposite signals across timeframes (daily exhaustion vs. 5‑minute breakout) warn you to reduce size or tighten management.
Key inputs to experiment with
Lookback Period: larger values smooth the score and envelope, ideal for swing trading. Shorter values make it reactive for scalps.
Exhaustion Threshold: raise above 2.0 in choppy assets to cut noise, drop to 1.5 for smooth FX pairs.
Envelope Type: Dynamic is great for crypto spikes, Adaptive shines in stocks where volume and volatility wave together.
RSI Divergence: turn off if you prefer a pure price/volume model or if divergence floods the score in your asset.
Alert set included
Fresh upper exhaustion
Fresh lower exhaustion
Extreme upper breach
Extreme lower breach
RSI bearish divergence
RSI bullish divergence
Hook these to TradingView notifications so you get pinged the moment a move hits exhaustion.
Best practices
Always pair exhaustion signals with structure. Support and resistance, liquidity pools and session opens matter.
Avoid blindly shorting every upper signal in a roaring bull market. Let the envelope type help you filter.
Use the table to sanity‑check: a very high score but mid‑range env_position means the band may still be wide enough to absorb more movement.
Backtest threshold combinations on your instrument. Different tickers carry different volatility fingerprints.
Final note
Price Exhaustion Envelope is a flexible framework, not a turnkey system. It excels as a context layer that tells you when the crowd is pressing too hard or when a move still has fuel. Combine it with sound execution tactics, risk limits and market awareness. Trade safe and let the envelope breathe with the market.
250-Day Breakout Profit % (Ratchet ATR Stop w/ Zero Reset)Trend following on stocks with Kaufmans Profit Ranking twist. 250 day breakout. 42 day 10x trailing stop.
VWAP MultiCombined IntradayIncluded all VWAP in One for intraday purpose.
User will get S W M Q Y Decade Century Vwap at Single Combined.
This will helps to find levels who uses vwap on routine basis.
Combined Predictive Indicator### Combined Predictive Zones & Levels
This indicator is a powerful hybrid tool designed to provide a comprehensive map of potential future price action. It merges two distinct predictive models into a single, cohesive view, helping traders identify key levels of support, resistance, and areas of high confluence.
#### How It Works: Two Models in One
This script is built on two core components that you can use together or analyze separately:
**Part 1: Classic Range & Fibonacci Prediction**
This model uses classic technical analysis principles to project a potential range for the upcoming price action.
* **Highest High / Lowest Low:** It identifies the significant trading range over a user-defined lookback period.
* **Fibonacci Levels:** It automatically plots key Fibonacci retracement levels (e.g., 38.2% and 61.8%) within this range, which often act as critical support or resistance.
* **ATR & Average Range:** It calculates a "predicted" upper and lower boundary based on the average historical range and current volatility (ATR).
**Part 2: Advanced Predictive Ranges (Self-Adjusting Channels)**
This is a dynamic model that creates adaptive support and resistance zones based on a smoothed average price and volatility.
* **Dynamic Average:** It uses a unique moving average that only adjusts when the price moves significantly, creating a stable baseline.
* **ATR-Based Zones:** It projects multiple levels of support (S1, S2) and resistance (R1, R2) around this average, which widen and narrow based on market volatility. These zones often signal areas where price might stall or reverse.
#### Key Features:
* **Hybrid Model for Confluence:** The true power of this indicator lies in finding where the levels from both models overlap. A Fibonacci level aligning with a Predictive Range support zone is a much stronger signal.
* **Comprehensive Data Table:** A clean, on-chart table displays the precise values of all key predictive levels, allowing for quick reference and precise trade planning.
* **Multi-Timeframe (MTF) Capability:** The Advanced Predictive Ranges can be calculated on a higher timeframe, giving you a broader market context.
* **Fully Customizable:** All lengths, multipliers, and levels for both models are fully adjustable in the settings to fit any asset or trading style.
* **Clear Visuals:** All zones and levels are color-coded for intuitive and easy-to-read analysis.
#### How to Use:
1. Look for areas of **confluence** where multiple levels from both models cluster together. These are high-probability zones for price reactions.
2. Use the Predictive Range zones (S1/S2 and R1/R2) as potential targets for trades or as areas to watch for entries and exits.
3. Pay attention to the on-chart table for exact price levels to set limit orders or stop-losses.
**Disclaimer:** This script is an analytical tool for educational purposes and should not be considered financial advice. All trading involves risk. Past performance is not indicative of future results. Always use this indicator as part of a comprehensive trading strategy with proper risk management.
Feedback is welcome! If you find this tool useful, please leave a like.
[LeonidasCrypto]EMA with Volatility GlowEMA Volatility Glow - Advanced Moving Average with Dynamic Volatility Visualization
Overview
The EMA Volatility Glow indicator combines dual exponential moving averages with a sophisticated volatility measurement system, enhanced by dynamic visual effects that respond to real-time market conditions.
Technical Components
Volatility Calculation Engine
BB Volatility Curve: Utilizes Bollinger Band width normalized through RSI smoothing
Multi-stage Noise Filtering: 3-layer exponential smoothing algorithm reduces market noise
Rate of Change Analysis: Dual-timeframe RoC calculation (14/11 periods) processed through weighted moving average
Dynamic Normalization: 100-period lookback for relative volatility assessment
Moving Average System
Primary EMA: Default 55-period exponential moving average with volatility-responsive coloring
Secondary EMA: Default 100-period exponential moving average for trend confirmation
Trend Analysis: Real-time bullish/bearish determination based on EMA crossover dynamics
Visual Enhancement Framework
Gradient Band System: Multi-layer volatility bands using Fibonacci ratios (0.236, 0.382, 0.618)
Dynamic Color Mapping: Five-tier color system reflecting volatility intensity levels
Configurable Glow Effects: Customizable transparency and intensity settings
Trend Fill Visualization: Directional bias indication between moving averages
Key Features
Volatility States:
Ultra-Low: Minimal market movement periods
Low: Reduced volatility environments
Medium: Normal market conditions
High: Increased volatility phases
Extreme: Exceptional market stress periods
Customization Options:
Adjustable EMA periods
Configurable glow intensity (1-10 levels)
Variable transparency controls
Toggleable visual components
Customizable gradient band width
Technical Calculations:
ATR-based gradient bands with noise filtering
ChartPrime-inspired multi-layer fill system
Real-time volatility curve computation
Smooth color gradient transitions
Applications
Trend Identification: Dual EMA system for directional bias assessment
Volatility Analysis: Real-time market stress evaluation
Risk Management: Visual volatility cues for position sizing decisions
Market Timing: Enhanced visual feedback for entry/exit consideration
Daily ATR Stop Loss Buffer- Calculates Daily ATR: Uses the daily timeframe ATR (Average True Range) - a measure of price volatility
- Applies Your Buffer: Takes a percentage of that ATR that you set in the settings (e.g., 5% of daily ATR)
- Creates Stop Levels: Calculates where to place stop losses based on current price plus/minus your ATR buffer
Anti Nyangkut – Indikator Karya Anak Bangsa Anti Nyangkut – Indikator Karya Anak Bangsa
Indikator ini khusus buat kamu yang sering beli di pucuk dan jual di support, lalu akhirnya jadi bahan backtest orang lain.
💡 Sinyal buy only - muncul kalau harga udah:
✅ Di atas MA5
✅ Di atas Bollinger Bands Upper
✅ Di atas VWAP (khusus 1H & 4H)
🟢 TP dan SL otomatis muncul — biar gak cuma "niat hold sampe hijau"
📊 Cocok buat scalping & swing di 1H / 4H / 1D
Gak ada sinyal jual. Exit di tangan masing-nasing, jangan lupa pasang SL.
—
100% gratis. Bayarnya pakai amal jariyah.
—
Anti Nyangkut – An Indicator by the People, for the People
This one's for you if you always buy the top, sell the bottom, and end up becoming someone else's backtest data.
💡 Buy-Only Signals — triggered when price is:
✅ Above MA5
✅ Above Bollinger Bands Upper
✅ Above VWAP (on 1H & 4H only)
🟢 Auto TP & SL lines — so you stop saying "I'll hold until it turns green"
📊 Perfect for scalping & swing trades on 1H / 4H / 1D
There’s no sell signal. Exits are your responsibility — just don’t skip the stop loss.
—
100% free. Just pay with good karma.
Stochastics Momentum IndexV1.5This is an update to the current indicator Stochastic Momentum Index by: surjithctly
This video on YouTube Linked Under explains how to use this indicator along with another indicator: ema cloud 150
youtube.com/watch?v=bFY_M4BZmVU
All that was improvised and added was a middle band a mid point to know where the middle of the indicator is. That is all.
Also Edit, Customize the indicator however you like, and if you don't want the mid point shown or want to alter to a line or a dotted line you can also do that as well.
Please enjoy, I provide these updates that I publish because I am passionate about trading and if this helps me, I know it will help you.
7 minutes ago
Release Notes
This is an update to the current indicator Stochastic Momentum Index by: surjithctly
This video on YouTube Linked Under explains how to use this indicator along with another indicator: ema cloud 150
youtube.com/watch?v=bFY_M4BZmVU
All that was improvised and added was a middle band a mid point to know where the middle of the indicator is. That is all.
Also Edit, Customize the indicator however you like, and if you don't want the mid point shown or want to alter to a line or a dotted line you can also do that as well.
Please enjoy, I provide these updates that I publish because I am passionate about trading and if this helps me, I know it will help you.
P.s. I added the middle band exteded into the future just like the oversold/overbought levels but still at 0 , so it is still in the middle
If you see Writing of previous Indicator settings On Chart with Original User Text all in Yellow
Just click on the Window Text Etc. And delete all of the wording. That is all. You will be alright this happened to me, so just click and delete.
Everything will be fine after that. Thank you.
VIX9D to VIX RatioVIX9D to VIX Ratio
The ratio > 1 can signal near-term fear > long-term fear (potential short-term stress).
The ratio < 1 implies long-term implied volatility is higher — more typical in calm markets.
ADR Tracker Version 2Description
The **ADR Tracker** plots a customizable panel on your chart that monitors the Average Daily Range (ADR) and shows how today’s price action compares to that average. It calculates the daily high–low range for each of the past 14 days (can be adjusted) and then takes a simple moving average of those ranges to determine the ADR.
**Features:**
* **Current ADR value:** Shows the 14‑day ADR in price units.
* **ADR status:** Indicates whether today’s range has reached or exceeded the ADR.
* **Ticks remaining:** Calculates how many minimum price ticks remain before the ADR would be met.
* **Real‑time tracking:** Monitors the intraday high and low to update the range continuously.
* **Customizable panel:** Uses TradingView’s table object to display the information. You can set the table’s horizontal and vertical position (top/middle/bottom and left/centre/right) with inputs. The script also lets you change the text and background colours, as well as the width and height of each row. Table cells use explicit width and height percentages, which Pine supports in v6. Each call to `table.cell()` defines the text, colours and dimensions for its cell, so the panel resizes automatically based on your settings.
**Usage:**
Apply the indicator to any chart. For the most accurate real‑time tracking, use it on intraday timeframes (e.g. 5‑min or 1‑hour) so the current day’s range updates as new bars arrive. Adjust the inputs in the settings panel to reposition the list or change its appearance.
---
This description explains what the indicator does and highlights its customizable table display, referencing the Pine Script table features used.
Market DashboardMarket Dashboard — All-in-One Technical Indicator Panel
The Market Dashboard is a powerful visual tool that consolidates key technical indicators into a single on-chart table, helping traders make faster and more informed decisions. This script includes:
RSI — Detects overbought and oversold market conditions
MACD — Shows trend momentum and crossover signals
CVD (Cumulative Volume Delta) — Highlights buyer vs. seller pressure
Volume Analysis — Flags unusually high volume
ATR (Average True Range) — Displays current market volatility
Session Detector — Automatically identifies ASIAN, LONDON, or NEW YORK sessions based on UTC time
Fully Customizable — Adjust table position and text size to fit your chart layout
Designed for traders who want a clean, real-time snapshot of market dynamics, directly on the chart.
Stochastic Momentum Index_Middle Band AddedThis is an update to the current indicator Stochastic Momentum Index by: surjithctly
This video on YouTube Linked Under explains how to use this indicator along with another indicator: ema cloud 150
www.youtube.com
All that was improvised and added was a middle band a mid point to know where the middle of the indicator is. That is all.
Also Edit, Customize the indicator however you like, and if you don't want the mid point shown or want to alter to a line or a dotted line you can also do that as well.
Please enjoy, I provide these updates that I publish because I am passionate about trading and if this helps me, I know it will help you.
Stochastic Momentum Index_MiddleBandAddedSame Stochastic Momentum Index, but Middle Band added to know the mid point of this indictor.
[DIP] Inverse BB HighlightThis indicator allows you to highlight the area outside of the Bollinger Bands in order to draw more attention to it. This is especially useful for those who only trade when we are outside of the bands.
Keep in mind this indicator only works on bars, not on candles.
Liquidity Grab Detector (Stop Hunt Sniper) v2.2📌 Purpose
This indicator detects Stop Hunts (Liquidity Grabs) — false breakouts above/below recent highs or lows — filtered by trend direction, volatility, and volume conditions.
It is designed for scalpers and intraday traders who want to identify high-probability reversal zones.
🧠 How It Works
1. Key Logic
Detects previous swing high / swing low over the Lookback Bars.
Marks a false breakout when price moves beyond the level and closes back inside.
Requires a volume spike on the breakout to confirm liquidity sweep.
2. Trend Filter (EMA 50)
Bullish signals only if price is above EMA 50.
Bearish signals only if price is below EMA 50.
This removes most counter-trend stop hunts.
3. ADX Filter
Signals appear only when ADX < Max ADX (low-trend conditions).
This avoids false signals in strong trending markets.
📈 How to Use
Green Arrows: Bullish stop hunt (potential long entry).
Red Arrows: Bearish stop hunt (potential short entry).
Works best in range conditions, liquidity zones, or near session highs/lows.
Combine with order flow, volume profile, or price action for extra confirmation.
Recommended Timeframes: 1m–15m for scalping; 30m–1h for intraday.
Markets: Crypto, Forex, Indices.
⚙️ Inputs
Lookback Bars — swing detection
Volume Spike Multiplier
EMA Length (trend filter)
Min Retrace — how much price must return inside range
Max ADX — trend filter sensitivity
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always test thoroughly before live trading.
Open Interest Screener (Fixed Zones)📌 Purpose
This indicator scans Open Interest (OI) changes across selected exchanges and highlights significant spikes or drops directly on the chart using dynamic shaded zones.
It is designed to help traders detect unusual market positioning changes that may precede volatility events.
🧠 How It Works
1. Data Sources
Supports multiple exchanges: BitMEX USD, BitMEX USDT, Kraken USD (toggle on/off in settings).
Automatically adapts symbol prefix based on the chart’s base asset.
2. Spike / Drop Detection
OI % Change is calculated over a configurable lookback (Bars to look back).
Spike Up: OI increases by more than Threshold %.
Spike Down: OI decreases by more than Threshold %.
3. Dynamic Zones
When a spike occurs, a green zone (increase) or red zone (decrease) is drawn on the chart.
Zone height is dynamic, based on price high/low ± 5%, preventing chart distortion.
Minimum spacing (Zone Spacing) prevents clustering.
📈 How to Use
Green Zones: Large OI increase can signal fresh positioning (possible breakout setups).
Red Zones: Large OI decrease can signal liquidation events or position unwinds.
Combine with price action, funding rates, or volatility measures for higher confidence.
Recommended Timeframes: Works best on 15m, 1h, 4h.
Markets: Crypto derivatives (OI data available).
⚙️ Inputs
Bars to Look Back
OI % Change Threshold
Zone Width
Exchange toggles (BitMEX USD/USDT, Kraken USD)
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always test thoroughly before live trading.
Volume Scanner (Spikes & Drops) [Context]📌 Purpose
This indicator detects significant volume spikes or drops and optionally filters them by price context (local highs/lows).
It helps identify potential breakout or exhaustion points with improved signal quality compared to raw volume alerts.
🧠 How It Works
1. Volume Spike / Drop Detection
SMA Volume over N bars is calculated as baseline.
Volume Spike: Volume > SMA × Spike Multiplier (default 1.5×).
Volume Drop: Volume < SMA × Drop Multiplier (default 0.5×).
2. Context Filter (optional)
When Use Context = ON:
Bullish Context: Volume spike at/near local price high (last Lookback bars).
Bearish Context: Volume drop at/near local price low (last Lookback bars).
3. Signal Gap
Minimum spacing between signals (Min Gap Bars) prevents excessive clustering.
4. Visuals
Background shading:
Green = Volume Spike in bullish context.
Red = Volume Drop in bearish context.
Alerts can be configured for both conditions.
📈 How to Use
Volume Spikes near highs can indicate breakouts or exhaustion tops.
Volume Drops near lows can signal liquidity dry-up or potential reversals.
Combine with price action or support/resistance for confirmation.
Recommended Timeframes: Works on all timeframes; more reliable on 15m, 1h, 4h.
Markets: Crypto, Forex, Stocks.
⚙️ Inputs
Volume SMA Length
Spike Multiplier / Drop Multiplier
Use Context (High/Low filter)
Min Gap Bars (avoid clustered signals)
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before live trading.
Smart Volatility Squeeze + Trend Filter📌 Purpose
This indicator detects volatility squeeze conditions when Bollinger Bands contract inside Keltner Channels and signals potential breakout opportunities.
It also includes an optional EMA-based trend filter to align signals with the dominant market direction.
🧠 How It Works
1. Squeeze Condition
Bollinger Bands (BB): Length = 20, StdDev = 2.0 (default)
Keltner Channels (KC): EMA Length = 20, ATR Multiplier = 1.5 (default)
Squeeze ON: Occurs when BB Upper < KC Upper and BB Lower > KC Lower (low volatility zone).
2. Breakout Signals
Long Breakout: Price crosses above BB Upper after squeeze.
Short Breakout: Price crosses below BB Lower after squeeze.
3. Trend Filter (optional)
EMA(50) used to confirm breakout direction:
Long signals allowed only if price > EMA(50)
Short signals allowed only if price < EMA(50)
Toggle Use Trend Filter to enable/disable.
4. Visual & Alerts
Green circle at chart bottom indicates Squeeze ON.
Green/Red triangles mark breakouts.
Background gradually brightens during squeeze buildup.
Alerts available for long and short breakouts.
📈 How to Use
Look for Squeeze ON → then wait for breakout arrows.
Trade in breakout direction, preferably with trend filter ON.
Works best on higher timeframes (1h, 4h, D) and trending markets.
Markets: Crypto, Forex, Stocks — effective in volatile assets.
⚙️ Inputs
BB Length / StdDev
KC EMA Length / ATR Multiplier
Use Trend Filter
Trend EMA Length
⚠️ Disclaimer
This script is for educational purposes only. It does not constitute financial advice.
Always test thoroughly before live trading.
Smart Impulse Exhaustion Finder (ATR + ADX Filter)📌 Purpose
This indicator detects potential exhaustion of strong bullish or bearish impulses at fresh swing highs/lows by combining multiple price action and volatility-based filters.
🧠 How It Works
A signal is triggered only when all core conditions are satisfied:
1. Swing High/Low Detection
Current high (or low) must be the highest (or lowest) over the last Extremum Lookback bars (default: 50).
This ensures the move is significant relative to recent price action.
2. Impulse Confirmation
Price must extend by at least 1 × ATR from the previous swing point.
This filters out minor fluctuations.
3. Exhaustion Conditions (at least 2 out of 3 must be met)
RSI Extreme: RSI > Overbought Level (default: 80) for bearish signals, RSI < Oversold Level (default: 20) for bullish signals.
Volume Spike: Volume > SMA(Volume, Volume SMA Length) × Volume Spike Multiplier.
Candle Wick Rejection: Upper wick ≥ Wick Threshold % for bearish setups, Lower wick ≥ Wick Threshold % for bullish setups.
4. Trend Filter
ADX > ADX Threshold ensures the market is trending and filters out sideways conditions.
5. Candle Body Filter
Candle body must be ≥ Body Size ATR Factor × ATR.
This avoids weak signals from small candles or doji formations.
📈 How to Use
Bearish Signal:
Appears at fresh swing highs with exhaustion conditions met. Useful for tightening stops, taking partial profits, or counter-trend shorts.
Bullish Signal:
Appears at fresh swing lows with exhaustion conditions met. Useful for trailing stops, profit-taking, or counter-trend longs.
Recommended Timeframes: Works best on 1h, 4h, and Daily charts.
Markets: Crypto, Forex, Stocks — wherever volatility and trends are present.
⚙️ Inputs
RSI Length / Overbought / Oversold
Volume SMA Length & Volume Spike Multiplier
Wick Threshold %
Extremum Lookback (bars for highs/lows)
ADX Length & Threshold
Body Size ATR Factor
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always test thoroughly and apply proper risk management before live trading.
💡 Tip: Combine this tool with your own market context and confluence factors for higher probability setups.
ATR as % of CloseATR 14day period in % terms
the Normal ATR indicator by TV helps but this gives a clear idea as to the range in percentage terms as and when market rises to newer and newer highs
better than an absolute value