Market Up and Low VolatilityMarket Up and Low Volatility is a trend-filter indicator designed to help traders visually identify periods when an equity index is in an upward trend and market volatility is relatively low. The script combines price trend analysis using exponential moving averages (EMAs) with external volatility confirmation to highlight more favorable risk environments.
Concept and Methodology
This indicator is based on two core ideas:
1. Trend Confirmation Using EMAs
The script calculates a 10-period EMA and a 20-period EMA on the selected index (default: S&P 500).
A bullish trend condition requires:
The 10 EMA to be above the 20 EMA
Both EMAs to be rising compared to their values three bars ago
This helps confirm not just trend direction, but also trend momentum.
2. Volatility Filter Using an External Symbol
The indicator also fetches data from a volatility index (default: VIX).
A user-defined volatility threshold is applied
When volatility is below this threshold, it is treated as a lower-risk market environment
Only when both trend and volatility conditions align does the indicator consider the environment favorable.
Visual Output
The index price is plotted in a separate pane.
The plot dynamically changes color:
Green when all trend and volatility conditions are met
Red when one or more conditions are not met
This color-based approach allows traders to quickly assess market conditions without interpreting multiple indicators.
How to Use
This indicator is intended as a market condition filter, not a standalone buy or sell signal.
It can be used to:
Confirm whether broader market conditions are supportive of long strategies
Avoid trading during periods of elevated volatility or weakening trends
Complement existing entry and exit systems
Users can customize:
The index symbol
The volatility symbol
The volatility threshold
to adapt the indicator to different markets or trading styles.
Notes
Calculations are performed on daily timeframe data, regardless of the chart timeframe. This indicator does not predict future price movement and should be used alongside proper risk management and additional analysis.
Trend Analysis
Adaptive Strength Overlay (MTF) [BackQuant]Adaptive Strength Overlay (MTF)
A multi-timeframe RSI strength visualizer that projects oscillator “pressure” directly onto price using adaptive gradient fills between percent bands. Built to make strength, exhaustion, and regime context readable at a glance, without needing to stare at a separate oscillator panel.
Mean-Reversion mode example
What this indicator does
This indicator converts RSI strength into a chart overlay that reacts to momentum and extremes, then visualizes it as colored “pressure zones” around price.
Instead of plotting RSI in a sub-window, it:
Builds 1 to 3 symmetric percent bands above and below price.
Computes RSI strength on up to 3 different timeframes (MTF).
Smooths RSI with your selected moving average type.
Maps RSI values into discrete transparency “buckets”.
Fills between the bands with a gradient whose opacity reflects strength or exhaustion.
Displays a compact RSI table for all enabled timeframes.
Provides alert conditions for extremes and midline shifts on each timeframe.
The result is an overlay that looks like a dynamic envelope. When strength rises, the envelope “lights up” in the direction of the move. When strength becomes stretched, the outer zones become visually prominent.
Core idea: “Strength as an overlay”
RSI is normally interpreted in a separate oscillator panel. That makes context-switching slow:
You check price action.
You look down at RSI.
You mentally translate RSI into risk or trend bias.
This script removes that translation step by projecting strength directly onto the price area, using band fills as a visual language:
More visible fill = stronger strength or more extreme condition (depending on mode).
Less visible fill = weak strength or neutral state.
Two operating modes
1) Trend mode
Trend mode emphasizes strength aligned with direction:
When RSI is strong on the upside, upper bands become more visible.
When RSI is strong on the downside, lower bands become more visible.
Neutral RSI fades, so the chart de-clutters during chop.
Use Trend mode when:
You want a clean trend-following overlay.
You want to quickly see which timeframe(s) are powering the move.
You want to filter entries to moments when strength confirms direction.
2) Mean-Reversion mode
Mean-Reversion mode flips the emphasis to highlight exhaustion against the move :
Upper extremes become a “potential exhaustion” cue.
Lower extremes become a “potential exhaustion” cue.
The overlay is tuned to make stretched conditions obvious.
This is not an automatic “short overbought / long oversold” system. It is a visualization mode that makes “extended” conditions stand out faster, especially when multiple timeframes align.
How the bands work (Percent Bands)
The indicator constructs up to three symmetric envelopes around price:
Band 1: percent1 scaled by scale
Band 2: percent2 scaled by scale (optional)
Band 3: percent3 scaled by scale (optional)
The percent bands are simple deviations from the selected price source:
Upper = price * (1 + (percent * scaling)/100)
Lower = price * (1 - (percent * scaling)/100)
Why this matters:
It anchors “strength visualization” to meaningful price distance.
It makes the overlay comparable across assets because it’s percent-based.
It gives you a consistent spatial frame for reading momentum versus extension.
Multi-timeframe engine (MTF)
The script runs the same strength calculation on up to three timeframes:
Timeframe 1 uses the chart timeframe by default (empty string input).
Timeframe 2 is optional and defaults to Daily.
Timeframe 3 is optional and defaults to Weekly.
Each timeframe has:
Its own RSI period (len, len2, len3).
Its own smoothing length (slen, slen2, slen3).
The same smoothing type selection (EMA, HMA, etc).
This creates a layered view:
TF1 often reflects tactical pressure (entries/exits).
TF2 reflects structural pressure (swing context).
TF3 reflects macro bias (regime context).
When multiple timeframes agree, the fills stack and the overlay becomes visually louder. When they disagree, the overlay looks mixed or muted, which is exactly the point.
Smoothing options (why so many)
Raw RSI can be noisy. This script lets you smooth RSI with multiple MA types, which changes how “responsive” the overlay feels:
EMA/RMA smooth without lagging as hard as SMA.
HMA responds faster but can be twitchy.
LINREG can feel more “structural”.
ALMA and T3/TEMA provide heavier smoothing profiles with different lag characteristics.
This isn’t cosmetic. Your smoothing choice affects:
How early the overlay “lights up” in Trend mode.
How long extremes remain highlighted in Mean-Reversion mode.
How often fills flicker in chop.
Strength mapping (the transparency buckets)
Instead of mapping RSI to a continuous color scale, the script uses a discrete transparency ladder. That creates a clean, readable visual that avoids constant flickering.
The logic assigns two transparency values per timeframe:
Upper-side transparency responds to lower RSI zones (weak upside strength).
Lower-side transparency responds to higher RSI zones (strong upside strength).
Then the script uses those transparencies differently depending on mode:
Trend mode shows “strength aligned with direction”.
Mean-Reversion mode swaps the emphasis so “extremes” stand out as potential stretch.
You can think of it as:
Trend mode highlights continuation strength.
Mean-Reversion mode highlights potential exhaustion.
Fill stacking (how the overlay is built)
The overlay uses layered fills:
Fill from price to Band 1
Fill from Band 1 to Band 2 (if enabled)
Fill from Band 2 to Band 3 (if enabled)
Upper side uses the negative color (typically red) and lower side uses the positive color (typically green), because upper bands represent “above price” space and lower bands represent “below price” space. The intensity is controlled by the computed transparency per timeframe and selected mode.
Important behavior:
Disabling Band 2 or Band 3 can change how the stacked fills look, because you are removing fill segments.
If you want a clean look, run only Band 1.
If you want a “regime heat” look, run Bands 1–3 with higher scaling.
Table (MTF RSI dashboard)
A compact table prints RSI values for each configured timeframe:
Row labels show TF.
Values show the smoothed RSI output that drives the overlay.
Use it for quick confirmation:
If overlay looks strong but table RSI is neutral, your band settings might be too tight.
If TF3 RSI is extreme while TF1 is neutral, you are likely in a macro stretched regime with local consolidation.
Alerts (built-in)
Alerts are provided for each timeframe separately, covering:
Entering upper extreme (cross above 70)
Exiting upper extreme (cross below 70)
Entering lower extreme (cross below 30)
Exiting lower extreme (cross above 30)
Bullish midline cross (cross above 50)
Bearish midline cross (cross below 50)
This enables workflows like:
Notify when TF2 enters extreme, then wait for TF1 mean-reversion confirmation.
Notify when TF3 crosses midline, then only take TF1 trend setups in that direction.
How to use it (practical reads)
Trend mode reads
Strong continuation: TF1 and TF2 fills become clearly visible on the same side.
Healthy pullback: TF1 fades but TF2 stays visible, suggesting underlying structure remains strong.
Chop warning: fills alternate or remain mostly invisible, indicating neutral strength.
Mean-Reversion mode reads
Exhaustion zones: outer fills become prominent near the extremes, signaling stretched conditions.
Compression after extreme: fill fades while price stabilizes, suggesting “cooling off” rather than immediate reversal.
Multi-TF stretch: TF2 and TF3 extremes together often mark higher significance zones.
Recommended setup presets
Preset A: Clean trend overlay
Mode: Trend
Bands: only Band 1
Scale: 1–2
Smoothing: EMA, moderate slen (6–10)
TF2: Daily on intraday charts
Preset B: Regime and exhaustion mapper
Mode: Mean-Reversion
Bands: Bands 1–3
Scale: 2–4
Smoothing: T3 or RMA, slightly higher slen
TF2: Daily, TF3: Weekly
Limitations
This is a strength visualization tool, not a full entry/exit system.
Percent bands are not volatility-adjusted, they are distance frames. In very high vol conditions, you may need higher band percentages or higher scaling.
MTF values update on their own timeframe closes, so higher timeframes will step rather than update every bar.
Area per IntervalDescription
This indicator shades the area between 2 curves, an SMA and the nearest open/close to the SMA, and their intersections. The black labels with leader lines describe the calculated area of each shaded section, and the total area accumulated per total number of time intervals for that area. The additional value visible in the status line that is not displayed on the chart is, at any bar index (time interval), the current total area of the incomplete shaded area.
Usage
- The default color of the shaded areas denote the type of momentum being built before the cross. Green for bullish, red for bearish.
- The area value of the shaded areas can be used as a capacity indicator, denoting imbalances between the previous and next crosses.
- The area per interval value of the shaded areas can be used as a momentum indicator, denoting which area is carrying more price movement before the price crosses.
- Similar to indicators that use dynamic price differences between OHLC data, moving averages, etc, confluence with other momentum indicators that use different elements creates additional confirmation.
Conclusion
Simple momentum indicator. Comment for possible updates that can be made.
Classic Chartism-Market Structure- Support.ResistanceClassic Chartism – Market Structure + Support & Resistance
This indicator is designed for traditional chart-based technical analysis, relying exclusively on price action and market structure, without the use of oscillators or lagging indicators.
The script automatically detects significant swing highs and swing lows using confirmed pivots and classifies price structure according to classic market structure notation:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Based on these swings, the indicator plots horizontal Support & Resistance (SR) levels, representing historically significant areas of supply and demand. These levels remain active until invalidated by price, providing a clear and objective market context.
The indicator does not repaint once a swing is confirmed, making it suitable for real-time analysis and discretionary trading decisions. It performs well across cryptocurrencies, futures, indices, and equities, and is particularly useful for trend identification, pullback entries, and structure-based risk management.
Algonova TrendFlowWhat was previously a (very!) manual process of looking at "UPs" and "DOWNs" to determine which way the market is "flowing" has now been automated! Urban TrendFlow is an immense timesaver for our users as we search for opportunities to go long and short (and especially when we need to sit on our hands and let uncertain markets "find their flow".
Trade with TreandThink of this script as a filter and a signal light for trading Gold. It helps you avoid trading in the wrong direction and tells you exactly when the price momentum is shifting.
The Three Main Parts
The Ultimate Trend (The Filter):
This is the big table in the top-right corner.
Bullish (Green): Only look for BUY signals.
Bearish (Red): Only look for SELL signals.
It uses a "300 SMA" (a long-term average) to make sure you aren't "swimming against the tide."
The Entry Signals (The Crossover):
The script watches two lines on your chart (a 20-period and a 10-period).
When they cross, it places a BUY or SELL label on your screen.
The 4 Alerts (The Notifications):
You don't have to stare at the screen all day.
You get a notification for Buy entries, Sell entries, or when the Main Trend flips from Bullish to Bearish (or vice versa).
Simple Rules for Trading
To be successful with this script, follow these four rules:
Rule 1: Check the Table. If it says "Bearish," ignore all "BUY" labels.
Rule 2: Wait for the Label. Only enter a trade when a "BUY" or "SELL" label appears and it matches the trend table.
Rule 3: Protect Your Money. Look at the last 5 candles. Put your Stop Loss just past the highest or lowest point of those candles.
Rule 4: Aim for the Target. Your profit target should be at least double the amount of money you are risking (Risk:Reward 1:2).
How to use the Settings
When you click the Settings icon on the script, you can change:
SMA Filter: Change the "300" if you want the trend to be faster or slower.
Trend Gap: Adjust how far the trailing line stays away from the price.
Nifty OI Support Resistance This study is designed for educational purposes to assist traders in analyzing price structure on the Nifty 50 index. It creates visual reference zones based on standard mathematical intervals used in the derivatives market.
Purpose of the Tool: In the Nifty 50 index, price action is often analyzed relative to "Round Numbers" or standard strike intervals (e.g., multiples of 50). This script automatically plots these mathematical reference levels relative to the current price to help users observe price behavior.
How It Works: This indicator uses a mathematical formula to identify the nearest standard strike price intervals based on the current close price.
Strike Logic: It projects levels at standard 50-point intervals (Nifty's standard strike distance).
Volatility Buffers: It adds a user-defined buffer (default: 30 points) around these levels to visualize a "zone" rather than a specific price point.
Major Levels: It visually distinguishes major round numbers (multiples of 500) which are often significant for technical analysis.
Features:
Automated Plotting: Adjusts dynamically as price moves to show relevant upper and lower reference bands.
Zone Visualization: Helps in identifying potential areas of support or resistance based on technical structure.
Customizable: Users can adjust the strike distance and buffer range to suit different volatility conditions.
Usage: This tool is intended to be used as a visual aid for Technical Analysis. It allows users to see where the price is located relative to standard Nifty intervals.
⚠️ STANDARD DISCLAIMER & DISCLOSURE:
Nature of Content: This script and description are for educational and informational purposes only.
No Financial Advice: This tool does not constitute investment advice, buy/sell recommendations, or trading tips.
Not SEBI Registered: The author is not a SEBI registered Research Analyst (RA) or Investment Advisor (IA).
Methodology: The levels displayed are generated purely via mathematical calculation based on price inputs and do not represent real-time exchange Open Interest data.
Risk Warning: Trading in securities market is subject to market risks. Read all the related documents carefully before investing. User discretion is advised.
Advanced Dynamic RSI Pro40-60
Oscillation Phase: Market is in consolidation. Expect sideways movement with no clear trend.
>60
Bullish Signal: A breakout above 60 confirms upward momentum and trend strength.
<40
Bearish Signal: Dropping below 40 confirms a downward trend and selling pressure.
The depth of the MA (reaching levels above 70 or below 30) clearly visualizes extreme Overbought or Oversold market conditions.
Ali Bin Yahya @pa_4cA simple and clean indicator that combines an Exponential Moving Average (EMA) with a Session-based VWAP that resets daily. It helps traders identify the overall trend and the fair price level during the current trading session.
Ideal for intraday trading, trend confirmation, and spotting dynamic support and resistance levels.
%-to-Tick Trailing Stop & VisualizerPercent-to-Tick Trailing Stop (strategy.exit Framework + Visualizer)
Overview
This script focuses on exit management and visualization, not entry performance. The included MA crossover entry is intentionally simple and replaceable.
Core idea (Percent → Tick conversion)
strategy.exit() trailing parameters are tick-based (trail_points, trail_offset, and loss).
This script lets you input distances in percent (%) and converts them into integer ticks using syminfo.mintick, making the same exit logic portable across most tick-based symbols/exchanges with different tick sizes.
//==What it provides==//
1. % → tick conversion for:
- Fixed stop loss (loss)
- Trailing activation distance (trail_points)
- Trailing offset distance (trail_offset)
2. On-chart visualization:
- Entry average price
- Trailing activation threshold
- Fixed stop-loss line
- Trailing stop line (with an exit-bar alignment attempt to reduce gaps)
//==How to use==//
1. Keep the included MA crossover entries, or replace them with your own entries.
2. Configure:
- Fixed Stop Loss % (loss_pct)
- Trailing Activation % (t_points_pct)
- Trailing Offset % (t_offset_pct)
3. Adjust commission/slippage defaults to match your market.
//==Important limitations (must read)==//
- calc_on_every_tick=true recalculates on realtime bars only; historical bars are evaluated differently. Backtests can differ from realtime behavior and may change after reload.
- Tick rounding: percent distances are rounded to integer ticks, so small differences can occur depending on tick size and price level.
- For more realistic intrabar backtesting, consider enabling Bar Magnifier in Strategy Properties (if available).
# Average Entry Price (Basis):
"Calculations are based on the position's average entry price (strategy.position_avg_price)."
# Pine Script v6:
"Written in the latest Pine Script v6."
요약
이 스크립트의 핵심은 “진입 전략”이 아니라 **strategy.exit()의 tick 기반 트레일링 파라미터를 % 입력으로 일반화(%→ticks 변환)**하여, 다양한 심볼/거래소의 서로 다른 tick size 환경에서도 동일한 exit 로직을 재사용할 수 있게 만든 “청산 프레임워크”입니다. 또한 calc_on_every_tick=true 환경에서 트리거/손절/트레일 라인을 실시간에 가깝게 시각화하는 데 중점을 두었습니다.
단, calc_on_every_tick은 실시간 바에서만 틱 단위 재계산이 적용되며, 히스토리 바/백테스트는 평가 방식이 달라 결과가 다를 수 있습니다.
Momentum Burst + Absolute Momentum(TI65) + EP9M)This is a momentum burst indicator popularized by StockBee (hey EGeee). Track the stock absolute momentum for continuation breakout. Last but not least, identify EP9M. It can be Episodic pivot 9M volume breakout as a classic EP (CANSLIM type) for a long term trade or a regular EP9M or EP9M delayed reaction for swing trade. KISS - don't over complicate.
SMAcross-mvrOverview
SMAcross-mvrNew is a flexible, non-repainting moving-average strategy designed for clarity, configurability, and reliable backtesting.
It supports multiple entry styles, optional layered exits, and full-capital position sizing, while remaining stable during chart zooming and dragging.
🚀 What’s New in v2
✅ Multiple Entry Modes
You can now choose how trades are entered:
Entry Mode A: Short SMA crosses Long SMA
Entry Mode B: Price crosses Long SMA
This allows both classic MA-crossover trading and trend-continuation pullback entries using the same strategy.
✅ Modular Exit System (Checkbox-Based)
Exit logic is now fully modular using independent checkboxes:
☑ Exit on opposite signal
☑ Exit when price closes beyond Short SMA
You may enable one, both, or neither.
If both are enabled, the strategy exits on whichever condition occurs first.
✅ Terminology Clarity
All labels, inputs, and alerts now use semantic naming:
Short SMA (formerly 13 SMA)
Long SMA (formerly 30 SMA)
This makes the strategy easier to understand and future-proof if SMA lengths are changed.
✅ Full-Capital Position Sizing
Each trade uses 100% of available equity, allowing performance to naturally compound over time during backtests.
✅ Optional Visual Enhancements
Optional cross price labels (can be toggled on/off)
Color-filled zone between Short and Long SMAs for quick trend recognition
Optional 200 SMA (off by default) for higher-timeframe context
✅ Alert-Ready (TV-Safe)
All alerts use static messages compatible with TradingView’s alert system, making the strategy suitable for:
Manual trade notifications
Webhook-based automation
Broker integrations
🔒 Design Principles
No repainting
No line continuations (TradingView-safe formatting)
Stable behavior when zooming or scrolling
Clear separation of entry logic, exit logic, and visuals
⚠️ Notes
This script is intended for educational and research purposes.
Always forward-test and apply proper risk management before live trading.
ZOE IFVG+his indicator combines the original ICT Inversion Fair Value Gap (iFVG) Detector by ote618 with a manual checklist panel for trade analysis.
Features:
ICT iFVG Detector
Automatically identifies bullish and bearish inversion fair value gaps (iFVGs) based on 3-candle formation logic.
Draws colored boxes on the chart to highlight confirmed iFVG zones.
Sends optional alerts when iFVGs are confirmed, respecting your selected timeframe.
Works exactly like the original ote618 iFVG script, with no modifications to the core detection logic.
Manual Checklist Panel
Displays a customizable checklist to track key market factors:
Liquidity Sweep
HTF FVG
V-Shape Recovery
Inversion FVG
Clear Opposite DOL
SMT Divergence
Assigns a score and grade (A+ to F) based on selected conditions.
Panel position and background can be customized.
Allows traders to visually track trade quality alongside iFVG zones.
Usage:
Use the iFVG boxes to identify high-probability zones for entries and liquidity hunts.
Use the manual checklist to evaluate trades based on additional criteria, creating a structured workflow for market analysis.
Fully compatible with your existing iFVG workflow — the core detection and alerts remain unchanged.
Ideal For:
Traders following ICT concepts, liquidity hunts, and structure-based strategies who want to combine automated FVG detection with a manual trade-quality checklist.
Multi-Metric Market Regime Detector - [KK]This indicator identifies current market behavioral regimes by synthesizing six complementary analytical methodologies. Rather than generating trading signals, it provides contextual analysis to help traders understand market conditions and adapt their strategies accordingly.
Markets cycle through distinct behavioral states - trending efficiently, consolidating in ranges, compressing before breakouts, or transitioning between states. This tool quantifies these conditions using only price action data (OHLC), enabling traders to filter strategies based on current market structure.
Core Methodology
The indicator combines six independent metrics into a weighted composite classification system:
Efficiency Ratio (30% weight)
Measures the signal-to-noise ratio of price movement by comparing net price displacement to total path traveled. High efficiency indicates clean directional movement; low efficiency indicates choppy, noisy conditions.
Choppiness Index (25% weight)
Quantifies whether the market is trending or consolidating by comparing cumulative True Range to actual price range. Values below 38.2 suggest trending behavior; values above 61.8 suggest range-bound consolidation.
Volatility Analysis (20% weight)
Detects compression and expansion cycles using the relationship between Bollinger Bands and Keltner Channels. Compression phases (squeeze conditions) often precede significant directional moves.
Fractal Efficiency Proxy (10% weight)
Analyzes path complexity by comparing net displacement to cumulative range, providing insight into the smoothness versus randomness of price action.
Market Structure (15% weight)
Examines pivot point sequences to identify structural trends. Higher Highs and Higher Lows indicate bullish structure; Lower Lows and Lower Highs indicate bearish structure.
Wick-to-Body Ratio Analysis (qualitative)
Identifies rejection and indecision patterns by measuring the proportion of candle wicks to bodies, highlighting potential reversal zones or liquidity events.
Regime Classifications
The composite scoring system produces four distinct regime states:
TRENDING : High efficiency, low choppiness, clear directional structure. Favorable conditions for momentum and trend-following strategies.
CHOPPY/RANGE : Low efficiency, high choppiness, mean-reverting behavior. Favorable conditions for range trading and counter-trend setups.
COMPRESSION : Volatility squeeze detected, market coiling. Anticipate expansion; reduce position size until breakout confirmation.
TRANSITION : Mixed signals, conflicting metrics, unclear direction. Recommended to reduce exposure and wait for regime clarity.
Visual Features
Regime-Colored Candles (enabled by default)
Candles are colored according to the current regime state for immediate visual identification. Green indicates trending, gray indicates choppy, orange indicates compression, and yellow indicates transition.
Comprehensive Metrics Table (top right)
Displays real-time values for all six metrics along with individual regime assessments and the final composite classification with score.
Regime Guide Table (middle right)
Quick reference guide showing recommended strategies and actions to avoid for each regime state.
Chart Label ( optional)
Summary label displaying current regime and key metric values.
Background Coloring (optional)
Alternative visualization using background colors instead of candle coloring.
Indicator Plots (optional)
Displays Efficiency Ratio and Choppiness Index with threshold reference lines.
Customization Options
All calculation parameters are adjustable:
- Efficiency Ratio lookback period and thresholds
- Choppiness Index length and classification thresholds
- Volatility analysis parameters (BB/KC multipliers and lengths)
- Pivot detection sensitivity (left/right bars)
- Text size controls for both tables (Tiny to Huge)
- Visual element toggles (candles, background, label, tables, plots)
The indicator automatically detects chart theme (dark/light) and adjusts text colors for optimal readability.
Practical Application
This is a context tool, not a signal generator. Use it to:
- Filter trend-following strategies to trending regimes only
- Identify range-bound conditions for mean-reversion setups
- Anticipate breakout opportunities during compression phases
- Reduce exposure during transitional periods with mixed signals
- Improve risk management by matching position size to regime clarity
The indicator works on all timeframes and instruments using only OHLC data. Higher timeframes generally provide more stable regime classifications.
Alert Conditions
Four alert types are available:
- Efficiency Ratio crosses trend threshold
- Choppiness Index enters range territory
- Volatility squeeze released
- Regime state change detected
Technical Notes
Built with Pine Script v5. Uses up to 500 bars of historical data for stable calculations. All metrics are calculated in real-time with no repainting on confirmed pivots. Compatible with all chart themes through adaptive text coloring.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance and theoretical analysis do not guarantee future results. Always conduct independent research and implement appropriate risk management. Trading financial instruments involves substantial risk of loss.
Usage Philosophy
The goal is not to trade more frequently, but to think more clearly about market conditions. Use this tool to develop deeper intuition about market structure and to enforce discipline by avoiding low-probability setups during unfavorable regime conditions.
cd_bias_profile_Cxcd_bias_profile Cx
Overview:
cd_bias_profile_Cx is an all-in-one professional analysis terminal designed to determine market direction (Bias) based on institutional trading strategies (SMC & ICT). This tool integrates multi-timeframe (MTF) data, institutional liquidity sweeps, SMT divergences, and candle closure confirmations into a single cohesive structure, providing traders with a comprehensive map of institutional Order Flow.
🚀 Advanced Hierarchical Profile Architecture
The indicator visualizes the market through a three-layered hierarchy (Major, Middle, Plot), allowing you to see exactly which higher-tier structure the current price action is serving.
• Smart Timeframe (Auto-TF) Logic: In "Auto" mode, the system automatically selects the most logical hierarchy based on your chart interval using the following sequence:
.
o Example Scenario: If your chart is set to 5-Minute (5m):
Major (Macro Structure): H4 (The outermost container candle)
Middle (Intermediate Structure): H1 (Mid-scale candle)
Plot (Local Structure): 15m (The smallest nested high-timeframe candle)
• Nested Candle Design: Each high-timeframe candle is rendered as transparent boxes with specific body colors, encapsulating the lower-tier price action (OHLC) within it.
• Cyclical Refresh: Profile drawings reset automatically at the opening of every new Major timeframe candle. This ensures the analysis remains focused on the freshest institutional cycle.
🧠 Bias Algorithm & Decision Mechanism
To eliminate subjective interpretation, the algorithm operates on a purely mathematical logic based solely on Candle Closures (Close). It generates three distinct outcomes:
1. Reversal:
o Condition 1: A liquidity Sweep must occur at the HTF level.
o Condition 2 (SMT Confirmation): If no sweep is detected on the primary pair, the algorithm automatically scans correlated assets (e.g., checking GBPUSD or DXY for an EURUSD trade). An SMT Divergence in a correlated asset is accepted as institutional manipulation confirmation.
o Final Trigger: Once a CISD (Change in State of Delivery) occurs on the Lower Timeframe (LTF), the "Reversal" bias is confirmed.
2. Continuation: When a high-timeframe candle closes convincingly above/below the previous candle's High or Low, the algorithm reports that the current trend maintains its strength.
3. Indeterminate: In "non-delivery" zones where the market neither sweeps liquidity nor creates a structural break, the algorithm remains neutral to prevent overtrading.
🚨 Alert Center
The alert system is designed for high-confluence setups, ensuring you never miss a structural shift:
• Flexible TF Selection: You can manually toggle which of the 5 tracked timeframes (1M, 1W, 1D, etc.) should trigger notifications based on your strategy.
• "Any of Them" Function: When enabled, an instant notification is sent the moment a "Reversal" or "Continuation" signal forms on any of your selected timeframes.
• Directional Filtering: You can filter alerts to receive only "Bullish" or only "Bearish" setups, allowing you to align with your primary macro bias.
⚙️ Pro Tips for Usage
• Invalidation Lines: The dashed lines on the chart indicate the exact price level where the institutional bias is "invalidated." These serve as professional-grade stop-loss levels.
• B-ADJ Support: For Futures traders, back-adjustment settings are optimized within the code for seamless data transition.
• Manual Mode: If you wish to use custom timeframes not found in the standard sequence (e.g., 2-hour or 3-day charts), you can define them via the "Manuel" settings toggle.
• High-probability trade setups can be expected when there is multi-timeframe alignment in the same direction.
• Strategic Use Cases: The indicator is optimized for trading Distribution Phases within advanced frameworks. Whether you are looking for the C3 candle in the Universal Model or the Distribution (D) phase in an AMD (Power of 3) setup, this tool provides the necessary structural confirmation.
• User Discretion: Please note that this is a directional bias tool. While it identifies which direction is supported by multi-timeframe alignment, the final execution and entry management on lower timeframes are the user's responsibility.
• Always remember to seek additional confluence before executing a trade.
Chart Visual
Profile Visual
Example (SMT Usage) : On the chart, while the 10:00 H1 candle on GBPUSD sweeps its previous candle's liquidity, its correlated pair EURUSD does not show a sweep. If the "Use SMT for Bias" option is enabled, this SMT divergence with the correlated pair is accepted as a valid HTF Sweep. Upon the new candle open, once a 5m CISD confirmation occurs on EURUSD, the Bias Table will display "Bearish" for the H1/5m row.
Entry examples:
Please feel free to share your feedback and suggestions in the comments below.
Happy trading!
Institutional Zone Detector [Scalping-Algo]█ OVERVIEW
The Institutional Zone Detector identifies key supply and demand zones where large market participants (institutions, banks, hedge funds) have likely placed significant orders. These zones often act as powerful support and resistance levels, making them strategic areas for trade entries and exits.
This indicator is non-repainting, meaning once a signal appears on your chart, it will never disappear or change position. What you see in backtesting is exactly what you would have seen in real-time.
█ CORE CONCEPT
Markets move when large players execute substantial orders. These orders leave footprints in the form of specific candlestick patterns:
Demand Zones (Bullish)
When institutions accumulate positions, we often see a bearish candle followed by a strong bullish sequence. The last bearish candle before this move marks the demand zone - an area where buying pressure overwhelmed sellers.
Supply Zones (Bearish)
When institutions distribute positions, we typically see a bullish candle followed by a strong bearish sequence. The last bullish candle before this move marks the supply zone - an area where selling pressure overwhelmed buyers.
Price has a tendency to revisit these zones, offering potential trade opportunities.
█ HOW IT WORKS
The indicator scans for:
1. A potential zone candle (bearish for demand, bullish for supply)
2. A sequence of consecutive candles in the opposite direction
3. Optional: A minimum percentage move to filter weak signals
When all conditions are met, the zone is marked on your chart with:
• Upper and lower boundaries (solid lines)
• Equilibrium/midpoint level (cross marker)
• Extended channel lines for easy visualization
█ SETTINGS
Consecutive Candles Required (Default: 5)
Number of same-direction candles needed after the zone candle to confirm the pattern. Higher values = fewer but stronger signals.
Minimum Move Threshold % (Default: 0.0)
Minimum percentage price movement required to validate a zone. Increase this to filter out weak moves and focus on significant institutional activity.
Display Full Candle Range (Default: Off)
• Off: Shows Open-to-Low for demand zones, Open-to-High for supply zones
• On: Shows complete High-to-Low range of the zone candle
Show Demand/Supply Zone Channel (Default: On)
Toggle extended horizontal lines that project the zone levels across your chart.
Visual Theme (Default: Dark)
Choose between Dark (white/blue) or Light (green/red) color schemes.
Show Statistics Panel (Default: Off)
Displays a floating panel with exact price levels of the most recent zones.
Display Info Tooltip (Default: Off)
Shows an information label with indicator documentation.
█ HOW TO USE
Entry Strategies
1. Zone Bounce (Mean Reversion)
• Wait for price to return to a previously identified zone
• Look for rejection candles (pin bars, engulfing patterns) at zone levels
• Enter in the direction of the original zone (long at demand, short at supply)
• Place stops beyond the zone boundary
2. Zone Break (Momentum)
• When price breaks through a zone with strong momentum
• The broken zone often becomes the opposite type (broken demand becomes supply)
• Use for trend continuation trades
3. Equilibrium Trades
• The midpoint (cross marker) often acts as a magnet for price
• Can be used as a first target or as an entry point for scaled positions
Risk Management
• Always place stop-loss orders beyond zone boundaries
• Consider the zone width when calculating position size
• Wider zones = wider stops = smaller position size
• Use the equilibrium level for partial profit taking
Best Practices
• Higher timeframes produce more reliable zones
• Zones on multiple timeframes (confluence) are stronger
• Fresh/untested zones are more powerful than zones that have been touched multiple times
• Combine with other analysis methods (trend direction, volume, market structure)
█ ALERTS
Two alert conditions are available:
• "Demand Zone Identified" - Triggers when a new demand zone is detected
• "Supply Zone Identified" - Triggers when a new supply zone is detected
To set up alerts: Click on the indicator name → Add Alert → Select condition
█ IMPORTANT NOTES
• This indicator is a tool for analysis, not a complete trading system
• Signals are NOT automatic buy/sell recommendations
• Always use proper risk management
• Past performance does not guarantee future results
• Works on all markets and timeframes
• Non-repainting: Signals appear only after bar close confirmation
█ ACKNOWLEDGMENTS
Inspired by institutional order flow concepts and smart money trading methodologies. Built with a focus on reliability and practical application.
Nested SMA WaveThe "Nested SMA Wave" is a custom Pine Script (v5) indicator for TradingView that overlays a series of 8 Simple Moving Averages (SMAs) on the price chart. These SMAs use exponentially increasing lengths based on powers of 2, starting from a user-defined base length (default: 25). This creates lengths like 25, 50, 100, 200, 400, 800, 1600, and 3200.
Each SMA is plotted in a distinct color, forming a "wave" of nested lines that fan out from short-term (faster, more responsive) to long-term (slower, smoother). Semi-transparent colored fills (shaded zones) are added between consecutive SMAs, with customizable toggles and transparency levels, creating layered visual bands that highlight the spaces between different trend timescales.
Use Cases
Multi-Timeframe Trend Visualization: The power-of-2 nesting approximates higher timeframe trends on lower timeframes without switching charts. Shorter SMAs react quickly to price changes, while longer ones show major trends, helping identify overall market structure at a glance.
Support/Resistance Identification: Price interacting with the SMA lines or shaded zones can act as dynamic support/resistance. Crossovers between nested SMAs signal potential momentum shifts.
Trend Strength and Alignment: When SMAs are widely spaced and aligned (e.g., all sloping up), it indicates strong trends. Converging or crossing SMAs suggest consolidation or reversals. The shaded zones add depth, making expansions/contractions in volatility or trend power visually obvious.
Ribbon-Style Trading: Similar to moving average ribbons, traders can look for price pulling back to inner zones for entries in the direction of the broader "wave," or use zone breaks for signals.
Customization for Different Assets/Timeframes: Adjust the base length (e.g., smaller for crypto volatility, larger for stocks) and toggle shades to reduce clutter.
This creates a visually rich, rainbow-like overlay that's particularly useful for trend-following strategies on any chart.
Seasonal Strategies V1Seasonal Strategies V1 is a rule-based futures seasonality framework built around predefined calendar windows per asset.
The strategy automatically detects the current symbol and activates long or short trading phases strictly based on historically observed seasonal tendencies. All entries and exits are fully time-based — no indicators, no predictions, no discretionary input.
Key Features
Asset-specific seasonal windows (MMDD-based)
Automatic long and short activation
Fully time-based entries and exits
One position at a time (no pyramiding)
Clean chart visualization using subtle background shading
No indicators, no filters, no curve fitting
Philosophy:
This strategy is designed as a structural trading tool, not a forecasting model.
It focuses on when a market historically shows seasonal tendencies — not why or how far price might move.
Seasonal Strategies V1 intentionally keeps the chart clean and minimal, making it suitable as a baseline framework for research, portfolio-style seasonal approaches, or further extensions in later versions.
Intended Use:
Futures and commodity markets
Seasonality research and testing
Systematic, calendar-driven strategies
Educational and analytical purposes
Disclaimer
This script is provided for educational and research purposes only.
Past seasonal tendencies do not guarantee future performance.
Risk management, position sizing, and portfolio decisions are the responsibility of the user.
Advanced Footprint Analysis1. ABSORPTION = BEST ENTRY SIGNALS
When BTC hits support and shows bullish absorption:
You know big money is buying
Price won't fall further (supply absorbed)
Risk/reward is optimal (tight stop below absorption)
Win rate on these setups is 70-80%
2. EXHAUSTION = REVERSAL TIMING
Catches exact moment selling/buying pressure is exhausted
No more guessing "is the dip over?"
Volume confirms the reversal
3. IMBALANCES = CONTINUATION TRADES
Stacked imbalances show trend strength
Enter pullbacks in strong trends
Avoid counter-trend trades when imbalance is strong
4. DELTA DIVERGENCE = EARLY WARNING
Cumulative delta rising but price flat = accumulation (buy setup)
Cumulative delta falling but price rising = distribution (sell setup)
This divergence appears BEFORE price moves
5. FILTERS OUT NOISE
Crypto has tons of fake volume and wash trading
By requiring volume to be significantly above average (2x, 3x), you ignore the noise
Only trade when institutions are active
6. WORKS ON ALL CRYPTO PAIRS
BTC, ETH, SOL - same patterns
Especially powerful on perpetual futures (more volume data)
PRACTICAL 5M CRYPTO ALGO STRATEGY:
LONG ENTRY:
Wait for bullish absorption OR bullish exhaustion
Confirm with positive stacked imbalances (3 bars)
Enter when price breaks above absorption high
Stop below absorption low
Target: 2-3x risk or next resistance
SHORT ENTRY:
Wait for bearish absorption OR bearish exhaustion
Confirm with negative stacked imbalances
Enter when price breaks below absorption low
Stop above absorption high
Target: 2-3x risk or next support
FILTER:
Only trade in direction of cumulative delta trend
Avoid when volume is below average (no institutional activity)
#BLTA - CARE 7891🔷 #BLTA - CARE 7891: Ny session toolkit + Risk box + Confirmed levels + Asia box + Structure + Imbalances
Description:
#BLTA - CARE 7891 is an overlay toolkit 🧭🛠️ built for structured discretionary trading preparation. Its main purpose is to keep your chart reading and pre-trade planning in one place by combining time context, confirmed reference levels, liquidity framing, manual risk sizing, and context overlays (structure + imbalances).
🚫 This script is an indicator, not a strategy. It does not place orders.
🧩 Why these modules are combined (and how they work together)
This is not a “mashup for the sake of mixing”. Each module supports a specific step of a practical workflow:
🕒 Time context (new york session mapping)
Background highlights mark precise NY-time windows (day division at 17:00, london blocks, and new york blocks).
This provides the timing framework for when you typically scan, plan, or execute.
📰📅 Confirmed reference levels (previous day/week highs & lows)
Instead of plotting live extremes, this script confirms levels at defined boundaries:
Trading day: 17:00 → 17:00 NY
Weekly boundary: Sunday 17:00 NY
Lines start exactly at the candle where the high/low occurred and extend forward.
Optional “stop on hit” 🧊 freezes a level once price touches it, keeping the chart clean and realistic for forward analysis.
🈵 Asian range liquidity box (session that can cross midnight)
A dedicated Asian range container tracks high/low and an optional 50% midline.
It uses NY timestamps and safely handles sessions that cross midnight (storing the correct session date).
This gives you a daily liquidity “frame” often used for sweeps, breaks, and invalidations.
💸 Manual risk planning (trade box + lot sizing + table)
You select Entry (EP) and Stop (SL) directly on the chart using input.price(..., confirm=true) and time anchors.
The script then calculates:
💰 cash at risk from balance and risk %
📏 stop distance in pips (forex-aware pip sizing)
📦 lot size using units-per-lot and account currency inputs
🎯 target price using a reward ratio
It draws a risk box + target box and shows a compact table for quick verification.
🔁 Re-confirm mode (wizard) is included to prevent “stale” anchor points after timeframe changes or when you want a clean reset. While enabled, the risk table is replaced with a step guide and temporary EP/SL markers.
📈 Market structure overlay (1H zigzag projected to any timeframe)
A zigzag swing engine is computed on 1H via request.security() and projected onto the current chart.
Opacity is automatically reduced on non-1H charts so it stays contextual, not dominant.
Optional live extension of the last leg helps you see the active swing in progress.
📊 Imbalance map (fvg / og / vi) + optional dashboard
The script detects and draws:
🤏 fair value gaps (fvg)
👐 opening gaps (og)
🔎 volume imbalances (vi)
Optional filters allow minimum width by points / % / atr, and each imbalance type can be extended forward.
A dashboard 📱 can summarize bullish/bearish frequency and fill rates for context review.
✅ Quick start (recommended order)
Turn on 🕒 session visualization to align with NY timing.
Enable 📰 pdh/pdl and 📅 weekly highs/lows to map confirmed reference liquidity.
Use 🈵 the asian range box to frame the early-session liquidity container.
Plan your trade with 💸 risk module (pick EP/SL, verify pips + lots + target).
Add 📈 zigzag structure and 📊 imbalances only as supporting context.
⚠️ Notes & limitations
This tool is for planning and chart reading, not automated execution.
Lot sizing is an estimate based on your inputs; always confirm broker contract specs.
Some modules draw many objects (boxes/lines/tables) 🧱, which may slow very small timeframes.
Gridbot Ping Pong🏓 Gridbot Ping Pong is a dynamic grid bot indicator that generates buy and sell signals as price oscillates between automatically calculated support and resistance levels. The grid adapts to trending markets through adjustable tilt and anchor parameters, which control the grid slope and shift resistance respectively. Entry signals trigger when price touches grid levels, while take profit and stop signals manage position exits. Unlike traditional grid bots that require horizontal ranges, this indicator maintains its oscillation zone as price trends by tilting and shifting the grid structure to follow momentum. The grid bot approach aims to accumulate gains through frequent touches across multiple grid levels rather than seeking large directional moves. Like a ping pong ball in motion, price oscillates between grid levels — each touch generates a signal.
⚡ THEORY & CONCEPTS ⚡
Grid trading is a systematic approach that places buy and sell orders at predetermined price intervals, creating a grid of orders above and below a set price level. In ranging markets, this method capitalizes on natural price oscillations by buying at lower grid levels and selling at higher ones. Each completed round trip between levels represents a captured opportunity, and the frequency of these oscillations determines the grid's effectiveness. Traditional grid bots excel when price remains within the defined range, methodically accumulating gains as price bounces between levels.
However, traditional grid structures face significant challenges when markets begin to trend. Fixed horizontal levels that performed well during consolidation become liabilities during directional moves. An uptrend leaves buy orders unfilled while sell orders trigger prematurely, and a downtrend creates the opposite problem. Extended trends can result in accumulated positions at increasingly unfavorable prices, with no mechanism to adapt to the new market reality. The static nature of traditional grids assumes markets will return to the mean, yet sustained breakouts regularly invalidate this assumption.
Gridbot Ping Pong addresses these limitations through dynamic grid adaptation. The tilt parameter angles the grid in the direction of the prevailing trend, aligning support and resistance levels with market momentum rather than fighting against it. The anchor parameter creates buffer zones beyond the outer grid boundaries, requiring price to demonstrate conviction before triggering a grid shift. When price breaks through these buffers, the entire grid recenters to the new price level. This combination of tilting grids and controlled shifting allows the indicator to maintain grid trading mechanics while acknowledging that markets trend.
The grid adapts through a downtrend and early reversal. Entry signals (▲▼), take profit signals (△▽), and grid shifts demonstrate the ping pong sequence as price oscillates between levels.
The grid structure consists of five levels: two potential support levels below, a center base price, and two potential resistance levels above. These levels are calculated as percentage intervals from a dynamic base price, with the spacing parameter determining the distance between each level. Trend direction is derived from consecutive grid shifts, where multiple shifts in the same direction confirm momentum. The grid restricts entries to the trend direction — buy signals in uptrends, sell signals in downtrends — while counter-trend signals convert to exits when appropriate.
Full market cycle demonstrating grid adaptation through rally, reversal, decline, and recovery. Buy signals dominate during uptrends, sell signals during downtrends, with take profits at boundaries throughout. Two stop signals mark the trend reversals.
Tilt
The tilt mechanic introduces slope to the grid structure based on trend direction and momentum. When consecutive shifts occur in the same direction, the tilt increases, creating a steeper grid that tracks with the trend. As the trend progresses, support levels rise with it — buy signals trigger on pullbacks to these rising levels rather than static levels abandoned by price. Similarly, resistance levels fall during downtrends, keeping sell signals relevant to current price action. If the trend reverses and shifts occur in the opposite direction, the tilt resets and begins building in the new direction. The tilt strength parameter controls how aggressively the grid slopes, with higher values producing steeper angles. Negative tilt values invert this relationship, angling the grid against the prevailing momentum rather than with it. This counter-trend configuration positions support levels lower during uptrends and resistance levels higher during downtrends, favoring mean reversion entries that anticipate pullbacks rather than continuation.
Negative tilt applied during an uptrend. Despite the bullish price action from late November through December, the grids slope downward, positioning buy signals at deeper support levels. Take profit signals appear at resistance as price reaches the upper grid boundaries before pulling back. The counter-trend configuration captures oscillations within the rising market rather than chasing momentum.
Anchor
The anchor mechanic provides resistance to grid shifting. Buffer zones extend beyond the outer grid boundaries, requiring price to demonstrate conviction before triggering a shift. Higher anchor values create larger buffers, requiring more significant price movement. As consecutive shifts confirm a trend, the pro-trend buffer shrinks, allowing the grid to follow momentum with increasing ease. This lets the indicator commit to established trends while resisting premature shifts during consolidations. Tilt and anchor work in complementary tension: tilt rewards momentum by angling the grid, while anchor resists excessive shifting by requiring price conviction to recenter. When price breaks through these buffers, the entire grid recenters to the new price level and play continues on a fresh table.
Steady uptrend with minimal tilt. The flat grid segments demonstrate that shifting alone keeps the grid aligned with price action. Buy signals (▲) and take profit signals (▽) alternate as price bounces between levels, accumulating gains through repetition across the entire move.
Sustained uptrend from June through September. The grid follows the trend with increasing ease as consecutive shifts reduce the pro-trend buffer. The October consolidation eventually triggers a downward shift and stop signal, but the system adapts to the renewed uptrend in November with fresh entry signals.
Signal Generation
The indicator generates three signal types. Entry signals (▲▼) trigger when price reaches a grid level in the direction of the trend, initiating a new position. Take profit signals (△▽) trigger when price reaches a grid level against the trend direction while a position is held, capturing gains as the rally continues. Stop signals (⦿) trigger when a grid shift occurs while holding a position adverse to the new shift direction. The ball goes off the table.
Trend reversal from bearish to bullish. The grid follows the downtrend through November with consecutive sell signals. A stop signal (⦿) triggers at the bottom as the grid shifts adversely against the held position. The system resets and adapts to the emerging uptrend in December, generating fresh buy signals as the new direction establishes.
Trigger Options
The signal trigger determines what price data the indicator uses to detect grid touches, balancing responsiveness against confirmation.
Auto : The default setting, using wick-based detection for pro-trend signals and close-based detection for counter-trend signals. This balances responsiveness when entering with the trend against confirmation when signaling against it.
Wick Touch : Generates signals in real-time when the high or low touches a grid level, providing the fastest response to price interaction.
Wick Reverse : Requires the wick to cross through the grid level from the previous bar, confirming the touch before signaling.
SWMA : Uses a Symmetrically Weighted Moving Average as the trigger source, generating signals only when the smoothed price crosses grid levels.
Close : Uses the bar's closing price as the trigger source, providing confirmed signals after each bar completes.
Symmetrically Weighted Moving Average (SWMA) trigger during a trend reversal. The smoothed price line filters intrabar noise, generating signals only when the SWMA crosses grid levels rather than reacting to wick touches. The grid follows the downtrend through November, resets at the bottom, and adapts to the emerging uptrend in December.
Signal Safeguards
The indicator includes built-in protections to reduce overtrading and mitigate risk, keeping the ball in play longer:
Boundary Protection : New entries are blocked at the outermost grid levels where breakout risk is highest. Exits remain permitted at these boundaries.
Signal Spacing : Signals maintain one-level separation from the most recent signal, preventing clusters of entries at similar prices.
Trend Alignment : When conflicting conditions arise, signals align with the prevailing trend direction rather than fighting momentum.
Automatic Profit Taking : Counter-trend interactions convert to take profit signals when a position is held, capturing gains rather than reversing exposure.
Adverse Shift Stops : When the grid shifts against a held position, a stop signal triggers to exit before further adverse movement.
Cautious Breakout Entries : On the first shift in a new direction, entries are restricted to favorable grid levels until the trend confirms through consecutive shifts.
Shift Resistance : Counter-trend shifts always require full buffer conviction, while pro-trend shifts become easier only after the trend is confirmed.
🛠️ CONFIGURATION & SETTINGS 🛠️
Core Parameters
SPACING (%) : Sets the percentage distance between grid levels. Higher values create wider grids with more room between signals, lower values create tighter grids with more frequent signal opportunities.
TRIGGER : Selects the price source for signal detection. See Trigger Options above.
TILT : Controls the grid slope factor in the trend direction.
ANCHOR : Controls resistance to grid shifting.
Visual Settings
GRIDS : Sets the colors for support (lower) and resistance (upper) grid levels.
FILL : Sets the gradient fill colors between the price line and outer grid boundaries.
SWMA : Sets the color of the Symmetrically Weighted Moving Average line.
🏓 PLAYING GRIDBOT PING PONG 🏓
⚪The objective is not to predict where price will go, but to be present at each level when it arrives.
⚪Each touch at a boundary counts. Gains accumulate through repetition, not single swings.
⚪The rally continues until it doesn't. When the ball goes off the table, the game resets.
⚪The grid creates boundaries where price bounces back and forth. The table is set — the ball does the work.
⚪Price oscillates between defined levels. The grid is the table. Everything else is just ping pong.
Tennis is a form of ping pong. In fact, tennis is ping pong played while standing on the table. In fact, all racquet games are nothing but derivatives of ping pong. — George Carlin
⚠️ DISCLAIMER ⚠️
The Gridbot Ping Pong indicator is a visual analysis tool designed to illustrate grid trading concepts and serve as a framework for understanding grid bot mechanics. While the indicator generates entry, exit, and stop signals, no guarantee is made regarding the profitability of these signals. Like all technical indicators, the grid levels and signals generated by this tool may appear to align with favorable trading opportunities in hindsight. However, these signals are not intended as standalone recommendations for trading decisions. This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis.
🧠 BEYOND THE CODE 🧠
Gridbot Ping Pong is part of the Grid Bot Series, building on the concepts introduced in the Grid Bot Simulator , Grid Bot Auto , and Grid Bot Parabolic indicators. While those tools established the foundation for grid-based analysis, this indicator introduces dynamic tilt and anchor mechanics that adapt to trending market conditions.
This indicator shares the same educational philosophy as the Fibonacci Time-Price Zones and the Fibonacci Geometry Series - providing frameworks for understanding market concepts through visualization and experimentation rather than black-box signals.
The Gridbot Ping Pong indicator, like other xxattaxx indicators , is designed to encourage both education and community engagement. Feedback and insights are invaluable to refining and enhancing this tool. We look forward to the creative applications, observations, and discussions this indicator inspires within the trading community.
Uptrick: Price Memory TrendIntroduction
Uptrick: Price Memory Trend is a custom indicator designed to detect directional shifts and volatility changes using a non-traditional price memory approach. Unlike moving average systems, it builds a dynamic memory of price that adapts gradually over time, allowing it to detect significant deviations and trend transitions with reduced noise.
Overview
This script identifies trend changes by comparing the current price to a memory-based baseline. When price deviates significantly from this memory base, it triggers a trend regime shift—either bullish or bearish. Adaptive deviation bands are calculated using absolute deviation from the memory base, not ATR or standard deviation, which allows the indicator to capture volatility uniquely. Visual components include color-coded candles, labeled signals, optional bands, and a live status table summarizing current trend metrics.
Originality
The indicator’s core innovation lies in its use of a decaying memory function to track trend direction, replacing moving averages with a price memory that responds only to significant deviations. This method avoids lag typically associated with smoothing techniques, enabling timely trend detection. Furthermore, deviation is measured directly in price terms, rather than through volatility surrogates like ATR or Bollinger Bands, resulting in a more raw and responsive depiction of price behavior.
Inputs
Core Engine
Memory Strength: Sets how strongly the memory responds to price changes. Higher values make the memory base more reactive.
Memory Decay: Controls how much past memory is retained. Lower values weight new prices more heavily.
Deviation Length: Length of the EMA used to smooth absolute price deviation. A longer setting results in smoother bands.
Band Multiplier: Expands or contracts the dynamic bands. Higher values widen the bands, reducing sensitivity.
Customization
Color Palette: Selects one of six predefined color schemes for bull and bear visuals.
Show Bands: Enables or disables the display of deviation bands.
Look: Chooses between 'Bands', 'Trail', or 'Intense' styles, affecting how bands and fills are drawn.
Bands
Trail
Intense
Show Info Table: Toggles display of the real-time trend and volatility status panel.
Table Position: Determines which corner of the chart the info panel appears in.
Text Size: Adjusts font size used within the info table.
Features
Trend Detection
Bullish Shift: Triggered when price crosses above the upper band, entering a new bullish regime.
Bearish Shift: Triggered when price crosses below the lower band, entering a new bearish regime.
Trend state is persistent and updated only on confirmed transitions, avoiding repeated entries in the same direction.
Candle Coloring
Candles are dynamically recolored based on current trend direction: bull, bear, or neutral.
Signal Labels
Visual labels marked "Up" or "Down" are placed on the chart when a regime shift occurs, helping to mark turning points.
Deviation Bands
Dynamic upper and lower bands are drawn based on smoothed absolute deviation from the memory base.
Additional outer bands based on ATR may be drawn to highlight zone intensity when the 'Intense' or 'Trail' styles are selected.
Bands visually indicate overextension and help frame price context relative to memory.
Alerts
Built-in alert conditions trigger on bullish or bearish trend shifts, useful for automation or notifications.
Info Table
The optional info table displays:
Current trend direction
Band state (calm, hot, or cool)
Price stretch from base
Trend age in bars
Confidence level based on deviation
Memory slope and acceleration
Band width and compression state
Reversion risk based on stretch level
Info Table:
Trade Example:
Logic
Price Memory
A recursive formula updates a memory variable based on the current price.
The memory adjusts only when the price deviates meaningfully from its previous value.
The formula uses a combination of delta-weighting and exponential decay:
> memory := previous_memory + delta × memory_strength
> memory := memory × memory_decay + price × (1 - memory_decay)
This produces a smooth, adaptive base that responds gradually to directional price moves.
Deviation and Bands
Absolute deviation between price and the memory base is calculated and smoothed using an EMA.
The upper and lower bands are then calculated as:
> Upper Band = memory base + (smoothed deviation × band multiplier)
> Lower Band = memory base - (smoothed deviation × band multiplier)
ATR-based extensions can optionally be drawn around these bands for added visual structure.
Trend Logic
Bullish and bearish states are tracked using crossovers and crossunders of price against the upper and lower bands.
The indicator maintains a persistent trend state variable that updates only when a confirmed regime change occurs.
This prevents multiple signals within the same trend direction (non-pyramiding behavior).
Stretch and Band Analysis
Stretch is measured as the deviation of price from memory, normalized by smoothed deviation.
Band width is tracked over time and used to detect compression or expansion.
Band position is calculated to identify where price sits between the upper and lower bands.
Info Table Metrics
Memory Slope and Acceleration: Show first and second derivative of the memory base to capture trend speed and change.
Confidence Level: Based on stretch intensity, indicating trend strength.
Reversion Risk: Inferred from how extended price is beyond the band.
Compression: Evaluated by comparing current band width to its recent average.
Summary
Uptrick: Price Memory Trend provides an alternative framework for trend identification by replacing traditional smoothing with adaptive memory logic. It measures price deviation without reliance on ATR or standard deviation, instead focusing on distance from a reactive baseline. With regime-based trend tracking, customizable visuals, and a detailed status table, it supports both discretionary and system-driven trading styles.
Disclaimer
This script is for informational and educational purposes only. It does not provide financial advice or guarantees. Trading involves risk, and past performance is not indicative of future results. Always perform your own research before making trading decisions.






















