EMA + MACD Sequential Crossover MNQ BBCbest works for 100 or 1000 tick chart for nasdaq 100.
9 21 ema crossover with macd crossover
Publisher BBCKPS
Moving Averages
Advanced MA Slope Tool(by ExpertCBCD)New version of MA Slope, originally made by ExpertCBCD.Now you can choose many indicators then compare and confirm their slope. Thanks for ExpertCBCD, hope you can use it like the bow of Robinhood to defeat big banks and take money in the market.
Adaptive Market Regime Identifier [LuciTech]What it Does:
AMRI visually identifies and categorizes the market into six primary regimes directly on your chart using a color-coded background. These regimes are:
-Strong Bull Trend: Characterized by robust upward momentum and low volatility.
-Weak Bull Trend: Indicates upward momentum with less conviction or higher volatility.
-Strong Bear Trend: Defined by powerful downward momentum and low volatility.
-Weak Bear Trend: Suggests downward momentum with less force or increased volatility.
-Consolidation: Periods of low volatility and sideways price action.
-Volatile Chop: High volatility without clear directional bias, often seen during transitions or indecision.
By clearly delineating these states, AMRI helps traders quickly grasp the overarching market context, enabling them to apply strategies best suited for the current conditions (e.g., trend-following in strong trends, range-bound strategies in consolidation, or caution in volatile chop).
How it Works (The Adaptive Edge)
AMRI achieves its adaptive classification by continuously analyzing three core market dimensions, with each component dynamically adjusting to current market conditions:
1.Adaptive Moving Average (KAMA): The indicator utilizes the Kaufman Adaptive Moving Average (KAMA) to gauge trend direction and strength. KAMA is unique because it adjusts its smoothing period based on market efficiency (noise vs. direction). In trending markets, it becomes more responsive, while in choppy markets, it smooths out noise, providing a more reliable trend signal than static moving averages.
2.Adaptive Average True Range (ATR): Volatility is measured using an adaptive version of the Average True Range. Similar to KAMA, this ATR dynamically adjusts its sensitivity to reflect real-time changes in market volatility. This helps AMRI differentiate between calm, ranging markets and highly volatile, directional moves or chaotic periods.
3.Normalized Slope Analysis: The slope of the KAMA is normalized against the Adaptive ATR. This normalization provides a robust measure of trend strength that is relative to the current market volatility, making the thresholds for strong and weak trends more meaningful across different instruments and timeframes.
These adaptive components work in concert to provide a nuanced and responsive classification of the market regime, minimizing lag and reducing false signals often associated with fixed-parameter indicators.
Key Features & Originality:
-Dynamic Regime Classification: AMRI stands out by not just indicating trend or range, but by classifying the type of market regime, offering a higher-level analytical framework. This is a meta-indicator that provides context for all other trading tools.
-Adaptive Core Metrics: The use of KAMA and an Adaptive ATR ensures that the indicator remains relevant and responsive across diverse market conditions, automatically adjusting to changes in volatility and trend efficiency. This self-adjusting nature is a significant advantage over indicators with static lookback periods.
-Visual Clarity: The color-coded background provides an immediate, at-a-glance understanding of the current market regime, reducing cognitive load and allowing for quicker decision-making.
-Contextual Trading: By identifying the prevailing regime, AMRI empowers traders to select and apply strategies that are most effective for that specific environment, helping to avoid costly mistakes of using a trend-following strategy in a ranging market, or vice-versa.
-Originality: While components like KAMA and ATR are known, their adaptive integration into a comprehensive, multi-regime classification system, combined with normalized slope analysis for trend strength, offers a novel approach to market analysis not commonly found in publicly available indicators.
TSLA Scalping Signals (Volume + RSI + MACD + VWAP)//@version=5
indicator("TSLA Scalping Signals (Volume + RSI + MACD + VWAP)", overlay=true, timeframe="", timeframe_gaps=true)
// =========================
// 사용자 입력(파라미터)
// =========================
// RSI 길이와 과매도/과매수 기준
rsiLen = input.int(5, "RSI 길이", minval=2)
rsiLow = input.int(35, "RSI 과매도 기준", minval=5, maxval=50)
rsiHigh = input.int(70, "RSI 과매수 기준", minval=50, maxval=95)
// MACD 파라미터
fastLen = input.int(12, "MACD Fast", minval=1)
slowLen = input.int(26, "MACD Slow", minval=2)
sigLen = input.int(9, "MACD Signal", minval=1)
// 거래량 스파이크 판단용
volSmaLen = input.int(20, "거래량 SMA 길이", minval=5)
volSpikeMult = input.float(1.5, "거래량 스파이크 배수", minval=0.5, step=0.1)
// 손절/익절(선택)
useStops = input.bool(true, "손절/익절 사용")
stopATRlen = input.int(14, "ATR 길이", minval=5)
stopATRmult = input.float(1.2, "손절 ATR 배수", minval=0.5, step=0.1)
tpRR = input.float(1.5, "익절 R 비율(손절의 배수)", minval=0.5, step=0.1)
// =========================
// 지표 계산부
// =========================
// VWAP: 단타 기준 핵심 추세선
vwap = ta.vwap(close)
// RSI(단기)
rsi = ta.rsi(close, rsiLen)
// MACD
macd = ta.ema(close, fastLen) - ta.ema(close, slowLen)
sig = ta.ema(macd, sigLen)
hist = macd - sig
// 거래량 스파이크: 현재 거래량이 거래량 SMA * 배수 이상인지
volSma = ta.sma(volume, volSmaLen)
volSpike = volume > volSma * volSpikeMult
// =========================
// 진입/청산 조건
// =========================
// 롱 진입 조건:
// 1) 가격 VWAP 위
// 2) MACD 상향 교차
// 3) RSI가 rsiLow 아래→위로 돌파
// 4) 거래량 스파이크
longCond = close > vwap and ta.crossover(macd, sig) and ta.crossover(rsi, rsiLow) and volSpike
// 롱 청산 조건(부분 청산/전체 청산 판단은 사용자 재량):
// A) RSI 과매수 도달, 또는
// B) MACD 하향 교차, 또는
// C) 가격이 VWAP 아래로 종가 이탈하면서 거래량 약화(현재 거래량 < volSma)
exitCond = (rsi > rsiHigh) or ta.crossunder(macd, sig) or (close < vwap and volume < volSma)
// =========================
// 시각적 표시
// =========================
plot(vwap, "VWAP", linewidth=2)
plotshape(longCond, title="BUY", style=shape.labelup, text="BUY", location=location.belowbar, size=size.tiny)
plotshape(exitCond, title="SELL", style=shape.labeldown, text="SELL", location=location.abovebar, size=size.tiny)
// 보조 하단창: RSI, MACD는 별도 패널이 일반적이므로 값만 툴팁용 표시
// (원하면 아래 plot들을 꺼도 됨)
rsiPlot = plot(rsi, title="RSI(단기)", color=color.new(color.blue, 0), display=display.none)
h1 = hline(rsiLow, "RSI 과매도", color=color.new(color.teal, 50))
h2 = hline(rsiHigh, "RSI 과매수", color=color.new(color.red, 50))
// =========================
// 간단 손절/익절 레벨(선택)
// =========================
// 매수 발생 바의 가격을 기준으로 ATR 손절/익절 레벨 산출
atr = ta.atr(stopATRlen)
var float entryPrice = na
var float stopPrice = na
var float takePrice = na
// 롱 진입 시 가격 고정
if (longCond)
entryPrice := close
stopPrice := useStops ? (close - atr * stopATRmult) : na
takePrice := useStops ? (close + (close - stopPrice) * tpRR) : na
// 청산 신호 시 초기화
if (exitCond)
entryPrice := na
stopPrice := na
takePrice := na
plot(entryPrice, "Entry", color=color.new(color.green, 60), style=plot.style_circles, linewidth=2)
plot(stopPrice, "Stop", color=color.new(color.red, 60), style=plot.style_linebr, linewidth=2)
plot(takePrice, "Take", color=color.new(color.blue, 60), style=plot.style_linebr, linewidth=2)
// =========================
// 알림 조건
// =========================
alertcondition(longCond, title="BUY Signal", message="BUY signal: VWAP↑, MACD cross↑, RSI cross↑, Volume spike.")
alertcondition(exitCond, title="SELL Signal", message="SELL signal: RSI high or MACD cross↓ or below VWAP with weak volume.")
350DMA bands + Z-score (V2)This script extends the classic 350-day moving average (350DMA) by building dynamic valuation bands and a Z-Score framework to evaluate how far price deviates from its long-term mean.
Features
350DMA Anchor: Uses the 350-day simple moving average as the baseline reference.
Fixed Multipliers: Key bands plotted at ×0.625, ×1.0, ×1.6, ×2.0, and ×2.5 of the 350DMA — historically significant levels for cycle analysis.
Z-Score Mapping: Price is converted into a Z-Score on a scale from +2 (deep undervaluation) to –2 (extreme overvaluation), using log-space interpolation for accuracy.
Custom Display: HUD panel and on-chart label show the current Z-Score in real time.
Clamp Option: Users can toggle between raw Z values or capped values (±2).
How to Use
Valuation Context: The 350DMA is often considered a “fair value” anchor; large deviations identify cycles of under- or over-valuation.
Z-Score Insight:
Positive Z values suggest favorable accumulation zones where price is below long-term average.
Negative Z values highlight zones of stretched valuation, often associated with distribution or profit-taking.
Strategic Application: This is not a standalone trading system — it works best in confluence with other indicators, cycle models, or macro analysis.
Originality
Unlike a simple DMA overlay, this script:
Provides multiple cycle-based bands derived from the 350DMA.
Applies a logarithmic Z-Score mapping for more precise long-term scaling.
Adds an integrated HUD and labeling system for quick interpretation.
VWAP Bollinger CrossBased on the crossover of the moving average and VWAP, this indicator can help you find a trend. It is not recommended to use it only for entries. Try it and I hope it can help you.
200WMA Overlay + Z (heatmap mapping)This script enhances the classic 200-week moving average (200WMA), a long-term market reference line, by adding Z-Score mapping and optional helper bands for extended cycle analysis.
Features
200WMA Anchor: Plots the true 200-week simple moving average on any chart, a widely followed metric for long-term Bitcoin and crypto cycles.
Helper Multiples: Optional overlay of key historical ratios (×0.625, ×1.6, ×2.0, ×2.5) often referenced as cycle support/resistance zones.
Z-Score Mapping: Translates the ratio of price to 200WMA into a Z-Score scale (from +2.5 to –2.5), offering a statistical perspective on whether the market is undervalued, neutral, or overheated relative to its long-term mean.
On-Chart Label: Current Z-Score displayed directly on the last bar for quick reference.
How to Use
Long-Term Valuation: The 200WMA serves as a “fair value” baseline; large deviations highlight extended phases of market sentiment.
Heatmap Context:
Positive Z values typically mark undervaluation or favorable accumulation zones.
Negative Z values highlight overvaluation or profit-taking / distribution zones.
Strategic View: Best used to contextualize long-term market cycles, not for short-term signals.
Confluence Approach: This indicator should not be used alone — combine it with other technical or fundamental tools for stronger decision-making.
Originality
Unlike a basic 200WMA overlay, this version:
Incorporates multi-band ratios for extended cycle mapping.
Introduces a custom Z-Score scale tied directly to price/WMA ratios.
Provides both visual structure and statistical interpretation on a single overlay.
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
MA Pack + Cross Signals (Short vs Long)Overview
A flexible moving average pack that lets you switch between short-term trend detection and long-term trend confirmation .
Short-term mode: plots 5, 10, 20, and 50 MAs with early crossovers (10/50, 20/50).
Long-term mode: plots 50, 100, 200 MAs with Golden Cross and Death Cross signals.
Choice of SMA or EMA .
Alerts included for all crossovers.
Why Use It
Catch early trend shifts in short-term mode.
Confirm institutional trend levels in long-term mode.
Visual signals (triangles + labels) make spotting setups easy.
Alert-ready for automated trade monitoring.
Usage
Add to chart.
In settings, choose Short-term or Long-term .
Watch for markers:
Green triangles = bullish cross
Red triangles = bearish cross
Green label = Golden Cross
Red label = Death Cross
Optional: enable alerts for notifications.
RVGI with Editable Signal + EMA FilterRelative Vigor Index (RVGI) with Editable Signal + EMA Filter
This script enhances the standard RVGI by letting you set both the RVGI Length (green line) and the Signal Length (red line), which is not adjustable in TradingView’s default version. It also adds an optional EMA trend filter (1/14 by default) to highlight when the market is in a bullish trend.
Features:
Adjustable RVGI length (main green line).
Adjustable signal line smoothing (red line).
Optional EMA fast/slow filter (default 1/14).
Automatic BUY/SELL markers on RVGI crossovers when EMA filter is positive.
Alert conditions for long entries and exits.
This setup was optimized through backtesting for assets like Solana and AVAX, but inputs are fully configurable for use on any market and timeframe. Backtests conducted on daily timeframe.
Strategy tested
Entry rule: RVGI green line crosses above red line AND EMA 1 is above EMA 14.
Exit Rule: RVGI red line crosses above green
A simple strategy with remarkable back test results, tested on SOLUSDT (1D)
Strategy also tested on AVAXUSDT found RVGI settings length 44 signal 5 to be favourable for maximum return on investment.
All back testing on daily timeframe.
The Dark Heaven Price Action indicatorcreated by professor Santhosh . The Dark Heaven trading academy Mysore! it will help to find the Higher High, Lower Lows of the market to enter the trade and trade in right direction.
StdDev Supertrend {CHIPA}StdDev Supertrend ~ C H I P A is a supertrend style trend engine that replaces ATR with standard deviation as the volatility core. It can operate on raw prices or log return volatility, with optional smoothing to control noise.
Key features include:
Supertrend trailing rails built from a stddev scaled envelope that flips the regime only when price closes through the opposite rail.
Returns-based mode that scales volatility by log returns for more consistent behavior across price regimes.
Optional smoothing on the volatility input to tune responsiveness versus stability.
Directional gap fill between price and the active trend line on the main chart; opacity adapts to the distance (vs ATR) so wide gaps read stronger and small gaps stay subtle.
Secondary pane view of the rails with the same adaptive fade, plus an optional candle overlay for context.
Clean alerts that fire once when state changes
Use cases: medium-term trend following, stop/flip systems, and visual regime confirmation when you prefer stddev-based distance over ATR.
Note: no walk-forward or robustness testing is implied; parameter choices and risk controls are on you.
Trend Pro V2 [CRYPTIK1]Introduction: What is Trend Pro V2?
Welcome to Trend Pro V2! This analysis tool give you at-a-glance understanding of the market's direction. In a noisy market, the single most important factor is the dominant trend. Trend Pro V2 filters out this noise by focusing on one core principle: trading with the primary momentum.
Instead of cluttering your chart with confusing signals, this indicator provides a clean, visual representation of the trend, helping you make more confident and informed trading decisions.
The dashboard provides a simple, color-coded view of the trend across multiple timeframes.
The Core Concept: The Power of Confluence
The strength of any trading decision comes from confluence—when multiple factors align. Trend Pro V2 is built on this idea. It uses a long-term moving average (200-period EMA by default) to define the primary trend on your current chart and then pulls in data from three higher timeframes to confirm whether the broader market agrees.
When your current timeframe and the higher timeframes are all aligned, you have a state of "confluence," which represents a higher-probability environment for trend-following trades.
Key Features
1. The Dynamic Trend MA:
The main moving average on your chart acts as your primary guide. Its color dynamically changes to give you an instant read on the market.
Teal MA: The price is in a confirmed uptrend (trading above the MA).
Pink MA: The price is in a confirmed downtrend (trading below the MA).
The moving average changes color to instantly show you if the trend is bullish (teal) or bearish (pink).
2. The Multi-Timeframe (MTF) Trend Dashboard:
Located discreetly in the bottom-right corner, this dashboard is your window into the broader market sentiment. It shows you the trend status on three customizable higher timeframes.
Teal Box: The trend is UP on that timeframe.
Pink Box: The trend is DOWN on that timeframe.
Gray Box: The price is neutral or at the MA on that timeframe.
How to Use Trend Pro V2: A Simple Framework
Step 1: Identify the Primary Trend
Look at the color of the MA on your chart. This is your starting point. If it's teal, you should generally be looking for long opportunities. If it's pink, you should be looking for short opportunities.
Step 2: Check for Confluence
Glance at the MTF Trend Dashboard.
Strong Confluence (High-Probability): If your main chart shows an uptrend (Teal MA) and the dashboard shows all teal boxes, the market is in a strong, unified uptrend. This is a high-probability environment to be a buyer on dips.
Weak or No Confluence (Caution Zone): If your main chart shows an uptrend, but the dashboard shows pink or gray boxes, it signals disagreement among the timeframes. This is a sign of market indecision and a lower-probability environment. It's often best to wait for alignment.
Here, the daily trend is down, but the MTF dashboard shows the weekly trend is still up—a classic sign of weak confluence and a reason for caution.
Best Practices & Settings
Timeframe Synergy: For best results, use Trend Pro on a lower timeframe and set your dashboard to higher timeframes. For example, if you trade on the 1-hour chart, set your MTF dashboard to the 4-hour, 1-day, and 1-week.
Use as a Confirmation Tool: Trend Pro V2 is designed as a foundational layer for your analysis. First, confirm the trend, then use your preferred entry method (e.g., support/resistance, chart patterns) to time your trade.
This is a tool for the community, so feel free to explore the open-source code, adapt it, and build upon it. Happy trading!
For your consideration @TradingView
Médias Móveis - O Caminhos das CriptosMoving Average Indicator: MA 200, EMA 200, EMA 100, EMA 50, and EMA 20
This indicator simultaneously displays five essential moving averages for technical analysis.
Slingshot TrendSlingshot Trend Indicator Guide
What it does: This TradingView indicator identifies bullish "slingshot" momentum in uptrends. It uses stacked EMAs (21/34/55/89) and a higher-timeframe 89 EMA to confirm trends, then flags the first price breakout above a 4-period EMA of highs (after 3 bars below) as an entry signal.
Key signals:
☑️Entry trigger: Orange shape below bar + yellow entry line/label (at close price) when first slingshot fires in a bullish trend. Bars turn teal.
☑️Target: Green dashed line/label (entry + avg past ATR multiple × 14-period ATR).
☑️Exit: When trend ends (EMAs unstack or price drops below higher-TF 89 EMA); lines vanish.
Dashboard (bottom-right, if enabled):
☑️ATRx: Avg move size (in ATR multiples) for targets.
☑️Win%: % of past targets hit.
☑️AvgTTH: Avg days to target hit.
Tips: Use on higher timeframes (e.g., 1H+). Alert fires on trigger for notifications. Backtest on your assets—win rate tracks historical hits.
Indicador Médias Móveis MA e EMAs - O Caminho das CriptosMoving Average Indicator: MA 200, EMA 200, EMA 100, EMA 50, and EMA 20
This indicator simultaneously displays five essential moving averages for technical analysis.
Indicador Médias Móveis MA e EMA - Caminho das CriptosMoving Average Indicator: MA 200, EMA 200, EMA 100, EMA 50, and EMA 20
This indicator simultaneously displays five essential moving averages for technical analysis.
MA Slope Indicatora complete Pine Script (version 5) indicator for TradingView that implements what you're describing. It calculates Simple Moving Averages (SMAs) for four lengths (10, 20, 200, and 400 bars by default—these are configurable via inputs). For each SMA, it computes a "slope" value by comparing the current SMA value to the average of the previous X SMA values (where X is also a configurable input, defaulting to 5 bars).
The slope is calculated as: current_SMA - avg_of_previous_X_SMAs.
A positive slope indicates an upward trend (e.g., the MA is rising relative to its recent history).
A negative slope indicates a downward trend.
Zero means flat.
The script plots:
The four SMAs as lines on the chart (for reference).
Four histograms below the chart showing the slope values for each SMA, colored green for positive, red for negative, and gray for zero/flat.
This uses only simple moving averages (ta.sma() in Pine Script).
RMA EMA Crossover | MisinkoMasterThe RMA EMA Crossover (REMAC) is a trend-following overlay indicator designed to detect shifts in market momentum using the interaction between a smoothed RMA (Relative Moving Average) and its EMA (Exponential Moving Average) counterpart.
This combination provides fast, adaptive signals while reducing noise, making it suitable for a wide range of markets and timeframes.
🔎 Methodology
RMA Calculation
The Relative Moving Average (RMA) is calculated over the user-defined length.
RMA is a type of smoothed moving average that reacts more gradually than a standard EMA, providing a stable baseline.
EMA of RMA
An Exponential Moving Average (EMA) is then applied to the RMA, creating a dual-layer moving average system.
This combination amplifies trend signals while reducing false crossovers.
Trend Detection (Crossover Logic)
Bullish Signal (Trend Up) → When RMA crosses above EMA.
Bearish Signal (Trend Down) → When EMA crosses above RMA.
This simple crossover system identifies the direction of momentum shifts efficiently.
📈 Visualization
RMA and EMA are plotted directly on the chart.
Colors adapt dynamically to the current trend:
Cyan / Green hues → RMA above EMA (bullish momentum).
Magenta / Red hues → EMA above RMA (bearish momentum).
Filled areas between the two lines highlight zones of trend alignment or divergence, making it easier to spot reversals at a glance.
⚡ Features
Adjustable length parameter for RMA and EMA.
Overlay format allows for direct integration with price charts.
Visual trend scoring via color and fill for rapid assessment.
Works well across all asset classes: crypto, forex, stocks, indices.
✅ Use Cases
Trend Following → Stay on the right side of the market by following momentum shifts.
Reversal Detection → Crossovers highlight early trend changes.
Filter for Trading Systems → Use as a confirmation overlay for other indicators or strategies.
Visual Market Insight → Filled zones provide immediate context for trend strength.
NY Anchored VWAP and Auto SMAThis NY Anchored VWAP and Auto SMA script is a powerful combination of two of the most popular technical indicators, designed to help you identify the intraday trend and potential shifts in market momentum. It stands out by automatically adjusting to current volatility, providing more adaptive and reliable signals than standard moving averages.
How It Works
This script combines a New York session-anchored VWAP with a dynamic Simple Moving Average (SMA) that automatically adjusts its length based on market volatility.
New York Anchored VWAP: The VWAP (Volume-Weighted Average Price) resets at the beginning of the New York trading session. This allows it to accurately track the average price paid by traders for the day, providing a key benchmark for identifying whether the price is trading at a premium or a discount relative to the volume-driven trend. The color of the VWAP line itself changes to indicate its slope: green for an upward trend and red for a downward trend.
Auto SMA: The script calculates a Simple Moving Average (SMA) but with a twist. It uses the Average True Range (ATR) to measure market volatility. When volatility is high, the SMA's lookback period automatically shortens to make it more responsive to price changes. Conversely, when volatility is low, the lookback period lengthens to smooth out the data and reduce noise. This dynamic adjustment helps the SMA stay relevant in all market conditions.
Key Features
Adaptive Lookback: The Auto SMA dynamically adjusts to market volatility, providing more responsive signals during volatile periods and smoother, more reliable signals during calm periods.
Color-Coded VWAP: The VWAP line changes color to instantly show the direction of the trend, making it easy to see at a glance if the average price is rising or falling.
Automated Alerts: The script provides automated alerts for when the VWAP crosses above or below the Auto SMA, signaling potential bullish or bearish momentum shifts.
Customizable Settings: You can hide the VWAP on daily or higher timeframes and change the source for the VWAP calculation to suit your specific trading style.
This tool is perfect for intraday and swing traders who want a more intelligent and adaptive way to measure trend direction and identify potential trading opportunities.