Indicator

Modern Bollinger Bands [GBB]Modern Bollinger Bands
I rebuilt Bollinger Bands. Not because the original is bad, John Bollinger's work has held up for forty years, but because the defaults everyone uses were designed for daily stock charts in the 1980s and we're putting them on crypto perps at 3am.
WHAT'S WRONG WITH THE CLASSIC
Five things, in my view.
The window is always 20 bars. Doesn't matter if the market is in a fast news week or a dead summer range, you get the same 20.
The bands assume returns follow a bell curve. Asset returns have fat tails, so price pokes outside a two sigma band far more often than the theory says it should.
A band touch has no meaning on its own. In a range, fading the touch works okay. In a trend, price walks down the band and runs over every single fade. The classic gives you nothing to tell those two situations apart, and that's the flaw that costs people real money.
The SMA basis is slow. Equal weight on every bar means the middle line describes the market as it was roughly ten bars ago.
And band width isn't comparable to anything. What counts as narrow on one chart means nothing on another, so squeeze thresholds end up being eyeballed.
WHAT I CHANGED
The length adapts. An Ehlers homodyne discriminator measures the dominant cycle in price and the window becomes half of it, between 10 and 50 bars. When there's no measurable cycle because the market is trending too hard, the length freezes at the last good value instead of guessing.
The basis is a KAMA instead of SMA. It speeds up when price is actually going somewhere and almost stops updating in chop.
The bands are percentile bands, not sigma bands. 97.5th and 2.5th percentile of the real deviations around the basis, nearest rank, over a longer window. Your market's actual tails, not a textbook bell curve.
I added a regime filter: Kaufman efficiency ratio, percentile ranked against the last 252 bars, with 70/55 hysteresis so it doesn't flip flop on the boundary. Blue bands are RANGE, orange bands are TREND, and the signals respect the color.
And the squeeze is a score from 0 to 100. Percentile rank of band width against the last year of bars. A score of 8 reads the same on every symbol and every timeframe.
THE SIGNALS
Three types, that only trigger on candle close, so there is nothing repainted.
Singal1: Blue triangles. The classic fade, but only where it belongs. Price closes outside a band, the next bar closes back inside, and the regime is RANGE. In TREND this signal simply doesn't exist.
Singal2: Orange circles. Trend pullback. Price dips into a zone around the basis, then closes back in the trend direction. TREND only and with the trend only. One thing about the chart markers: in a long trend this setup can fire on several nearby bars, so the chart draws the first circle of a cluster and skips the repeats for a few bars, so the chart does not get too cluttered.
Signal3: Diamonds. Squeeze release after at least 5 bars of squeeze, then the squeeze ends and price closes outside a band on that same bar. Important: While this is the most intuitive setup of the three and it's the one my testing supports least. Release events showed the same forward 20 bar volatility as typical bars from the same hours. Volume confirmation didn't help either, I tested that separately. The diamonds mark a real event, compression ended and price left the bands, but whether that's worth anything is a question my data answered with no. I included the signal and alert for it anyway, because I know many of you will want it.
SETTINGS
Everything above is a toggle. The groups match the settings dialog, so here's what each one actually does and when you'd touch it.
Adaptive length: Length mode switches between Adaptive and Fixed. Adaptive is the point of this indicator. Fixed with the default of 20 exists for two reasons: reproducing the classic, and for people who want to trust their own number. The fixed length input only matters in Fixed mode.
Basis / bands: Basis picks KAMA or SMA for the middle line, bands picks Robust (percentile) or Stdev (classic sigma). Set Fixed 20 plus SMA plus Stdev and you have exact 1980s Bollinger Bands, that combination is deliberately supported. The stdev multiplier (2.0) only applies in Stdev mode. The robust percentiles (97.5 and 2.5) set where the bands sit in the deviation distribution, pull them toward 95/5 if you want more touches and more signals, push them out if you want only the extremes. The robust window multiplier and floor control how much history the percentile estimate uses, 4 times the adaptive length with a floor of 80 bars by default. Shorter windows react faster to volatility shifts but the tail estimates get noisy, I would leave these alone unless you know why you're changing them. KAMA fast and slow (2 and 30) are the standard Kaufman speeds, the basis moves between a 2 period and a 30 period EMA depending on how efficient the move is.
Regime / squeeze: KER length (20) is the window for the efficiency ratio itself. The percentile rank window (252) is what "recent history" means for both the regime and the squeeze score, about one year of daily bars, about ten days on 1h. TREND enter (70) and TREND exit (55) are the hysteresis levels: the market has to rank above the 70th percentile in efficiency to be called TREND and drop back below the 55th to be called RANGE again. Widen the gap and the regime switches less often but later, narrow it and you get earlier calls with more flip flops. These defaults sat on a flat plateau in sensitivity testing, meaning nearby values gave nearly identical results, so there's no magic in 70/55, but there's also nothing to gain from tuning them. Squeeze threshold (20) defines squeeze as band width below the 20th percentile, and min bars in squeeze (5) stops one bar dips from counting as compression.
Signals: One input, the S2 touch fraction (0.25). It sets how close to the basis a pullback has to come, measured as a fraction of the band halfwidth. Smaller means stricter pullbacks and fewer S2 signals.
Display: Clean display preset strips everything down to the three lines, no fill, no markers, no panel. The info panel (regime, KER percentile, adaptive length with its frozen flag, squeeze score, last signal) is off by default, turn it on when you want to see what the indicator is "thinking". Signal markers and the squeeze heat on the band fill can be switched off separately. The S2 marker debounce (5) is the cosmetic cluster filter from the signals section, set it to 0 if you want every circle drawn.
Parity: You can ignore this group for trading. It pins the computation start to a fixed timestamp so every value on the chart can be reproduced bar for bar against a Python reference implementation. It's how the validation was done and it stays in so anyone can check my work.
ALERTS
Six per signal alerts plus the combined JSON one with symbol, timeframe, signal, regime, squeeze score and band levels. Once per confirmed bar close, built for webhook bots.
No indicator prints money, this one included. It tells you regime, structure and volatility state, with the evidence behind each part published, nulls and all. Trade safe. Indicator

