ST + Multi-EMASuperTrend with multiple EMAs.
The indicator includes Supertrend and 10 EMAs. Hope it helps those who are looking for multiple EMAs in one indicator.
Medie mobili
Wave Trend + Fearzone + Signal Combo with ReversalIn this example, you need to replace variables like wt1, wt2, fearZoneTop, fearZoneBottom with the actual WaveTrend and FearZone calculations.
You can place and use your full WaveTrend and FearZone code in the code above.
If you want, I can add this logic to the WaveTrend + FearZone code you gave me, complete and working, and give it to you. If you want, I can do that right away.
StoRsi# StoRSI Indicator: Combining RSI and Stochastic with multiTF
## Overview
The StoRSI indicator combines Relative Strength Index (RSI) and Stochastic oscillators in a single view to provide powerful momentum and trend analysis. By displaying both indicators together with multi-timeframe analysis, it helps traders identify stronger signals when both indicators align.
## Key Components
### 1. RSI (Relative Strength Index)
### 2. Stochastic Oscillator
### 3. EMA (Exponential Moving Average)
### 4. Multi-Timeframe Analysis
## Visual Features
- **Color-coded zones**: Highlights overbought/oversold areas
- **Signal backgrounds**: Shows when both indicators align
- **Multi-timeframe table**: Displays RSI, Stochastic, and trend across timeframes
- **Customizable colors**: Allows full visual customization
## Signal Generation (some need to uncomment in code)
The indicator generates several types of signals:
1. **RSI crosses**: When RSI crosses above/below overbought/oversold levels
2. **Stochastic crosses**: When Stochastic %K crosses above/below overbought/oversold levels
3. **Combined signals**: When both indicators show the same condition
4. **Trend alignment**: When multiple timeframes show the same trend direction
## Conclusion
The StoRSI indicator provides a comprehensive view of market momentum by combining two powerful oscillators with multi-timeframe analysis. By looking for alignment between RSI and Stochastic across different timeframes, traders can identify stronger signals and filter out potential false moves. The visual design makes it easy to spot opportunities at a glance, while the customizable parameters allow adaptation to different markets and trading styles.
For best results, use this indicator as part of a complete trading system that includes proper risk management, trend analysis, and confirmation from price action patterns.
Redwire's ALMA Bands with Alerts This script is basically an extension of Redwire's Alma bands developed by (in.tradingview.com). A big thanks to him
This is a script I like a lot as it has Alma bands based on Fibonacci numbers and price tends to respect these very often.
All I have done with AI help is create a code with more Alma Fib MA's + Alarms incorporated, such that there is a trigger when a certain condition is met(for ex -price crossing Alma-55 or Alma 89)
If the ALMA MA's are all inter-twined/criss-crossing each other, price tends to be range bound. If the ALMA bands are all neatly stacked up/down, it tends to indicate a breakout/breakdown
Hope this is of help to fellow traders. Pls note that I am not a coder nor any analyst of any sort. Pls backtest and research accordingly before trading. Best wishes
Why EMA Isn't What You Think It IsMany new traders adopt the Exponential Moving Average (EMA) believing it's simply a "better Simple Moving Average (SMA)". This common misconception leads to fundamental misunderstandings about how EMA works and when to use it.
EMA and SMA differ at their core. SMA use a window of finite number of data points, giving equal weight to each data point in the calculation period. This makes SMA a Finite Impulse Response (FIR) filter in signal processing terms. Remember that FIR means that "all that we need is the 'period' number of data points" to calculate the filter value. Anything beyond the given period is not relevant to FIR filters – much like how a security camera with 14-day storage automatically overwrites older footage, making last month's activity completely invisible regardless of how important it might have been.
EMA, however, is an Infinite Impulse Response (IIR) filter. It uses ALL historical data, with each past price having a diminishing - but never zero - influence on the calculated value. This creates an EMA response that extends infinitely into the past—not just for the last N periods. IIR filters cannot be precise if we give them only a 'period' number of data to work on - they will be off-target significantly due to lack of context, like trying to understand Game of Thrones by watching only the final season and wondering why everyone's so upset about that dragon lady going full pyromaniac.
If we only consider a number of data points equal to the EMA's period, we are capturing no more than 86.5% of the total weight of the EMA calculation. Relying on he period window alone (the warm-up period) will provide only 1 - (1 / e^2) weights, which is approximately 1−0.1353 = 0.8647 = 86.5%. That's like claiming you've read a book when you've skipped the first few chapters – technically, you got most of it, but you probably miss some crucial early context.
▶️ What is period in EMA used for?
What does a period parameter really mean for EMA? When we select a 15-period EMA, we're not selecting a window of 15 data points as with an SMA. Instead, we are using that number to calculate a decay factor (α) that determines how quickly older data loses influence in EMA result. Every trader knows EMA calculation: α = 1 / (1+period) – or at least every trader claims to know this while secretly checking the formula when they need it.
Thinking in terms of "period" seriously restricts EMA. The α parameter can be - should be! - any value between 0.0 and 1.0, offering infinite tuning possibilities of the indicator. When we limit ourselves to whole-number periods that we use in FIR indicators, we can only access a small subset of possible IIR calculations – it's like having access to the entire RGB color spectrum with 16.7 million possible colors but stubbornly sticking to the 8 basic crayons in a child's first art set because the coloring book only mentioned those by name.
For example:
Period 10 → alpha = 0.1818
Period 11 → alpha = 0.1667
What about wanting an alpha of 0.17, which might yield superior returns in your strategy that uses EMA? No whole-number period can provide this! Direct α parameterization offers more precision, much like how an analog tuner lets you find the perfect radio frequency while digital presets force you to choose only from predetermined stations, potentially missing the clearest signal sitting right between channels.
Sidenote: the choice of α = 1 / (1+period) is just a convention from 1970s, probably started by J. Welles Wilder, who popularized the use of the 14-day EMA. It was designed to create an approximate equivalence between EMA and SMA over the same number of periods, even thought SMA needs a period window (as it is FIR filter) and EMA doesn't. In reality, the decay factor α in EMA should be allowed any valye between 0.0 and 1.0, not just some discrete values derived from an integer-based period! Algorithmic systems should find the best α decay for EMA directly, allowing the system to fine-tune at will and not through conversion of integer period to float α decay – though this might put a few traditionalist traders into early retirement. Well, to prevent that, most traditionalist implementations of EMA only use period and no alpha at all. Heaven forbid we disturb people who print their charts on paper, draw trendlines with rulers, and insist the market "feels different" since computers do algotrading!
▶️ Calculating EMAs Efficiently
The standard textbook formula for EMA is:
EMA = CurrentPrice × alpha + PreviousEMA × (1 - alpha)
But did you know that a more efficient version exists, once you apply a tiny bit of high school algebra:
EMA = alpha × (CurrentPrice - PreviousEMA) + PreviousEMA
The first one requires three operations: 2 multiplications + 1 addition. The second one also requires three ops: 1 multiplication + 1 addition + 1 subtraction.
That's pathetic, you say? Not worth implementing? In most computational models, multiplications cost much more than additions/subtractions – much like how ordering dessert costs more than asking for a water refill at restaurants.
Relative CPU cost of float operations :
Addition/Subtraction: ~1 cycle
Multiplication: ~5 cycles (depending on precision and architecture)
Now you see the difference? 2 * 5 + 1 = 11 against 5 + 1 + 1 = 7. That is ≈ 36.36% efficiency gain just by swapping formulas around! And making your high school math teacher proud enough to finally put your test on the refrigerator.
▶️ The Warmup Problem: how to start the EMA sequence right
How do we calculate the first EMA value when there's no previous EMA available? Let's see some possible options used throughout the history:
Start with zero : EMA(0) = 0. This creates stupidly large distortion until enough bars pass for the horrible effect to diminish – like starting a trading account with zero balance but backdating a year of missed trades, then watching your balance struggle to climb out of a phantom debt for months.
Start with first price : EMA(0) = first price. This is better than starting with zero, but still causes initial distortion that will be extra-bad if the first price is an outlier – like forming your entire opinion of a stock based solely on its IPO day price, then wondering why your model is tanking for weeks afterward.
Use SMA for warmup : This is the tradition from the pencil-and-paper era of technical analysis – when calculators were luxury items and "algorithmic trading" meant your broker had neat handwriting. We first calculate an SMA over the initial period, then kickstart the EMA with this average value. It's widely used due to tradition, not merit, creating a mathematical Frankenstein that uses an FIR filter (SMA) during the initial period before abruptly switching to an IIR filter (EMA). This methodology is so aesthetically offensive (abrupt kink on the transition from SMA to EMA) that charting platforms hide these early values entirely, pretending EMA simply doesn't exist until the warmup period passes – the technical analysis equivalent of sweeping dust under the rug.
Use WMA for warmup : This one was never popular because it is harder to calculate with a pencil - compared to using simple SMA for warmup. Weighted Moving Average provides a much better approximation of a starting value as its linear descending profile is much closer to the EMA's decay profile.
These methods all share one problem: they produce inaccurate initial values that traders often hide or discard, much like how hedge funds conveniently report awesome performance "since strategy inception" only after their disastrous first quarter has been surgically removed from the track record.
▶️ A Better Way to start EMA: Decaying compensation
Think of it this way: An ideal EMA uses an infinite history of prices, but we only have data starting from a specific point. This creates a problem - our EMA starts with an incorrect assumption that all previous prices were all zero, all close, or all average – like trying to write someone's biography but only having information about their life since last Tuesday.
But there is a better way. It requires more than high school math comprehension and is more computationally intensive, but is mathematically correct and numerically stable. This approach involves compensating calculated EMA values for the "phantom data" that would have existed before our first price point.
Here's how phantom data compensation works:
We start our normal EMA calculation:
EMA_today = EMA_yesterday + α × (Price_today - EMA_yesterday)
But we add a correction factor that adjusts for the missing history:
Correction = 1 at the start
Correction = Correction × (1-α) after each calculation
We then apply this correction:
True_EMA = Raw_EMA / (1-Correction)
This correction factor starts at 1 (full compensation effect) and gets exponentially smaller with each new price bar. After enough data points, the correction becomes so small (i.e., below 0.0000000001) that we can stop applying it as it is no longer relevant.
Let's see how this works in practice:
For the first price bar:
Raw_EMA = 0
Correction = 1
True_EMA = Price (since 0 ÷ (1-1) is undefined, we use the first price)
For the second price bar:
Raw_EMA = α × (Price_2 - 0) + 0 = α × Price_2
Correction = 1 × (1-α) = (1-α)
True_EMA = α × Price_2 ÷ (1-(1-α)) = Price_2
For the third price bar:
Raw_EMA updates using the standard formula
Correction = (1-α) × (1-α) = (1-α)²
True_EMA = Raw_EMA ÷ (1-(1-α)²)
With each new price, the correction factor shrinks exponentially. After about -log₁₀(1e-10)/log₁₀(1-α) bars, the correction becomes negligible, and our EMA calculation matches what we would get if we had infinite historical data.
This approach provides accurate EMA values from the very first calculation. There's no need to use SMA for warmup or discard early values before output converges - EMA is mathematically correct from first value, ready to party without the awkward warmup phase.
Here is Pine Script 6 implementation of EMA that can take alpha parameter directly (or period if desired), returns valid values from the start, is resilient to dirty input values, uses decaying compensator instead of SMA, and uses the least amount of computational cycles possible.
// Enhanced EMA function with proper initialization and efficient calculation
ema(series float source, simple int period=0, simple float alpha=0)=>
// Input validation - one of alpha or period must be provided
if alpha<=0 and period<=0
runtime.error("Alpha or period must be provided")
// Calculate alpha from period if alpha not directly specified
float a = alpha > 0 ? alpha : 2.0 / math.max(period, 1)
// Initialize variables for EMA calculation
var float ema = na // Stores raw EMA value
var float result = na // Stores final corrected EMA
var float e = 1.0 // Decay compensation factor
var bool warmup = true // Flag for warmup phase
if not na(source)
if na(ema)
// First value case - initialize EMA to zero
// (we'll correct this immediately with the compensation)
ema := 0
result := source
else
// Standard EMA calculation (optimized formula)
ema := a * (source - ema) + ema
if warmup
// During warmup phase, apply decay compensation
e *= (1-a) // Update decay factor
float c = 1.0 / (1.0 - e) // Calculate correction multiplier
result := c * ema // Apply correction
// Stop warmup phase when correction becomes negligible
if e <= 1e-10
warmup := false
else
// After warmup, EMA operates without correction
result := ema
result // Return the properly compensated EMA value
▶️ CONCLUSION
EMA isn't just a "better SMA"—it is a fundamentally different tool, like how a submarine differs from a sailboat – both float, but the similarities end there. EMA responds to inputs differently, weighs historical data differently, and requires different initialization techniques.
By understanding these differences, traders can make more informed decisions about when and how to use EMA in trading strategies. And as EMA is embedded in so many other complex and compound indicators and strategies, if system uses tainted and inferior EMA calculatiomn, it is doing a disservice to all derivative indicators too – like building a skyscraper on a foundation of Jell-O.
The next time you add an EMA to your chart, remember: you're not just looking at a "faster moving average." You're using an INFINITE IMPULSE RESPONSE filter that carries the echo of all previous price actions, properly weighted to help make better trading decisions.
EMA done right might significantly improve the quality of all signals, strategies, and trades that rely on EMA somewhere deep in its algorithmic bowels – proving once again that math skills are indeed useful after high school, no matter what your guidance counselor told you.
4 EMA Modified [Ryu_xp] - Enhanced4 EMA Modified – Enhanced (Pine v6)
A highly configurable, four-line exponential moving average (EMA) overlay built in Pine Script v6. This indicator empowers traders to monitor short- and long-term trends simultaneously, with the ability to toggle each EMA on or off and adjust its period and data source—all from a single, inline control panel.
Key Features:
Pine Script v6: updated to leverage the latest performance improvements and language features.
Four EMAs:
EMA 3 for ultra-short momentum (white, medium line)
EMA 10 for short-term trend (light blue, thin line)
EMA 55 for intermediate trend (orange, thicker line)
EMA 200 for long-term trend (dynamic green/red, thickest line)
Inline Controls: Each EMA has its own checkbox, length input, and source selector arranged on a single line for fast configuration.
Dynamic Coloring: EMA 200 switches to green when price is above it (bullish) and red when price is below it (bearish).
Toggle Visibility: Enable or disable any EMA instantly without removing it from your chart.
Clean Overlay: All EMAs plotted in one pane; ideal for multi-timeframe trend confluence and crossover strategies.
Inputs:
Show/Hide each EMA
EMA Length and Source for periods 3, 10, 55, and 200
Usage:
Add the script to any price chart.
Use the inline checkboxes to show only the EMAs you need.
Adjust lengths and sources to fit your instrument and timeframe.
Watch for crossovers between EMAs or price interactions with EMA 200 to confirm trend shifts.
This open-source script offers maximum flexibility for traders seeking a customizable EMA toolkit in one simple overlay.
1m EMA Background ColorEntry Color background indicator where when the 5 ema 1 min timeframe is above the 21 ema 1 min timeframe background is green and when 5 is below the 21 it is red. this can be used for long or short trading
Buy Setup with TP/SL5 EMA entry and Stoploss only. you need to take decision of where to take profit. some time trade can continue in your favour for 2 to 3 days.
Buy/Sell Signals (Dynamic v2)//@version=5
indicator(title="Buy/Sell Signals (Dynamic v2)", shorttitle="Buy/Sell Dyn v2", overlay=true)
// Input for moving average lengths
lengthMA = input.int(20, title="Moving Average Length")
lengthEMA = input.int(5, title="Exponential Moving Average Length")
// Calculate Moving Averages
ma = ta.sma(close, lengthMA)
ema = ta.ema(close, lengthEMA)
// --- Buy Signal Conditions ---
buyMarketBelowMA = close < ma
buyMarketBelowEMA = close < ema
buyEMABelowMA = ema < ma
buyMarketCondition = buyMarketBelowMA and buyMarketBelowEMA and buyEMABelowMA
buyFollowingHighNotTouchedEMA = high < ema
buyCurrentCrossCloseAboveFollowingHigh = high > high and close > high
buySignalCondition = buyMarketCondition and buyFollowingHighNotTouchedEMA and buyCurrentCrossCloseAboveFollowingHigh
// Plot Buy Signal
plotshape(buySignalCondition, title="Buy Signal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
// --- Sell Signal Conditions (Occurring After a Buy Signal Sequence) ---
sellMarketAboveMA = close > ma
sellMarketAboveEMA = close > ema
sellEMAAboveMA = ema > ma
sellMarketConditionSell = sellMarketAboveMA and sellMarketAboveEMA and sellEMAAboveMA
var bool buySignalOccurredRecently = false
if buySignalCondition
buySignalOccurredRecently := true
sellSignalCondition = buySignalOccurredRecently and sellMarketConditionSell and close < close
// Plot Sell Signal
plotshape(sellSignalCondition, title="Sell Signal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
// Reset the buySignalOccurredRecently only after a sell signal
if sellSignalCondition
buySignalOccurredRecently := false
// Plot the Moving Averages for visual reference
plot(ma, color=color.blue, title="MA")
plot(ema, color=color.red, title="EMA")
Smooth Fibonacci BandsSmooth Fibonacci Bands
This indicator overlays adaptive Fibonacci bands on your chart, creating dynamic support and resistance zones based on price volatility. It combines a simple moving average with ATR-based Fibonacci levels to generate multiple bands that expand and contract with market conditions.
## Features
- Creates three pairs of upper and lower Fibonacci bands
- Smoothing option for cleaner, less noisy bands
- Fully customizable colors and line thickness
- Adapts automatically to changing market volatility
## Settings
Adjust the SMA and ATR lengths to match your trading timeframe. For short-term trading, try lower values; for longer-term analysis, use higher values. The Fibonacci factors determine how far each band extends from the center line - standard Fibonacci ratios (1.618, 2.618, and 4.236) are provided as defaults.
## Trading Applications
- Use band crossovers as potential entry and exit signals
- Look for price bouncing off bands as reversal opportunities
- Watch for price breaking through multiple bands as strong trend confirmation
- Identify potential support/resistance zones for placing stop losses or take profits
Fibonacci Bands combines the reliability of moving averages with the adaptability of ATR and the natural market harmony of Fibonacci ratios, offering a robust framework for both trend and range analysis.
ADX EMA's DistanceIt is well known to technical analysts that the price of the most volatile and traded assets do not tend to stay in the same place for long. A notable observation is the recurring pattern of moving averages that tend to move closer together prior to a strong move in some direction to initiate the trend, it is precisely that distance that is measured by the blue ADX EMA's Distance lines on the chart, normalized and each line being the distance between 2, 3 or all 4 moving averages, with the zero line being the point where the distance between them is zero, but it is also necessary to know the direction of the movement, and that is where the modified ADX will be useful.
This is the well known Directional Movement Indicator (DMI), where the +DI and -DI lines of the ADX will serve to determine the direction of the trend.
EMA 34/72 CrossoverTrend following indicator.
Moving averages that are commonly used as Fibonacci retracements.
Ind JDV 2.2 PRO con FVG y 3 EMAs
📝 Description for TradingView (English version):
Ind JDV 2.2 PRO with FVG and 3 EMAs
Overview:
This script identifies high-probability entry points by combining Fair Value Gaps (FVGs), trend filters using Exponential Moving Averages (EMAs), and momentum confirmation via Chandelier Exit. It focuses on structural imbalance and only triggers a signal on the third candle of a valid FVG—ensuring precision and trend alignment.
What does this indicator do and how does it work?
🔶 Fair Value Gaps (FVG):
The script detects FVGs using a standard 3-candle logic. If candle 1 and candle 3 do not overlap, a liquidity gap is detected. These gaps are drawn as extended boxes, helping traders visually track potential zones of reaction or continuation.
Orange FVG (traditionally bearish): Potential selling zones.
Green FVG (traditionally bullish): Potential buying zones.
🔷 Three EMAs as Trend Filters:
The system includes 3 configurable Exponential Moving Averages to help filter trades based on trend strength:
EMA 150 (main trend filter)
EMA 50 (mid-term trend)
EMA 20 (short-term sensitivity)
You can enable or disable the EMA filter for flexible use across scalping, intraday, or swing setups.
🟣 Chandelier Exit for Momentum Confirmation:
This dynamic ATR-based trailing stop is used here as an entry confirmation:
Long trades: Price must be above the Chandelier Long level.
Short trades: Price must be below the Chandelier Short level.
Entry Conditions (BUY or SELL signal):
A signal appears only on the third candle of a valid FVG, and only if:
A valid FVG was detected exactly 2 bars ago.
The signal direction matches the FVG type (green = BUY, orange = SELL).
Price is aligned with the main EMA direction.
Chandelier Exit confirms the momentum in the same direction.
How to Use:
Load the indicator on your preferred chart and timeframe (ideal for NASDAQ, crypto, or futures).
Observe painted FVGs as potential areas of trade opportunity.
Wait for a BUY or SELL signal exactly on the 3rd candle of the FVG.
Use the optional TP/SL lines or your own trade management strategy.
What makes this script original and useful?
This script is not a simple mashup of indicators. Its originality comes from:
A disciplined FVG logic with strict timing of signal placement.
The layered confirmation from trend (EMAs) and momentum (Chandelier Exit).
Full user control over entry conditions and visual clarity.
👉 A powerful tool for traders seeking to enter structural imbalance zones with strong confirmation and minimal noise.
📝 Descripción para TradingView (publicación en español):
Ind JDV 2.2 PRO con FVG y 3 EMAs
Resumen:
Este script está diseñado para detectar oportunidades de entrada precisas en el mercado combinando la lógica de Fair Value Gaps (FVG) con filtros de tendencia basados en EMAs y confirmación por medio del Chandelier Exit. La estrategia se enfoca en detectar desequilibrios de liquidez mediante FVGs de 3 velas y entrar en la tercera vela, solo si las condiciones de tendencia y momentum se alinean.
¿Qué hace este indicador y en qué se basa?
🔶 Fair Value Gaps (FVGs):
Los FVGs se detectan usando la clásica estructura de 3 velas. Se interpreta que si la vela 1 no solapa con la vela 3, existe un desequilibrio de liquidez que puede ser rellenado o actuar como zona de reacción.
Un FVG alcista (color naranja) indica posible impulso bajista posterior.
Un FVG bajista (color verde) indica potencial continuación alcista.
✅ Este script pinta esos FVGs como rectángulos que se extienden varias velas hacia adelante para facilitar su seguimiento visual.
🔷 Tres EMAs como filtros dinámicos:
El indicador incorpora 3 medias móviles exponenciales para filtrar condiciones de tendencia:
EMA principal de 150 periodos (filtro estructural).
EMA secundaria de 50 periodos.
EMA rápida de 20 periodos.
El usuario puede habilitar o deshabilitar el filtro principal para afinar la sensibilidad del sistema según el estilo operativo (scalping, intradía, swing).
🟣 Chandelier Exit como confirmación de momentum:
El Chandelier Exit actúa como trailing stop dinámico basado en ATR. Aquí se utiliza como confirmación de entrada:
En largos: el precio debe estar por encima del nivel Chandelier Long.
En cortos: debe estar por debajo del Chandelier Short.
Condición de entrada (señal BUY o SELL):
Una señal aparece únicamente en la tercera vela de un FVG si se cumplen:
Existencia de un FVG válido hace dos velas.
Dirección del FVG acorde a la señal (verde → BUY, naranja → SELL).
Precio cruzando la EMA principal en la dirección correcta.
Confirmación por Chandelier Exit.
¿Cómo usar este script?
Añádelo a tu gráfico y selecciona el activo y temporalidad de tu preferencia (ideal para NASDAQ, futuros, criptomonedas).
Usa los rectángulos como zonas de observación.
Espera una señal BUY o SELL sobre la tercera vela del FVG.
Puedes activar las líneas TP/SL sugeridas o aplicar tu propio manejo de riesgo.
¿Qué lo hace original y útil?
Este script no es una simple mezcla de indicadores. La originalidad radica en:
El uso riguroso de lógica de FVG aplicada sobre 3 velas, con señal solo en el momento justo.
La combinación con filtros de tendencia (EMAs) y momentum (Chandelier) para evitar entradas falsas.
El control total por parte del usuario sobre filtros y parámetros.
👉 Ideal para traders que buscan confirmar desequilibrios de precio con reglas objetivas de entrada en tendencia.
En Resumen: si el precio esta por encima de la EMA principal solo se toman las señales de buy despues de que se forme un FVG. no todas funcionan. y visceversa.
happy trading!!
EMA 34/72 CrossoverThese are two trend-following averages based on Fibonacci retracements.
They can be used on any timeframe, but the best fractals are the daily and weekly charts.
Consecutive Candles Above/Below EMADescription:
This indicator identifies and highlights periods where the price remains consistently above or below an Exponential Moving Average (EMA) for a user-defined number of consecutive candles. It visually marks these sustained trends with background colors and labels, helping traders spot strong bullish or bearish market conditions. Ideal for trend-following strategies or identifying potential trend exhaustion points, this tool provides clear visual cues for price behavior relative to the EMA.
How It Works:
EMA Calculation: The indicator calculates an EMA based on the user-specified period (default: 100). The EMA is plotted as a blue line on the chart for reference.
Consecutive Candle Tracking: It counts how many consecutive candles close above or below the EMA:
If a candle closes below the EMA, the "below" counter increments; any candle closing above resets it to zero.
If a candle closes above the EMA, the "above" counter increments; any candle closing below resets it to zero.
Highlighting Trends: When the number of consecutive candles above or below the EMA meets or exceeds the user-defined threshold (default: 200 candles):
A translucent red background highlights periods where the price has been below the EMA.
A translucent green background highlights periods where the price has been above the EMA.
Labeling: When the required number of consecutive candles is first reached:
A red downward arrow label with the text "↓ Below" appears for below-EMA streaks.
A green upward arrow label with the text "↑ Above" appears for above-EMA streaks.
Usage:
Trend Confirmation: Use the highlights and labels to confirm strong trends. For example, 200 candles above the EMA may indicate a robust uptrend.
Reversal Signals: Prolonged streaks (e.g., 200+ candles) might suggest overextension, potentially signaling reversals.
Customization: Adjust the EMA period to make it faster or slower, and modify the candle count to make the indicator more or less sensitive to trends.
Settings:
EMA Length: Set the period for the EMA calculation (default: 100).
Candles Count: Define the minimum number of consecutive candles required to trigger highlights and labels (default: 200).
Visuals:
Blue EMA line for tracking the moving average.
Red background for sustained below-EMA periods.
Green background for sustained above-EMA periods.
Labeled arrows to mark when the streak threshold is met.
This indicator is a powerful tool for traders looking to visualize and capitalize on persistent price trends relative to the EMA, with clear, customizable signals for market analysis.
Explain EMA calculation
Other trend indicators
Make description shorter
Linda MACD Divergence w/ Lines + Cam FilterThis is the first draft. Advise using 3 for Diff for Divergence.
A.K Dynamic EMA/SMA / MTF S&R Zones Toolkit with AlertsThe A.K Dynamic EMA/SMA / MTF Support & Resistance Zones Toolkit is a powerful all-in-one technical analysis tool designed for traders who want a clean yet comprehensive market view. Whether you're scalping lower timeframes or swing trading higher timeframes, this indicator gives you both the structure and signals to take action with confidence.
Key Features:
✅ Customizable EMA/SMA Suite
Display key Exponential and Simple Moving Averages including 5, 9, 20, 50, 100, and 200 EMAs, plus optional 50 SMA for trend filtering. Each line can be toggled individually and color-customized.
✅ Multi-Timeframe Support & Resistance Zones
Automatically detects dynamic S/R zones on key timeframes (5min, 15min, 30min, 1H, 4H, 1D) using swing highs/lows. Zones are color-coded by strength and whether they're broken or active, providing a clear visual roadmap for price reaction levels.
✅ Zone Strength & Break Detection
Distinguishes between strong and weak zones based on price proximity and reaction depth, with visual shading and automatic label updates when a level is broken.
✅ Price Action-Based Buy/Sell Signals
Generates BUY signals when bullish candles react to strong support (supply) zones, and SELL signals when bearish candles react to strong resistance (demand) zones. All logic is adjustable — including candle body vs wick detection, tolerance range, and strength thresholds.
✅ Alerts Engine
Built-in TradingView alerts for price touching support/resistance or triggering buy/sell signals. Perfect for automation or hands-free monitoring.
✅ Optional Candle & Trend Filters
Highlight bullish/bearish candles visually for additional confirmation.
Optional RSI display and 50-period SMA trend filter to guide directional bias.
🧠 Use Case Scenarios:
Identify dynamic supply & demand zones across multiple timeframes.
Confirm trend direction with EMAs and SMA filters.
React quickly to clean BUY/SELL signals based on actual price interaction with strong zones.
Customize it fully to suit scalping, day trading, or swing trading strategies.
📌 Recommended Settings:
Use default zone transparency (65%) and offset (250 bars) for optimal visual clarity.
Enable alerts to get notified when price enters key S/R levels or when a trade signal occurs.
Combine this tool with your entry/exit plan for better decision-making under pressure.
💡 Pro Tip: Add this indicator to a clean chart and let the zones + EMAs guide your directional bias. Use alerts to avoid screen-watching and improve discipline.
Created by:
Version: Pine Script v6
Platform: TradingView
21/50 EMA Breakout StrategyDuring the new york session, if the candle closes more than 2 points above a down facing 21 ema and if the 50 ema is also down, then you will get a sell signal and vice versa.
EMA 20/50/100/200 Color-Coded20/50/100/200 EMA indicator with a color-coding option that changes the color of an EMA line to green every time the price is above the EMA and red every time the price is below the EMA.
38-Ticker Volume Alertcompares ticker volume with its volume moving average and sends alert in case of volume surprise
Triple Moving Average by XeodiacThis script, "Triple Moving Average Indicator", is a simple yet powerful tool designed to help traders track trends and detect potential market reversals. Here’s what it does:
What It Does:
Plots three moving averages on your chart.
Customizable to suit your trading style with options for the type of moving average, the period, color, and thickness of the lines.
Alerts you when important crossovers occur, helping you stay on top of potential trading opportunities.
Features:
Customizable Moving Averages (MAs):
Choose from four types of MAs:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA)
Weighted Moving Average (WMA)
Set individual periods, colors, and line thickness for each moving average.
Alerts:
Notifies you when:
The price crosses above or below any moving average.
One moving average crosses another (e.g., short-term crosses above long-term).
Visual Clarity:
Plots three distinct lines on the chart for easy comparison and interpretation.
Why Use It?
Track Trends: See the direction of short, medium, and long-term trends at a glance.
Spot Crossovers: Identify golden crosses (bullish) or death crosses (bearish) to refine entry and exit points.
Stay Informed: With alerts, you’ll never miss a key market movement.
MK Multi-Timeframe MA RibbonThe MK Ribbon MTF is an overlay indicator that lets you plot up to eight independently configurable moving averages on any chart.
For each MA you can choose its length, type (EMA, SMA, WMA, or HMA), timeframe (current chart, Daily, Weekly, or Monthly), and easily toggle it on or off. Each MA line colors itself above, below, or equal to price—green, red, or gray by default—and you can freely customize those colors to suit your theme.
You also get optional semi-transparent “Golden Cross” and “Death Cross” labels for daily 50/200 SMA crossovers, which you can enable or disable separately, so you can tailor the ribbon and signals exactly to your workflow.