EMA/SMA Market Indicator V1 (Situational Awareness Uptrend)Red condition (highest priority in code)
Background = red if any of these are true:
Close < 10MA
OR Close < 20MA
OR (10MA and 20MA slopes ≤ threshold → “flat/down”)
Green condition (only if not red)
Background = green if:
(Close > 10MA or Close > 20MA)
AND Close > 50MA
Otherwise = nothing (transparent)
If neither red nor green is true → background is off.
So when is there no background?
Close is not below 10MA
Close is not below 20MA
MAs are not both flat/down
AND the price fails the “green test” (ex. under 50MA, or not above 10/20).
Rata-Rata Pergerakan / Moving Averages
Flat Day PredictorAdvanced technical indicator that predicts low-volatility "flat" trading days using multi-factor analysis. Designed for day traders and scalpers who need to identify when markets are likely to trade sideways.
Key Features:
Real-time flat day probability calculation (0-100%)
8-factor scoring system combining volatility, volume, and momentum indicators
Visual table displaying all indicator values and overall signal strength
Color-coded alerts for high-probability flat day signals
Works on all timeframes, optimized for intraday trading
Indicators Analyzed:
VIX volatility levels
Bollinger Band width compression
RSI momentum neutrality
ATR trend declining
Volume below average
Daily range percentage
Price action patterns
Market regime detection
Signal Levels:
75%+ = VERY HIGH flat probability (Red alert)
62-74% = HIGH flat probability (Orange)
50-61% = MODERATE flat probability (Yellow)
Below 50% = Trending day likely (Green)
Usage:
Add to any chart and monitor the probability percentage. Higher scores indicate increased likelihood of sideways price action. Use for position sizing, strategy selection, and risk management during low-volatility periods.
MA“5 / 10 / 20 / 60 / 240 Moving Averages, with a red background automatically highlighted when MA5 > MA10 > MA20.”
AlgoPilotX - Market Stages (VWMA + Reversals) v1Version Note:
This is a revised and improved version of the AlgoPilotX - Market Stages (VWMA + Reversals). It includes expanded explanations of the underlying logic, variable usage, and originality to comply with TradingView guidelines.
AlgoPilotX - Market Stages (VWMA + Reversals) helps traders quickly identify the current market stage and possible r eversal points using Volume-Weighted Moving Averages (VWMA) combined with staged market logic. It is original code that goes beyond standard moving averages by categorizing market conditions into actionable phases, supported by visual panels, banners, and alerts.
How It Works
The indicator calculates three VWMAs (defaults: 8, 21, 34). VWMA is a moving average weighted by volume, which gives more importance to high-volume bars. This makes it more responsive than a simple or exponential moving average in markets where volume is an important driver.
The script then compares the stacking order and the price position relative to VWMA1 to determine the stage:
Acceleration (Light Green):
VWMA1 > VWMA2 > VWMA3 and price > VWMA1 → strong bullish momentum.
Accumulation (Silver):
Price > VWMA1 but without bullish stacking → base-building phase.
Distribution (Orange):
Price < VWMA1 but without bearish stacking → topping or weakening trend.
Deceleration (Light Red):
VWMA1 < VWMA2 < VWMA3 and price < VWMA1 → strong bearish momentum.
In addition, reversals are flagged:
Bullish Reversal (↑ Green): price crosses above VWMA1.
Bearish Reversal (↓ Red): price crosses below VWMA1.
This dual-stage logic (trend stage + reversal detection) provides both macro context (trend direction) and micro triggers (reversal arrows).
Visual Features
Stage Info Box: Panel listing all stages with fixed colors.
VWMA Info Box: Panel showing live VWMA values.
Banner: Bold, highlighted “★ CURRENT STAGE” label (Top Right default) with thick border.
Reversal Arrows: Big, configurable arrows plotted near candles for reversals.
User Inputs & Customization
The script provides flexible inputs so traders can tailor it to their chart style:
VWMA 1/2/3 Lengths → control sensitivity of the three VWMAs.
Display Mode → Chart (full overlay) or Panel (histogram).
Stage Info Box / VWMA Info Box / Banner toggles → enable or hide visuals.
Positions → move Info Boxes or Banner to any chart corner/center.
Transparency Controls → adjust background opacity for Banner and Info Boxes.
Info Box Text Size → choose Tiny, Small, Normal, or Large fonts.
Reversal Arrows → customize size (Tiny–Huge) and vertical offset (% of candle height).
How to Use
Follow the banner and VWMA line color to read the active market stage.
Watch for arrows as potential reversal signals.
Combine with other tools for confluence.
This indicator also pairs well with the AlgoPilotX – Breakout & Breakdown Meter, since Market Stages provides trend context while the Breakout Meter measures momentum strength, together improving timing and conviction.
Best Practices Workflow
Here are some practical ways to use this indicator effectively:
Multi-Timeframe Context:
Use Market Stages on the Daily chart to determine broader trend bias.
Drop down to a 15m or 1h chart to time entries with reversals or breakouts.
Stage + Momentum Confirmation:
Enter trades when Market Stages shows Acceleration and Breakout Meter confirms breakout strength.
This helps avoid false breakouts during weak market conditions.
Risk Management:
Trade only when stage + reversal arrow align.
Avoid initiating trades during Distribution/Deceleration unless shorting.
Use VWMA values from the Info Box for dynamic stop-loss levels.
Neutral Periods:
If the banner shows Accumulation or Distribution , reduce size or wait for clearer alignment. These often precede large moves.
Technical Notes for Pine Coders
This script is structured in layers so developers can easily extend or modify it:
VWMA Calculation →
vwma1, vwma2, vwma3 are the fast, medium, and slow averages.
Stacking Conditions →
bullishStack, bearishStack check VWMA alignment.
Stage Booleans →
acceleration, accumulation, distribution, deceleration determine market state.
Reversal Conditions →
bullishReversal, bearishReversal check crossovers of price vs VWMA1.
Stage Color Assignment →
stageColor unifies the visual theme (VWMA line, banner background).
Helper Function →
drawRow() simplifies table formatting for Info Boxes.
Info Boxes →
infoTbl → Stage Info Box
vwmaTbl → VWMA Info Box
Banner →
bannerTbl holds the bold ★ CURRENT STAGE display, background-colored by stage.
Reversal Arrows →
label.new() places large configurable arrows near candles.
Alerts →
alertcondition() for every stage + reversal, enabling automation.
Example Extension for Pine Coders
Want to make Acceleration stricter by requiring RSI > 50? Here’s how:
rsi = ta.rsi(close, 14)
acceleration = bullishStack and close > vwma1 and rsi > 50
This modification combines trend alignment (VWMA stacking) with momentum confirmation (RSI).
Coders can follow the same pattern to integrate other filters like ATR, volume thresholds, or higher-timeframe conditions.
Why This Script Is Original
This indicator is not a simple rehash of built-ins. It contributes original value to the TradingView community because:
Unique Market Stage Logic → Combines VWMA stacking with price-relative conditions to define four distinct market phases (Acceleration, Accumulation, Distribution, Deceleration). This staged framework is not part of Pine’s built-in indicators.
Integrated Reversal Detection → Adds crossover-based reversal signals directly into the stage framework, making it a dual-layer system (trend + micro shifts).
Unified Color & Visual Design → VWMA lines, Info Box, and Banner are all dynamically color-linked to the stage, providing consistent visual feedback that standard indicators lack.
Customizable UI Panels → Movable, resizable Stage Info Box and VWMA Info Box, plus a bold Banner with thick borders — all implemented via table.new() with a helper function (drawRow()) for clarity. This goes beyond the simple plotting of moving averages.
Trader-Centric Features → Large configurable arrows, transparency controls, and font-size options allow users to adapt the script to different workflows and charting styles.
Educational Value → Includes modular, well-commented code and helper functions that Pine coders can extend. The script doubles as a learning tool for newer coders.
Practical Integration → Designed to pair naturally with other AlgoPilotX tools (e.g., Breakout & Breakdown Meter), giving traders a complementary system for stage + momentum confirmation.
Together, these make the script original, useful, and educational — fully aligned with TradingView’s publication guidelines.
⚠️ Disclaimer
This script is provided for educational purposes only. It is not financial advice and should not be considered a recommendation to buy or sell any financial instrument. Trading involves risk, and you are responsible for your own decisions.
Distance from 200 EMA (HUD & Multi-Timeframe)What it does:
A minimal, on-chart heads-up display that shows the real-time percentage distance between price and the 200-period EMA on your current timeframe. No lower pane, no clutter—just a small box in the top-right with “Distance from 200 EMA” and the live % value.
Why it’s useful:
Quickly quantify trend and extension: positive values = price above the 200 EMA; negative values = below.
Spot overextension and potential mean-reversion zones without measuring by hand.
Keep the chart clean while maintaining constant awareness of how stretched price is from the long-term mean.
How it works
The indicator calculates (Close − EMA(200)) / EMA(200) × 100 on whatever timeframe your chart is set to, then displays that percentage as a compact table overlay. It updates in real time as price and timeframe change.
Typical use cases
Trend filter: trade with the primary bias (above = long bias, below = short bias).
Extremes & pullbacks: define your own “extreme” thresholds (e.g., ±X%) to allow counter-trend fades or to anticipate pullbacks toward the EMA.
Multi-timeframe alignment: flip between H1/H4/D1 and instantly see extension on each timeframe.
Settings
EMA Length (default 200)
Decimals (rounding)
Color by sign (optional green/red background)
Notes
Works on any market and timeframe supported by TradingView.
The value is percentage distance, not pips or ticks.
Pair it with your price-action tools (swing highs/lows, liquidity levels) and volume/OI reads for higher-quality decisions.
Risk reminder
This is an information tool, not a signal generator. Manage risk strictly (I risk ≤1% per trade by default).
If you find this helpful:
❤️ Boost the script
⭐ Follow my profile for more tools
💬 Comment with feedback or feature ideas
🔗 Considering TradingView? Use my referral link tradingview.com/pricing/?share_your_love=Trading_Soldier to support the work—thank you!
Customizable MA 10/20/50/100/200Customizable EMA/SMA indicator. Select EMA (default) or SMA and support up to 5 timeframes.
FSVZO | Lyro RSFSVZO | Lyro RS
This script is a technical analysis tool called the FSVZO, or Fourier Smoothed Volume Zone Oscillator. It is designed to analyze market momentum and trend strength by combining price and volume data with advanced smoothing techniques. The goal is to help identify potential trends, overbought/oversold conditions, and divergence signals in a clear visual format.
Understanding the Indicator's Components
The indicator plots a main oscillator line and several supporting elements on a separate pane below the chart.
The Main Oscillator: This is the primary, colored wave. Its movement and color are key to interpretation.
Trend Direction: The color shifts between bullish and bearish tones based on the momentum of the oscillator. This provides a quick visual reference for the prevailing short-term trend.
Key Levels: Horizontal lines mark significant levels such as +60, +85, -60, and -85. Movements above +60 or below -60 can indicate strong momentum, while approaches to the extreme levels (+85/-85) may suggest overbought or oversold conditions.
Divergence Detection: The indicator can plot labels ("ℝ" for Regular, "ℍ" for Hidden) on the oscillator to signal potential divergences. These occur when the indicator's direction differs from the price action on the main chart and can sometimes foreshadow reversals or continuations.
Moving Average (MA): A central moving average line, based on the oscillator, helps to smooth out the data further and can act as a dynamic support or resistance level within the indicator pane.
White Noise Filter (Optional): This feature displays a histogram that represents market noise. It can be toggled on or off. Analyzing the histogram's behavior may provide additional context on the stability or volatility of the current trend.
Dynamic Background: The background of the indicator pane can change color to highlight periods where the momentum is particularly strong, based on the position of the moving average.
Suggested Use and Interpretation
Traders might use this indicator in several ways:
Trend Identification: Observe the color and position of the main oscillator. A predominantly bullish-colored oscillator above the zero line may suggest an upward trend, while a bearish-colored one below zero may suggest a downward trend.
Signal Confirmation: Look for the oscillator to cross key levels (like +/-40 or +/-60) in the direction of a suspected trend as a confirmation signal.
Divergence Analysis: When the price makes a new high or low that is not confirmed by a new high or low on the FSVZO oscillator (a divergence), it can be a warning of potential weakness in the trend. The "ℝ" and "ℍ" labels help to identify these scenarios.
Extreme Readings: Readings near the +85 or -85 levels can indicate that a price move may be overextended, which could precede a pause or reversal.
Customization Options
The indicator includes settings groups that allow you to adjust its behavior and appearance:
FSVZO Settings: Adjust parameters like Length and Sensitivity to make the oscillator more or less responsive to market movements.
Signals & Display: Modify visual aspects such as Smooth Length and Glowing Amount, or toggle features like the dynamic background on and off.
Colors: Choose from several pre-set color palettes to suit your visual preferences.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
10MAs + BB10 MAs riboon + Bollinger Bands
I used two basic Multiple MA ribbons. so I just merge them to one indicaotor
Disparity Index with 4 EMAsDisparity Index with 4 EMAs
(ema - close ) / ema * 100
or
(ema - close0 / close * 100
Ultra Simple ReversalThis is a simple script that combines Key Features:
✅ No plotting - Only text labels and candle color changes
✅ Reversal candle detection - Changes candle color on high-probability signals
✅ BUY/SELL text labels - Clear directional signals
✅ Four-module confluence - SSL + Squeeze + MTF Pivots + ORB Breakout
✅ Non-repainting - Reliable signals using proper security calls
✅ Pine Script v6 compatible - All syntax errors fixed
Guided Advisor with DXY ContextThis indicator will constantly will be looking for DXY direction in the background.
EMA Regime (9/20/50/100/200) — Stacked with 200 FilterEMA Regime (9/20/50/100/200) — Stacked Long/Short Box
Plots the 9, 20, 50, 100, and 200 EMAs on the chart.
Checks if price is above or below each EMA and whether the EMAs are stacked in order.
LONG signal: price above all selected EMAs and EMAs stacked 9 > 20 > 50 > 100 >(> 200 if strict mode on).
SHORT signal: price below all selected EMAs and EMAs stacked 9 < 20 < 50 < 100 (< 200 if strict mode on).
Shows a two-row table (LONGS / SHORTS) so you can quickly see which EMAs are aligned.
Optionally colors candles green/red when a full long/short regime is active.
Can show labels when a new LONG or SHORT condition appears.
Has alerts you can use for automated notifications when the regime flips.
“Use 200 EMA in the stack” lets you choose ultra-strict mode (9>20>50>100>200) or lighter mode (9>20>50>100 but price & 9 above 200).
TW All in OneIts a overlap strategy, giving signals for buy and sell.
Mostly suitable for Bank Nifty. Nifty and crude oil
Capitulation DayThe idea is that when US indexes are >10% below their 50,100,200sma it is a capitulation day.
MajorTop DeltaVol ma5-52wThe idea is to identify major tops on the weekly when both are above 0 at the same time; to look just for mkt tops.
Major tops use to drag on for a little with increasing volatility before crashing.
green is 5-52sma
fuchsia 3-9sma
Sma are on the candle's range ratio on the close.
Bullish_1Hour_entry_Indicator with AlertsIt uses EMAs convergence & VWAP confirmation along with multi Time frame analysis
RSI: alternative derivationMost traders accept the Relative Strength Index (RSI) as a standard tool for measuring momentum. But what if RSI is actually a position indicator?
This script introduces an alternative derivation of RSI, offering a fresh perspective on its true nature. Instead of relying on the traditional calculation of average gains and losses, this approach directly considers the price's position relative to its equilibrium (moving average), adjusted for volatility.
While the final value remains identical to the standard RSI, this alternative derivation offers a completely new understanding of the indicator.
Key components:
Price (Close)
Utilizes the closing price, consistent with the original RSI formula.
normalization factor
Transforms raw calculations into a fixed range between -1 and +1.
normalization_factor = 1 / (Length - 1)
EMA of Price
Applies Wilder’s Exponential Moving Average (EMA) to the price, serving as the anchor point for measuring price position, similar to the traditional RSI formula.
myEMA = ta.rma(close,Length)
EMA of close-to-close absolute changes (unit of volatility)
Adjusts for market differences by applying a Wilder’s EMA to absolute price changes (volatility), ensuring consistency across various assets.
CC_vol = ta.rma(math.abs(close - close ),Length)
Calculation Breakdown
DISTANCE:
Calculate the difference between the closing price and its Wilder's EMA. A positive value indicates the price is above the EMA; a negative value indicates it is below.
distance = close - myEMA
STANDARDIZED DISTANCE
Divide the distance by the unit of volatility to standardize the measurement across different markets.
S_distance = distance / CC_vol
NORMALIZED DISTANCE
Normalize the standardized distance using the normalization factor (n-1) to adjust for the lookback period.
N_distance = S_distance * normalization_factor
RSI
Finally, scale the normalized distance to fit within the standard RSI range of 0 to 100.
myRSI = 50 * (1 + N_distance)
The final equation:
RSI = 50 ×
What This Means for RSI
Same RSI Values, Different Interpretation
The standard RSI formula may obscure its true measurement, whereas this approach offers clarity.
RSI primarily indicates the price's position relative to its equilibrium, rather than directly measuring momentum.
RSI can still be used to analyze momentum, but in a more intuitive and well-informed way.
MACD (The Moving Average Convergence Divergence)The Moving Average Convergence Divergence (MACD) is a momentum indicator used in technical analysis to identify trends, measure their strength, and signal potential reversals. It is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA, creating the MACD line. A 9-period EMA of the MACD line, known as the signal line, is then plotted to generate buy or sell signals. Positive MACD values suggest upward momentum, while negative values indicate downward momentum. Traders often watch for crossovers, divergences, and movements relative to the zero line to make informed decisions.
AMHA + 4 EMAs + EMA50/200 Counter + Avg10CrossesDescription:
This script combines two types of Heikin-Ashi visualization with multiple Exponential Moving Averages (EMAs) and a counting function for EMA50/200 crossovers. The goal is to make trends more visible, measure recurring market cycles, and provide statistical context without generating trading signals.
Logic in Detail:
Adaptive Median Heikin-Ashi (AMHA):
Instead of the classic Heikin-Ashi calculation, this method uses the median of Open, High, Low, and Close. The result smooths out price movements, emphasizes trend direction, and reduces market noise.
Standard Heikin-Ashi Overlay:
Classic HA candles are also drawn in the background for comparison and transparency. Both HA types can be shifted below the chart’s price action using a customizable Offset (Ticks) parameter.
EMA Structure:
Five exponential moving averages (21, 50, 100, 200, 500) are included to highlight different trend horizons. EMA50 and EMA200 are emphasized, as their crossovers are widely monitored as potential trend signals. EMA21 and EMA100 serve as additional structure layers, while EMA500 represents the long-term trend.
EMA50/200 Counter:
The script counts how many bars have passed since the last EMA50/200 crossover. This makes it easy to see the age of the current trend phase. A colored label above the chart displays the current counter.
Average of the Last 10 Crossovers (Avg10Crosses):
The script stores the last 10 completed count phases and calculates their average length. This provides historical context and allows traders to compare the current cycle against typical past behavior.
Benefits for Analysis:
Clearer trend visualization through adaptive Heikin-Ashi calculation.
Multi-EMA setup for quick structural assessment.
Objective measurement of trend phase duration.
Statistical insight from the average cycle length of past EMA50/200 crosses.
Flexible visualization through adjustable offset positioning below the price chart.
Usage:
Add the indicator to your chart.
For a clean look, you may switch your chart type to “Line” or hide standard candlesticks.
Interpret visual signals:
White candles = bullish phases
Orange candles = bearish phases
EMAs = structural trend filters (e.g., EMA200 as a long-term boundary)
The counter label shows the current number of bars since the last cross, while Avg10 represents the historical mean.
Special Feature:
This script is not a trading system. It does not provide buy/sell recommendations. Instead, it serves as a visual and statistical tool for market structure analysis. The unique combination of Adaptive Median Heikin-Ashi, multi-EMA framework, and EMA50/200 crossover statistics makes it especially useful for trend-followers and swing traders who want to add cycle-length analysis to their toolkit.
Adaptive Jump Moving AverageAdaptive Jump Moving Average - Description
This indicator solves the classic moving average lag problem during significant price moves. Traditional MAs (like the 200-day) take forever to catch up after a major drop or rally because they average across all historical periods equally.
How it works:
Tracks price smoothly during normal market conditions
When price moves 20%+ away from the MA, it immediately "resets" to the current price level
Treats that new level as the baseline and continues smooth tracking from there
Advantages over normal MA:
No lag on major moves: A 40% crash doesn't get diluted over 200 days - the MA instantly adapts
Reduces false signals: You won't get late "death cross" signals months after a crash already happened
Better support/resistance: The MA stays relevant to current price action instead of reflecting outdated levels
Keeps the smoothness: During normal volatility, it behaves like a traditional MA without the noise of shorter periods