Liquidity Entry Signals [MarkitTick]💡 A comprehensive, multi-faceted approach to identifying potential market reversals based on classic liquidity sweep mechanics. By scanning for instances where price briefly breaches a significant structural high or low before immediately rejecting and closing back within the range, this tool highlights areas where trap-based price dynamics may be in play. It is designed to offer a complete trading framework rather than just a simple signal, integrating dynamic stop-loss and take-profit plotting, real-time advanced dashboard analytics, and comprehensive alert payloads. This indicator assists in bridging the gap between raw price action analysis and structured trade management.
● ✨ Originality and Utility
Many basic technical indicators simply look for higher highs or lower lows without assessing the quality of the rejection. This script elevates that concept by requiring strict closing conditions to validate a sweep. What truly sets it apart is its integration of multiple intelligent filters. Rather than relying on price action alone, users can mandate that sweeps align with the prevailing trend, occur during periods of sufficient volatility, and are backed by relative volume strength.
Additionally, the built-in risk management visualizations automatically calculate position risk parameters right on the chart. By projecting stop-loss and take-profit levels based on current volatility, it transforms a static signal into an actionable trade plan. The inclusion of dynamic JSON payload generation for alerts also makes this an incredibly versatile tool for those looking to automate their execution through third-party platforms.
● 🔬 Methodology and Concepts
The core logic of this script is built around the concept of a liquidity sweep, verified through price action closes, and filtered through statistical market conditions.
Bullish Sweep: The script continuously calculates the lowest low over a user-defined lookback window. A valid bullish signal occurs when the current bar's lowest price penetrates this recent low, but the closing price decisively reclaims it by closing higher than the structural low and higher than its own open.
Bearish Sweep: Conversely, the script identifies the highest high over the recent lookback period. If the current bar's high breaches this level, but the close falls below the recent high and below its own open, a short signal is triggered.
Trend Filtration: The indicator uses a Simple Moving Average (SMA) on both the current chart and a selected higher timeframe to establish a directional bias. Signals that conflict with these moving average baselines are suppressed to prevent counter-trend trading.
Volatility and Volume Analysis: The script evaluates the Average True Range (ATR) as a percentage of the current closing price to ensure sufficient market movement is present. It also compares the current volume to a standard moving average of volume, filtering out setups that lack participation.
● 🎨 Visual Guide
The script draws extensive visual overlays to assist in real-time decision-making and trade management.
• Signal Labels
When a valid sweep occurs, an "LS" label is plotted. Green labels positioned below the candle indicate bullish setups, while red labels above indicate bearish setups.
• Trade Execution Lines
Upon a signal, the indicator projects trade management lines directly on the chart for the next 50 bars.
Entry Line: A dashed blue line marking the closing price of the signal bar.
Stop Loss (SL): A solid red line placed away from the entry, calculated based on the ATR multiplied by the user's risk factor.
Take Profit (TP): Three dashed teal lines representing Take Profit 1, 2, and 3. These are calculated using specific Risk-to-Reward multiples of the stop-loss distance.
• Risk and Reward Zones
Semi-transparent colored fills visually separate the trade zones. A red fill highlights the risk zone between the entry and the stop loss, while a teal fill highlights the reward zone extending from the entry to the final take-profit level.
• Advanced Dashboard
A multi-row informational table appears in the selected corner of the chart. This dashboard provides a real-time status check of the prevailing trend bias, the number of bars since the last signal, exact entry/SL/TP price levels, current ATR, and visual progress bars for volatility and signal cooldown periods.
● 📖 How to Use
Traders can utilize this script as a complete top-down methodology for analyzing market structure. First, observe the dashboard to confirm that the current market environment aligns with your desired filters (e.g., ensuring the higher timeframe trend is supportive and volume thresholds are met).
When a valid "LS" label appears on the chart, immediately note the projected Entry, Stop Loss, and Take Profit lines. The dashed blue line serves as your reference for a potential entry point. You can calculate your position sizing based on the fixed distance between this blue Entry line and the solid red Stop Loss line.
The three Take Profit levels allow for a tiered approach to trade management, enabling partial profit-taking as the price advances in your favor. Advanced users can configure the custom string inputs to send highly detailed webhook payloads directly to execution platforms, passing the exact dynamically calculated price levels directly to their broker.
● ⚙️ Inputs and Settings
The script is highly customizable through categorized input groups, allowing adaptation to any asset class or timeframe.
• SMC Settings
Sweep Lookback: Defines the number of historical bars used to calculate the structural high and low points.
• Smart Filters
Trend Filter: Enables an SMA condition to dictate the allowed signal direction.
Volatility Filter: Requires the ATR to be a minimum percentage of the asset's price before a signal can fire.
Volume Filter: Demands that the current bar's volume exceeds a defined multiple of the volume moving average.
HTF Timeframe: Selects the specific higher timeframe used for long-term trend alignment.
Signal Cooldown: Prevents consecutive signals within a specified number of bars to reduce chart noise during extended consolidations.
• Trade Tools
SL ATR Mult: Determines the distance of the Stop Loss based on the current ATR, adjusting risk based on market volatility.
TP1 / TP2 / TP3 RR: Sets the specific Risk-to-Reward multiples for the three profit targets.
• Alerts
Action Strings: Customizable fields to inject specific commands into the JSON alert payloads for entries, exits, and partial take-profits.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
From a market microstructure perspective, liquidity sweeps represent a temporary imbalance in supply and demand. In auction market theory, price frequently probes beyond established boundaries to test for the presence of resting orders. When price penetrates a historical extreme but fails to sustain value there—evidenced by the immediate reversal and closing within the prior range—it indicates an absorption of liquidity by counter-trend market participants. This exhaustion of directional momentum is a well-documented phenomenon in order flow analysis.
To normalize these price extensions, the indicator applies the Average True Range (ATR). Developed by J. Welles Wilder, the ATR provides a robust statistical measure of absolute price volatility, capturing gaps and limit moves that standard standard-deviation metrics might underrepresent. By tying the Stop Loss logic directly to the ATR, the indicator adapts to heteroskedasticity, which is the changing variance of asset returns over time. This ensures that risk parameters dynamically widen during highly volatile periods to prevent premature stop-outs, and contract during quiet phases to optimize capital efficiency.
Furthermore, the reliance on moving averages for trend and volume filtration applies fundamental time-series smoothing. This inherently mitigates the noise of high-frequency price fluctuations, ensuring that the localized microstructure event (the sweep) is aligned with the macro directional drift of the broader dataset.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Theta Decay Tracker [AlgoChief]Theta Decay Tracker
What This Indicator Does
When you're holding an option and the underlying index moves, the option's premium doesn't always move the way you'd expect. Part of the gap is Delta (how much the option should move per point of index movement), and part of it is Theta (time decay) eating into your premium — even when the index hasn't reversed.
This indicator separates those two effects on every candle, so you can see exactly how many points you lost purely to time decay, independent of index direction.
How It Works (Logic)
Fetches the underlying index price (NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, SENSEX, or any custom symbol) alongside your option chart, using request.security on the same timeframe (no repainting, no lookahead).
Solves Implied Volatility live from the option's own closing price using a Newton-Raphson iteration on the Black-Scholes formula — no need to manually check the option chain for IV.
Calculates real-time Delta and Theta using the standard Black-Scholes model (Strike, Time-to-Expiry, IV, Risk-Free Rate).
Compares actual vs expected move, every candle:
Expected Option Move = Delta × Index Move
Decay = Actual Option Move − Expected Move
If Decay is negative while the index barely moved, that gap is mostly time decay (plus minor vega/gamma effects).
Tracks cumulative decay over a configurable lookback window (e.g., last 15 candles) and fires an alert when decay crosses your threshold while the index stays flat/no reversal — this is the clearest signal of pure theta bleed.
How to Use It
Add the indicator to your option's chart (not the index chart).
In settings, pick your Index Preset (NIFTY/BANKNIFTY/FINNIFTY/MIDCPNIFTY/SENSEX) or choose Custom and enter your own symbol.
Enter the Strike Price, Option Type (CE/PE), and Expiry Date & Time.
Leave "Auto-solve IV" ON (recommended) — it reads IV directly from the option's live price.
Adjust the Decay Alert settings:
Lookback (bars) — the time window to check
Decay Threshold — how many points of unexplained loss triggers an alert
Flat Threshold — how much index movement still counts as "no reversal"
Set a PulseWire alert on "Theta Decay Threshold Hit" to get notified in real time.
What It Helps With
Knowing whether your option is losing value because the index moved against you, or purely because of time decay — critical for deciding whether to hold, exit, or roll a position.
Spotting theta acceleration near expiry, especially during range-bound/sideways sessions.
Avoiding the common mistake of blaming "index isn't moving enough" when the real issue is decay eating the premium regardless.
Works on any NSE/BSE index option (or global index options via Custom symbol).
Panel Elements
Green/Red columns: Decay per candle (green = option outperformed delta expectation, red = decayed more than expected)
Orange line: Theoretical Black-Scholes theta/day, for reference
Purple line: Cumulative decay over your lookback window
Red background zone: Marks bars where the decay alert condition is active
Table (top-right): Live IV, Delta, Theta/day, Index move, Expected move, Decay, and Cumulative decay
Important Notes / Disclaimer
This is a Black-Scholes approximation, not a live options-chain feed. The "Decay" value bundles theta with minor vega/gamma effects — it is not a pure isolated theta number.
IV is solved from the option's own price using Newton-Raphson; in illiquid/wide-spread strikes, solved IV can be noisy on individual ticks — use candle-close values for reliability.
This tool is for educational and analytical purposes only. It does not predict future price movement and is not financial advice. Always do your own due diligence before making trading decisions.
Works best on liquid strikes (near or at-the-money) where bid-ask spreads are tight and Black-Scholes assumptions hold reasonably well. Indicator

