Anchored VWAP PercentageINDICATOR: ANCHORED VWAP PERCENTAGE (AVWAP)
1. Overview
The Anchored VWAP Percentage (AVWAP) is a quantitative momentum and mean-reversion tool. It measures the percentage distance between the current price and a Volume Weighted Average Price (VWAP) that resets automatically based on specific time cycles. It allows traders to identify overextended market conditions relative to institutional value.
---
2. Core Logic & Calculation
The script tracks the relationship between price and volume starting from a specific Anchor Point .
* Volume-Weighted Foundation: Unlike simple moving averages, this indicator uses the VWAP formula: sum(Volume * Price) / sum(Volume) .
* Automatic Anchoring: The starting point (Anchor) resets automatically depending on the chart timeframe (e.g., resets weekly on a 15m chart, or yearly on a Daily chart).
* Percentage Deviation: It calculates the precise gap between the price and the VWAP, plotted as an oscillator: ((Price - VWAP) / VWAP) * 100 .
---
3. Adaptive Intelligence (Multi-Asset & Multi-TF)
The AVWAP is built with an internal database of 85th Percentile (P85) volatility thresholds. It recognizes that different assets have different "stretching" limits:
1. Asset-Specific Calibration: It includes optimized data for Bitcoin, Ethereum, Altcoins, Forex, and Indices .
2. Dynamic Timeframe Mapping: The anchor period and the exhaustion thresholds adjust automatically. For example:
* Intraday (1m-5m): Anchors to an 8-hour (480 min) cycle.
* Mid-Term (15m-60m): Anchors to a Weekly (W) cycle.
* Swing (Daily): Anchors to a Yearly (12M) cycle.
---
4. Visual Anatomy
The indicator is designed for high-speed decision-making:
* The Histogram:
* Green: Price is trading above the VWAP (Bullish premium).
* Red: Price is trading below the VWAP (Bearish discount).
* P85 Threshold Lines:
* These lines represent the 85th percentile of historical deviations . Historically, the price stays within these boundaries 85% of the time.
* Background Highlighting: When the histogram crosses the P85 line, the background glows, signaling a Statistical Exhaustion Zone where a retracement to the mean is highly probable.
---
5. How to Trade with AVWAP
* Mean Reversion: When the histogram reaches the P85 Zone , the price is "statistically overextended." This is a prime area to look for reversals or to take profits on existing trends.
* Trend Strength: If the histogram stays near the Zero Line while the price moves, the trend is supported by healthy volume.
* Value Area: The Zero Line represents the Fair Value . Buying near the Zero Line during a bullish histogram (Green) offers a high-probability entry with low risk.
---
6. Technical Parameters
* Asset Selection: A dropdown to switch between Crypto, Forex, and Indices.
* Color Customization: User-defined colors for bullish and bearish sentiment.
* Precision Control: 4-decimal precision for accurate tracking of thin-margin assets like Forex.
Indicadores e estratégias
Franken-StrengthBuy and Sell Scalping Signals using RSI and TMO to read market structure for better entry and exit points.
Futures vs CFD Price Display mit Entry/SL/TP + Lot-CalculatorCalculate the cfd - future difference. Please manually double-check the lot size (non-binding, no liability).
ADR/ATR/EMA % FILTERADR%
ATR%
Daily EMA 5 % Distance
Daily EMA 10% Distance
2 Hour EMA 20% Distance
20-Day price control
20-Week price control
XU100 Index 5/20 control on 4-hour
CNE - Efficient Swing Structure + MomentumThe CNE Efficient Swing Structure and Momentum indicator is a sophisticated technical analysis tool designed to quantify the strength and exhaustion of price movements relative to genuine market structure rather than arbitrary time constraints. Unlike traditional oscillators that reset based on a fixed number of candles, this indicator anchors its calculations to confirmed structural pivots. The foundation of the system is a volatility-adaptive swing detection algorithm that utilizes the Average True Range (ATR) to filter out insignificant noise. A trend change is only registered when price retraces against the current direction by a user-defined multiple of the ATR, ensuring that the tool remains locked onto the prevailing trend until a statistically significant reversal occurs. This mechanism allows the trader to view momentum as a cumulative force continuously building from a verified low or high, providing a pure view of the current leg's intensity.
Once a structural anchor is established, the indicator calculates the "Pivot-to-Pivot" momentum, displaying the percent change from the start of the trend to the current price. This creates a zero-based oscillator where the zero line represents the structural origin—the absolute bottom of the current uptrend or the absolute top of the current downtrend. To contextualize this raw data, the script overlays dynamic statistical bands based on standard deviations. These bands function similarly to Bollinger Bands but are applied to the momentum of the swing itself. When the momentum histogram pushes into the outer deviation bands, specifically beyond two standard deviations, it signals that the current move is statistically overextended relative to the asset's recent volatility profile. This helps traders distinguish between a healthy, sustainable trend and a climactic move that is prone to a mean-reversion snapback.
A critical feature of this system is its ability to visualize the "average extension" of market moves, providing an immediate benchmark for trade management and target setting. The indicator plots two distinct sets of lines for both upward extensions and downward drawdowns without relying on heavy historical arrays, ensuring optimal computational efficiency. The first is a solid step-line representing the historical average of all past swings, serving as a long-term baseline for what constitutes a "normal" move. The second is a dotted marker representing a recency-weighted average, heavily biased toward the last five swings. By comparing these two lines, a trader can instantly gauge the changing market regime; if the recent weighted average is expanding away from the historical baseline, volatility is increasing, whereas a contracting recent average suggests the market is entering a period of compression.
Finally, the indicator integrates automated divergence detection based on structural flips rather than simple candle-to-candle comparisons. It records the peak momentum value of every completed trend leg and compares it to the peak of the previous leg in the same direction. If price makes a new structural high but the momentum oscillator fails to surpass the peak of the previous uptrend leg, a bearish divergence is flagged. Conversely, if price pushes to a new structural low with weaker downside momentum than the prior drop, a bullish divergence is highlighted. This combination of volatility-filtered structure, statistical deviation bands, efficiency-optimized extension targets, and structural divergence creates a comprehensive framework for assessing the probability of trend continuation versus reversal.
King Trade 4 and 3 hour buy-sell strategy V2This strategy is a Trend-Following Breakout System specifically designed for high-volatility environments like the 4-hour and 3 hour (3h) (4H) timeframe. It focuses on identifying "Smart Money" movements by combining price action with significant volume surges.
Here is the breakdown of the strategy logic:
1. The Core Signal (Breakout)
The strategy identifies a level using the previous candle's High and Low.
Long Entry: Occurs when the current price crosses above the previous candle's high.
Short Entry: Occurs when the current price crosses below the previous candle's low.
2. The Smart Money Filter (Volume)
A price breakout without volume is often a "Bull Trap" or "Bear Trap." To minimize fake signals, this strategy calculates a Volume Moving Average (SMA 20).
It only enters a trade if the breakout candle's volume is at least 1.5x (or your chosen multiplier) higher than the average. This ensures that the move is backed by institutional or high-intensity trading.
3. The Trend Filter (EMA 200)
To stay on the right side of the market, the strategy uses the 200-period Exponential Moving Average (EMA) as a "Trend Guard":
Only Longs are allowed if the price is above the EMA 200 (Uptrend).
Only Shorts are allowed if the price is below the EMA 200 (Downtrend). This prevents you from buying into a crashing market or selling during a strong bull run.
Mongoose Capital: Oil Regime + Geo Risk IntegrationMongoose Capital — Oil Regime + Geo Risk Integration
Overview
Oil Regime + Geo Risk Integration is a macro-aware regime classification framework designed to contextualize crude oil price action through curve structure, volatility state, demand pressure, trend alignment, and macro tightness.
Rather than forecasting price, this indicator answers a more important question for energy traders:
“What type of oil market are we currently trading in?”
The output is a clear regime state with an execution playbook, allowing traders to adapt tactics to conditions instead of forcing the same strategy across incompatible environments.
What This Indicator Does
This script classifies the oil market into distinct regimes by evaluating:
Curve structure (tight vs loose)
Volatility state (expanding vs suppressed)
Demand strength
Trend direction
Macro tightness or ease
Geopolitical / risk sensitivity layer
Each bar resolves into a single regime, paired with:
A readable regime label
A background state
A recommended execution posture
Regime Framework (Conceptual)
The regime engine resolves into one of the following high-level environments:
Risk-Off / Defensive
Weak demand
Loose curve
Downtrend
Macro stress present
→ Favor defense, mean reversion, or standing aside
Volatility Expansion / Event Risk
Elevated volatility
Tightening structure
→ Favor tactical trades, reduced size, wider stops
Trend Expansion / Supply-Driven
Strong demand
Tight curve
Trend confirmation
→ Favor continuation, breakouts, directional exposure
Neutral / Transitional
Mixed signals
Low alignment
→ Patience required, confirmation preferred
Alignment Confidence
The indicator also computes an alignment score, reflecting how many core components agree:
Curve
Volatility
Demand
Macro state
Higher alignment implies greater regime confidence. Lower alignment signals transition risk and elevated false moves.
How to Use
Apply the indicator to WTI / CL or related oil instruments.
Identify the current regime label and background state.
Adjust execution behavior accordingly:
Strategy selection
Position sizing
Holding period
Risk tolerance
This tool is most effective when paired with:
Structure-based trading
Order flow tools
Execution overlays (such as the WTI Execution Overlay)
What This Indicator Is
A market context engine
A regime classification system
A macro-aware execution guide
What This Indicator Is Not
Not a buy/sell signal
Not predictive
Not a standalone trading system
Intended Audience
Energy and futures traders
Macro-focused discretionary traders
Traders who adapt strategy based on regime rather than fixed rules
This script assumes the user already understands basic market structure and risk management.
Credits
Developed by Mongoose Labs, the research arm of Mongoose Capital, focused on:
Regime-based market structure
Macro-integrated execution logic
Institutional-style trading frameworks
Provided strictly for educational and analytical use.
Disclaimer
This indicator does not constitute financial advice. Trading futures and leveraged instruments involves substantial risk. Past regime explanations do not guarantee future outcomes. Use at your own discretion.
Internal note (not for publishing):
This pairs perfectly with:
WTI Execution Overlay
Oil Volatility Compression Monitor
Energy Macro Dashboard
Mongoose Capital: WTI Execution Overlay v1Overview
The WTI Execution Overlay v1 is a decision-support overlay designed to improve execution quality in crude oil markets by filtering when trades are allowed, not what to trade.
It integrates macro confirmation, volatility regime awareness, demand pressure, and flow confirmation into a single execution gate. The goal is simple:
reduce false breakouts, avoid low-quality conditions, and prioritize trades when macro and flow are aligned.
This tool is intended for CL / WTI futures, CFDs, and related energy instruments, and works best alongside an existing technical or order-flow strategy.
How to Use
Apply the indicator to a WTI / CL chart.
Use your existing setup (levels, structure, order flow, strategy logic).
Treat this overlay as an execution permission layer:
When the overlay is ON, conditions are favorable for breakout or continuation trades.
When the overlay is OFF, risk of failed moves is elevated.
Practical guidance:
ON → Normal execution allowed.
OFF → Reduce size, wait for confirmation, or stand aside.
Best used on 15m–4H timeframes, but adapts across horizons.
This indicator does not generate buy/sell signals and does not predict price direction.
Methodology (High Level)
The overlay evaluates execution quality through a composite framework:
1. Macro & Regime Confirmation
Identifies whether price action aligns with a supportive macro regime.
Prevents breakout participation when broader conditions are hostile.
2. Volatility & Flow Confirmation
Uses volatility expansion and momentum behavior to confirm participation.
Rising volatility is treated as confirmation, not a trigger.
3. Demand & Impact Filters
Incorporates demand pressure and impact weighting to distinguish:
Real participation vs. low-liquidity noise.
Acts as a reminder that not all breakouts are created equal.
4. Execution Gating Logic
Trades are allowed only when:
Macro regime is permissive or
Breakout conditions are confirmed and not vetoed by risk filters.
Prevents “technical breakouts” that lack macro or flow support.
What This Indicator Is
An execution filter
A risk management overlay
A confirmation layer for discretionary or systematic traders
What This Indicator Is Not
Not a trading strategy
Not a signal generator
Not predictive or forward-looking
Intended Audience
Active discretionary traders
Futures and macro traders
Energy market participants
Traders who already understand structure, levels, or order flow
If you rely solely on indicators for entries, this tool is not designed for that use case.
Credits
Developed by Mongoose Labs, a research arm of Mongoose Capital, focused on:
Macro-aware execution frameworks
Regime-based risk management
Institutional-style confirmation logic
This script is provided for educational and analytical purposes only.
Disclaimer
This indicator does not constitute financial advice. Trading futures and leveraged products involves substantial risk. Past behavior does not guarantee future results. Use at your own discretion.
BTC/Gold Breakout LevelScript to show the price Bitcoin would have to reach to break out against the December 2024 BTC/GOLD top of $41.
YTD % / Visible Range % TableAUTHOR: Brandon Gum
DATE: 2026-01-03
// PURPOSE:
// Calculates price-range metrics based on the *currently visible*
// portion of the chart. Intended for table-based UI display where
// values must be stable and evaluated only on the last bar.
//
// Originally based on Jeff Sun's ADR price data table.
//
// METRICS RETURNED:
// - Visible High
// - Visible Low
// - Visible % Range = (Visible High - Visible Low) / Visible Low
// - Visible ATRs = (Visible High - Visible Low) / ATR
//
// IMPLEMENTATION NOTES:
// - Logic executes ONLY on barstate.islast to avoid state corruption.
// - Visible range is recomputed atomically using a backward loop
// bounded by chart.left_visible_bar_time.
// - Avoids var-based accumulation and bar-by-bar resets, which are
// unreliable when visible window changes.
// - ATR is evaluated at the current bar (not averaged over range).
//
// ASSUMPTIONS / LIMITATIONS:
// - Uses chart-visible time boundaries supplied by TradingView.
// - Loop upper bound must be sufficiently large to cover max
// expected visible bars.
// - Intended for display purposes, not signal generation.
//
// SIDE EFFECTS:
// - None. No plots, no drawings, no state persistence.
Weekly Levels: High/Low/Mid/POCThis is a simple indicator that plots each week (up to 4 weeks) with the high,low, mid point and a customizable POC. Weeks can be toggled on and off and it has a developing level for the current week.
I find these levels valuable in day trading and thought automating them would be ideal.
HTF Rejection Blocks (RB) + Alerts EmojiHTF Rejection Blocks (RB) + Alerts Emoji
Version amélioré
Original RB logic by yaweeh, adapted to higher timeframes
Adaptive MA SuperTrendAdaptive MA SuperTrend is a new trend following tool designed for more responsive & smoother signal production from the classical SuperTrend indicator.
It works by picking two Moving Averages, that are swapped in their function between being used for the upper base or the lower base, based on the circumstances.
Then it applies either SD or ATR (based on the users preference) to the bases.
This provides smooth, fast trend signals that users can use to enhance their trading/investing strategies.
Enjoy!
Strategy Battle: Lump Sum vs. DCA vs. Dip BuyingSummary This indicator is a "Strategy Battle" simulator designed to answer the ultimate investing question: Is it better to invest immediately, Dollar Cost Average (DCA), or wait for a market crash?
Unlike standard back-testers, this script simulates a realistic "High-Yield Savings" environment. It acknowledges that cash sitting on the sidelines is not dead money—it earns interest (e.g., 3-5%) while waiting for a buying opportunity. This levels the playing field and allows for a fair comparison between being fully invested vs. keeping "dry powder" for a crash.
The script compares 4 distinct strategies simultaneously on your chart, starting with a fresh yearly budget every January 1st.
he 4 Strategies
🔵 Option 1: Lump Sum (The "Set & Forget")
Takes the entire yearly budget and invests it all on the first trading day of the year.
Pros: Maximizes "time in the market."
Cons: vulnerable to buying at immediate peaks.
🟠 Option 2: DCA (The "Steady Earner")
Splits the yearly budget into 12 equal parts.
Invests monthly regardless of price.
The "Fairness" Twist: The money waiting to be spent sits in the cash pile and accumulates interest until it is deployed.
🟢 Option 3: Regression Sniper (The "Math Hunter")
Keeps the entire budget in cash (earning interest).
Watches a dynamic Linear Regression Channel.
Trigger: If the price drops below the channel, it goes "All-In," deploying all accumulated cash and interest immediately to buy the dip.
🔴 Option 4: Manual Sniper (The "Trend Hunter")
Keeps the entire budget in cash (earning interest).
Watches a User-Defined Growth Line (e.g., a straight line growing at 10% per year).
Trigger: If the price drops below this specific valuation line, it goes "All-In."
Detailed Settings & Options
💰 Money Settings
Yearly Budget ($): The amount of fresh capital injected into the simulation every January 1st.
Cash Interest Rate (%): The annual interest rate earned on uninvested cash (compounded monthly). This is crucial for accurately simulating the "opportunity cost" of holding cash.
⚙️ Sniper Settings (Option 3)
Channel Baseline Length: How far back the math looks to determine the "fair value" curve.
Vertical Shift (%): Move the buy zone up or down. Negative numbers (e.g., -5) make the strategy more conservative, waiting for deeper crashes.
Source: Defaults to Low to catch market wicks and intraday crashes.
📈 Manual Line Settings (Option 4)
Start Price ($): The valuation of the asset at the start of the simulation (Jan 1, Start Year).
Yearly Growth (%): The expected "fair" growth rate of the asset (e.g., S&P 500 average is ~10%).
Vertical Shift (%): Slide the manual line up or down to fine-tune your buy signal.
👁️ Visual Settings
Show Buy Price: Displays the exact dollar amount invested and the stock price at the moment of the buy on the chart labels.
Show Lump Sum Markers: Adds a Blue label at the start of every year to visualize the Lump Sum entry.
Show DCA Markers: Adds small Orange labels for every monthly buy.
Ichimoku SSB 0.5% Risk Strategy v6basic strategy Ichimoku, follow trades only risking 0.5% per trade via SL.
Pure for 30min timeframe on SUI (Crypto)
Fractal Wave Hunter [JOAT]
Fractal Wave Hunter - Multi-Method Fractal Detection System
Introduction and Purpose
Fractal Wave Hunter is an open-source overlay indicator that identifies key reversal patterns using multiple fractal detection methods. The core problem this indicator solves is that different fractal methods catch different types of reversals. Williams' classic 5-bar fractal is reliable but slow; Hougaard's 4-bar method is faster but noisier. Using only one method means missing valid signals that the other would catch.
This indicator addresses that by combining both methods plus HOLP/LOHP detection, giving traders a comprehensive view of potential reversal points.
Why These Methods Work Together
Each fractal method has different characteristics:
1. 4-Bar Fractal (Hougaard Method) - Faster detection, identifies momentum shifts when close exceeds recent highs/lows. Best for catching early reversals.
2. Classic 5-Bar Fractal (Williams) - Traditional pivot detection requiring the middle bar to be the highest/lowest of 5 bars. Best for identifying significant swing points.
3. HOLP/LOHP - High of Low Period and Low of High Period signals identify when price makes a new extreme within a defined lookback. Best for trend exhaustion detection.
By combining these methods, traders can:
Use 4-bar fractals for early entry signals
Use 5-bar fractals for confirmation and stop placement
Use HOLP/LOHP for trend exhaustion warnings
How the Detection Works
4-Bar Fractal (Hougaard):
bool fractal4BuyBase = close > high and close > high
bool fractal4SellBase = close < low and close < low
Classic 5-Bar Fractal:
bool fractalHigh = high > high and high > high and high > high and high > high
bool fractalLow = low < low and low < low and low < low and low < low
Signal Types
4B (4-Bar Buy) - Close exceeds high and high - early bullish signal
4S (4-Bar Sell) - Close below low and low - early bearish signal
FH (Fractal High) - Classic 5-bar swing high - confirmed resistance
FL (Fractal Low) - Classic 5-bar swing low - confirmed support
HOLP - High of low period - potential bullish exhaustion
LOHP - Low of high period - potential bearish exhaustion
Dashboard Information
4-Bar Fractal - Count of bullish/bearish 4-bar fractals
Classic Fractal - Count of 5-bar fractal highs/lows
HOLP/LOHP - Reversal signal counts
Total Signals - Combined pattern count
How to Use This Indicator
For Counter-Trend Entries:
1. Wait for 4-bar fractal signal at key support/resistance
2. Confirm with 5-bar fractal forming nearby
3. Enter with stop beyond the fractal point
For Stop Placement:
1. Use 5-bar fractal highs/lows as stop-loss references
2. These represent confirmed swing points that should hold if trend continues
For Trend Analysis:
1. Track swing structure using fractal highs and lows
2. Higher fractal lows = uptrend structure
3. Lower fractal highs = downtrend structure
Input Parameters
Show 4-Bar Fractals (true) - Toggle Hougaard method signals
Show Classic Fractals (true) - Toggle Williams method signals
Show HOLP/LOHP (true) - Toggle exhaustion signals
ATR Filter (false) - Only show signals during volatile conditions
Swing Lines (true) - Connect significant swing points
Timeframe Recommendations
1H-Daily: Best for reliable fractal detection
15m-30m: More signals but higher noise
Weekly: Fewer but more significant fractals
Limitations
5-bar fractals have inherent 2-bar lag (need confirmation)
4-bar fractals can produce false signals in choppy markets
HOLP/LOHP signals work best at trend extremes
Not all fractals lead to significant reversals
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Fractal detection does not guarantee reversals. Always use proper risk management.
- Made with passion by officialjackofalltrades
Vol Compression PRO
## Volatility Compression PRO (Fully Fixed)
This indicator is an **options-theory-inspired “volatility compression → expansion” detector**, enhanced for **crypto trading on 4H/1D**. It is designed as a **two-stage system**:
1. **Environment / Setup (1D)**: Detects a volatility-compressed regime where a breakout is more likely.
2. **Trigger (current chart TF, recommended 4H)**: Confirms the breakout using price structure + volatility expansion + (optional) volume.
A major feature of this script is that it **avoids TradingView’s 5000-bar historical limitation** by recommending a **Daily HV (1D) computation mode**, which is stable and not constrained by intraday bar counts.
---
## Core Concept
### Stage A — “Setup” (Daily Environment Filter)
On the **daily timeframe**, the script estimates realized volatility (HV) and produces an **Environment Score (0–100)** that reflects how “compressed” volatility is versus its own history.
A **Setup window** becomes active when:
* `Environment Score >= Setup Threshold`
* Optional “persistence” can keep Setup active for N days after triggering (to avoid edge flicker).
It also calculates a **daily directional bias** (Bull/Bear) using one of two methods:
* **Price vs Daily EMA** (default): bias is bullish if daily close > daily EMA, bearish if below.
* **MACD > 0**: bias is bullish if daily MACD line > 0, bearish if < 0.
This stage answers:
**“Are we in a volatility-compressed regime worth watching, and what is the higher-timeframe bias?”**
---
## HV / Compression Scoring Model
The script computes:
* **Short-term HV**: standard deviation of log returns over a short window
* **Long-term HV**: standard deviation of log returns over a long window
* **HV Percentile**: percentile rank of short HV over a historical lookback
* **Compression Ratio (S/L)**: short HV divided by long HV (`<1` implies compression, `>1` implies expansion)
* **Log-Z Deviation**: Z-score of log(HV) vs its historical distribution (more stable than raw HV Z-score)
Then it builds a **0–100 score** using weighted components:
* Low HV percentile (lower = more compressed)
* Compression ratio below 1 (more compression)
* Negative log-Z deviation (HV below typical)
This produces a single number: **“Explosion Potential (Environment Score)”**.
---
## Stage B — Trigger Logic (Current Chart Timeframe, recommended 4H)
A **Long Trigger** fires only when **all** of the following are true:
1. **Setup is active** (from daily environment score)
2. **Daily bias is bullish**
3. **Donchian breakout UP**
* Close breaks above the **previous bar’s** highest high of the last N bars
* Uses ` ` to avoid same-bar repaint-style lookback issues
4. **Volatility expansion confirmation**, via either:
* **Bollinger Band Width rising** (BBW turns up and exceeds its mean), and/or
* **ATR% rising** (ATR as % of price increases)
5. **Optional volume confirmation**:
* Volume > SMA(volume) × multiplier (if enabled)
A **Short Trigger** mirrors the long logic (requires bearish bias + downside Donchian break), and can be toggled on/off.
This stage answers:
**“Did price actually escape the compression box, and is volatility expanding with it?”**
---
## Two HV Calculation Modes (5000-bar limitation fix)
### 1) **Daily HV (Recommended)**
* Computes HV + Score + Setup on the **daily timeframe using `request.security(...,"D",...)`**
* This avoids intraday needing thousands of bars to represent many days
* Much more stable and reliable for regime detection
### 2) **Adaptive to Chart TF**
* Computes HV on the **current chart timeframe**
* Includes a strict conversion of “days → bars” and clamps lengths to **<= 4800 bars** to avoid the 5000-bar ceiling
* Still less robust on small timeframes, but won’t crash the script
---
## Visualization
* Plots the **Environment Score** as the main line (colored by score level)
* Draws reference lines at 70 / 50 / 30
* Highlights the background when **Setup** is active
* Optional trigger markers:
* **“L”** for long trigger (triangle up)
* **“S”** for short trigger (triangle down)
* A top-right info panel shows:
* HV short/long, HV percentile, compression ratio, log-Z deviation
* Environment score, Setup active status, daily bias
* Breakout status, expansion confirmation, volume confirmation
* Current mode (“1D fixed” vs “Adaptive”)
---
## Alerts
Built-in alert conditions:
* Setup active (compression window)
* Long Trigger
* Short Trigger
---
## Intended Use (Practical)
* Use **1D** to judge whether volatility is compressed and define bias
* Use **4H** to wait for a clean breakout plus expansion confirmation
* Avoid forcing entries during compression without a real breakout (“don’t catch falling knives” logic)
varenleongv1🔑 Core Features
1️⃣ Higher Timeframe Trend Bias
The indicator uses a higher-timeframe EMA to define the overall market direction.
This helps filter out lower-timeframe noise and keeps trades aligned with the bigger picture.
2️⃣ Local Trend Confirmation
Two EMAs (Fast & Mid) with slope analysis confirm short-term momentum.
Trades are only considered when price structure and momentum agree with the higher-timeframe bias.
3️⃣ Market Structure Detection
The indicator automatically identifies:
Higher Highs & Higher Lows (uptrend)
Lower Highs & Lower Lows (downtrend)
This structure-based logic avoids lag and provides realistic trend confirmation instead of reacting to every candle.
4️⃣ Automatic Trendline Drawing
Confirmed swing highs and lows are used to draw:
Rising support lines in uptrends
Falling resistance lines in downtrends
Trendlines are based on confirmed pivots, meaning they do not repaint once formed.
5️⃣ ADX Chop Filter (Optional)
An optional ADX filter helps identify sideways or low-momentum markets.
When ADX is below the chosen threshold, the indicator will classify conditions as chop / no-trend, helping prevent forced trades.
6️⃣ Clear Visual Feedback
Background color highlights the current market state:
Green = Uptrend
Red = Downtrend
Grey = No Trend / Chop
EMAs and trendlines are plotted directly on price for clarity.
Daily Gold Key Levels from X (Intraday - Unified Text Box)Script pulling daily trade ideas and key levels from X Accounts for XAU USD
NIFTY50 EOD Breakout + Breakdown Scannerdeatailed script for eod bs and bd s for all scripts please use effectively
SAT LevelsThis indicator shows the following:
HTF:
- Yearly Range (+ Previous Year) and its Eq Levels
- Quarterly Range (+ Previous Quarter) and its Eq Levels
- Monthly Range (+ Previous Month) and its Eq Levels
- Weekly Range (+ Previous Week) and its Eq Levels
Intraday Levels:
- Yesterday's Range (+ Day Before Yesterday 'DBY') and its Eq Levels
- Premarket Range (4am - 9.29am)
- 1min range (9.30 candle)
- 5min range (9.30-9.34)
- 15min range (9.30-9.44)






















