Enhanced EMA Suite with Channel Fill & Background Colors//@version=5
indicator(title="Enhanced EMA Suite with Channel Fill & Background Colors", overlay=true)
// --- Inputs: EMA Lengths
len1 = input.int(10, minval=1, title="EMA 1 Length")
len2 = input.int(21, minval=1, title="EMA 2 Length")
len3 = input.int(5, minval=1, title="EMA 3 Length")
len4 = input.int(20, minval=1, title="EMA 4 Length")
len5 = input.int(50, minval=1, title="EMA 5 Length")
len6 = input.int(55, minval=1, title="EMA 6 Length")
len7 = input.int(89, minval=1, title="EMA 7 Length")
len8 = input.int(144, minval=1, title="EMA 8 Length")
len9 = input.int(200, minval=1, title="EMA 9 Length")
// --- Inputs: Toggle EMAs
turnon1 = input(true, title="Enable EMA 1?")
turnon2 = input(true, title="Enable EMA 2?")
turnon3 = input(false, title="Enable EMA 3?")
turnon4 = input(false, title="Enable EMA 4?")
turnon5 = input(false, title="Enable EMA 5?")
turnon6 = input(false, title="Enable EMA 6?")
turnon7 = input(false, title="Enable EMA 7?")
turnon8 = input(false, title="Enable EMA 8?")
turnon9 = input(false, title="Enable EMA 9?")
// --- Calculate EMAs
ema1 = ta.ema(close, len1)
ema2 = ta.ema(close, len2)
ema3 = ta.ema(close, len3)
ema4 = ta.ema(close, len4)
ema5 = ta.ema(close, len5)
ema6 = ta.ema(close, len6)
ema7 = ta.ema(close, len7)
ema8 = ta.ema(close, len8)
ema9 = ta.ema(close, len9)
// --- Cross Conditions
cross_up_ema1_ema2 = ta.crossover(ema1, ema2)
cross_down_ema1_ema2 = ta.crossunder(ema1, ema2)
cross_up_ema1_ema3 = ta.crossover(ema1, ema3)
cross_down_ema1_ema3 = ta.crossunder(ema1, ema3)
cross_up_ema1_ema4 = ta.crossover(ema1, ema4)
cross_down_ema1_ema4 = ta.crossunder(ema1, ema4)
cross_up_ema2_ema3 = ta.crossover(ema2, ema3)
cross_down_ema2_ema3 = ta.crossunder(ema2, ema3)
cross_up_ema2_ema4 = ta.crossover(ema2, ema4)
cross_down_ema2_ema4 = ta.crossunder(ema2, ema4)
cross_up_ema4_ema5 = ta.crossover(ema4, ema5)
cross_down_ema4_ema5 = ta.crossunder(ema4, ema5)
// --- Background Color States
var color bg_color_state_ema1_ema2 = na
bg_color_state_ema1_ema2 := cross_up_ema1_ema2 ? color.new(color.green, 85) : cross_down_ema1_ema2 ? color.new(color.red, 85) : bg_color_state_ema1_ema2
var color bg_color_state_ema1_ema3 = na
bg_color_state_ema1_ema3 := cross_up_ema1_ema3 ? color.new(color.teal, 85) : cross_down_ema1_ema3 ? color.new(color.purple, 85) : bg_color_state_ema1_ema3
var color bg_color_state_ema1_ema4 = na
bg_color_state_ema1_ema4 := cross_up_ema1_ema4 ? color.new(color.blue, 85) : cross_down_ema1_ema4 ? color.new(color.orange, 85) : bg_color_state_ema1_ema4
var color bg_color_state_ema2_ema3 = na
bg_color_state_ema2_ema3 := cross_up_ema2_ema3 ? color.new(color.lime, 85) : cross_down_ema2_ema3 ? color.new(color.red, 85) : bg_color_state_ema2_ema3
var color bg_color_state_ema2_ema4 = na
bg_color_state_ema2_ema4 := cross_up_ema2_ema4 ? color.new(color.aqua, 85) : cross_down_ema2_ema4 ? color.new(color.maroon, 85) : bg_color_state_ema2_ema4
var color bg_color_state_ema4_ema5 = na
bg_color_state_ema4_ema5 := cross_up_ema4_ema5 ? color.new(color.yellow, 85) : cross_down_ema4_ema5 ? color.new(color.fuchsia, 85) : bg_color_state_ema4_ema5
// --- Apply Background Colors
bgcolor(bg_color_state_ema1_ema2, title="EMA 1 & EMA 2 Background")
bgcolor(bg_color_state_ema1_ema3, title="EMA 1 & EMA 3 Background")
bgcolor(bg_color_state_ema1_ema4, title="EMA 1 & EMA 4 Background")
bgcolor(bg_color_state_ema2_ema3, title="EMA 2 & EMA 3 Background")
bgcolor(bg_color_state_ema2_ema4, title="EMA 2 & EMA 4 Background")
bgcolor(bg_color_state_ema4_ema5, title="EMA 4 & EMA 5 Background")
// --- Channel Fill Colors
fill_color_ema1_ema2 = ema1 > ema2 ? color.new(color.green, 85) : color.new(color.red, 85)
fill_color_ema1_ema3 = ema1 > ema3 ? color.new(color.teal, 85) : color.new(color.purple, 85)
fill_color_ema1_ema4 = ema1 > ema4 ? color.new(color.blue, 85) : color.new(color.orange, 85)
fill_color_ema2_ema3 = ema2 > ema3 ? color.new(color.lime, 85) : color.new(color.red, 85)
fill_color_ema2_ema4 = ema2 > ema4 ? color.new(color.aqua, 85) : color.new(color.maroon, 85)
fill_color_ema4_ema5 = ema4 > ema5 ? color.new(color.yellow, 85) : color.new(color.fuchsia, 85)
// --- Plot EMAs
plot(turnon1 ? ema1 : na, title="EMA 1", color=color.blue, linewidth=2)
plot(turnon2 ? ema2 : na, title="EMA 2", color=color.red, linewidth=2)
plot(turnon3 ? ema3 : na, title="EMA 3", color=color.teal, linewidth=2)
plot(turnon4 ? ema4 : na, title="EMA 4", color=color.orange, linewidth=2)
plot(turnon5 ? ema5 : na, title="EMA 5", color=color.yellow, linewidth=2)
plot(turnon6 ? ema6 : na, title="EMA 6", color=color.purple, linewidth=2)
plot(turnon7 ? ema7 : na, title="EMA 7", color=color.fuchsia, linewidth=2)
plot(turnon8 ? ema8 : na, title="EMA 8", color=color.teal, linewidth=2)
plot(turnon9 ? ema9 : na, title="EMA 9", color=color.aqua, linewidth=2)
// --- Channel Fill
fill(plot(ema1), plot(ema2), color=fill_color_ema1_ema2, title="Channel Fill EMA 1 & EMA 2")
fill(plot(ema1), plot(ema3), color=fill_color_ema1_ema3, title="Channel Fill EMA 1 & EMA 3")
fill(plot(ema1), plot(ema4), color=fill_color_ema1_ema4, title="Channel Fill EMA 1 & EMA 4")
fill(plot(ema2), plot(ema3), color=fill_color_ema2_ema3, title="Channel Fill EMA 2 & EMA 3")
fill(plot(ema2), plot(ema4), color=fill_color_ema2_ema4, title="Channel Fill EMA 2 & EMA 4")
fill(plot(ema4), plot(ema5), color=fill_color_ema4_ema5, title="Channel Fill EMA 4 & EMA 5")
Đường Trung bình trượt
111D SMA / (350D SMA * 2)Indicator: Pi Cycle Ratio
This custom technical indicator calculates a ratio between two moving averages that are used for the PI Cycle Top indicator. The PI Cycle Top indicator triggers when the 111-day simple moving average (111D SMA) crosses up with the 350-day simple moving average (350D SMA *2).
The line value is ratio is calculated as:
Line Value = 111DSMA / (350D SMA × 2)
When the 111D SMA crosses with the 350D SMA triggering the PI Cycle Top, the value of the ratio between the two lines is 1.
This visualizes the ratio between the two moving averages into a single line. This indicator can be used for technical analysis for historical and future moves.
SMA Crossover + MACD Zero Filter by AaronEscaThis indicator combines Simple Moving Average crossovers with a MACD zero-line filter to provide reliable buy/sell signals with momentum confirmation.
Toggle between:
20/50 SMA crossover – classic trend confirmation
9/20 SMA crossover – early reversal signals
Includes:
Visual fill between SMAs
MACD filter to confirm momentum
Instant BUY/SELL labels
Alerts for bullish and bearish entries
Created by AaronEsca to help traders reduce noise and act with confidence. Great for swing traders and intraday setups on the 15m–4H timeframes.
MTF EMA 20 Overlay (15m / 30m / 1h)📌 Multi-Timeframe EMA 20 Overlay — Perfect for scalping and trend-following traders.
This script displays the 20 EMA from 15-minute, 30-minute, and 1-hour timeframes directly on your current chart (e.g., 5-minute).
🟢 15m EMA 20 — Short-term confirmation
🟠 30m EMA 20 — Mid-level support/resistance
🔴 1h EMA 20 — Major trend guide
💡 Ideal for:
• Spotting key pullback zones
• Identifying intraday trend strength
• Aligning lower timeframe entries with higher timeframe structure
🎯 Strategy Tip:
Longs are higher probability when price is above the 15m/30m/1h EMAs. Watch for rejections or bounces near these levels.
Created with ❤️ by @little swiss + ChatGPT support.
TrendWave Bands [BigBeluga]This is a trend-following indicator that dynamically adapts to market trends using upper and lower bands. It visually highlights trend strength and duration through color intensity while providing additional wave bands for deeper trend analysis.
🔵Key Features:
Adaptive Trend Bands:
➣ Displays a lower band in uptrends and an upper band in downtrends to indicate trend direction.
➣ The bands act as dynamic support and resistance levels, helping traders identify potential entry and exit points.
Wave Bands for Additional Analysis:
➣ A dashed wave band appears opposite the main trend band for deeper trend confirmation.
➣ In an uptrend, the upper dashed wave band helps analyze momentum, while in a downtrend, the lower dashed wave band serves the same purpose.
Gradient Color Intensity:
➣ The trend bands have a color gradient that fades as the trend continues, helping traders visualize trend duration.
➣ The wave bands have an inverse gradient effect—starting with low intensity at the trend's beginning and increasing in intensity as the trend progresses.
Trend Change Signals:
➣ Circular markers appear at trend reversals, providing clear entry and exit points.
➣ These signals mark transitions between bullish and bearish phases based on price action.
🔵Usage:
Trend Following: Use the lower band for confirmation in uptrends and the upper band in downtrends to stay on the right side of the market.
Trend Duration Analysis: Gradient wavebands give an idea of the duration of the current trend — new trends will have high-intensity colored wavebands and as time goes on, trends will fade.
Trend Reversal Detection: Circular markers highlight trend shifts, making it easier to spot entry and exit opportunities.
Volatility Awareness: Volatility-based bands help traders adjust their strategies based on market volatility, ensuring better risk management.
TrendWave Bands is a powerful tool for traders seeking to follow market trends with enhanced visual clarity. By combining trend bands, wave bands, and gradient-based color scaling, it provides a detailed view of market dynamics and trend evolution.
Multi-MA Strategy Analyzer with BacktestMulti-MA Strategy Analyzer with Backtest
This TradingView Pine Script indicator is designed to analyze multiple moving averages (SMA or EMA) dynamically and identify the most profitable one based on historical performance.
Features
Dynamic MA Range:
Specify a minLength, maxLength, and step size.
Automatically calculates up to 20 MAs.
Custom MA Calculation:
Uses custom SMA and EMA implementations to support dynamic length values.
Buy/Sell Logic:
Buy when price crosses above a MA.
Sell when price crosses below.
Supports both long and short trades.
Performance Tracking:
Tracks PnL, number of trades, win rate, average profit, and drawdown.
Maintains individual stats for each MA.
Best MA Detection:
Automatically highlights the best-performing MA.
Optional showBestOnly toggle to focus only on the best line and its stats.
Visualization:
Up to 20 plot() calls (static) for MAs.
Green highlight for the best MA.
Color-coded result table and chart.
Table View
When showBestOnly = false, the table displays all MAs with stats.
When showBestOnly = true, the table displays only the best MA with a summary row.
Includes:
Best MA length
Total PnL
Number of trades
Win rate
Avg PnL per trade
Max Drawdown
Configuration
minLength (default: 10)
maxLength (default: 200)
step (default: 10)
useEMA: Toggle between EMA and SMA
showBestOnly: Focus on best-performing MA only
Notes
MA plotting is static, limited to 20 total.
Table supports highlighting and is optimized for performance.
Script is structured to run efficiently using arrays and simple int where required.
Potential Extensions
Add visual buy/sell arrows
Export stats to CSV
Strategy tester conversion
Custom date range filtering for backtesting
Author: Muhammad Wasim
Version: 1.0
Regime Filter IndicatorRegime Filter – Crypto Market Trend Indicator
📊 Overview
The Regime Filter is a powerful market analysis indicator designed specifically for crypto trading. It helps traders identify whether the market is in a bullish or bearish phase by analyzing key assets in the cryptocurrency market, including Bitcoin (BTC), Bitcoin Dominance (BTC.D), and the Altcoin Market (TOTAL3). The indicator compares these assets against their respective Simple Moving Averages (SMA) to determine the overall market regime, allowing traders to make more informed decisions.
🔍 How It Works
The Regime Filter evaluates three main components to determine the market's sentiment:
1. BTC Dominance (BTC.D) vs. 40 SMA (Medium Timeframe)
The Bitcoin Dominance (BTC.D) is compared to its 40-period SMA on a mid-timeframe (e.g.,
1-hour). If BTC.D is below the 40 SMA, it indicates that altcoins are performing well relative
to Bitcoin, suggesting a bullish altcoin market. If BTC.D is above the 40 SMA, Bitcoin is
gaining dominance, indicating a potential bearish phase for altcoins.
2. TOTAL3 Market Cap vs. 100 SMA (Medium Timeframe)
The TOTAL3 index, which tracks the total market capitalization of all cryptocurrencies except
Bitcoin and Ethereum, is compared to its 100-period SMA. A bullish signal occurs when TOTAL3
is above the 100 SMA, indicating strength in altcoins, while a bearish signal occurs when
TOTAL3 is below the 100 SMA, signaling a potential weakness in the altcoin market.
3. BTC Price vs. 200 SMA (Higher Timeframe)
The current Bitcoin price is compared to its 200-period Simple Moving Average (SMA) on a
higher timeframe (e.g., 4-hour). A bullish signal is given when the BTC price is above the 200
SMA, and a bearish signal when it's below.
🟢 Bullish Market Conditions
The market is considered bullish when:
- BTC Dominance (BTC.D) is below the 40 SMA, suggesting altcoins are gaining momentum.
- TOTAL3 Market Cap is above the 100 SMA, signaling strength in the altcoin market.
- BTC price is above the 200 SMA, indicating an uptrend in Bitcoin.
In these conditions, the background turns green 🟢, and a "Bullish" label is displayed on the chart.
🔴 Bearish Market Conditions
The market is considered bearish when:
- BTC Dominance (BTC.D) is above the 40 SMA, indicating Bitcoin is outperforming altcoins.
- TOTAL3 Market Cap is below the 100 SMA, signaling weakness in altcoins.
- BTC price is below the 200 SMA, indicating a downtrend in Bitcoin.
In these conditions, the background turns red 🔴, and a "Bearish" label appears on the chart.
⚙ Customization Options
- The Regime Filter offers flexibility for traders:
- Enable or Disable Specific SMAs: Customize the indicator by enabling or disabling the 200 SMA for Bitcoin, the 40 SMA for BTC Dominance, and the 100 SMA for TOTAL3.
- Adjust Timeframes: Choose the timeframes for each of the moving averages to suit your preferred trading strategy.
- Real-Time Data Adjustments: The indicator updates in real-time to reflect current market conditions, ensuring timely analysis.
📈 Best Use Cases
- Trend Confirmation: The Regime Filter is ideal for confirming the market's overall trend,
helping traders to align their positions with the dominant market sentiment.
- Trade Entry/Exit Signals: Use the indicator to identify favorable entry or exit points based on
whether the market is in a bullish or bearish phase.
- Market Overview: Gain a quick understanding of the broader crypto market, with a focus on
Bitcoin and altcoins, to make more strategic decisions.
⚠️ Important Notes
Trend-Following Indicator: The Regime Filter is a trend-following tool, meaning it works best in strong trending markets. It may not perform well in choppy, sideways markets.
Risk Management: This indicator is designed to assist in identifying market trends, but it does not guarantee profits. Always apply sound risk management strategies and use additional indicators when making trading decisions.
Not a Profit Guarantee: While this indicator can help identify potential market trends, no trading tool or strategy guarantees profits. Please trade responsibly and ensure that your decisions are based on comprehensive analysis and risk tolerance.
SMA 12, 36, 200 with Signals and AlertsFeatures:
✅ Simple Moving Averages:
SMA 12 (short-term)
SMA 36 (mid-term)
SMA 200 (long-term trend filter)
✅ Buy & Sell Signals:
Buy: When SMA 12 crosses above SMA 36
Sell: When SMA 12 crosses below SMA 36
✅ Built-in Alerts:
Receive real-time alerts when a signal is triggered.
🧠 Strategy Overview – Multi-Timeframe Trading
This script is designed to be used with multi-timeframe analysis:
1H Chart – Trend Direction
If the price is above the SMA 200 on the 1-hour chart → look for Long opportunities.
If the price is below the SMA 200 on the 1-hour chart → look for Short opportunities.
5-Min Chart – Entry Timing
Once the higher-timeframe trend is clear, switch to the 5-minute chart.
Use SMA 12 and SMA 36 crossovers to time your entry in the direction of the main trend.
This approach helps filter out false signals and improves overall trade accuracy.
Multiple EMA Crossover IndicatorMultiple EMA Crossover
Green Background when:
a) EMA50 > EMA100 plus
b) Price > EMA50
EMA 13 y EMA 48.5 CrucesThis indicator displays the crossovers between a fast EMA (13-period) and a smoothed EMA approximation of 48.5 periods (calculated as the average between EMA 48 and EMA 49). The goal is to help identify potential trend shifts in the market.
When the EMA 13 crosses above the EMA 48.5, it may signal the beginning of a bullish trend.
When it crosses below, it may indicate the start of a bearish trend.
🔍 Features:
Both EMAs plotted on the chart for visual tracking.
Automatic detection and marking of crossover points with clear symbols.
Built-in alert conditions for real-time notifications.
This tool is ideal for trend-following traders or anyone seeking simple, clean signals based on exponential moving average crossovers.
OG EMA+VWAPDescription:
The OG EMA Stack + VWAP + Auto Fibonacci Pivots is a powerful trend-following and confluence-based trading tool. It combines 6 key exponential moving averages (8, 21, 50, 100, 200, 400), VWAP, and automatic Fibonacci pivot zones to help traders identify dynamic support/resistance levels, trend strength, and high-probability trade zones.
How it works:
EMAs are color-coded to show bullish/bearish stacking.
VWAP serves as an intraday mean reversion benchmark.
Fibonacci Pivots are automatically plotted based on recent swing highs/lows to reveal key retracement levels.
Best for:
Identifying trend strength and potential reversals.
Spotting confluences of EMAs, VWAP, and Fibonacci levels for sniper entries.
Scalping, swing trading, and intraday setups.
Tip: Use this on clean charts to spot when price bounces between stacked EMAs and VWAP with pivot zone rejections.
3EMA_CloseThis script places three closing-price EMAs on the chart with defaults of 8, 34, and 144 periods.
Three Simple Moving AveragesThis script provides three common Simple Moving Averages (SMAs) in a single indicator.
UM Futures Dashboard with Moving Average DirectionUM Futures Dashboard with Moving Average Direction
Description :
This futures dashboard gives you quick glance of all “major” futures prices and percentage changes. The text color and trends are based on your configured moving average type and length. The dashboard will display LONG in green text when the configure MA is trending higher and SHORT in red when the configured MA is trending lower. The dashboard also includes the VIX futures roll yield and VIX futures status of Contango or Backwardation.
I have included the indicator twice on the sample chart to illustrate different table settings. I also included an 8 period WMA overlay on the price chart since this is the default of the dashboard. (The Moving Average color change is another one of my indicators titled “UM EMA SMA WMA HMA with Directional Color Change”)
Defaults and Configuration :
The default MA type is the Weighted Moving Average, (WMA) with a daily setting of 8. Choices include WMA, SMA, and EMA. The table location defaults to the upper right corner in landscape mode. It can also be set to “flip” to portrait mode. I have added the table to the chart twice to illustrate the table orientations.
Table location, orientation, timeframe, moving average type and length are user-configurable. The configured dashboard timeframe is independent of the chart timeframe. Percentage changes and Moving Averages are based on the configured dashboard timeframe.
Alerts :
Alerts can be configured on the directional change of the dashboard moving average. For example, if the daily 8 period weighted moving average begins trending higher it will turn from red to green. This color change would fire a LONG alert. A color trend change of the weighted moving average from green to red would fire a SHORT alert. Alerts are disabled by default but can be set for any or all of the futures contracts included.
Suggested Uses :
If you follow or trade futures, add this dashboard indicator to your chart layout. Configure your favorite moving average. Use this to quickly see where all the major futures are trading. This saved me from thumbing through the CNBC app on my phone.
One thing I do is to “stretch” moving average to a smaller timeframe. For example, if you like the 8 period WMA on the daily, try the 192 WMA on the hourly. ( The daily 8 period WMA is roughly a 192 WMA on an hourly chart) This can smooth out some of the violent price action and give better entries/exits.
Setup a FUTURES indicator template. I do this with the dashboard and couple other of my favorite indicators.
Suggested Settings :
Daily charts: 8 WMA
Combined EMA Technical AnalysisThis script is written in Pine Script (version 5) for TradingView and creates a comprehensive technical analysis indicator called "Combined EMA Technical Analysis." It overlays multiple technical indicators on a price chart, including Exponential Moving Averages (EMAs), VWAP, MACD, PSAR, RSI, Bollinger Bands, ADX, and external data from the S&P 500 (SPX) and VIX indices. The script also provides visual cues through colors, shapes, and a customizable table to help traders interpret market conditions.
Here’s a breakdown of the script:
---
### **1. Purpose**
- The script combines several popular technical indicators to analyze price trends, momentum, volatility, and market sentiment.
- It uses color coding (green for bullish, red for bearish, gray/white for neutral) and a table to display key information.
---
### **2. Custom Colors**
- Defines custom RGB colors for bullish (`customGreen`), bearish (`customRed`), and neutral (`neutralGray`) signals to enhance visual clarity.
---
### **3. User Inputs**
- **EMA Colors**: Users can customize the colors of five EMAs (8, 20, 9, 21, 50 periods).
- **MACD Settings**: Adjustable short length (12), long length (26), and signal length (9).
- **RSI Settings**: Adjustable length (14).
- **Bollinger Bands Settings**: Length (20), multiplier (2), and proximity threshold (0.1% of band width).
- **ADX Settings**: Adjustable length (14).
- **Table Settings**: Position (e.g., "Bottom Right") and text size (e.g., "Small").
---
### **4. Indicator Calculations**
#### **Exponential Moving Averages (EMAs)**
- Calculates five EMAs: 8, 20, 9, 21, and 50 periods based on the closing price.
- Used to identify short-term and long-term trends.
#### **Volume Weighted Average Price (VWAP)**
- Resets daily and calculates the average price weighted by volume.
- Color-coded: green if price > VWAP (bullish), red if price < VWAP (bearish), white if neutral.
#### **MACD (Moving Average Convergence Divergence)**
- Uses short (12) and long (26) EMAs to compute the MACD line, with a 9-period signal line.
- Displays "Bullish" (green) if MACD > signal, "Bearish" (red) if MACD < signal.
#### **Parabolic SAR (PSAR)**
- Calculated with acceleration factors (start: 0.02, increment: 0.02, max: 0.2).
- Indicates trend direction: green if price > PSAR (bullish), red if price < PSAR (bearish).
#### **Relative Strength Index (RSI)**
- Measures momentum over 14 periods.
- Highlighted in green if > 70 (overbought), red if < 30 (oversold), white otherwise.
#### **Bollinger Bands (BB)**
- Uses a 20-period SMA with a 2-standard-deviation multiplier.
- Color-coded based on price position:
- Green: Above upper band or close to it.
- Red: Below lower band or close to it.
- Gray: Neutral (within bands).
#### **Average Directional Index (ADX)**
- Manually calculates ADX to measure trend strength:
- Strong trend: ADX > 25.
- Very strong trend: ADX > 50.
- Direction: Bullish if +DI > -DI, bearish if -DI > +DI.
#### **EMA Crosses**
- Detects bullish (crossover) and bearish (crossunder) events for:
- EMA 9 vs. EMA 21.
- EMA 8 vs. EMA 20.
- Visualized with green (bullish) or red (bearish) circles.
#### **SPX and VIX Data**
- Fetches daily closing prices for the S&P 500 (SPX) and VIX (volatility index).
- SPX trend: Bullish if EMA 9 > EMA 21, bearish if EMA 9 < EMA 21.
- VIX levels: High (> 25, fear), Low (< 15, stability).
- VIX color: Green if SPX bullish and VIX low, red if SPX bearish and VIX high, white otherwise.
---
### **5. Visual Outputs**
#### **Plots**
- EMAs, VWAP, and PSAR are plotted on the chart with their respective colors.
- EMA crosses are marked with circles (green for bullish, red for bearish).
#### **Table**
- Displays a summary of indicators in a customizable position and size.
- Indicators shown (if enabled):
- EMA 8/20, 9/21, 50: Green dot if bullish, red if bearish.
- VWAP: Green if price > VWAP, red if price < VWAP.
- MACD: Green if bullish, red if bearish.
- MACD Zero: Green if MACD > 0, red if MACD < 0.
- PSAR: Green if price > PSAR, red if price < PSAR.
- ADX: Arrows for very strong trends (↑/↓), dots for weaker trends, colored by direction.
- Bollinger Bands: Arrows (↑/↓) or dots based on price position.
- RSI: Numeric value, colored by overbought/oversold levels.
- VIX: Numeric value, colored based on SPX trend and VIX level.
---
### **6. Alerts**
- Triggers alerts for EMA 8/20 crosses:
- Bullish: "EMA 8/20 Bullish Cross on Candle Close!"
- Bearish: "EMA 8/20 Bearish Cross on Candle Close!"
---
### **7. Key Features**
- **Flexibility**: Users can toggle indicators on/off in the table and adjust parameters.
- **Visual Clarity**: Consistent use of green (bullish), red (bearish), and neutral colors.
- **Comprehensive**: Combines trend, momentum, volatility, and market sentiment indicators.
---
### **How to Use**
1. Add the script to TradingView.
2. Customize inputs (colors, lengths, table position) as needed.
3. Interpret the chart and table:
- Green signals suggest bullish conditions.
- Red signals suggest bearish conditions.
- Neutral signals indicate indecision or consolidation.
4. Set up alerts for EMA crosses to catch trend changes.
This script is ideal for traders who want a multi-indicator dashboard to monitor price action and market conditions efficiently.
Multi-Dimensional Momentum NavigatorMulti-Dimensional Momentum Navigator: A Comprehensive Guide
Description
The Multi-Dimensional Momentum Navigator is a sophisticated trading indicator designed to provide traders with an advanced and holistic view of market momentum. By incorporating multiple weighted features such as price levels, volume, moving averages, RSI, volatility, and rate of change, this indicator generates precise buy and sell signals. Additionally, it includes an enhanced volume-RSI momentum system with signal strength to improve market timing and trade execution.
How It Works
The script consists of two major components:
1. Optimized Trading Indicator
This section of the script calculates a trading signal using a weighted sum of various market features. It then defines buy and sell conditions based on the relative strength of the trading signal compared to its moving average.
2. Enhanced Volume RSI Momentum with Signal Strength
This section introduces volume-based momentum analysis using volume oscillators, RSI, and ADX (Average Directional Index). It identifies bullish and bearish conditions and includes an early warning system for predictive trading signals.
Input Fields and Recommended Values
Parameter, Function, and Recommended Values
Period - Defines the lookback length for calculations - 14
Open Weight - Weight assigned to the open price - 0.9433
High Weight - Weight assigned to the high price - 0.9273
Low Weight - Weight assigned to the low price - 0.9603
Close Weight - Weight assigned to the close price - 0.0334
Volume Weight - Weight assigned to volume - 0.1838
MA 14 Weight - Weight assigned to 14-period SMA - -0.1351
MA 20 Weight - Weight assigned to 20-period SMA - -0.7313
Volatility Weight - Weight assigned to market volatility - 0.0334
BB Middle Weight - Weight assigned to Bollinger Bands Middle Line - 0.0886
RSI Weight - Weight assigned to RSI - -0.8139
EMA Weight - Weight assigned to EMA - 0.2540
ROC Weight - Weight assigned to Rate of Change - 0.5541
VO Short Length - Lookback length for short-term Volume Oscillator - 1
VO Long Length Lookback length for long-term Volume Oscillator 5
RSI Length - Lookback length for RSI calculation - 7
VO Bullish Threshold (%) - Threshold for bullish volume oscillator - 55
VO Bearish Threshold (%) - Threshold for bearish volume oscillator - 55
RSI Bullish Condition - RSI level indicating a bullish signal - 25
RSI Bearish Condition - RSI level indicating a bearish signal - 50
Early Detection Percentage - Percentage of threshold required for early detection -20
ADX Early Threshold - Minimum ADX value for early signal detection - 15
How a Trader Can Use the Indicator
Traders can leverage this indicator for:
1. Identifying Market Trends: The trading signal, calculated from multiple weighted indicators, helps determine bullish and bearish trends.
2. Confirming Trade Entries: Buy and sell conditions are plotted directly on the chart, allowing for clear trade signals.
3. Early Warnings for Market Reversals: The enhanced volume-RSI momentum provides early bullish and bearish warnings before price movements.
4. Risk Management: The combination of ADX, RSI, and Volume Oscillators ensures that trade signals are backed by strong market conditions.
Understanding the Signals on the Chart
• Green Up Arrows: Buy signals, indicating a strong upward momentum.
• Red Down Arrows: Sell signals, indicating a strong downward momentum.
• Light Green Up Arrows (UP): Confirmation of a buy signal.
• Orange Down Arrows (DOWN): Confirmation of a sell signal.
• Blue Triangle Up: Early bullish warning, indicating potential upward momentum.
• Orange Triangle Down: Early bearish warning, indicating potential downward momentum.
How to Use the Indicator for Analysis and Trading Decisions
1. Trend Confirmation: Use the trading signal in conjunction with its moving average to confirm market direction.
2. Volume Analysis: Check if the volume oscillator is above or below its threshold to validate trade entries.
3. Momentum Strength: Use RSI and ADX readings to gauge market momentum before entering trades.
4. Early Entry & Exit: React to early warning signals for proactive market entries or exits.
5. Multi-Timeframe Analysis: Combine signals from different timeframes to strengthen trade conviction.
Uniqueness and Originality
What sets this indicator apart from traditional technical indicators:
1. Multi-Factor Analysis: Unlike single-indicator approaches, this combines multiple weighted factors for a holistic signal.
2. Dynamic Weighting System: Feature weights allow for customized optimization, making the indicator adaptable to different markets.
3. Predictive Early Warning System: Unlike traditional lagging indicators, this provides early trade warnings for better execution.
4. Enhanced Signal Confirmation: Incorporates multiple independent confirmations to reduce false signals and improve reliability.
5. User-Friendly Visualization: Clearly marked buy/sell and confirmation signals make it easy to interpret and act upon.
Conclusion
The Multi-Dimensional Momentum Navigator is a powerful, data-driven indicator that enhances trading decisions by leveraging multiple market factors. It provides traders with precise buy and sell signals, early warnings, and momentum confirmations to navigate market trends effectively. Its adaptability, predictive capabilities, and advanced feature integration make it an invaluable tool for any trader seeking a robust edge in the market.
SPY Scalping Strategy (9 EMA & 21 EMA)Confluence the trade with 4hr/15m bias direction. Use Vwap as part of your entry. Above vwap (bullish) / Below ( bearish) then wait for price to pull back to 21ema on a 5m timeframe. Make sure 9ema is above 21ema for bullish trade and below for bearish trade.
MA SniperThis indicator automatically finds the most effective moving average to use in a price crossover strategy—so you can focus on trading, not testing. It continuously evaluates a wide range of moving average periods, ranks them based on real-time market performance, and selects the one delivering the highest quality signals. The result? A smarter, adaptive tool that shows you exactly when price crosses its optimal moving average—bullish signals in green, bearish in red.
What makes it unique is the way it thinks.
Under the hood, the script doesn’t just pick a random MA or let you choose one manually. Instead, it backtests a large panel of moving average lengths for the current asset and timeframe. It evaluates each one by calculating its **Profit Factor**—a key performance metric used by pros to measure the quality of a strategy. Then, it assigns each MA a score and ranks them in a clean, built-in table so you can see, at a glance, which ones are currently most effective.
From that list, it picks the top-performing MA and uses it to generate live crossover signals on your chart. That MA is plotted automatically, and the signals adapt in real-time. This isn’t a static setup—it’s a dynamic system that evolves as the market evolves.
Even better: the indicator detects the type of instrument you’re trading (forex, stocks, etc.) and adjusts its internal calculations accordingly, including how many bars per day to consider. That means it remains highly accurate whether you’re trading EURUSD, SPX500, or TSLA.
You also get a real-time dashboard (via the table) that acts as a transparent scorecard. Want to see how other MAs are doing? You can. Want to understand why a certain MA was selected? The data is right there.
This tool is for traders who love crossover strategies but want something smarter, faster, and more precise—without spending hours manually testing. Whether you're scalping or swing trading, it offers a data-driven edge that’s hard to ignore.
Give it a try—you’ll quickly see how powerful it can be when your MA does the thinking for you.
This tool is for informational and educational purposes only. Trading involves risk, and past performance does not guarantee future results. Use responsibly.
MA Trend ScoreA Trend Score Indicator inspired by an interview by Navy Ramavat, where I liked the idea presented and decided to publish a script for it.
Disclaimer: I am not associated with Navy Ramavat in any manner.
The goal is to objectify the trend of an instrument and calculate a score which represents the trend strength and direction.
The score is calculated as follows:
If price is > EMA 20 add 1 to the score
If price is > EMA 50 add 1 to the score
If price is > EMA 100 add 1 to the score
If EMA 20 is > EMA 50 add 1 to the score
If EMA 20 is > EMA 100 add 1 to the score
If EMA 50 is > EMA 100 add 1 to the score
If EMA 20 is < EMA 50 deduct 1 from the score
If EMA 20 is < EMA 100 deduct 1 from the score
If EMA 50 is < EMA 100 deduct 1 from the score
The highest score can be 6, and lowest score can be -6
The trend score can be used as per your discretion on the long and short side.
An example of using the trend score on the long side for position sizing is:
100% position size if Score greater than 4
75% position size if Score between 2-4
50% position size if Score between 0-2
25% position size if Score between 0 and -2
0% position size if Score is less than -2
EMA vs SMA Crossover (Toggle 15/20) by AaronEscaThis custom indicator by AaronEsca lets you toggle between a 15-period or 20-period EMA/SMA crossover to spot trend shifts and momentum changes earlier.
Features:
Choose between 15 or 20 period moving averages using a simple dropdown.
Highlights when the EMA crosses above or below the SMA — a signal of trend momentum or exhaustion.
Includes visual fill between the two lines for instant trend direction insight.
Alerts included for bullish and bearish crossovers.
Designed for use on the 4H, 1H, and Daily timeframes, but flexible for any strategy.
This tool is perfect for swing traders, scalpers, or anyone wanting early confirmation of a potential reversal or momentum break.