GCM Elliott Wave Confluence TerminalDescription:
Title: GCM Elliott Wave Confluence Terminal (GCM - EWCT)
“The Ultimate Wave Engine: Mapping Market Structure Through Multi-Degree Confluence with Fractal Precision and Algorithmic Clarity.”
-uniGram
Overview
The GCM Elliott Wave Confluence Terminal is an advanced, algorithmic market-mapping engine designed for systematic derivatives and crypto traders. Moving beyond standard pivot tools, the EWCT dynamically tracks market structure across three distinct fractal degrees—Minor, Intermediate, and Major—allowing traders to visualize the exact alignment of impulsive trends and corrective pullbacks in real time.
Core Architecture & Mechanics
Built on the foundational principles of Elliott Wave theory and Fibonacci sequence mathematics, the EWCT automates the complex task of wave counting:
• Multi-Degree Tracking: Simultaneously monitors micro-rotations (Minor), mid-term trends (Intermediate), and macro market structure (Major).
• Algorithmic Confirmation: Engineered with strict bar-confirmation logic to eliminate intra-candle repainting, ensuring pivots and wave labels are locked in only when structural shifts are confirmed.
• Fibonacci Confluence Matrix: Automatically calculates high-probability targets for structural completion—projecting 161.8% extensions for Wave 3 impulses and tracking 61.8% retracements for Wave 2 pullbacks.
Key Features
• Dynamic Terminal Dashboard: A heads-up display engineered for minimal chart clutter. It provides real-time status updates for all three degrees, cross-referencing current price action against anticipated Fibonacci targets. Color-coded status cells give you an instant read on wave validity.
• Anti-Repaint Engine: Utilizes barstate.isconfirmed logic so that wave lines and labels only plot upon candle close, providing institutional-grade charting hygiene.
• Complete Customization: Traders can toggle individual wave degrees on or off, adjust line opacities and widths, and scale dashboard typography to fit their specific screen layout without overwhelming the price action.
How to Trade with GCM - EWCT
1. Trend Alignment: Use the Major degree to dictate your directional bias. If the Major wave is in an upward sequence (Waves 1, 3, or 5), only look for long setups.
2. Optimal Entries (The Pullback): Wait for a retracement on the Intermediate or Minor degree. High-probability entries occur when a corrective Wave 2 or Wave 4 approaches the dashboard's calculated Fibonacci support levels (e.g., the 61.8% retracement for Wave 2).
3. Targeting (The Impulse): Once the pullback completes, ride the ensuing impulse. Use the dashboard’s Fibonacci extension targets (such as the 161.8% level for a Wave 3) as your primary take-profit zones.
4. Risk Management (Invalidation): Elliott Wave structure is strictly rule-based. For example, a Wave 2 can never retrace 100% of Wave 1. If price breaks the origin point of Wave 1, the setup is invalidated. Place your stop-loss just below these structural invalidation levels.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial or investment advice. The tools and wave counts provided are based on mathematical formulas and historical data analysis, and past performance is not indicative of future results.
Risk Warning
Trading index derivatives (F&O), stocks, and cryptocurrencies carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. Always employ strict risk management and position sizing.
HAPPY TRADING
-uniGram
----------------------------------------------------------------------------------
Kannada Version (ಕನ್ನಡ ಆವೃತ್ತಿ)
Title: GCM ಎಲಿಯಟ್ ವೇವ್ ಕನ್ಫ್ಲುಯೆನ್ಸ್ ಟರ್ಮಿನಲ್ (GCM - EWCT)
“ಅಲ್ಟಿಮೇಟ್ ವೇವ್ ಎಂಜಿನ್: ಫ್ರ್ಯಾಕ್ಟಲ್ ನಿಖರತೆ ಮತ್ತು ಆಲ್ಗಾರಿದಮಿಕ್ ಸ್ಪಷ್ಟತೆಯೊಂದಿಗೆ ಮಲ್ಟಿ-ಡಿಗ್ರಿ ಕನ್ಫ್ಲುಯೆನ್ಸ್ ಮೂಲಕ ಮಾರ್ಕೆಟ್ ಸ್ಟ್ರಕ್ಚರ್ ಅನ್ನು ಮ್ಯಾಪ್ ಮಾಡುವ ಅತ್ಯುತ್ತಮ ಟೂಲ್.”
-uniGram
ಅವಲೋಕನ (Overview)
GCM ಎಲಿಯಟ್ ವೇವ್ ಕನ್ಫ್ಲುಯೆನ್ಸ್ ಟರ್ಮಿನಲ್ ಎಂಬುದು ಸಿಸ್ಟಮ್ಯಾಟಿಕ್ ಡೆರಿವೇಟಿವ್ಸ್ ಮತ್ತು ಕ್ರಿಪ್ಟೋ ಟ್ರೇಡರ್ಗಳಿಗಾಗಿ ವಿನ್ಯಾಸಗೊಳಿಸಲಾದ ಅಡ್ವಾನ್ಸ್ಡ್ ಮಾರ್ಕೆಟ್-ಮ್ಯಾಪಿಂಗ್ ಎಂಜಿನ್ ಆಗಿದೆ. ಕೇವಲ ಸಾಮಾನ್ಯ ಪಿವೋಟ್ಗಳನ್ನು (pivots) ಮೀರಿ, ಈ EWCT ಮಾರ್ಕೆಟ್ ಸ್ಟ್ರಕ್ಚರ್ ಅನ್ನು Minor, Intermediate, ಮತ್ತು Major ಎಂಬ ಮೂರು ವಿಭಿನ್ನ ಫ್ರ್ಯಾಕ್ಟಲ್ ಹಂತಗಳಲ್ಲಿ ಟ್ರ್ಯಾಕ್ ಮಾಡುತ್ತದೆ. ಇದರಿಂದ ಟ್ರೇಡರ್ಗಳಿಗೆ ಲೈವ್ ಮಾರ್ಕೆಟ್ನಲ್ಲಿ ಟ್ರೆಂಡ್ (Impulse) ಮತ್ತು ಪುಲ್ಬ್ಯಾಕ್ಗಳ (Correction) ನಿಖರವಾದ ದಿಕ್ಕು ಸ್ಪಷ್ಟವಾಗಿ ಗೋಚರಿಸುತ್ತದೆ.
ಮೂಲ ವಿನ್ಯಾಸ ಮತ್ತು ಕಾರ್ಯವಿಧಾನ (Core Architecture & Mechanics)
ಎಲಿಯಟ್ ವೇವ್ ಸಿದ್ಧಾಂತ ಮತ್ತು ಫಿಬೊನಾಚಿ (Fibonacci) ಗಣಿತದ ಆಧಾರದ ಮೇಲೆ ನಿರ್ಮಿಸಲಾದ ಈ ಟೂಲ್, ವೇವ್ ಎಣಿಸುವ (Wave counting) ಸಂಕೀರ್ಣ ಪ್ರಕ್ರಿಯೆಯನ್ನು ಆಟೋಮೇಟ್ ಮಾಡುತ್ತದೆ:
• ಮಲ್ಟಿ-ಡಿಗ್ರಿ ಟ್ರ್ಯಾಕಿಂಗ್: ಶಾರ್ಟ್-ಟರ್ಮ್ ಟ್ರೆಂಡ್ (Minor), ಮಿಡ್-ಟರ್ಮ್ ಟ್ರೆಂಡ್ (Intermediate) ಮತ್ತು ಮ್ಯಾಕ್ರೋ ಮಾರ್ಕೆಟ್ ಸ್ಟ್ರಕ್ಚರ್ (Major) ಅನ್ನು ಏಕಕಾಲದಲ್ಲಿ ವಿಶ್ಲೇಷಿಸುತ್ತದೆ.
• ಆಲ್ಗಾರಿದಮಿಕ್ ಕನ್ಫರ್ಮೇಶನ್: ರಿಪೇಂಟಿಂಗ್ (Repainting) ಸಮಸ್ಯೆಯನ್ನು ತಡೆಯಲು ಕ್ಯಾಂಡಲ್ ಕ್ಲೋಸ್ ಕನ್ಫರ್ಮೇಶನ್ ಲಾಜಿಕ್ ಬಳಸಲಾಗಿದೆ. ಅಂದರೆ, ಮಾರ್ಕೆಟ್ ಸ್ಟ್ರಕ್ಚರ್ ಕನ್ಫರ್ಮ್ ಆದ ನಂತರವೇ ಲೈನ್ಗಳು ಮತ್ತು ಲೇಬಲ್ಗಳು ಚಾರ್ಟ್ ಮೇಲೆ ಲಾಕ್ ಆಗುತ್ತವೆ.
• ಫಿಬೊನಾಚಿ ಮ್ಯಾಟ್ರಿಕ್ಸ್: ವೇವ್ ಪೂರ್ಣಗೊಳ್ಳುವ ನಿಖರ ಟಾರ್ಗೆಟ್ಗಳನ್ನು ಆಟೋಮ್ಯಾಟಿಕ್ ಆಗಿ ಲೆಕ್ಕಾಚಾರ ಮಾಡುತ್ತದೆ—ಉದಾಹರಣೆಗೆ, Wave 3 ಗೆ 161.8% ಎಕ್ಸ್ಟೆನ್ಶನ್ ಮತ್ತು Wave 2 ಪುಲ್ಬ್ಯಾಕ್ಗೆ 61.8% ರಿಟ್ರೇಸ್ಮೆಂಟ್.
ಪ್ರಮುಖ ವೈಶಿಷ್ಟ್ಯಗಳು (Key Features)
• ಡೈನಾಮಿಕ್ ಟರ್ಮಿನಲ್ ಡ್ಯಾಶ್ಬೋರ್ಡ್: ಚಾರ್ಟ್ ಅನ್ನು ಕ್ಲೀನ್ ಆಗಿಡಲು ವಿನ್ಯಾಸಗೊಳಿಸಲಾದ ಡ್ಯಾಶ್ಬೋರ್ಡ್. ಇದು ಮೂರೂ ಡಿಗ್ರಿಗಳ ಲೈವ್ ಸ್ಟೇಟಸ್ ನೀಡುತ್ತದೆ ಮತ್ತು ಫಿಬೊನಾಚಿ ಟಾರ್ಗೆಟ್ಗಳನ್ನು ಪ್ರಸ್ತುತ ಬೆಲೆಯೊಂದಿಗೆ ಹೋಲಿಕೆ ಮಾಡುತ್ತದೆ. ಬಣ್ಣ ಬದಲಾಯಿಸುವ ಸೆಲ್ಗಳು (color-coded cells) ವೇವ್ನ ಸ್ಥಿತಿಯನ್ನು ತಕ್ಷಣ ತಿಳಿಸುತ್ತವೆ.
• ಆಂಟಿ-ರಿಪೇಂಟ್ ಎಂಜಿನ್ (Anti-Repaint Engine): barstate.isconfirmed ಲಾಜಿಕ್ ಮೂಲಕ ಕ್ಯಾಂಡಲ್ ಕ್ಲೋಸ್ ಆದಾಗ ಮಾತ್ರ ಲೈನ್ಗಳು ಅಪ್ಡೇಟ್ ಆಗುತ್ತವೆ. ಇದು ಪ್ರೊಫೆಷನಲ್ ಟ್ರೇಡಿಂಗ್ಗೆ ಅತ್ಯಗತ್ಯ.
• ಸಂಪೂರ್ಣ ಕಸ್ಟಮೈಸೇಶನ್: ಟ್ರೇಡರ್ಗಳು ತಮಗೆ ಬೇಕಾದ ವೇವ್ ಡಿಗ್ರಿಗಳನ್ನು ಆನ್/ಆಫ್ ಮಾಡಬಹುದು, ಲೈನ್ಗಳ ಒಪಾಸಿಟಿ (ಪಾರದರ್ಶಕತೆ) ಮತ್ತು ದಪ್ಪವನ್ನು ಬದಲಾಯಿಸಬಹುದು, ಹಾಗೂ ತಮ್ಮ ಸ್ಕ್ರೀನ್ಗೆ ತಕ್ಕಂತೆ ಡ್ಯಾಶ್ಬೋರ್ಡ್ ಅಕ್ಷರಗಳ ಗಾತ್ರವನ್ನು ಹೊಂದಿಸಿಕೊಳ್ಳಬಹುದು.
GCM - EWCT ಬಳಸಿ ಟ್ರೇಡ್ ಮಾಡುವುದು ಹೇಗೆ? (How to Trade)
1.ಟ್ರೆಂಡ್ ಗುರುತಿಸುವಿಕೆ (Trend Alignment): ಮಾರ್ಕೆಟ್ನ ಮುಖ್ಯ ದಿಕ್ಕನ್ನು ತಿಳಿಯಲು Major ಡಿಗ್ರಿಯನ್ನು ಬಳಸಿ. Major ವೇವ್ ಅಪ್ಟ್ರೆಂಡ್ನಲ್ಲಿದ್ದರೆ (Wave 1, 3, ಅಥವಾ 5), ಕೇವಲ Long (ಖರೀದಿ) ಅವಕಾಶಗಳನ್ನು ಮಾತ್ರ ಹುಡುಕಿ.
2. ಅತ್ಯುತ್ತಮ ಎಂಟ್ರಿ (Optimal Entries): Intermediate ಅಥವಾ Minor ಡಿಗ್ರಿಯಲ್ಲಿ ಪುಲ್ಬ್ಯಾಕ್ ಬರುವವರೆಗೆ ಕಾಯಿರಿ. ಕರೆಕ್ಟಿವ್ Wave 2 ಅಥವಾ Wave 4 ಡ್ಯಾಶ್ಬೋರ್ಡ್ನಲ್ಲಿ ತೋರಿಸುವ ಫಿಬೊನಾಚಿ ಲೆವೆಲ್ಗಳ ಬಳಿ ಬಂದಾಗ (ಉದಾಹರಣೆಗೆ 61.8%), ಅದು ಹೈ-ಪ್ರಾಬಬಿಲಿಟಿ ಎಂಟ್ರಿ ಪಾಯಿಂಟ್ ಆಗಿರುತ್ತದೆ.
3. ಟಾರ್ಗೆಟ್ ಬುಕಿಂಗ್ (Targeting): ಪುಲ್ಬ್ಯಾಕ್ ಮುಗಿದ ನಂತರ ಶುರುವಾಗುವ ಇಂಪಲ್ಸ್ ವೇವ್ (Wave 3 ಅಥವಾ 5) ಅನ್ನು ರೈಡ್ ಮಾಡಿ. ಡ್ಯಾಶ್ಬೋರ್ಡ್ನಲ್ಲಿ ಸೂಚಿಸಲಾದ ಫಿಬೊನಾಚಿ ಎಕ್ಸ್ಟೆನ್ಶನ್ ಲೆವೆಲ್ಗಳನ್ನು (Wave 3 ಗೆ 161.8%) ನಿಮ್ಮ ಟಾರ್ಗೆಟ್ ಅಥವಾ ಟೇಕ್-ಪ್ರಾಫಿಟ್ (Take-Profit) ಆಗಿ ಬಳಸಿ.
4. ರಿಸ್ಕ್ ಮ್ಯಾನೇಜ್ಮೆಂಟ್ (Invalidation & Stop-loss): ಎಲಿಯಟ್ ವೇವ್ ನಿಯಮಗಳ ಪ್ರಕಾರ, Wave 2 ಎಂದಿಗೂ Wave 1 ರ ಆರಂಭಿಕ ಬಿಂದುವನ್ನು ದಾಟಿ ಕೆಳಗೆ ಹೋಗುವಂತಿಲ್ಲ. ಒಂದು ವೇಳೆ ಬೆಲೆ ಆ ಲೆವೆಲ್ ಅನ್ನು ಬ್ರೇಕ್ ಮಾಡಿದರೆ, ಆ ವೇವ್ ಸ್ಟ್ರಕ್ಚರ್ ಅಮಾನ್ಯವಾಗುತ್ತದೆ (Invalidated). ಆ ಲೆವೆಲ್ನ ಸ್ವಲ್ಪ ಕೆಳಗೆ ನಿಮ್ಮ ಸ್ಟಾಪ್-ಲಾಸ್ (Stop-loss) ಇಟ್ಟುಕೊಳ್ಳಿ.
ಹಕ್ಕು ನಿರಾಕರಣೆ (Disclaimer)
ಈ ಇಂಡಿಕೇಟರ್ ಕೇವಲ ಶೈಕ್ಷಣಿಕ ಮತ್ತು ಮಾಹಿತಿ ಉದ್ದೇಶಗಳಿಗಾಗಿ ಮಾತ್ರ. ಇದು ಯಾವುದೇ ಹಣಕಾಸು ಅಥವಾ ಹೂಡಿಕೆ ಸಲಹೆಯಲ್ಲ. ಇದರಲ್ಲಿರುವ ವೇವ್ ಎಣಿಕೆಗಳು ಗಣಿತದ ಸೂತ್ರಗಳು ಮತ್ತು ಐತಿಹಾಸಿಕ ಡೇಟಾವನ್ನು ಆಧರಿಸಿವೆ, ಹಿಂದಿನ ಕಾರ್ಯಕ್ಷಮತೆಯು (past performance) ಭವಿಷ್ಯದ ಲಾಭಕ್ಕೆ ಖಾತರಿಯಲ್ಲ.
ಅಪಾಯದ ಎಚ್ಚರಿಕೆ (Risk Warning)
ಇಂಡೆಕ್ಸ್ ಡೆರಿವೇಟಿವ್ಸ್ (Nifty F&O), ಷೇರುಗಳು ಮತ್ತು ಕ್ರಿಪ್ಟೋಕರೆನ್ಸಿ ಟ್ರೇಡಿಂಗ್ ಹೆಚ್ಚಿನ ಅಪಾಯವನ್ನು ಒಳಗೊಂಡಿರುತ್ತದೆ ಮತ್ತು ಇದು ಎಲ್ಲಾ ಹೂಡಿಕೆದಾರರಿಗೂ ಸೂಕ್ತವಲ್ಲ. ಇದರಲ್ಲಿ ಬಳಸುವ ಮಾರ್ಜಿನ್ (Leverage) ನಿಮಗೆ ಲಾಭದ ಜೊತೆಗೆ ದೊಡ್ಡ ನಷ್ಟವನ್ನೂ ತರಬಹುದು. ಟ್ರೇಡ್ ಮಾಡುವ ಮುನ್ನ ನಿಮ್ಮ ಅನುಭವ, ಗುರಿ ಮತ್ತು ರಿಸ್ಕ್ ತೆಗೆದುಕೊಳ್ಳುವ ಸಾಮರ್ಥ್ಯವನ್ನು ವಿಶ್ಲೇಷಿಸಿ. ಯಾವಾಗಲೂ ಕಟ್ಟುನಿಟ್ಟಾದ ರಿಸ್ಕ್ ಮ್ಯಾನೇಜ್ಮೆಂಟ್ ಮತ್ತು ಪೊಸಿಷನ್ ಸೈಜಿಂಗ್ ಅನ್ನು ಪಾಲಿಸಿ.
HAPPY TRADING
-uniGram
Indicator

