ROC-WMA bull bear indicatorROC-Weighted MA Oscillator
based on Seequant indicator
The ROC-Weighted MA Oscillator (ROCWMA) is a momentum-driven oscillator designed to expose hidden acceleration and deceleration phases in price action by dynamically weighting a moving average with the normalized Rate of Change (ROC).
Instead of treating all price deviations equally, this indicator amplifies meaningful moves and suppresses low-energy noise, making it particularly effective in scalping, intraday trading, and momentum reversals.
🔧 Core Concept
A base moving average (SMA, EMA, TEMA, DEMA, HMA, ALMA, etc.)
Weighted by normalized ROC
Transformed into a Z-score oscillator for comparability across assets
Smoothed with a signal line for timing precision
Result: a context-aware oscillator that adapts to market intensity.
📊 What the Oscillator Shows
Bullish momentum when histogram is positive and expanding
Bearish momentum when histogram is negative and expanding
Neutral zone to filter chop and avoid over-trading
Automatic color logic to highlight regime changes
Optional candle coloring reflects the active momentum state.
🎯 Signal-Based Price Markers (Advanced Feature)
This script includes price-chart markers when:
The signal line retraces to X% of the maximum oscillator bar of the current momentum phase
AND the signal slope confirms exhaustion (rising or falling)
Key characteristics:
Adaptive thresholds (relative, not fixed)
Separate logic for bullish and bearish phases
Reset on each neutral-zone transition
Configurable number of markers per momentum cycle
This makes the indicator particularly useful for:
Pullback entries
Momentum fading
Timing partial exits
⚙️ Customization
Fully adjustable ROC length, MA type, signal length
Neutral zone threshold control
Multiple color schemes
Optional candle coloring
Adaptive signal-to-oscillator percentage logic
🧠 Best Use Cases
Scalping (M1–M5)
Intraday momentum confirmation
Pullback and exhaustion detection
Cross-asset trading (FX, indices, crypto, metals)
ROCWMA is not a lagging oscillator.
It is a momentum intensity detector built to reveal when price moves matter.
Indicators and strategies
PowerDays - Day of the Week HUDDescription: Midnight HUD & Daily Session Dividers
This indicator is designed to provide a clean, "Heads-Up Display" (HUD) for daily session tracking. It solves the common problem of cluttered charts by pinning the days of the week to the top of the chart window in a perfectly horizontal line, ensuring they remain visible and aligned regardless of price volatility or vertical scrolling.
Key Features:
Strict Midnight Dividers: Unlike standard "New Day" indicators that trigger at the exchange open (which can be 6:00 PM for some futures or forex pairs), this indicator plots a vertical dashed line at exactly 00:00 based on your chart's time zone.
Centered HUD Labels: Days of the week (MONDAY, TUESDAY, etc.) are plotted in a level horizontal row at the top of the pane. Labels are mathematically centered between midnight dividers to provide a clear visual of the current trading day’s range.
"Error-Proof" Architecture: Built using primitive plotting methods to avoid common Pine Script "Undeclared Identifier" errors, ensuring high compatibility across different TradingView versions and devices.
Fully Customizable: Includes a built-in color picker to adjust the Royal Blue labels and session dividers to match your specific chart theme.
Volume Weighted Intra Bar LR KurtosisThis indicator analyzes market character by decomposing total
Excess Kurtosis ("Fat Tails") of a SINGLE BAR into four distinct,
interpretable components based on a Linear Regression model.
Key Features:
1. **Intra-Bar LR Kurtosis Decomposition:** For each bar on the chart,
the indicator analyzes the underlying price action on a smaller
timeframe ('Intra-Bar Timeframe'). It fits a Linear Regression
line through the intra-bar data to decompose the 4th Moment:
- **Trend Kurtosis (Gold):** Peakedness of the regression line
itself. High values indicate the price path within the bar
moves in sudden jumps, steps, or gaps (discontinuous path).
- **Residual Kurtosis (Red):** Excess Kurtosis of the noise
around the regression line. Captures "Hidden Tail Risk" or
extreme outliers within the bar relative to the trend.
- **Within-Bar Kurtosis (Blue):** Fat tails derived from the
microstructure of individual intra-bar candles.
- **Interaction Variance (Dark Grey):** The comovement of variance
and mean deviations (volatility clustering relative to trend).
- **Interaction Skewness (Darker Grey):** The comovement of skewness
and mean deviations (asymmetry relative to trend).
2. **Visual Decomposition Logic:** Total Excess Kurtosis is the
primary metric displayed. Since statistical moments are additive,
this indicator calculates the *exact* Total Kurtosis and partitions
the columns based on the Law of Total Moments.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Plots the *total* kurtosis as a
stacked column chart. Stacking logic groups components to
ensure visual clarity of the magnitude.
- **Relative Mode:** Plots the direct *contribution ratio*
(proportion) of each component relative to the total sum,
ideal for identifying the dominant driver (Trend vs. Noise).
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
kurtosis of *returns* rather than absolute prices.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and moment calculations,
emphasizing high-participation moves.
5. **Kurtosis Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *total* kurtosis line. (Note: This is only visible
in 'Absolute Mode').
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Analysis Lines:** The entire intra-bar analysis can be
run on a higher timeframe (using the `Timeframe` input),
with standard options to handle gaps (`Fill Gaps`) and
prevent repainting (`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Kurtosis magnitude (High Positive / High Negative).
- Character changes (Trend Jumps vs. Noise Outliers).
- Total Kurtosis pivot (High/Low) detection.
**Caution: Real-Time Data Behavior (Intra-Bar Repainting)**
This indicator uses high-resolution intra-bar data. As a result, the
values on the **current, unclosed bar** (the real-time bar) will
update dynamically as new intra-bar data arrives. This behavior is
normal and necessary for this type of analysis. Signals should only
be considered final **after the main chart bar has closed.**
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted LR SkewnessThis indicator analyzes market character by decomposing total
skewness (asymmetry) into four distinct, interpretable components
based on a Linear Regression model.
Key Features:
1. **Four-Component Skewness Decomposition:** The indicator
separates market asymmetry based on the 'Estimate Bar Statistics' option.
It leverages the Law of Total Moments to provide an additive
breakdown of the 3rd Statistical Moment:
- **Trend Skewness (Green/Red):** Asymmetry originating from
the slope of the regression line itself. Indicates if the
trend path is geometrically skewed.
- **Residual Skewness (Yellow):** Asymmetry of the noise
around the regression line. Captures "Tail Risk" (e.g.,
sudden spikes against the trend).
- **Within-Bar Skewness (Blue):** Asymmetry derived from the
microstructure of individual bars (requires 'Estimate Bar Statistics').
- **Interaction Skewness (Dark Grey):** Asymmetry caused by the
correlation between price levels and volatility (e.g.,
volatility expanding as price moves in one direction).
*Dominance of this component indicates an unstable, emotional market.*
2. **Visual Decomposition Logic:** Total Skewness is the
primary metric displayed. Since statistical moments are additive,
this indicator calculates the *exact* Total Skewness and partitions
the area to visualize the contribution (weight) of each
structural source to the overall market bias.
3. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *total* skewness as a
stacked area chart, allowing to see the magnitude of tail risk.
Stacking logic groups components with the same sign to ensure
visual clarity.
- **Relative Mode:** Displays the direct *contribution ratio*
(proportion) of each component relative to the total sum,
ideal for identifying the dominant driver of asymmetry.
4. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
transforms inputs into logarithmic space, analyzing the
skewness of *returns* rather than absolute prices.
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and moment calculations,
emphasizing high-participation moves.
5. **Skewness Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (peaks/valleys) in
the *total* skewness line. This helps identify extremes in
market sentiment or structural bias.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
6. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
7. **Multi-Timeframe (MTF) Capability:**
- **MTF Skewness Lines:** The skewness lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
8. **Integrated Alerts:** Includes comprehensive alerts for:
- Skewness magnitude (High Positive / High Negative).
- Skewness character changes/emerging/fading.
- Total Skewness pivot (High/Low) detection.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Volume Weighted LR CorrelationThis indicator analyzes the structural relationship between two
assets by decomposing the Total Correlation into three distinct,
interpretable components using a Weighted Linear Regression model
and a Hybrid Copula Estimator.
Key Features:
1. **Hybrid Copula Estimator:** Unlike standard correlation, which
often fails on High/Low range data, this indicator fuses two
metrics to ensure mathematical rigor:
- **Magnitude:** Derived from Rogers-Satchell Volatility (robust to trend).
- **Direction:** Derived from Log-Returns.
This allows for precise correlation estimates even on intra-bar data.
2. **Three-Component Correlation Decomposition:** The indicator
separates correlation based on the 'Estimate Bar Statistics' option.
- **Standard Mode (`Estimate Bar Statistics` = OFF):** Calculates
correlation based on the selected `Source`.
- **Decomposition Mode (`Estimate Bar Statistics` = ON):** The
indicator uses a statistical model ('Estimator') to
calculate *within-bar* correlation.
This separates the relationship into:
- **Trend Correlation (Green/Red):** Correlation of the regression
slopes. Indicates if assets are trending in the same direction.
- **Residual Correlation (Yellow):** Correlation of the noise
around the trend (Cointegration). Indicates if assets
mean-revert together, even if trends differ.
- **Within-Bar Correlation (Blue):** Correlation of the
microstructure (intra-bar volatility).
3. **Visual Decomposition Logic:** Total Correlation is the
primary metric displayed. Since Correlation Coefficients are not
linearly additive, this indicator calculates the *exact* Total
Correlation and partitions the area/ratios based on the additive
Covariance Decomposition. This ensures the displayed total
correlation remains mathematically accurate.
4. **Dual Display Modes:** The indicator offers two modes to
visualize this decomposition:
- **Absolute Mode:** Displays the *Total Correlation* as the main
line, with the background filled by the stacked components
(Trend, Residual, Within). Shows the *magnitude* of the relationship.
- **Relative Mode:** Displays the **Energy Ratios** (-1.0 to 1.0)
of each component using L1-Normalization. This isolates the
*structure/quality* of the relationship (e.g., "Is the
correlation driven by Trend or just by Noise?").
5. **Calculation Options:**
- **Normalization:** An optional 'Normalize' setting
calculates an **Exponential Regression Curve** (log-space),
creating a constant percentage variance environment. Essential
for comparing assets with different scales (e.g., BTC vs EURUSD).
- **Volume Weighting:** An option (`Volume weighted`) applies
volume weighting to all regression and covariance calculations.
6. **Correlation Cycle Analysis:**
- **Pivot Detection:** Includes a built-in pivot detector
that identifies significant turning points (highs and lows) in
the *Total Correlation* line.
- **Flexible Pivot Algorithms:** Supports various underlying
mathematical models for pivot detection provided by the
core library.
7. **Note on Confirmation (Lag):** Pivot signals are confirmed
using a lookback method. A pivot is only plotted *after*
the `Pivot Right Bars` input has passed, which introduces
an inherent lag.
8. **Multi-Timeframe (MTF) Capability:**
- **MTF Correlation Lines:** The correlation lines can be
calculated on a higher timeframe, with standard options
to handle gaps (`Fill Gaps`) and prevent repainting
(`Wait for...`).
- **Limitation:** The Pivot detection (`Calculate Pivots`) is
**disabled** if a Higher Timeframe (HTF) is selected.
9. **Integrated Alerts:** Includes comprehensive alerts for:
- Correlation magnitude (High Positive / High Inverse).
- Correlation character changes/emerging/fading.
- Total Correlation pivot (High/Low) detection.
---
**DISCLAIMER**
1. **For Informational/Educational Use Only:** This indicator is
provided for informational and educational purposes only. It does
not constitute financial, investment, or trading advice, nor is
it a recommendation to buy or sell any asset.
2. **Use at Your Own Risk:** All trading decisions you make based on
the information or signals generated by this indicator are made
solely at your own risk.
3. **No Guarantee of Performance:** Past performance is not an
indicator of future results. The author makes no guarantee
regarding the accuracy of the signals or future profitability.
4. **No Liability:** The author shall not be held liable for any
financial losses or damages incurred directly or indirectly from
the use of this indicator.
5. **Signals Are Not Recommendations:** The alerts and visual signals
(e.g., crossovers) generated by this tool are not direct
recommendations to buy or sell. They are technical observations
for your own analysis and consideration.
Compression Dashboard & EMA Tracker by Herman Sangivera (Papua)Compression & EMA Probability Tracker By Herman Sangivera ( Papua )
Overview
The Compression & EMA Probability Tracker is a specialized price action tool designed to identify "Compression" (CP) zones—areas where price volatility narrows, and liquidity is systematically cleared. These zones often precede explosive breakouts or sharp reversals.
By integrating EMA 9 (Fast) and EMA 21 (Slow), this indicator analyzes the current trend momentum within the compression box and provides a real-time probability assessment of whether the market is likely to continue its trend or undergo a reversal.
How It Works
Compression Detection: Using a lookback period and an ATR-based threshold, the script automatically highlights periods of low volatility with a gray background box. This represents the "coiling" effect of the market.
Trend Alignment (EMA 9/21): * If EMA 9 > EMA 21 and price remains above them, the trend is considered bullish.
If EMA 9 < EMA 21 and price remains below them, the trend is considered bearish.
Real-Time Dashboard: A sleek on-chart panel displays:
Current Status: Identifies Rally, Drop, or Reversal warnings.
Continuation Probability (%): Likelihood of the current trend resuming after the breakout.
Reversal Probability (%): Likelihood of a trend change based on EMA crossovers inside the box.
Key Features
Automatic Box Plotting: Visually defines the range of the compression.
Dynamic Dashboard: High-visibility panel showing trend strength and probabilities.
Highly Customizable: Adjust EMA lengths, ATR sensitivity, and dashboard position to fit your trading style.
How to Trade with this Indicator
Trend Continuation: Look for a breakout in the direction of the EMA alignment (e.g., price breaks above the box while EMA 9 is above EMA 21). This is high-probability when the dashboard shows >70% Trend Probability.
Reversal: Watch for the price to cross back into the box and for the EMA 9 to cross the EMA 21. This shift in momentum often signals a trap or a trend exhaustion.
Disclaimer: This indicator is for educational and analytical purposes only. Trading involves significant risk, and past performance (probabilities) does not guarantee future results. Always use proper stop-loss management.
F&O Last 15-min candle closes below the FIRST 15-min candle close of the day
Price distance from SMA-20 is between 5% and 8% (absolute distance)
JOWY LA VERDADERA ESTRUCTURABasically it is an indicator that perfectly represents the typical BoS Market structure in the fastest way. It is advisable to study several temporalities at the same time and not focus on just one.
Hedge Fund Session Ranges [GMT+2] - Multi-Timezone TrackingOverview
This professional-grade tool is designed for institutional-style trading, specifically focusing on the Liquidity Cycles of the global markets. It allows traders to visualize key trading windows (Asia, Europe, and US) with precision, using a fixed GMT+2 offset—ideal for traders aligned with Middle Eastern or Eastern European timezones.
Key Features
Triple Session Tracking: Includes pre-defined windows for Asia, London Morning, and NY Afternoon.
Dynamic Box Scaling: Automatically calculates and visualizes the High/Low range of each session in real-time.
GMT+2 Optimization: Built-in timezone handling to ensure your charts align perfectly with local bank hours.
Clean Visuals: Minimalist design to avoid chart clutter, allowing for clear price action analysis.
Why Trade Sessions?
Institutional volume isn't distributed evenly throughout the day. By identifying the Asian Range (01:00-06:00), the London Open (10:00-12:00), and the NY Reversal/Trend (16:30-18:30), traders can identify "Liquidity Grabs" and "Expansion Phases" more effectively.
Iron Fly 0DTE StrategyOverview
This indicator identifies optimal entry and exit points for 0DTE (zero days to expiration) Iron Fly options strategies on SPX. It uses a combination of DMI (Directional Movement Index) regime classification and ATR (Average True Range) volatility measurement to determine when market conditions favor non-directional premium selling.
An Iron Fly is a neutral options strategy that profits when price stays near a central strike. This indicator automates the decision of WHEN to enter and at WHAT strikes, based on quantifiable market conditions rather than discretionary judgment.
How It Works
Market Regime Classification
The core logic uses DMI and ADX to classify market conditions into four regimes:
SAFE - ADX below 25 AND DI Spread below 20: Low directional momentum, ideal for Iron Flies
CAUTION - ADX below 35 AND DI Spread below 30: Moderate conditions, wider wings recommended
WARNING - ADX below 45 OR DI Spread below 45: Elevated risk, no new entries
NO ENTRY - ADX above 45 AND DI Spread above 45: Strong trend, avoid premium selling
The DI Spread is calculated as the absolute difference between DI+ and DI-. A low spread indicates balanced buying and selling pressure, which favors range-bound price action.
Dynamic Wing Width Calculation
Wing width (the distance between the short strikes and protective long strikes) is calculated dynamically using:
Wing Width = ATR(14) × Multiplier × Late Session Factor
The multiplier varies by Entry Aggressiveness setting (5x to 7x ATR). Wings are widened by 20% in CAUTION regime for additional protection. Late in the session (after 50% elapsed), wings narrow by up to 20% as less time remains for adverse moves.
Wing width is bounded between 15 and 50 points and rounded to the nearest 5-point strike.
Entry Logic
New positions open when:
Market regime is SAFE or CAUTION
Current open positions are below the maximum limit
Daily trade count is below the daily limit
Price has moved sufficiently from the last entry (trigger distance)
No existing position at the calculated strike
Exit Logic
Positions close when price exceeds a dynamic exit threshold:
Exit Threshold = Wing Width × (Base Exit Percent + Time Decay Bonus)
The Base Exit Percent varies by Exit Aggressiveness (50% to 80%). The Time Decay Bonus increases throughout the session (0% to 25%), allowing wider tolerance as theta decay works in your favor.
What Makes This Original
This indicator differs from simple moving average or RSI-based approaches by:
Using DMI spread (not just ADX) to measure directional balance, which better identifies consolidation
Dynamically sizing wings based on current ATR rather than fixed widths
Adjusting exit tolerance based on session progress to account for theta decay
Implementing regime-based position management that automatically steps aside during trending conditions
Providing complete strike calculations for the 4-leg Iron Fly structure
Settings Guide
Strategy Settings
Entry Aggressiveness - Controls how often new trades open. LOW: fewer trades, wider wings, more selective. MID: balanced. HIGH: more trades, tighter wings.
Exit Aggressiveness - Controls how long positions are held. LOW: exits early at 50% of wing. MID: exits at 65% plus time bonus. HIGH: holds longer, exits at 80%.
Max Concurrent Flies - Maximum simultaneous open positions (1-5). Start with 1-2.
Max Trades Per Day - Daily limit to prevent overtrading (3-30).
Session Settings
Session Start/End - Trading hours in Eastern Time. Default 10:00-16:00.
How to Use
Add indicator to SPX chart (1-5 minute timeframe recommended)
Create alert with condition "Any alert() function call"
When OPEN alert fires, execute the 4-leg Iron Fly in your broker at the specified strikes
When CLOSE alert fires, close the position
Always verify the premium collected justifies the risk before entering
Alert Messages
OPEN alerts provide: Strike price, wing width, and all four leg strikes (short call, short put, long call, long put).
CLOSE alerts provide: Strike price and exit reason (price exceeded threshold or session ended).
Status Panel
The on-chart panel displays:
Positions - Current open count vs maximum
Market - Current regime classification
Wings - Current calculated wing width
Exit @ - Current exit threshold distance
Trades - Daily trade count vs limit
Limitations
Designed specifically for SPX 0DTE options; may not suit other underlyings
Does not account for bid-ask spreads or execution slippage
Market regime classification may lag during rapid regime changes
Past performance of signals does not guarantee future results
Requires manual execution in your options broker
Best Conditions
This strategy performs best during:
Range-bound, choppy market conditions
Normal volatility days (avoid major news events)
Regular trading hours (10 AM - 4 PM ET)
Avoid using during:
Strong trending days
FOMC announcements, CPI releases, earnings
Pre-market or after-hours
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice.
Options trading involves substantial risk of loss
Iron Flies can result in losses up to the wing width minus premium collected
Past indicator signals do not guarantee future performance
Always understand your maximum risk before entering any trade
Never risk more than you can afford to lose
Conduct your own research and consider consulting a financial advisor
Simple EFI + EMASimple Elder Force Index (EFI) with EMA Signal is a minimal momentum indicator that measures buying and selling pressure by combining price change and volume. The raw Force Index is smoothed with an Exponential Moving Average to reduce noise, and an additional EMA signal line helps visualize momentum shifts and trend strength. A zero line is included to quickly distinguish bullish (> 0) from bearish (< 0) conditions. This stripped-down version is designed for clarity and fast decision-making without extra filters or alerts.
Custom Step Bar CountHere is a professional description for your TradingView script, suitable for the "Description" field when publishing.
I have provided two versions: a **Standard Version** (detailed and professional) and a **Short Version** (concise).
### Option 1: Standard Version (Recommended for Publishing)
**Title:** Custom Step Bar Count
**Description:**
This indicator is an advanced bar counting tool designed for traders who need to track time cycles or specific bar sequences with custom arithmetic progressions. Unlike standard counters that simply display "1, 2, 3," this script allows you to decouple the **display frequency** from the **displayed value**.
The counter automatically resets at the beginning of every new trading day.
**Key Features:**
* **Custom Display Interval:** Choose how often a label appears (e.g., every 5 bars).
* **Custom Number Increment:** Define the value step for the displayed numbers (e.g., count by 3s).
* **Daily Reset:** The count restarts automatically at the beginning of each session.
* **Visual Customization:** Adjust label size and text color to fit your chart theme.
**How it works (Example):**
If you want to track a cycle where every **5th** bar represents a value of **3**:
1. Set **Display Every X Bars** to `5`.
2. Set **Number Increment** to `3`.
**Result:**
* Bar 5 shows label "**3**"
* Bar 10 shows label "**6**"
* Bar 15 shows label "**9**"
This is particularly useful for specific time-based strategies, Gann analysis, or backtesting setups that require non-linear counting.
---
### Option 2: Short Version (Concise)
**Title:** Custom Step Bar Count
**Description:**
A flexible bar counting utility that resets daily. This script allows you to customize both the frequency of the labels and the numeric step value.
**Settings:**
* **Display Every X Bars:** Controls the gap between labels (e.g., every 5th bar).
* **Number Increment:** Controls the number sequence (e.g., increments of 3).
**Example:**
With an interval of **5** and an increment of **3**, the script will display:
* 5th Bar: **3**
* 10th Bar: **6**
* 15th Bar: **9**
Includes options for text color and label size. Updated for Pine Script v6.
Moon Phases Final Moon Phases Visualizer DescriptionThis script is a comprehensive tool for traders who incorporate lunar cycles into their analysis. Unlike many basic indicators, this one is optimized for Pine Script v6 and utilizes a precise astronomical calculation based on the synodic month cycle ($29.53059$ days).The indicator helps identify potential "turn window" periods often associated with New Moons and Full Moons in financial astrology and cyclical analysis.Key FeaturesDual Visualization: Displays a smooth lunar cycle oscillator ($0-100\%$) in a separate pane while simultaneously plotting phase labels directly on the price chart.Smart Overlays: Using the latest force_overlay technology, the script keeps your price scale clean while showing Moon emojis (🌕/🌑) and an info table in the main area.Real-time Tracking: An elegant dashboard in the top-right corner shows the current phase percentage and status at a glance.Full Moon & New Moon Alerts: Visual signals are generated at the exact peak of the cycle, making it easy to spot historical correlations with price reversals or volatility spikes.How to read it:🌕 Full Moon (50%): Often associated with high volatility or local price extremes.🌑 New Moon (0%/100%): Often marks the beginning of a new cycle or a potential trend exhaustion.The Curve: Watch the oscillator to anticipate approaching lunar events before they happen.Technical DetailsThe calculation is anchored to a high-precision historical New Moon timestamp (January 6, 2000), ensuring the phase accuracy remains consistent even when scrolling back through years of historical data.
Disclaimer: This indicator is for educational and entertainment purposes only. Lunar cycles are a part of financial astrology and cyclical analysis, but they should not be used as a standalone signal for trading. Past performance does not guarantee future results. Always use proper risk management and combine this tool with other technical or fundamental analysis methods. Not financial advice.
M5_Bull/Bear BBOM5_ Bull/Bear BBO is a derivative oscillator built from LuxAlgo’s original Bollinger Bands Breakout Oscillator (BBO).
This version restructures the original breakout logic into a bull / bear adaptive oscillator, introduces inverted symmetry, and expands the visual system with dynamic level states and conditional color logic. The goal is to provide contextual momentum awareness rather than discrete trade signals.
A key design focus is the interaction between dominant pressure and the absence of opposing pressure. Buying and selling pressure may coexist, but moments where opposing pressure fully dissipates are treated as structurally significant — a “door opening” condition where price is no longer constrained by counter-pressure and is free to expand.
Pressure is explicitly mirrored from the opposite side, creating a symmetrical framework where each side’s expansion is reflected against the other. These mirrored structures are allowed to cross, not as directional signals, but as markers of peak intensity or exhaustion within an expanding pressure phase.
Transitional regimes — where one pressure fades before the other fully emerges — are intentionally left visible rather than smoothed away. These areas often produce late confirmation or no follow-through at all, and are presented as a challenging but informative market state rather than a condition to be optimized away.
The script is intended for visual analysis and context alignment, not as a standalone entry/exit system.
Credits & Licensing
Original concept and base implementation: LuxAlgo
Modifications, restructuring, and visual system: Metaltek5
License: Creative Commons Attribution–NonCommercial–ShareAlike 4.0 (CC BY-NC-SA 4.0)
This script is published as open source under the same license as the original work.
Non-commercial use only. Attribution and share-alike required.
Annotated example illustrating dominant pressure, mirrored behavior, and door opening conditions
Weekday Separator Pro (Mon & Fri Highlight)This indicator draws vertical separators at the start of each trading day
and displays weekday labels on intraday charts.
• Monday is highlighted in green
• Friday is highlighted in red
• Other weekdays use a neutral color
It helps traders visually analyze weekday-based market behavior,
range formation, and intraday structure.
Suitable for intraday trading on indices like Nifty and Bank Nifty.
Inside Bar Zones by AAK (V6)📦 Smart Inside Bar Zones
Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.
Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.
🔍 Key Features
Automatic Inside Bar Detection
Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.
Smart Zone Creation
Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.
Unlimited Historical Storage (Data)
All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.
Safe & Optimized Drawing
Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.
Highlight Inside Bars
Optional candle coloring for quick and clear visual confirmation.
Flexible Display Options
Show only the latest zone
Or display multiple zones with automatic recycling
📈 How Traders Use It
Identify consolidation before expansion
Spot compression zones for breakout or fakeout scenarios
Combine with SMC, order flow, support & resistance, or liquidity concepts
Use higher-timeframe zones for directional bias
Use lower-timeframe zones for entries and scalps
⚠️ Important Notes
This indicator does not predict direction — it highlights structure
Zones represent price balance, not buy or sell signals
Best used in confluence with your trading strategy and risk management
🧠 Designed For
Price action traders
SMC / market structure traders
Forex, crypto, indices, and futures
Any timeframe
⚠️ Risk Disclaimer
This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.
UM Multi MA type, Directional Colors + Flip LabelsSummary
UM Multi MA is a multi–moving average trend overlay supporting SMA, EMA, WMA, HMA, KAMA, DEMA, and TEMA. Each MA is colored by slope direction, displays clean right-side Flip prices, and optionally adds price↔MA fills, bar/candle coloring, and alerts for MA direction changes.
⸻
Description
This indicator plots up to five independently configurable moving averages directly on the price chart. Each MA is colored green when rising and red when falling, based on its current slope.
On the last bar only, an optional right-side label displays the MA’s projected Flip price calculation:
• If the MA is currently green (rising), the label is green and shows
“Flip red @ ”
• If the MA is currently red (falling), the label is red and shows
“Flip green @ ”
The script also supports optional price↔MA fills, optional bar/candle coloring driven by any selected MA, and alerts when MA slope direction changes.
⸻
Features
• Up to five moving averages (MA1–MA5), each with independent Enable, Length, and Type settings
• Supported MA types: SMA, EMA, WMA, HMA, DEMA, TEMA, KAMA
• Directional MA coloring (green rising / red falling)
• Right-side labels (last bar only), indicator at what price MA will flip color
MA# TYPE LEN Flip red/green @ target price
• Optional price↔MA fill (user-selectable MA)
• Green fill when price > selected MA and MA is rising
• Red fill when price < selected MA and MA is falling
• Optional bar/candle coloring driven by any selected MA
• Alerts:
• Dropdown alertconditions (visible in the TradingView alert menu)
• Optional dynamic alert() messages that include MA type and length
⸻
Default Values
• Source: Close
• MA1: Enabled, EMA 8, Right-side label ON
• MA2: Enabled, EMA 21, Right-side label OFF
• MA3: Enabled, EMA 50, Right-side label OFF
• MA4: Enabled, EMA 100, Right-side label OFF
• MA5: Enabled, EMA 200, Right-side label OFF
• Label offset: 10 bars
• Price↔MA fill: OFF
• Fill MA: MA1
• Fill transparency: 90
• Candle coloring: OFF
• Color bars using: MA1
• Bar transparency: 0
• Alerts:
• Dropdown alertconditions ON
• Dynamic alert() messages OFF
• MA1 Bull/Bear alerts enabled by default
• MA2–MA5 alerts disabled by default
⸻
Suggested Uses
• Trend Regime Filtering
Use MA200 or MA100 to define bull vs bear regimes, then MA8 or MA21 for trade timing.
• Flip Target Awareness
Use the right-side Flip label as a quick visual reference for where MA slope direction is projected to change.
• Alignment Confirmation
Enable fills and/or candle coloring using your “decision MA” (commonly MA21 or MA50) to maintain consistency.
• Alerting Workflow
Use dropdown alertconditions for standard alerts.
Enable dynamic alerts only if you want messages that include MA type and length (alert type: Any alert() function call).
• KAMA for Chop Reduction
Try KAMA on MA21 or MA50 to reduce noise while staying responsive in trends.
• Faster MA Options (DEMA / TEMA)
Use DEMA or TEMA on MA8 or MA21 for earlier flips, understanding they are more sensitive in sideways markets.
• Volatility Expansion Awareness
Watch for periods where multiple MAs compress tightly; these often precede volatility or price expansion.
• Trade Execution Ideas
Red → green transitions may be used for entries or add-ons.
Green → red transitions may be used for exits or risk reduction.
• Multi-Timeframe Analysis
The author commonly uses Daily and 6-Hour timeframes together.
• MA Stretching Across Timeframes
If you like an 8-period MA on the Daily, try its longer equivalent on lower timeframes (for example, ~55 on the Hourly).
• Indicator Stacking
Designed to pair well with momentum, volatility, and market-structure indicators.
SMA Multi-Sync Granville & MTF CounterSMA Multi-Sync Granville & MTF Counter
Overview
This indicator is an environmental awareness tool that identifies when and to what level moving averages (SMAs) across multiple time frames align in the same direction, visualizing the timing and freshness of the trend.
Its greatest feature is that it does not simply determine synchronization; rather, it precisely distinguishes the time frame upon which synchronization is completed using the number of stars (★).
Key Features
1. Calculation of "Stars" Based on Confirmed Time Frame Trigger
The number of stars displayed upon synchronization completion indicates the signal's "temporal weight."
★ (1): Synchronization is completed upon confirmation of the displayed time frame.
★★ (2): Synchronization is completed upon confirmation of the next higher time frame (e.g., 15 minutes).
★★★ (3): Synchronization is completed upon confirmation of the next higher time frame (e.g., 1 hour). The more higher the time frame is confirmed, the more powerful the trend reversal or regression it acts as.
2. MTF Sync Panel
The table on the right side of the screen displays the price position (background) and MA direction (text) for each level (displayed to daily) in real time.
By watching the background and text colors match, you can understand the accumulation of energy before a star appears.
3. Cross Counter
The number of bars elapsed from the synchronization starting point (MA crossover, etc.) to the current bar is displayed numerically in the lower right corner.
The closer to "0" the number, the more likely it is the beginning of a trend, while the higher the number, the more likely it is the end of the trend (expiration date).
Usability of Input Settings
Min Stars (1-5) This sets the signal cutoff. Setting it to "2" eliminates noise caused by the displayed bar being confirmed and narrows down to only the moment when the higher bar is confirmed (★2 or higher).
Cancel Alert if MA Slope Same If the MA of the displayed time frame is already leaning in the same direction (leading), the confirmation (★1) on that time frame will be considered "not an initial move" and excluded.
5m TF: Use 30m SMA When using 5-minute time frames, this physically changes the ★2 trigger from the confirmation on the 15-minute chart to the confirmation on the 30-minute chart. This is effective when targeting milestones on larger time frames.
*If you have any questions about how to use this, please ask in the comments.
SMA Multi-Sync Granville & MTF Counter
概要
本インジケーターは、複数の時間足の移動平均線(SMA)が「いつ、どの階層まで同じ方向に揃ったか」を特定し、そのトレンドの**「確定タイミング」と「鮮度」**を可視化する環境認識ツールです。
最大の特徴は、単なる同調判定ではなく、**「どの時間足の確定(Close)によって同期が完成したか」**を星(★)の数で厳密に区別する点にあります。
主な機能
1. 確定足トリガーによる「星」の算出
同期が完成した瞬間に表示される星の数は、そのシグナルの「時間的な重み」を示します。
★(1つ):表示足の確定により同期が完成。
★★(2つ):1つ上の上位足(15分等)の確定により同期が完成。
★★★(3つ):2つ上の上位足(1時間等)の確定により同期が完成。 上位の足が確定する節目ほど、より強力なトレンドの転換・回帰として機能します。
2. MTF同期パネル
画面右側のテーブルで、各階層(表示足〜日足)の「価格の位置(背景)」と「MAの向き(文字)」をリアルタイムに表示します。
背景色と文字色が一致していく過程を見ることで、星が出る前の**「エネルギーの蓄積」**を把握できます。
3. クロスカウンター
同期の起点(MAクロス等)から、現在の足まで何本経過したかを右下に数値で表示します。
「0」に近いほど初動であり、数値が大きくなるほどトレンドの終盤(賞味期限切れ)である可能性を論理的に示唆します。
インプット設定の使い勝手
Min Stars (1-5) シグナルの足切り設定です。「2」に設定すれば、表示足の確定によるノイズを排除し、**上位足の確定が伴った瞬間(★2以上)**のみに絞り込めます。
Cancel Alert if MA Slope Same 表示足のMAがすでに同方向へ傾いている(先行している)場合、その足での確定(★1)を「初動ではない」とみなして除外します。
5m TF: Use 30m SMA 5分足運用時、★2のトリガーを「15分足」から「30分足」の確定に物理的に変更します。より大きな時間軸の節目を狙う場合に有効です。
※使い方が不明なところはコメントで聞いてください。
OTT + Supertrend - cift Teyit v3OTT + Supertrend Strategy - Brief Explanation
This is a technical analysis strategy combining two popular trend-following indicators:
OTT (Optimized Trend Tracker):
Uses VAR moving average and ATR (Average True Range)
Tracks price movements in an optimized way
Determines trend direction and strength
Supertrend:
ATR-based indicator
Creates dynamic support/resistance levels above or below price
Green line indicates uptrend, red line indicates downtrend
Combined Usage:
Provides strong trend confirmation when both indicators signal the same direction
OTT green + Supertrend green = Buy signal
OTT red + Supertrend red = Sell signal
Reduces false signals and confirms trend strength
Advantages: Double confirmation system, more reliable entry-exit points, early warning on trend changes
Caution: May generate false signals in sideways markets, should be supported with additional indicators.
GLD Overlay on GCPlots GLD levels on GC
Uses live GLD + live GC during GLD premarket→after-hours (04:00–20:00 NY, Mon–Fri)
Outside that window, it holds the last ratio from the prior daily close
Updates lines after "min_move"
Draws a grid of GLD $1 levels (±N) mapped into GC space






