NQ Chop FilterNQ Chop Filter is a volatility and trade-confidence meter built for short-term NQ trading, especially on the 30-second chart.
This indicator is not a buy/sell signal and it is not meant to replace a trading strategy. It is designed to help judge whether current market conditions are strong, normal, cautious, or dangerous before managing risk.
The meter studies recent candle range, fast range expansion/compression, net price movement, directional efficiency, and wider trend/grind movement.
The dashboard gives a simple reading:
HIGH
Strong volatility and movement. Full confidence conditions. Larger targets are more reasonable.
NORMAL
Conditions are acceptable. Trading is still okay, but avoid sizing up blindly.
CAUTION
Market is less clean. Trade smaller, be more selective, and manage risk tighter.
DANGER
Weak movement or poor follow-through. Reduce size or wait.
How to use:
1. Add the indicator to an NQ chart.
2. Best used on the 15-second to 2-minute timeframe. Best on 30s.
3. Watch the dashboard before taking a trade.
4. Use HIGH and NORMAL as cleaner environments.
5. Use CAUTION and DANGER as risk warnings, not automatic signals.
6. Do not use this indicator by itself for entries.
7. Combine it with your own entry model, stop loss, take profit, and daily risk rules.
The main purpose is to avoid blindly trading the same size in all market conditions. It helps identify when the market is moving cleanly versus when price is slow, compressed, or choppy.
This script is for educational and informational purposes only. It is not financial advice. Indicator

Indicator

Alpha-Stable Stability Index [LB]Concept
The Alpha-Stable Stability Index estimates the tail index alpha of an alpha-stable distribution using McCulloch's quantile method (1986). Alpha ranges from 0 (extremely heavy-tailed, infinite variance) to 2 (Gaussian, finite variance). The indicator quantifies how prone the market is to wild, outsized moves and visually separates the chart into three regimes : Gaussian (green), transitional (black/default background), and heavy-tailed (red).
Mathematical Foundation
The estimation follows McCulloch (1986), "Simple Consistent Estimators of Stable Distribution Parameters". It relies on sample quantiles, which are robust and computationally light.
Given a window of N log-returns sorted in ascending order, four quantiles are extracted :
q05 = 5th percentile
q25 = 25th percentile
q75 = 75th percentile
q95 = 95th percentile
The tail-to-body ratio nu is computed as :
nu = (q95 - q05) / (q75 - q25)
For a Gaussian distribution, nu is approximately 2.0. For heavy-tailed stable distributions, nu increases beyond 3.0. The indicator maps nu to alpha using a calibrated rational approximation of McCulloch's Table I :
alpha = 2.0 - 0.70 * ln(nu - 1.9) - 0.04 * (ln(nu - 1.9))^2
The result is clamped to and optionally smoothed with an EMA. The indicator pane displays three distinct visual zones :
- Green background : alpha >= Gaussian Threshold (default 1.9). The distribution is near-Gaussian (mesokurtic). Returns are well-behaved, standard risk management applies.
- Black/default background : alpha between the two thresholds. Transitional regime — neither fully stable nor clearly heavy-tailed.
- Red background : alpha <= Heavy Tail Threshold (default 1.5). The distribution is leptokurtic. Fat tails dominate, extreme events are structurally more frequent.
A brief glossary for interpretation :
Leptokurtic — positive excess kurtosis ; the distribution has fatter tails and a sharper peak than the Gaussian. Alpha < 2.0 indicates leptokurtosis. Price action alternates between long quiet periods and sudden violent bursts.
Platykurtic — negative excess kurtosis ; thinner tails and a flatter peak than the Gaussian. Rare in financial returns but can appear in heavily mean-reverting or range-bound markets. Alpha close to 2.0 with low overall volatility may suggest platykurtic behavior.
Mesokurtic — kurtosis equal to that of the Gaussian (excess kurtosis = 0). Alpha = 2.0 corresponds to this regime. The green background signals this state.
What Problem Does It Solve ?
Classic volatility measures (standard deviation, ATR, historical vol) assume finite second moments and treat all deviations as coming from the same distribution. When the true return distribution is alpha-stable with alpha < 2, the variance is infinite and standard deviation becomes meaningless. The alpha index directly measures tail heaviness without assuming normality, and the green/black/red background gives an immediate visual cue of the risk regime.
How To Interpret
Alpha in the green zone (>= 1.9) — mesokurtic / near-Gaussian. Returns are well-behaved, standard risk management applies.
Alpha in the black zone (1.5 to 1.9) — transitional. The market is neither fully stable nor fully wild ; monitor for a move into the red zone.
Alpha in the red zone (<= 1.5) — leptokurtic / heavy-tailed. The distribution has undefined or extremely high variance. Large price swings are likely. Consider reducing position size, widening stops, and hedging tail risk.
Alpha declining — the market is transitioning toward instability ; rising tail risk ahead.
Parameters
Source — price data for return calculation (default close).
Window Length — number of bars used to compute the empirical quantiles. Longer windows give more stable estimates but react more slowly.
Smoothing — EMA period applied to the raw alpha estimate to reduce noise.
Heavy Tail Threshold — background turns red when alpha falls below this level (default 1.5).
Gaussian Threshold — background turns green when alpha exceeds this level (default 1.9).
Reference
McCulloch J.H., "Simple Consistent Estimators of Stable Distribution Parameters", Communications in Statistics — Simulation and Computation, Vol. 15, No. 4, pp. 1109-1136, 1986. Indicator

Viprasol Liquidity Trail Matrix with Signal TargetOverview
The Viprasol Liquidity Trail Matrix with Signal Target is a trend-following signal engine that combines a volatility-adaptive trailing "liquidity" band structure with a Cardwell-style RSI regime filter, then turns confirmed pullback-and-continuation events into fully managed trade plans — entry, stop, three scaled targets, break-even logic, and an honest performance read-out. It is built for discretionary traders who want a single tool that answers three questions at once: what is the trend, is momentum backing it, and if a signal fires, exactly where are my entry, stop and targets.
This is an open-source, credited derivative. See the Credits & Originality section at the end — the trailing-matrix and Cardwell-RSI concepts are adapted from prior open-source work under CC BY-NC, with substantial original additions layered on top.
How It Works
Step 1 — Liquidity Trail Matrix (adapted)
A volatility trailing stop (ATR-scaled) defines the active trend and flips only when price closes decisively through it. Around that trailing line the script projects a ladder of "liquidity bands" spaced in ATR units, forming the retest zone price tends to revisit before continuation. In an uptrend the bands sit below price as stacked support; in a downtrend, above price as resistance. Because the spacing is ATR-based, the whole structure widens in volatile conditions and tightens in quiet ones.
Step 2 — Cardwell RSI Regime (adapted)
RSI is classified into a directional regime using Andrew Cardwell's range-rules principle: in a healthy uptrend RSI holds its 40-80 band, in a downtrend it works the 20-60 band. The regime flips bull when RSI thrusts through the upper trigger and bear when it breaks the lower trigger, holding state in between. Signals are only allowed in agreement with the regime, so the momentum context must confirm the trend before anything fires.
Step 3 — Confluence gating (adapted + new)
Before a signal is eligible it must pass a confluence gate: trend agreement, RSI regime agreement, an ADX minimum (chop filter), and an optional higher-timeframe bias pulled non-repainting (previous HTF bar, lookahead off). A minimum confluence score suppresses low-quality setups.
Step 4 — Retest entry + Signal Target (adapted)
When the confluence conditions hold and price pulls back into the band zone then closes back in the trend direction, a signal fires on the confirmed bar. The engine sets a structural stop, then projects TP1/TP2/TP3 as R-multiples of that risk and draws them on the chart with price and percent labels. Break-even logic moves the stop to entry after TP1.
Step 5 — Honest trade management + statistics (new)
Original additions in this release:
- One-trade-at-a-time engine: a trend flip no longer force-closes a trade. A position runs to its stop or final target, and a new entry only opens once the previous one is fully resolved. A reversal toggle restores the old flip-reversal behaviour if preferred.
- Max-bars-in-trade timeout so a lingering position cannot block the engine indefinitely.
- Hide-on-hit targets: each target line and label is removed the instant it is touched, keeping the chart clean.
- Staggered target labels so ENTRY/SL/TP1/TP2/TP3 never overlap.
- Session filter and post-stop cooldown (both optional, off by default).
- Honest performance panel: Avg R and Profit Factor computed on a transparent one-third-scale-out model, plus Max Drawdown in R and best/worst streak — so the win-rate (which counts a trade a win once TP1 is touched) is read alongside true expectancy.
- Suggested position size from an account-size and risk-percent input.
Non-repainting: trend, structure, signals and targets confirm at bar close; higher-timeframe data uses lookahead off on the previous bar.
Key Features
- Volatility-adaptive trailing liquidity-band matrix
- Cardwell RSI regime filter
- ADX chop filter + optional non-repainting HTF bias
- Range-distributed volume profile (POC / Value Area / low-volume nodes)
- Retest-continuation signals with confluence scoring
- Entry / SL / TP1-TP2-TP3 with R-multiple targets, break-even and hide-on-hit visuals
- One-trade-at-a-time management with optional reversal, timeout, session filter and post-stop cooldown
- Honest stats: win rate, Avg R, Profit Factor, Max Drawdown (R), streak, suggested size
- Multi-section dashboard, trend-tint candles, and a full alert suite with optional webhook JSON
How to Use
1. Add to any liquid symbol and timeframe. Confirm the dashboard reads a clear trend and RSI regime.
2. Wait for a LONG/SHORT marker — it only fires on a confirmed retest that passed the confluence gate. The number on the marker is the confluence score.
3. Trade the drawn plan: entry, stop, and TP1/TP2/TP3. The dashboard mirrors the live levels and, once trades close, shows Avg R / Profit Factor / Max DD so you can judge the edge honestly.
4. Tune selectivity with ADX Minimum and Min Score; tune trade behaviour with the reversal, timeout, session and cooldown settings.
Settings
- Trend Engine: ATR length, trail factor, band count and spacing
- Signals: min score, retest window, cooldown, integration mode, reversal toggle, session filter, post-SL cooldown
- RSI Regime: length, bull/bear triggers, confirm bars, integration mode
- Risk Management: SL mode, break-even, max bars in trade, account size, risk %
- Signal Targets: R-multiples for TP1/TP2/TP3
- Volume Profile / HTF / Dashboard / Colors: display and behaviour toggles, all with tooltips
Alerts
Dynamic alerts (ticker, timeframe, price, score, levels, RSI, regime) for: Long entry, Short entry, TP1/TP2/TP3 hit, break-even, stop-out, reversal, trend flips, and regime shift. Entry alerts can emit webhook-ready JSON.
Limitations & Disclaimer
This is an analysis and trade-planning tool, not a promise of profit. The built-in statistics are a session-level model (they reset on chart reload), assume idealised fills with no slippage or commission, and use a one-third-scale-out assumption for Avg R — real results differ. Signals confirm at bar close and do not repaint historically, but the still-forming bar is provisional until it closes. No indicator predicts the future; always combine with your own risk management. Nothing here is financial advice.
Credits & Originality (CC BY-NC 4.0)
This script adapts and builds upon prior open-source work and is published open-source, free, for non-commercial use, with attribution as required by the licence:
- "Liquidity Trail Matrix" by WillyAlgoTrader — the trailing liquidity-band structure concept.
- "Cardwell Range Analyze" by MarkitTick — the Cardwell RSI range-regime concept.
Changes made by Viprasol (this version): combined the two engines into one workflow and added the confluence gate, non-repainting HTF bias, range-distributed volume profile, R-multiple Signal Targets with break-even and hide-on-hit visuals, one-trade-at-a-time management with reversal toggle / max-bars timeout / session filter / post-stop cooldown, the honest statistics panel (Avg R, Profit Factor, Max Drawdown R, streak) and suggested position size, plus the multi-section dashboard and dynamic/webhook alerts.
Licence: Creative Commons Attribution-NonCommercial 4.0 (creativecommons.org). Educational, non-commercial use only. Not financial advice.
Indicator

ATR Trailing Stop Strategy with EMA Trend FilterMost stop-loss approaches treat risk as a fixed number, a percentage, a dollar amount, a set number of points. The problem with fixed stops is that they ignore the market's actual behavior at any given moment. A 1% stop that makes sense in a low-volatility environment will get hit constantly in a high-volatility one. A wide fixed stop that survives a volatile period is needlessly large when the market quiets down.
ATR-based trailing stops solve this by scaling the stop distance to what the market is actually doing right now. ATR measures average true range, the average distance price moves per bar over a given period, including gaps. When volatility expands, the stop widens to give the trade room to breathe. When volatility contracts, the stop tightens to protect more of the open profit. The stop follows price as it moves in the trade's direction and never moves backward — only trailing further in the profitable direction or holding its level until price reverses through it and the trade closes.
The EMA filter is added for one specific reason: trailing stop systems are naturally reactive rather than predictive, which means without a trend filter they will generate signals in both directions during choppy, range-bound conditions. The 200 EMA acts as a simple regime gate.
Long trades are only considered when price is above the 200 EMA, broadly in an uptrend. Short trades are only considered when price is below it. This doesn't eliminate losing trades, but it meaningfully reduces the number of counter-trend entries that trail stop systems would otherwise generate in oscillating markets.
How the trailing stop works:
On each bar, the strategy calculates a long stop level at close - (ATR × multiplier) and a short stop level at close + (ATR × multiplier). When price is in an uptrend, the long stop ratchets upward with price but never moves down, it holds its highest reached level until price closes below it, at which point the trend flips to bearish and the stop becomes a downward-trailing short stop. The opposite applies in a downtrend. A trend flip from bearish to bullish generates a long entry signal if price is above the 200 EMA. A flip from bullish to bearish generates a short entry signal if price is below the 200 EMA.
Parameters worth adjusting:
The ATR multiplier controls the sensitivity of the trailing stop. A lower multiplier (1.5x or below) produces a tighter stop that flips trend direction more frequently, useful on lower timeframes where you want faster reaction but will generate more signals. A higher multiplier (2.5x or above) produces a wider stop that flips less often, better suited for higher timeframes where you want to stay in a trend longer and can tolerate larger drawdowns on individual trades before exit. The ATR length controls how many bars the average is computed over. Shorter lengths react faster to recent volatility changes; longer lengths smooth out volatility spikes.
The EMA length can be adjusted depending on your timeframe. 200 periods is the standard for daily charts. On a 4-hour chart, 100 to 150 periods covers a similar calendar range. On a 1-hour chart, 50 to 100 periods is reasonable. The goal is for the EMA to represent the dominant trend, not a short-term moving average that whipsaws with every swing.
What this is not:
This strategy does not predict market direction. It reacts to price behavior and exits when price reverses by a defined volatility-adjusted distance. It will produce losing trades, every trailing stop system does, and sequences of losses in choppy conditions are expected behavior, not a flaw. The expectation is that winning trades capture significantly more than they risk because the stop trails and locks in profit, while losing trades are cut at a defined ATR-based distance.
Evaluate this on your own instruments and timeframes with realistic backtest conditions before drawing any conclusions about expected performance.
Shared for educational purposes. This is not investment advice. Always backtest thoroughly and size positions according to your own risk tolerance. Strategy

Shayan Khursheed Momentum CompassHere’s a clean PulseWire description you can use:
Shayan Khursheed Momentum Compass
Shayan Khursheed Momentum Compass is a beginner-friendly day-trading indicator designed for 1m, 5m, 10m, 15m, and 30m momentum traders.
The goal is simple: make the chart easy to understand by showing a clear final verdict instead of forcing traders to read many indicators separately.
The dashboard gives plain-English signals:
FINAL VERDICT: BUY NOW
FINAL VERDICT: HOLD LONG
FINAL VERDICT: EXIT LONG
FINAL VERDICT: SHORT NOW
FINAL VERDICT: HOLD SHORT
FINAL VERDICT: EXIT SHORT
FINAL VERDICT: WAIT
The script analyzes multiple PulseWire data points, including:
Fast and slow EMA momentum
Anchor EMA trend
VWAP position
Higher-timeframe trend confirmation
RSI momentum
MACD direction
ADX/DMI trend strength
Volume strength
ATR volatility
Pullback and breakout triggers
Dynamic stop line
Simple reading rules:
BUY NOW means look for a long entry.
HOLD LONG means stay in the buy.
EXIT LONG means close the buy.
SHORT NOW means look for a short entry.
HOLD SHORT means stay in the short.
EXIT SHORT means close the short.
WAIT means no trade.
The script also includes visual alerts such as BUY NOW, SHORT NOW, HOLD BUY STAY, HOLD SHORT STAY, FIRE SHORT, BUY BUY, and EXIT NOW to make the chart easier to follow during fast-moving markets.
This indicator is built to help traders stay disciplined, avoid guessing, and understand when momentum is strong enough to act.
This script is for education and analysis only. It is not financial advice. Always backtest, paper trade, and use proper risk management before trading with real money. Indicator

Supply & Demand Zones[SideHustleTraders]v1.0Supply & Demand Zones v1.0
An advanced Supply & Demand zone indicator that automatically detects and scores high-probability institutional order zones using a quantitative multi-factor model.
Unlike basic S&D indicators that draw every zone, this tool ranks each zone using five weighted metrics — departure strength, volume, momentum, base width, and freshness — producing a composite score from 0 to 100 and assigning letter grades (A+, A, B). Only zones that meet your minimum score threshold are displayed, cutting through the noise and showing only the zones most likely to hold.
Each zone tracks its full lifecycle in real time — fresh, tested, and mitigated — with visual updates as price interacts with it. Fresh zones show solid borders, tested zones show dashed borders, and mitigated zones (where price closed through) fade to gray and auto-delete.
Built-in multi-timeframe support lets you stay on your 5 minute chart while projecting 30 minute or higher timeframe zones directly onto it, giving you full context without ever switching charts.
Includes a live dashboard table ranking all active zones by score, zone labels showing grade and touch count, and two alert conditions for new high-score zone formation and first retests of A/A+ zones.
Designed for futures, forex, and crypto. Works on any timeframe. Non-repainting. Indicator

Uptrick: Trend Pressure LineIntroduction
Uptrick: Trend Pressure Line is a trend-following overlay that measures directional pressure by combining price displacement from a moving average, candle body strength, and short-term momentum into a single weighted composite. The composite is smoothed and converted into both a dynamic trend line and a bar coloring system, giving traders a continuous read on how strong buying or selling pressure is, rather than a simple binary trend flag.
Originality
While the script uses common building blocks such as an EMA baseline and ATR normalization, its originality lies in how these components are combined. Instead of relying on a single trend filter, the script blends three independently weighted pressure sources, price position relative to trend, candle body direction, and bar-to-bar momentum, into one normalized pressure value using user-adjustable weights. This composite pressure value is then used simultaneously to plot a smoothed adaptive trend line, generate a three-color gradient reflecting pressure intensity, calculate a reversal probability score based on how stretched pressure is relative to its recent range, and drive bar coloring through three separate selectable modes. No single one of these elements is novel on its own, but the integration of weighted multi-factor pressure scoring with a dedicated reversal exhaustion metric and multi-mode visual feedback is not a standard combination found in common trend or ATR-band indicators.
Features
Weighted trend pressure engine combining price position, candle body, and momentum into one composite score
Adjustable weighting for each of the three pressure components
Smoothed adaptive trend line plotted directly on the chart
Three-color gradient (bearish, neutral, bullish) that reflects live pressure intensity
Up and down trend signals with optional cooldown to reduce repeated signals
Four selectable signal anchor points (Default, High/Low, Close, Trend Line)
Optional take profit signals based on an ATR multiple from entry
Reversal probability calculation based on pressure stretch and distance from the trend line
Adjustable reversal lookback and sensitivity settings
Three selectable bar coloring modes (Reversal Probability, Latest Signal, Current Default)
Strong and extreme pressure level alerts for both bullish and bearish conditions
Dashboard table showing trend state, signal state, bars since last signal, pressure value, reversal percentage, bar mode, take profit status, ATR value, and trend line value
Four selectable table positions
19 distinct alert conditions covering signals, flips, pressure levels, and price/line crosses
Inputs
Source, Trend Length, ATR Length, Pressure Smoothness, and Line Smoothness control the core trend engine
Price Position Weight, Candle Body Weight, and Momentum Weight control how the three pressure components are blended
Show Up/Down Signals, Trend Threshold, Signal Cooldown, and Signal Anchor control signal generation and placement
Show TP Signals and TP ATR Multiplier control the optional take profit logic
Line Width, Gradient Sensitivity, Gradient Smoothness, and Bar Coloring Mode control the visual presentation
Reversal Lookback, Reversal Sensitivity, and High Reversal Alert Level control the reversal probability calculation
Strong Pressure Level and Extreme Pressure Level set the thresholds for pressure strength alerts
Show Table and Table Position control the on-chart dashboard
How It Works
The script builds a baseline using an EMA of price, then measures three separate pressures relative to ATR: how far price sits from that baseline, the strength of the current candle's body, and short-term momentum. These three values are combined using the user's weight settings and smoothed to produce a single pressure reading. This pressure reading is added to the baseline to draw the adaptive trend line, and it is also compared against a threshold to classify the market as bullish, bearish, or neutral, which drives the up and down signals. Separately, the script tracks how far current pressure is from its recent extreme and how far price has drifted from the trend line, combining both into a reversal probability percentage that increases as a trend becomes stretched.
How to Use
Watch the trend line color and the dashboard Trend row together to identify the current directional bias at a glance
Use the Up and Down labels as potential entry cues, and adjust Signal Cooldown if signals print too frequently on your chart's timeframe
Adjust the three weight inputs (Price Position, Candle Body, Momentum) if you want the pressure reading to favor trend positioning, candle strength, or short-term speed, depending on your trading style
Monitor the Reversal row on the dashboard as a trend matures; a rising percentage suggests the current move is becoming stretched and may be due for a pause or reversal
Switch Bar Coloring Mode to Reversal Probability if you want the candles themselves to visually flag exhaustion, or to Latest Signal if you prefer bars colored by the most recent up/down call
Enable Show TP Signals and set a TP ATR Multiplier if you want a visual marker for a fixed ATR-based profit target after each signal, then adjust the multiplier to match your own target distance
Use Signal Anchor to reposition labels relative to price action, high/low, or the trend line itself depending on chart clutter or personal preference
Set alerts on any of the nineteen available conditions to be notified of trend flips, pressure extremes, or price crossing the trend line without needing to watch the chart continuously
Conclusion
Uptrick: Trend Pressure Line gives traders a single adaptive line and pressure reading that reflects the combined influence of price positioning, candle strength, and momentum, along with a built-in gauge for how exhausted the current trend may be. It is intended as a trend and exhaustion visualization tool rather than a standalone signal generator.
Disclaimer
This script is provided for informational and educational purposes only and does not constitute financial advice. Past performance, including any signals or visual patterns shown on the chart, is not indicative of future results. Trading involves substantial risk, and users should perform their own analysis and risk management before making trading decisions based on this or any other indicator. Indicator

Quantile Threshold Bands | NickJoanQuantile Threshold Bands | NickJoan
Core Idea
Quantile Threshold Bands measures the position of price within a lookback window and uses that information to define adaptive upper and lower threshold bands. The script calculates two percentile levels from a user-defined lookback window and uses them to classify the current source value as bullish or bearish.
When the price moves above the upper quantile, the indicator turns bullish. When the price moves below the lower quantile, it turns bearish. When it returns inside the band area, the script keeps the last active state until the opposite threshold is crossed again. This gives the indicator a persistent regime structure.
Calculation Logic
The indicator works through three steps:
Source selection.
- The user chooses the price series to analyze.
Quantile calculation.
- The script looks back over a chosen number of bars.
- From that window, it calculates a lower quantile band and an upper quantile band.
- These values are obtained with a nearest-rank percentile calculation.
State assignment.
- If the source is above the upper band, the state becomes bullish.
- If the source is below the lower band, the state becomes bearish.
- If the source is between the bands, the previous state remains active.
What the Bands Mean
The lower and upper bands represent the selected percentile levels inside the recent price window.
The lower band marks a lower threshold within recent price behavior.
The upper band marks a higher threshold within recent price behavior.
The area between them defines the central zone where price is neither breaking upward nor downward.
Because the levels are recalculated on every bar, they adjust as the market changes. The result is a dynamic set of thresholds that follow the market’s own recent distribution.
Chart Output
The script displays four visual elements on the chart:
Lower Quantile line.
Upper Quantile line.
Filled zone between the two bands.
Colored candles showing the active state.
The color logic is:
Aqua when the regime is bullish.
Olive when the regime is bearish.
No color yet before the first valid state is established.
The output is designed to make the current state readable at a glance.
Inputs
The indicator has four primary inputs:
Source - The series used in the quantile calculation.
Lookback - The number of bars used to build the rolling window.
Lower Quantile % - The percentile used for the lower band.
Upper Quantile % - The percentile used for the upper band.
The lower percentile must be smaller than the upper percentile.
Alerts
The script includes alerts for regime changes:
Long Signal - Triggers when the state turns bullish.
Short Signal - Triggers when the state turns bearish.
These alerts are designed to notify the trader when price breaks into a new regime.
How to Use It
This indicator can be used as a regime filter or market bias tool.
Typical use cases include:
Directional bias filter. Use the bullish state when price is above the upper quantile and the bearish state when price is below the lower quantile.
Threshold-based alerts. Use the long and short alerts to notify you when price breaks into a new percentile regime.
Range / compression read. The distance between the two bands can help show whether recent price action has been compressed or expanded. A narrow band zone suggests tighter recent movement, while a wider band zone suggests broader recent movement.
Trade filtering. Use it to decide whether to allow only long setups, only short setups, or no directional trades depending on regime.
Indicator

Zero-Lag GARCH Bands | NAL1. Overview
Zero-Lag GARCH Bands | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline and an optimized GARCH-style volatility engine.
The indicator does not use a standard fixed-width channel. Instead, it estimates market variance through a recursive GARCH framework, smooths that volatility with a Zero-Lag EMA, and uses the result to create dynamic upper and lower bands around price structure.
The purpose of the indicator is to identify when price escapes a volatility-adjusted regime boundary, while allowing the band width to adapt to the underlying variance environment.
2. Calculation
The indicator starts by estimating volatility from lagged log returns. These returns are squared to create a variance component, which becomes the foundation of the GARCH model.
GARCH_LogReturn = math.log(close / close )
GARCH_SquaredLogReturn = math.pow(GARCH_LogReturn, 2.0)
GARCH_RealizedVariance = ta.sma(GARCH_SquaredLogReturn, GARCH_Lookback)
The script then searches through possible coefficient weights to find a beta/lambda value that better fits recent realized variance behavior. A second optimization loop is used to estimate gamma, which controls the long-run variance contribution.
These optimized coefficients are combined into a GARCH-style variance model using three components: long-run variance, recent shock variance, and lagged variance.
GARCH_Variance =
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_SquaredLogReturn +
GARCH_Beta * GARCH_LaggedVariance
After the variance estimate is created, it is smoothed using a Zero-Lag EMA. This gives the volatility engine a faster response while still reducing noise.
GARCH_ProjectedVariance = f_zlema(GARCH_Variance, GARCH_SmoothLen)
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
The baseline is also built with a Zero-Lag EMA, applied after a light EMA pre-smoothing step. This creates the central reference line for the band structure.
The final bands are created by scaling the Zero-Lag GARCH volatility against the selected source and band pressure setting. Higher band pressure creates a tighter band, while lower pressure allows the band structure to expand.
upperBand = baseline + (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
lowerBand = baseline - (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag price structure.
Optimized GARCH-style volatility engine.
Adaptive variance model using shock, lagged, and long-run components.
Zero-Lag smoothing applied to projected volatility.
Dynamic upper and lower volatility bands.
Band pressure control for adjusting channel tightness.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Zero-Lag GARCH Bands is designed to identify when price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The GARCH engine gives the indicator a deeper volatility layer than a standard ATR or deviation channel. Instead of only measuring recent range, it models variance behavior and projects that into the band structure.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate volatility-adjusted regime expansion, where price is evaluated against a dynamic variance boundary rather than a static channel. The full value comes from how this volatility regime signal is integrated into a broader process for timing, structure, and execution.
Indicator

Adaptive S/R Box Zones with Dynamic Stop Loss & EMA FilterTitle: Adaptive S/R Box Zones with Dynamic Stop Loss & EMA Filter
Description:
This indicator is an advanced tool designed to automatically identify key Support and Resistance (S/R) levels by blending momentum, volatility, and structural pivot points. The core objective of the script is to visualize asymmetric risk zones (Stop Loss zones) and filter out false breakouts using an integrated EMA momentum filter.
How it works:
S/R Detection Logic: Levels are not derived from simple highs and lows. The script utilizes a sophisticated algorithm that dynamically combines the RSI (Relative Strength Index) to spot extreme overbought/oversold conditions, a HMA-based CMO (Chande Momentum Oscillator) for momentum confirmation, and historical Close Pivots.
Asymmetric SL Zones (Boxes): Instead of standard symmetric lines that often distort spatial risk, the indicator renders dynamic box shapes. The height of these zones automatically adapts to the market's current volatility using the ATR (Average True Range).
The Resistance Zone expands asymmetrically upward from the level, offering a clear visual map for placing Stop Losses on Short setups.
The Support Zone expands asymmetrically downward from the level, defining the logical Stop Loss area for Long setups.
EMA Momentum Filter & Trigger: The script features an optional EMA crossover filter. When enabled, the detection of a new S/R zone acts as a dynamic "setup alert", while the actual BUY or SELL signal triggers only when the price breaks through the EMA line, confirming directional momentum.
Key Features & Inputs:
Zone Height (ATR Multiplier): Controls the thickness of the risk zones based on market volatility.
S/R Timeframe: Multi-timeframe (MTF) functionality to plot higher time frame levels onto your current chart.
Signal Trigger Mode: Toggle between On Candle Close and After Candle Close (waits for the candle to seal to prevent repainting).
EMA Filter Toggle: Can be fully deactivated if you prefer to receive raw signals immediately upon the formation of S/R levels. Indicator

Apex Turn v4APEX TURN v4: Kalman Snapback with Fee Gate, Trend Guard and Fair Value Take Profit
Apex Turn is a mean reversion tool that hunts exhausted moves and trades the snap back to fair value. It was designed for crypto perpetual futures but works on any liquid market.
HOW IT WORKS
The script runs an adaptive Kalman filter on log price to estimate fair value, drawn as the orange line. The gap between price and fair value is normalized into a z score over a rolling window. When the z score stretches beyond the entry threshold (2.8 by default) and then hooks back toward the mean while still deeply stretched, the engine looks to trade against the extreme. Longs trigger at washed out lows and shorts trigger at blow off highs.
THREE GATES PROTECT EVERY SIGNAL
Gate one is the chop filter. The Kaufman Efficiency Ratio must confirm a ranging market before any mean reversion entry is allowed.
Gate two is the fee gate. The script projects the reward from current price to fair value, converts your maker and taker fees into R units based on the stop distance, and blocks any signal that would not cover all fees plus a minimum net gain of 0.35R. Blocked signals print as small gray crosses so you can see exactly what fees would have eaten.
Gate three is the strong trend guard. Fair value drift is measured in ATR per bar. When drift is strong, counter trend signals are suppressed until the market prints a release event: a momentum divergence on the z score, volume absorption at the extreme, or both together depending on the mode you select. Trend blocked signals print as orange squares and release events print as aqua diamonds.
EXITS
On entry the script freezes the current fair value as the take profit target, plotted in green, and places the stop in red at 1.5 ATR from entry. The default exit mode assumes you rest a reduce only limit order at the target so your winning exit pays the lower maker fee. Mean touch and overshoot exit modes are also included in the settings. A time stop closes stale positions after 45 bars.
ADAPTIVE ATR
The ATR length is anchored to real time rather than a fixed bar count. It always measures roughly 112 minutes of volatility, so stops, targets and fee math stay consistent whether you chart 30 seconds or 4 hours.
ALERTS
Four webhook ready alerts are included. Entry alerts carry the close price, the stop, the frozen take profit and the projected net R, so an automated system can place the full bracket the moment a position is born. Exit alerts fire for stop, target and time stop events.
SUGGESTED USE
Developed and tested for the 8 minute chart on liquid perpetual pairs. The 30 minute and 1 hour charts also suit the logic well. Timeframes under 5 minutes are not recommended because trading fees consume most of the edge there. Set the maker and taker fee inputs to match your own exchange tier before trusting the fee gate.
Signals are evaluated at bar close and do not repaint. Nothing in this script is financial advice and past behavior in testing does not guarantee future results. Always size positions responsibly and manage your own risk. Indicator

Trend Health [FEELS]A trend rarely dies suddenly. It fades first: the move gets inefficient and counter-trend candles grow heavier. Trend Health paints that fading straight onto a supertrend-style ATR trail, and tightens the stop while it happens.
The band is saturated green or red while the trend is strong. As health decays the color drains toward amber, an amber dot prints where the dying starts, and the trail contracts under price so a weak trend exits earlier than a fixed stop would.
QUICK START
Add it to a chart and read the color. Bright band: trend intact, trail at full width. Fading band: trend losing quality, stop contracting. Amber band: dying trend, elevated flip risk. Scroll the history: most flips carry an amber warning dot some bars before them. The strip along the bottom compresses the full health history into one regime line, and the label at the right edge shows direction, state and the current health score.
HOW IT WORKS
Two layers: a health score, and a trail that consumes it.
Health score, computed every bar over the Health lookback window:
1. Directional efficiency. Kaufman efficiency ratio (net move divided by the sum of absolute bar-to-bar moves), zeroed when the net move points against the active trend, normalized so a reading of 0.5 counts as fully efficient.
2. Momentum side. RSI distance from the 50 line in the direction of the trend, scaled over 25 points.
3. Impulse asymmetry. Candle bodies printed with the trend versus against it over the window. When counter-trend bodies grow, this component decays before price structure breaks.
These three form the core score (weights 0.45 / 0.30 / 0.25). The displayed health adds a fourth read, the distance between price and the trail in ATR units, at 25 percent weight. The score is EMA-smoothed and resets on every flip.
The trail is a ratchet ATR stop built from scratch. Base width is ATR times the multiplier. With Adaptive tightening on, the effective multiplier is scaled by the core score, so a healthy trend trails at full width while a dying trend gets a progressively tighter stop. The distance component is excluded from the core on purpose, otherwise tightening would lower the score and tighten further in a loop. Toggle it off and you get a classic fixed-width trail; the health engine then only drives the color.
HOW TO USE
- Color is the instruction. Enter or hold on a saturated band, tighten manually or stand aside on amber.
- The dying alert fires when health crosses under the threshold while the trend is still running. On past data many flips were preceded by exactly this transition. Treat it as a condition read, not a forecast.
- Four alerts: flip up, flip down, trend dying, trend recovered.
- Designed on 4H to 1W. Works on any symbol and timeframe; on low timeframes expect more flips, especially in ranges with adaptive mode on.
PARAMETERS
- ATR length / ATR multiplier: trail geometry at full health.
- Adaptive tightening: health-driven contraction of the trail, on by default.
- Health lookback: window for the efficiency, momentum and asymmetry reads.
- Health smoothing: EMA on the raw score.
- Dying threshold: below this level the trend counts as dying; drives the amber floor, the warning dot, the label and the alert.
- Display toggles: trend fill, bar coloring, flip markers, dying warnings, health ribbon, status label.
- Sizing: marker size, label size and trail width are adjustable.
NOTES
- The trail state confirms at bar close. On the live bar the level and color can update until close.
- Health describes the present condition of the trend. It does not predict future prices.
- A dying warning is a condition mark, not an exit signal: health can recover and the trend can resume. Sharp reversals can flip a trend straight from high health without any warning printed.
- Adaptive mode trades later giveback for earlier exits, so in choppy ranges it flips more often than a fixed trail. That is the design, not a defect.
ORIGINALITY
The ratchet ATR trail is a classic public-domain concept reimplemented from scratch. What is original here is the three-component health model, the gradient mapping of that score onto the trail, bars and ribbon, and the feedback of the score into the stop width itself, which makes the flip points measurably different from a standard fixed-factor trail. RSI and the efficiency ratio are not displayed as separate indicators; they exist only as inputs to one scoring model. This is a single system, not a mashup. Indicator

Ulcer Index Baseline Deviation - Z Columns & PercentileThis indicator compares Peter Martin's Ulcer Index against its own long-term baseline, then shows the result through two scale-free readouts, so that readings carry the same meaning across different symbols.
The Ulcer Index (Martin and McCann, 1989) measures the depth and duration of percentage drawdowns from prior highs, in other words how painful it has been to hold a position. Unlike standard deviation, it looks only at the downside. Martin read the index against its own long-term average: pain rising above its normal range signals elevated downside risk.
The script computes the Ulcer Index over a rolling window (default 50 daily bars), subtracts its long-term EMA (default 200 bars, roughly one year on a daily chart) to obtain the deviation, then presents that deviation in two ways over the same 200-bar window. The columns are a robust z-score, built from the median and the median absolute deviation with the usual 1.4826 consistency factor, so column height reads in standard-deviation equivalents and keeps resolving even while new records are being set. Column color follows the sign of the z-score: red when the deviation sits above its trailing median, teal when below. The orange line is a percentile rank scaled to zero-to-one: 0.5 means today's deviation sits at the trailing median, 1 means it is the record of the window.
How to read it: tall red columns with the orange line pinned near 1 mark a genuine extreme. Tall columns with the line in mid-range mean a large move that is routine for this symbol. A pinned line above modest columns means a normally calm symbol breaking its own record at ordinary size. Columns are persistent and will stay one color for weeks inside a drawdown regime. Note that the color flip only approximates the true baseline crossover: the deviation series is right-skewed, its trailing median sits slightly below zero, so the flip typically leads the crossover by a few bars. For the exact regime, chart the raw Ulcer Index against its EMA.
Notes and limits: both readouts are normalized to each symbol's own history, so they compare rarity and relative size, not absolute drawdown. To compare absolute pain across symbols, chart the raw Ulcer Index instead. Use identical settings on every symbol you compare, and allow several hundred bars of history for warm-up. The deviation, z-score, and percentile layers are an original extension, not part of Martin's published work, so validate behavior against historical drawdowns you recognize. This is a risk-regime gauge, not a buy or sell signal generator, and nothing here is investment advice. Indicator

Indicator

Bitcoin Power Law Corridor (Santostasi)This macro indicator plots the Bitcoin Power Law Corridor, based on the renowned mathematical model popularized by astrophysicist Giovanni Santostasi and researcher HC Burger. Unlike traditional financial models that rely on human assumptions (like the failed Stock-to-Flow model), the Power Law is a scientific theory based on organic network growth, similar to structures found in physics and biology.
Bitcoin does not grow exponentially forever; instead, it follows a sub-exponential growth curve with diminishing relative returns but massive absolute gains. This script tracks that exact path and resolves a common limitation in PulseWire by using advanced time-based trendlines to project the bands into the empty future canvas.
How the Math Works
The indicator calculates the fair value of Bitcoin using the time elapsed since the Genesis Block (January 3, 2009) raised to a specific power (exponent n ≈ 5.845).
This growth pattern mimics two fundamental natural laws:
1. Kleiber's Law (Biology): Demonstrates that as living organisms grow larger, their energy efficiency increases scalingly. Similarly, the Bitcoin network becomes more robust and stable as it grows.
2. Urban Scaling Laws (Cities): Cities like Rome or New York grow organically according to a power law. Because millions of people freely choose to interact within them, they compound over centuries without a single point of failure. Bitcoin's price chart directly mirrors this organic network density.
The Three Structural Bands
On a Logarithmic scale, this indicator displays three vital structural milestones:
Blue Line (Fair Value): The mathematical median and fundamental fair price of Bitcoin based on Metcalfe's Law (network effects) and global adoption.
Green Dashed Line (The Floor): The ultimate macro defense line (calculated around the P10 percentile). Historically, Bitcoin has never closed a weekly candle below this hard floor. It serves as the ultimate long-term accumulation zone.
Red Dashed Line (The Ceiling): The overextension/bubble band. When price approaches this line, the market is historically overextended (e.g., 2013 and 2017) and highly risky.
Key Features of this Script
Future Projection: Standard PulseWire lines stop at the current live bar. This script bypasses that limitation using line.new segments, allowing you to drag the chart to the left and view the exact mathematical support and resistance targets for 2028, 2034, and beyond.
Fully Customizable: You can tweak the Genesis date, change the power law exponent, or adjust the log-offsets for the floor and ceiling bands in the settings menu.
CRITICAL INSTRUCTION
This indicator MUST be viewed on a Logarithmic Scale (LOG) .
Click the 'LOG' button in the bottom-right corner of your PulseWire chart.
On a standard linear scale, the bands will be completely distorted and unusable.
Best viewed on the Daily (1D) or Wekely (1W) timeframe. Indicator

Stop Loss - structuur + ATR-bufferThis indicator helps you avoid getting stopped out by a few pips when price sweeps an obvious level. Instead of placing your stop exactly at the last swing low/high — where liquidity sits — it calculates a stop level with a volatility-based buffer:
Stop = last confirmed swing low/high ± (ATR × multiplier + extra pips)
The chart shows the swing level (dotted line), the buffered stop level for longs and shorts (solid lines), and a label with the exact stop price, buffer size, and distance in pips — use that distance for your position sizing.
Settings:
Swing sensitivity — how many candles left/right must confirm a swing. Higher = only major swings, lower = minor swings closer to price.
ATR period / multiplier — the buffer scales with volatility, so it automatically widens on volatile pairs and higher timeframes.
Extra pips — fixed margin for spread (stops are triggered on bid/ask, not the mid-price your chart shows).
Note: the default settings are a starting point, not a recommendation. Backtest on your own trades: measure how far wicks typically pierce your swing levels relative to ATR, and set the multiplier accordingly. A wider stop means a smaller position at the same risk percentage — never more risk. If the buffered stop breaks your minimum R:R, skip the trade instead of tightening the stop. Indicator

Indicator
