SMA MAD SuperTrend | OquantThe SMA MAD SuperTrend | Oquant is an trend-following indicator designed to help traders identify potential trend directions and reversals using a unique combination of a Simple Moving Average (SMA), Mean Absolute Deviation (MAD), and a SuperTrend mechanism. This script aims to provide clear visual signals for trend entries and exits, making it suitable for traders looking to capture trends.
This indicator innovatively combines the smoothing properties of an SMA with the volatility-adaptive qualities of MAD to create dynamic SuperTrend bands. Unlike traditional SuperTrend indicators that rely on Average True Range (ATR) for volatility, this script uses Mean Absolute Deviation(MAD) to measure the average absolute deviation from the mean price, providing a different perspective on price volatility. The result is a SuperTrend system that adapts to market conditions with a focus on price deviation, offering a unique tool for trend detection.
Components and Calculations
Simple Moving Average (SMA):
The SMA is a widely used indicator that calculates the average of a specified number of closing prices. It smooths price data to identify the overall trend direction. In this script, the SMA serves as the baseline for calculating dynamic upper and lower bands.
Mean Absolute Deviation (MAD):
MAD measures the average absolute deviation of the price from its mean. It quantifies volatility by calculating how far prices deviate from the mean price, offering an alternative to ATR.
SuperTrend Mechanism:
This SuperTrend indicator generates dynamic upper and lower bands around the Simple Moving Average (SMA) using mean absolute deviation as measure of volatility.
It tracks trend direction by comparing the close price to the bands:
If the price crosses above the upper band, the trend turns bullish, and the SuperTrend follows the lower band.
If the price crosses below the lower band, the trend turns bearish, and the SuperTrend follows the upper band.
The bands adjust based on their previous values, updating only when the price crosses a band or the band shifts in the correct direction, reducing false signals and ensuring stable trend detection.
How to Use the Indicator
Trend Signals:
Green Line: Indicates a bullish trend (price above the SuperTrend line).
Purple Line: Indicates a bearish trend (price below the SuperTrend line).
Bar and Candle Coloring: Bars and candles are colored green for bullish trends and purple for bearish trends, making it easy to visualize trend direction.
Filled Areas: The area between the price and the SuperTrend line is filled with transparent colors (green for bullish, purple for bearish) to highlight trend.
Inputs:
Source: Choose the price data for calculations.
SMA Length: Adjust the period for the SMA. Longer periods smooth the trend further.
MAD Length: Set the period for MAD calculation. Shorter periods make the MAD more sensitive.
Factor: Control the distance of the SuperTrend bands from the SMA. Higher values widen the bands, reducing sensitivity to price fluctuations.
Alerts:
The script includes alert conditions for trend changes:
SMA MAD SuperTrend Long: Triggered when the trend turns bullish.
SMA MAD SuperTrend Short: Triggered when the trend turns bearish.
Set up alerts in TradingView to receive notifications for these conditions.
Why Use This Script?
The SMA MAD SuperTrend | Oquant offers a fresh take on trend-following by integrating SMA as baseline and MAD for volatility measurement, providing an alternative to ATR-based SuperTrend indicators. Its clear visual signals, customizable inputs, and alert conditions make it versatile for traders of all levels.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
Sma
Trend Pro - @CRYPTIK1Introduction: What is Trend Pro?
Trend Pro is a comprehensive trend analysis tool designed to give you a clear, at-a-glance understanding of the market's direction across multiple timeframes. In a noisy market, the single most important factor is the dominant trend. This indicator filters out the noise by focusing on one core principle: trading with the primary momentum of the market.
Instead of cluttering your chart with confusing signals, Trend Pro provides a clean, visual representation of the trend, helping you make more confident and informed trading decisions.
The Core Concept: The Power of Confluence
The strength of any trading decision comes from confluence—when multiple factors align to point in the same direction. Trend Pro is built on this idea. It uses a long-term moving average (200-period 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 with your analysis.
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.
This tool is designed to be a foundational layer for your trading system, providing the essential context you need before entering any trade.
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.
Green MA: The price is in a confirmed uptrend (trading above the MA).
Red MA: The price is in a confirmed downtrend (trading below the MA).
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 (Up, Down, or Neutral) on three customizable higher timeframes.
Green Box: The trend is UP on that timeframe.
Red 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: A Simple Framework
Step 1: Identify the Primary Trend
Look at the color of the MA on your main chart. This is your starting point. If it's green, you should be looking for opportunities to go long. If it's red, you should be looking for opportunities to go short.
Step 2: Check for Confluence
Glance at the MTF Trend Dashboard.
Strong Confluence (High-Probability): If your main chart is in an uptrend (Green MA) and the dashboard shows all green boxes, the market is in a strong, unified uptrend. This is a high-probability environment to be a buyer.
Weak or No Confluence (Caution Zone): If your main chart is in an uptrend, but the dashboard shows red or gray boxes, it signals that the higher timeframes are not in agreement. This is a sign of market indecision and a lower-probability environment. It's often best to wait for the timeframes to align.
Best Practices & Settings
Timeframe Synergy: For the 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 to get a complete picture of the market.
Use as a Confirmation Tool: Trend Pro is not designed to be a standalone entry/exit system. Use it as the foundational layer of your analysis. First, confirm the trend with Trend Pro, then use your preferred entry method (e.g., support/resistance, chart patterns, or other indicators) to time your trade.
Manish's Momentum Indicator
Combines **Trend Highlighter** (GMMA + SMA89) with **Trend Power** (MFI + ATR Normalization) for a dual framework.
Auto-marks fresh **BULL/BEAR trend shifts** and momentum extremes (Overheated, Oversold, Volatile Reversals, Calm Distribution).
ATR is normalized (0–100 scale) to identify whether moves happen in calm or volatile conditions.
Optionally plots the **15-min opening range box** to highlight the day’s initial balance.
Background coloring distinguishes trend bias vs. momentum extremes for quick chart scanning.
Built-in info table shows live readings of MFI, ATR Normalization, Composite Signal, and Trend Signal.
All-in-one dashboard for fast assessment of trend alignment, volatility regime, and momentum strength.
Intelligent Trading SuiteIntelligent Trading Suite
“One script to rule them all.”
Overview
The Intelligent Trading Suite is a professional-grade decision system built in Pine Script. It is a unified engine—not a bundle of indicators—that combines adaptive pattern recognition, historical memory, and multi-context intelligence into one framework. Using a deep historical pattern database and integrating session dynamics, market calendars, holiday effects, and economic events, it filters noise and adapts to conditions. Core emphasis: precise pattern detection with target-price projection that remains stable as new candles print (mitigates target drift) and early detection of forming geometric patterns and divergences/hidden divergences.
Core Features
All-Timeframe Operation: Works across every TradingView timeframe—from 1m to 1W—without performance drift.
Pattern Recognition with Targets: Detects triangles, wedges, cup & handle, flags, and H&S; projects targets and stabilizes them against common drift as price evolves.
Early Signal Engine: Flags forming patterns and divergences before completion and notifies when prerequisites align.
Historical Pattern Intelligence: Stores and compares thousands of prior states (Hull, VWAP, RSI, MACD, SMA, CVD) to weight current conditions and calibrate confidence.
Context & Regime Awareness: Adjusts for volatility regimes, liquidity sessions, day-of-week bias, holidays, and macro events.
Unified Signal & Confidence: Fuses all streams into a single Overall signal with calibrated confidence levels (Weak / Neutral / Strong).
Visualization & Alerts
Compact Ultimate Intelligence Table showing each analytical pillar, plus the Overall signal, and an option to show them on the chart as well.
Alerts on table for: new pattern detection, divergence events, volatility shifts, and trend reversals.
Important Notes
-Free plan runtime: TradingView Free accounts may hit platform limits.
Fix: Open settings → switch Mode from Paid to Free → runs within Free limits.
-Heavy computation: The script is calculation- and data-intensive; initial runs can take time.
If a rare runtime error occurs, simply reload the page and continue.
Attributions
Hull Moving Average (Alan Hull)
VWAP (Volume Weighted Average Price)
RSI (Relative Strength Index, J. Welles Wilder Jr.)
MACD (Moving Average Convergence Divergence, Gerald Appel)
Black Flag ATR bands (Jose Azcarate)
Proprietary enhancements, target-stabilization logic, and the nuclear intelligence architecture are original research for this suite.
Compliance
Educational and analytical use only
No financial advice
Ad-free; aligned with TradingView House Rules
Proper attribution included
Access
To get access, please read the Author’s instructions on the script’s page.
MA Candle ColorsSelectable sma or ema length combine with candle, when candle is above moving average, both green signals to buy, and when candle is below moving average, both red signals to sell...educational and entertainment only
Volume Rotor Clock [hapharmonic]🕰️ Volume Rotor Clock
The Volume Rotor Clock is an indicator that separates buy and sell volume, compiling these volumes over a recent number of bars or a specified past period, as defined by the user. This helps to reveal accumulation (buying) or distribution (selling) behavior, showing which side has superior volume. With its unique and beautiful display, the Volume Rotor Clock is more than just a timepiece; it's a dynamic dashboard that visualizes the buying and selling pressure of your favorite symbols, all wrapped in an elegant and fully customizable interface.
Instead of just tracking price, this indicator focuses on the engine behind the movement: volume. It helps you instantly identify which assets are under accumulation (buying) and which are under distribution (selling).
---
🎨 20 Pre-configured Templates
---
🧐 Interpreting the Clock Display
The interface is designed to give you multiple layers of information at a glance. Let's break down what each part represents.
1. The Main Clock Hands (Current Chart Symbol)
The clock hands—hour, minute, and second—are dedicated to the symbol on your current active chart .
Minute Hand: Displays the base currency of the current symbol (e.g., USDT, USD) at its tip.
Hour Hand: Displays the percentage of the winning volume side (buy vs. sell) at its tip.
Color Gauge: The color of the text characters at the tip of both the hour and minute hands acts as your primary volume gauge for the current symbol.
If buy volume is dominant , the text will be green .
If sell volume is dominant , the text will be red .
Tooltip: Hovering your mouse over the text at the tip of the hour or minute or other spherical elements hand will reveal a detailed tooltip with the precise Buy Volume, Sell Volume, Total Volume, Buy %, and Sell % for the current chart's symbol.
2. The Volume Scanner: Bulls & Bears (Symbols Inside the Clock) 🐂🐻
The circular symbols scattered inside the clock face are your multi-symbol volume scanner. They represent the assets you've selected in the indicator's settings.
Green Circles (Bulls - Upper Half): These represent symbols from your list where the total buy volume is greater than the total sell volume over the defined "Lookback" period. They are considered to be under bullish accumulation. The size of the circle and its text grows larger as the buy percentage becomes more dominant. The percentage shown within the circle represents the buy volume's share of the total volume, calculated over the 'Lookback (Bars)' you've set.
Red Circles (Bears - Lower Half): These represent symbols where the total sell volume is greater than the total buy volume. They are considered to be under bearish distribution or selling pressure. The size of the circle indicates the dominance of the sell-side volume. The percentage shown within the circle represents the sell volume's share of the total volume, calculated over the 'Lookback (Bars)' you've set.
3. The Bullish Watchlist (Symbols Above the Clock) ⭐
The symbols arranged neatly along the top edge of the clock are the "best of the bulls." They are symbols that are not only bullish but have also passed an additional, powerful strength filter.
What it Means: A symbol appears here when it shows signs of sustained, high-volume buying interest . It's a way to filter out noise and focus on assets with potentially significant accumulation phases.
The Filter Logic: For a bullish symbol (where total buy volume > total sell volume) to be promoted to the watchlist, its trading volume must meet specific criteria based on this formula:
ta.barssince(not(volume > ta.sma(volume, X))) >= Y
In plain English, this means: The indicator checks how many consecutive bars the `volume` has been greater than its `X`-bar Simple Moving Average (`ta.sma(volume, X)`). If this count is greater than or equal to `Y` bars, the condition is met.
(You can configure `X` (Volume MA Length) and `Y` (Consecutive Days Above MA) in the settings.)
Why it's Useful: This filter is powerful because it looks for consistency . A single spike in volume can be an anomaly. However, when an asset's volume remains consistently above its recent average for several consecutive days, it strongly suggests that larger players or a significant portion of the market are actively accumulating the asset. This sustained interest can often precede a significant upward price trend.
---
⚙️ Indicator Settings Explained
The Volume Rotor Clock is highly customizable. Here’s a detailed walkthrough of every setting available in the "Inputs" tab.
🎨 Color Scheme
This group allows you to control the entire aesthetic of the clock.
Template: Choose from a wide variety of professionally designed color themes.
Use Template: A simple checkbox to switch between using a pre-designed theme and creating your own.
`Checked`: You can select a theme from the dropdown menu, which offers 20 unique templates like "Cyberpunk Neon" or "Forest Green". All custom color settings below will be disabled (grayed out and unclickable).
`Unchecked`: The template dropdown is disabled, and you gain full control over every color element in the sections below.
🖌️ Custom Appearance & Colors
These settings are only active when "Use Template" is unchecked.
Flame Head / Tail: Sets the start and end colors for the dynamic flame effect that traces the clock's border, representing the second hand.
Numbers / Main Numbers: Customize the color of the regular hour numbers (1, 2, 4, 5...) and the main cardinal numbers (3, 6, 9, 12).
Sunburst Colors (1-6): Controls the six colors used in the gradient background for the "sunburst" effect inside the clock face.
Hands & Digital: Fine-tune the colors for the Hour/Minute Hand, Second Hand, central Pivot point, and the digital time display.
Chain Color / Width: Customize the appearance of the two chains holding the clock.
📡 Volume Scanner
Control the behavior of the multi-symbol scanner.
Show Scanner Labels: A master switch to show or hide all the bull/bear symbol circles inside the clock.
Lookback (Bars): A crucial setting that defines the calculation period for buy/sell volume for all scanned symbols. The calculation is a sum over the specified number of recent bars.
`0`: Calculates using the current bar only .
`7`: Calculates the sum of volume over the last 8 bars (the current bar + 7 historical bars).
Symbols List: Here you can enable/disable up to 20 slots and input the ticker for each symbol you want to scan (e.g., BINANCE:BTCUSDT , NASDAQ:AAPL ).
⭐ Bullish Watchlist Filter
Configure the criteria for the elite watchlist symbols displayed above the clock.
Enable Watchlist: A master switch to turn the entire watchlist feature on or off.
Volume MA Length: Sets the lookback period `(X)` for the Simple Moving Average of volume used in the filter.
Consecutive Days Above MA: Sets the minimum number of consecutive days `(Y)` that volume must close above its MA to qualify.
Symbols Per Row: Determines the maximum number of watchlist symbols that can fit in a single row before a new row is created above it.
Background / Text Color: When not using a template, you can set custom colors for the watchlist symbols' background and text.
📏 Position & Size
Adjust the clock's placement and dimensions on your chart.
Clock Timezone: Sets the timezone for the digital and analog time display. You can use standard formats like "America/New_York" or enter "Exchange" to sync with the chart's timezone.
Radius (Bars): Controls the overall size of the clock. The radius is measured in terms of the number of bars on the x-axis.
X Offset (Bars): Moves the entire clock horizontally. Positive values shift it to the right; negative values shift it to the left.
Y Offset (Price %): Moves the entire clock vertically as a percentage of your screen's price pane. Positive values move it up; negative values move it down.
IB with Range PercentageThis Pine Script indicator for TradingView combines several powerful technical analysis tools to give traders a comprehensive view of market action:
Inside Bar Detection: Identifies the classic inside bar candlestick pattern.
Moving Averages: Provides multiple moving averages to help determine trend and potential support/resistance levels.
Information Table: Displays key market data in a concise table format.
1. Inside Bar Detection and Range
The indicator marks inside bars on the chart. An inside bar is a candlestick where its entire range (high and low) falls within the range of the preceding candlestick (often called the "mother bar"). This pattern often signifies market consolidation or indecision.
Customizable Marking: Users can choose the shape and color used to mark the inside bars, such as triangles, squares, or circles.
Range Percentage: A label shows the range of the inside bar as a percentage of the previous bar's low, providing a quantitative measure of its size.
Time Restriction: A setting allows displaying inside bars only for a specified number of past days, focusing analysis on recent price action.
Customizable Label Size: Users can choose the size of the range percentage label for optimal visibility.
2. Moving Averages for Trend Analysis
The indicator can plot up to four moving averages (MAs) on the chart. Moving averages smooth out price data to help identify trends and potential support and resistance levels.
User-Selectable MA Type: For each MA, traders can choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA).
Customizable Length: Users can specify the length (number of periods) for each MA, such as 20, 50, 100, or 200.
Customizable Color: Each MA's line color can be chosen to suit personal preferences.
Trend Identification: When the price is above an MA, it suggests an uptrend, while prices below suggest a downtrend. The slope of the MA also indicates trend momentum.
3. Information Table for Key Data
A customizable information table is displayed on the chart, providing a quick overview of important market data.
Average Daily Range (ADR) Percentage: Shows the average daily range of the asset as a percentage, reflecting its historical volatility.
Distance from EMAs: Displays how far the current price is from the 10, 20, and 50 period Exponential Moving Averages. A positive percentage indicates the price is above the MA, while a negative percentage means it's below.
Customizable Table Elements: Users can choose the table's background color, text color, and text size for optimal readability.
How to Use This Indicator:
This indicator can be a valuable tool for traders using technical analysis:
Inside Bar Breakouts: Inside bars often precede breakouts. Traders can use the inside bar markings and range percentage to identify potential breakout opportunities.
Confirmation of Trends: Moving averages help confirm the direction of the trend, enabling traders to align their inside bar strategies with the prevailing market direction.
Support and Resistance: Moving averages can act as dynamic support and resistance levels. Traders can look for inside bars forming near these levels as potential entry or exit points.
Volatility and Range Analysis: The ADR percentage helps assess the normal daily range of an asset, which can be useful for setting realistic price targets and managing risk.
Risk Management: The distance from EMAs can alert traders to potential overextended moves, providing information for setting stop-loss or take-profit levels.
By combining these elements, this indicator provides a layered approach to market analysis, allowing traders to identify potential trading opportunities and manage risk effectively based on both candlestick patterns and trend-following indicators. Remember that no indicator guarantees success, and it's essential to use this tool in conjunction with other analysis techniques and proper risk management practices.
Custom Multiple SMAs (Trend Structure Visualizer)This indicator displays 16 consecutive Simple Moving Averages (SMAs), from SMA 8 to SMA 23, plotted simultaneously on the chart. Together, they form a color-coded SMA fan that allows you to clearly visualize the current market structure.
What you can observe in the chart:
– When the lines are flat and tightly clustered , the market is likely consolidating or moving sideways
– When the lines fan out and expand , a trend or directional momentum is building
– When the lines start converging or crossing again , it may indicate a trend pause or potential reversal
A 100-period EMA (yellow line) serves as a basic trend filter:
– Price above the EMA suggests an long-biased market
– Price below the EMA suggests a short-biased market
What makes this tool unique:
Unlike traditional single-SMA indicators, this tool also highlights phases when it's better to stay out of the market – such as during flat, unstructured sideways conditions.
Transitions from low activity to trending phases become clearly and early visible, without relying on additional signals or indicator noise.
The indicator works across all markets and timeframes and remains visually stable even during fast market movements. It is a visual decision-making tool and does not generate automatic signals or alerts.
BTC PL Trend + Floor - Log PilotBTC Power Law Trend + Floor with forward projection.
Sky blue for the trend. Neon orange for the floor. Both project forward in dotted green.
Tracks Bitcoin’s long-term arc and structural support through time since Genesis.
MA Table [RanaAlgo]The "MA Table " indicator is a comprehensive and visually appealing tool for tracking moving average signals in TradingView. Here's a short summary of its usefulness:
Key Features:
Dual MA Support:
Tracks both EMA (Exponential Moving Average) and SMA (Simple Moving Average) signals (10, 20, 30, 50, 100 periods).
Users can toggle visibility for EMA/SMA separately.
Clear Signal Visualization:
Displays Buy (▲) or Sell (▼) signals based on price position relative to each MA.
Color-coded (green for buy, red for sell) for quick interpretation.
Customizable Table Design:
Adjustable position (9 placement options), colors, text size, and border styling.
Alternating row colors improve readability.
Optional MA Plots:
Can display the actual MA lines on the chart for visual confirmation (with distinct colors/styles).
Usefulness:
Quick Overview: The table consolidates multiple MA signals in one place, saving time compared to checking each MA individually.
Trend Confirmation: Helps confirm trend strength when multiple MAs align (e.g., price above all MAs → strong uptrend).
Flexible: Suitable for both short-term (10-20 period) and long-term (50-100 period) traders.
Aesthetic: Professional design enhances chart clarity without clutter.
Ideal For:
Traders who rely on moving average crossovers or price-MA relationships.
Multi-timeframe analysis when combined with other tools.
Beginners learning MA strategies (clear visual feedback).
Multiple SMAsPlots multiple SMAs in a single indicator.
This script only plots the SMAs if the timeframe is set to daily.
- SMA10 in light blue
- SMA20 in yellow
- SMA50 in red
- SMA100 in green
- SMA200 in blue
It also plots the crosses between SMA20 and SMA50
Reversal IndicatorWhat does this indicator do?
This indicator is designed to help traders spot potential reversal points in the market by combining multiple conditions:
✅ Multi-Timeframe RSI – Checks RSI on a lower timeframe (like 5m) to see if the market is oversold or overbought.
✅ Higher Timeframe SMA Filter – Uses a higher timeframe SMA (like 1h) as a trend filter, so signals only trigger in the direction of the bigger trend.
✅ Candle Pattern Confirmation – Looks for bullish or bearish engulfing candles to confirm price exhaustion before signaling a reversal.
When all these conditions align, the indicator plots a triangle under/above the candle to highlight a possible reversal.
Why is this useful?
Many traders struggle with false RSI signals or candle patterns that fail because they don’t respect the larger trend.
This indicator filters out weak setups by requiring alignment between:
A lower timeframe RSI oversold/overbought condition,
A higher timeframe trend filter (SMA),
And a strong candle reversal pattern.
This multi-layer approach helps avoid chasing every RSI dip and focuses only on high-probability reversal zones.
How does it work?
Bullish reversal signal → appears when RSI on the lower TF is oversold, price is still above the higher TF SMA (trend still intact), AND a bullish engulfing candle forms.
Bearish reversal signal → appears when RSI on the lower TF is overbought, price is below the higher TF SMA, AND a bearish engulfing candle forms.
When all conditions match, the indicator plots a triangle under the candle for bullish signals and above the candle for bearish signals.
How to use it?
Choose your timeframes:
A timeframe for trend filtering (e.g. 1h).
A timeframe for RSI (e.g. 4h).
NOTICE: THE RSI TIMEFRAME SHOULD BE GREATER THEN THE TIMEFRAME FOR THE SMA
Otherwise it will not generate that much signals.
Watch for signals ONLY in the direction of the higher trend.
Use the signals as potential reversal points, not as guaranteed entries. Combine with your own confluence.
Optionally set alerts for bullish or bearish reversal conditions so you never miss a setup.
Customization
✅ Choose your RSI length & overbought/oversold levels.
✅ Select which timeframes you want for SMA & RSI.
✅ Toggle the higher TF SMA display on/off.
✅ Adjust signal appearance (triangles).
Important Notes
⚠️ This is not a standalone trading system. It’s a tool to help spot possible reversal areas. Always confirm with price action, support/resistance, or your own strategy
Daily 50‑ & 200‑SMA Ceiling Radar — EnhancedDescription:
This custom TradingView indicator, developed by Trader Malik and licensed under Trades Per Minute, is a powerful visual tool for identifying how price behaves relative to major daily moving averages — the 50-SMA and 200-SMA. It helps traders quickly understand key technical dynamics such as trend alignment, MA proximity, and short-term momentum sentiment — all displayed on a clean, minimal overlay with visual alerts and an adjustable data table.
FEATURES
1. Daily 50 & 200 Simple Moving Averages (SMA):**
- Displayed directly on the chart using distinct blue and orange lines.
- These serve as primary trend filters and support/resistance zones.
2. Price Highlighting:
- A red background flashes momentarily when the price crosses either the 50-SMA or 200-SMA.
- A green background fills the chart when price is above both MAs (bullish zone).
- A red background persists if price is below both MAs (bearish zone).
3. MA Gap Analysis Table:
- 50-SMA Row**: Shows % gap between 50-SMA and 200-SMA.
- 200-SMA Row**: Shows % gap between 200-SMA and 50-SMA.
- Sentiment Row**: Displays short-term trend bias based on the slope of the past 7 daily closes — Bullish, Neutral, or Bearish.
USER SETTINGS
Table Location: Choose between **Top Right** or **Bottom Right** of the chart.
Table Size: Select **Small**, **Medium**, or **Large** to suit screen preferences and layout aesthetics.
This script is **intellectual property of Trades Per Minute** and distributed by **Trader Malik** for use under licensing terms. Redistribution or repurposing without authorization is strictly prohibited.
Multi SMA AnalyzerMulti SMA Analyzer with Custom SMA Table & Advanced Session Logic
A feature-rich SMA analysis suite for traders, offering up to 7 configurable SMAs, in-depth trend detection, real-time table, and true session-aware calculations.
Ideal for those who want to combine intraday, swing, and higher-timeframe trend analysis with maximum chart flexibility.
Key Features
📊 Multi-SMA Overlay
- 7 SMAs (default: 5, 20, 50, 100, 200, 21, 34)—individually configurable (period, source, color, line style)
- Show/hide each SMA, custom line style (solid, stepline, circles), and color logic
- Dynamic color: full opacity above SMA, reduced when below
⏰ Session-Aware SMAs
- Each SMA can be calculated using only user-defined session hours/days/timezone
- “Ignore extended hours” option for accurate intraday trend
📋 Smart Data Table
- Live SMA values, % distance from price, and directional arrows (↑/↓/→)
- Bull/Bear/Sideways trend classification
- Custom table position, size, colors, transparency
- Table can run on chart or custom (higher) timeframe for multi-TF analysis
🎯 Golden/Death Cross Detection
- Flexible crossover engine: select any two from (5, 10, 20, 50, 100, 200) for fast/slow SMA cross signals
- Plots icons (★ Golden, 💀 Death), optional crossover labels with custom size/colors
🏷️ SMA Labels
- Optional on-chart SMA period labels
- Custom placement (above/below/on line), size, color, offset
🚨 Signal & Trend Engine
- Bull/Bear/Sideways logic: price vs. multiple SMAs (not just one pair)
- Volume spike detection (2x 20-period SMA)
- Bullish engulfing candlestick detection
- All signals can use chart or custom table timeframe
🎨 Visual Customization
- Dynamic background color (Bull: green, Bear: red, Neutral: gray)
- Every visual aspect is customizable: label/table colors, transparency, size, position
🔔 Built-in Alerts
- Crossovers (SMA20/50, Golden/Death)
- Bull trend, volume spikes, engulfing pattern—all alert-ready
How It Works
- Session Filtering:
- SMAs can be set to count only bars from your chosen market session, for true intraday/trading-hour signals
Dynamic Table & Signals:
- Table and all signal logic run on your selected chart or custom timeframe
Flexible Crossover:
- Choose any pair (5, 10, 20, 50, 100, 200) for cross detection—SMA 10 is available for crossover even if not shown as an SMA line
Everything is modular:
- Toggle features, set visuals, and alerts to your workflow
🚨 How to Use Alerts
- All key signals (crossovers, trend shifts, volume spikes, engulfing patterns) are available as alert conditions.
To enable:
- Click the “Alerts” (clock) icon at the top of TradingView.
- Select your desired signal (e.g., “Golden Cross”) from the condition dropdown.
- Set your alert preferences and create the alert.
- Now, you’ll get notified automatically whenever a signal occurs!
Perfect For
- Multi-timeframe and swing traders seeking higher timeframe SMA confirmation
- Intraday traders who want to ignore pre/post-market data
- Anyone wanting a modern, powerful, fully customizable multi-SMA overlay
// P.S: Experiment with Golden Cross where Fast SMA is 5 and Slow SMA is 20.
// Set custom timeframe for 4 hr while monitoring your chart on 15 min time frame.
// Enable Background Color and Use Table Timeframe for Background.
// Uncheck Pine labels in Style tab.
Clean, open-source, and loaded with pro features—enjoy!
Like, share, and let me know if you'd like any new features added.
FlexMAFlexMA – Time-based moving average
FlexMA plots a moving average based on real-world time (like “5 days”) instead of fixed bar lengths.
Choose the MA type (SMA, EMA, etc.), enter a timespan and unit, and the script automatically adjusts across any chart timeframe.
This was created out of a demand for moving average indicator that was easy to configure across any time frame but the results end up consistent. For example, a 5 Day SMA where it looks the same at every interval.
Powered by:
Electrified/Time – Converts spans to lengths
Electrified/MovingAverages – Provides modular MA logic
Example: Want a 3-day EMA? Just set:
Plot: EMA
Timespan: 3
Unit: Days
Clean, adaptive, and great for multi-timeframe setups.
Normalized Volume & True RangeThis indicator solves a fundamental challenge that traders face when trying to analyze volume and volatility together on their charts. Traditionally, volume and price volatility exist on completely different scales, making direct comparison nearly impossible. Volume might range from thousands to millions of shares, while volatility percentages typically stay within single digits. This indicator brings both measurements onto a unified scale from 0 to 100 percent, allowing you to see their relationship clearly for the first time.
The core innovation lies in the normalization process, which automatically calculates appropriate scaling factors for both volume and volatility based on their historical statistical properties. Rather than using arbitrary fixed scales that might work for one stock but fail for another, this system adapts to each instrument's unique characteristics. The indicator establishes baseline averages for both measurements and then uses statistical analysis to determine reasonable maximum values, ensuring that extreme outliers don't distort the overall picture.
You can choose from three different volatility calculation methods depending on your analytical preferences. The "Body" option measures the distance between opening and closing prices, focusing on the actual trading range that matters most for price action. The "High/Low" method captures the full daily range including wicks and shadows, giving you a complete picture of intraday volatility. The "Close/Close" approach compares consecutive closing prices, which can be particularly useful for identifying gaps and overnight price movements.
The indicator displays volume as colored columns that match your candlestick colors, making it intuitive to see whether high volume occurred during up moves or down moves. Volatility appears as a gray histogram, providing a clean background reference that doesn't interfere with volume interpretation. Both measurements are clipped at 100 percent, which represents their calculated maximum normal values, so any readings near this level indicate unusually high activity in either volume or volatility.
The baseline reference line shows you what "normal" volume looks like for the current instrument, helping you quickly identify when trading activity is above or below average. Optional moving averages for both volume and volatility are available if you prefer smoothed trend analysis over raw daily values. The entire system updates in real-time as new data arrives, continuously refining its statistical calculations to maintain accuracy as market conditions evolve.
This two-in-one indicator provides a straightforward way to examine how price movements relate to trading volume by presenting both measurements on the same normalized scale, making it easier to spot patterns and relationships that might otherwise remain hidden when analyzing these metrics separately.
MA Cross MTF Alert (Miu)This script extends the classic moving average crossover strategy with support for up to 8 user-defined symbols across 4 custom timeframes, combined with a visual and alert system designed for traders who monitor multiple assets simultaneously.
Unlike traditional MA crossover tools, this script enables traders to receive real-time alerts for crossovers across multiple assets and timeframes, even when the script is not actively displayed on the chart — ideal for passive monitoring in multi-asset strategies.
What it does:
This script calculates two customizable moving averages (SMA or EMA) for each selected symbol and timeframe.
It then tracks crossover events:
- Bullish crossover when the fast MA crosses above the slow MA
- Bearish crossunder when the fast MA crosses below the slow MA
On the chart, it also displays the crossover signals for the current symbol and timeframe using color-coded cross icons.
Key features:
- Select SMA or EMA type for both moving averages
- Customize MA lengths and colors
- Works with any asset and timeframe
- Alerts include symbol and timeframe info for easy identification
How to use:
1) Add the indicator to your chart.
2) Choose the moving average type and lengths.
3) Enable/disable any of the 8 symbols and 4 timeframes.
4) Set up TradingView alerts by clicking “Create Alert” and selecting one of the alert() calls.
5) You will receive a message like:
BTC (1h) | MA Crossover ▲ or ETH (15m) | MA Crossunder ▼
Technical note:
This script uses request.security() to retrieve moving average values from up to 8 different symbols and 4 different timeframes in real time.
Feel free to leave your feedback or suggestions in the comments section below.
Enjoy!
Pucci Trend EMA-SMA Crossover with TolerancePucci Trend EMA-SMA Crossover with Tolerance
This indicator helps identify market trends and generates trading signals based on the crossover between an Exponential Moving Average (EMA) and a Simple Moving Average (SMA) with an adjustable tolerance threshold. The signals work as follows:
Buy Signal (B) -> Triggers when the EMA crosses above the SMA, exceeding a user-defined tolerance (in basis points). Optionally, a price filter can require the high or low to be below the EMA for confirmation.
Sell Signal (S) -> Triggers when the SMA crosses above the EMA, exceeding the tolerance. The optional price filter may require the high or low to be above the EMA.
The tolerance helps reduce false signals by requiring a minimum distance between the moving averages before confirming a crossover. The price filter adds an extra confirmation layer by checking if price action respects the EMA level.
Important Notes:
1º No profitability guarantee: This tool is for analysis only and may generate losses.
2º "As Is" disclaimer: Provided without warranties or responsibility for trading outcomes.
3º Use Stop Loss: Users must determine their own risk management.
4º Parameter adjustment needed: Optimal MA periods and tolerance vary by timeframe.
5º Filter impact varies: Enabling/disabling the price filter may improve or worsen performance.
MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals
English Script Description:
Indicator Title: MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals
1. Overview
The "MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals" indicator is an advanced, multi-faceted analytical tool designed for comprehensive market analysis. It consolidates a detailed multi-timeframe (MTF) dashboard for Stochastic, MACD, and RSI, hierarchical Stochastic alignment signals (S3, S4, S5), PVSRA-based candle coloring, a customizable moving average, optional MA/VWAP filters for signals, and dynamic background coloring into a single, integrated Pine Script™ utility. This indicator aims to provide traders with a deeper market perspective by consolidating multiple layers of analysis onto the current chart.
2. Originality and Usefulness
This script’s originality stems from its comprehensive integration of several distinct analytical methodologies into a cohesive and highly customizable framework. While the core concept for the hierarchical Stochastic signals (S3-S5) was inspired by the work of f56eroon (ابو بتال - خطيرون), this indicator represents a significant original development by Saleh_ABO_RAED. Key original contributions include:
The specific implementation and extensive customization of the MTF dashboard displaying Stochastic, MACD, and RSI across five user-defined timeframes.
The seamless integration of PVSRA ( Volume) candle coloring, providing an immediate visual layer of volume confirmation.
The inclusion of a fully customizable general-purpose Moving Average.
The advanced and independent MA and VWAP filtering options for the S3-S5 Stochastic signals.
The overall script architecture that allows these diverse components to work synergistically.
Justification for Mashup:
This indicator is designed to provide a multi-dimensional view of the market, which is often necessary for robust trade decision-making. By combining:
MTF Analysis (Dashboard & Signals): To understand the broader context and identify signals aligning across multiple perspectives.
Momentum & Trend (Stoch, MACD, RSI, MA): To gauge the strength and direction of price movements.
Volume Analysis (PVSRA): To assess the conviction behind price action.
Signal Filtering (MA/VWAP): To enhance the reliability of generated signals.
This "mashup" is justified by its utility in helping traders identify higher-probability setups through the confluence of these varied analytical signals, all within a single tool, thus reducing chart clutter and streamlining the analytical process. The script is useful for traders who appreciate a detailed, layered approach to market analysis and seek to confirm signals from multiple non-correlated perspectives.
Practical Benefit for Traders:
This tool empowers traders to:
Quickly assess market conditions across multiple timeframes and key indicators.
Identify potential trade entries based on hierarchical Stochastic signals, confirmed by PVSRA and optional MA/VWAP filters.
Visually gauge market strength and conviction through PVSRA candle coloring.
Utilize a customizable MA for trend direction and dynamic support/resistance.
Make more informed decisions by considering a confluence of analytical factors.
3. Key Features
Multi-Timeframe Dashboard (Stochastic, MACD, RSI): Displays Stochastic (%K, %D, Status), MACD (Line, Signal, Status), and RSI (Value, SMA, Status) for up to five user-configurable timeframes (TF1 to TF5).
Hierarchical Stochastic Alignment Signals (S3, S4, S5): Generates signals based on a sequence of Stochastic confirmations across TF1-TF5, with user-defined K-level thresholds for initial crosses and subsequent confirmations.
PVSRA Candle Coloring: Integrates PVSRA logic to color candles based on volume and price action analysis (e.g., Bullish/Bearish 200% Volume, 150% Volume, Normal Volume candles). Option to override current symbol for PVSRA calculation.
Customizable Moving Average (MA): Plots a user-selectable MA (SMA or EMA) with configurable length, source, color, and width.
Dual Independent Optional Signal Filters (for S3-S5 signals):
MA Filter: Optionally filter S3-S5 signals using a separate configurable MA (SMA, EMA, WMA).
VWAP Filter: Optionally filter S3-S5 signals using VWAP with advanced anchoring options.
Customizable Background Coloring: Optionally colors the chart background when Stochastic indicators on TF3, TF4, and TF5 are in bullish or bearish alignment.
Extensive Customization: Configure all timeframes, all indicator parameters (Stoch, MACD, RSI, PVSRA colors, MA settings, VWAP settings), signal confirmation K-levels, table appearance, and alert conditions.
Alerts: Defines multiple alert conditions for S3, S4, and S5 Bullish/Bearish alignment signals, with alert messages indicating active filters.
4. How It Works
MTF Data & Dashboard: The script fetches and calculates Stochastic, MACD, and RSI data for each of the five user-defined timeframes using request.security with barmerge.lookahead_on to prevent future data leakage. This data populates the on-chart table.
PVSRA Candle Coloring: Analyzes each bar's volume and price range against historical averages (e.g., 10-period SMA of volume) to identify candles with significantly high volume (e.g., >=150% or >=200% of average) or high "value2" (volume * range), coloring them accordingly to denote strong buying or selling pressure.
Stochastic Signal Generation (S3-S5):
An initial Stochastic cross on TF1 (optionally filtered by K-level) serves as the trigger.
This cross is then confirmed sequentially by congruent Stochastic conditions (K above/below D, and K above/below user-defined confirmation levels) on TF2, TF3 (for an S3 signal), then TF4 (for S4), and finally TF5 (for S5).
MA & VWAP Signal Filtering: If enabled, generated S3-S5 signals are only plotted (and trigger alerts) if the price also satisfies the condition relative to the chosen MA (e.g., price > MA for longs) and/or VWAP. Both MA and VWAP lines can be plotted independently.
Background Coloring: Based on the consensus of Stochastic states (bullish/bearish) on TF3, TF4, and TF5.
5. How to Use
Configure Timeframes & Base Indicators: Set up your desired MTF levels (TF1-TF5) and the parameters for Stoch, MACD, and RSI via the script's "Settings/Inputs" dialogue.
Configure PVSRA & General MA: Enable/disable PVSRA candle coloring and the general MA plot; adjust their respective parameters (colors, lengths, types).
Set Stochastic Signal Parameters:
Adjust K-level thresholds for TF1 Stochastic crosses (set to 0 for bull/100 for bear to disable K-level entry filter).
Configure K-level confirmation thresholds for TF2-TF5.
Configure Optional MA/VWAP Signal Filters: Independently enable plotting and/or signal filtering for the MA and/or VWAP; choose their types, lengths, and anchor periods.
Interpret:
Dashboard: For an overview of market conditions.
PVSRA Candles: For volume confirmation of price movements.
S3-S5 Signals: As potential indications of strengthening multi-timeframe Stochastic alignment. The more filters a signal passes (MA, VWAP), the more confluent it might be considered.
MA/VWAP Lines: As dynamic support/resistance or trend indicators.
Background Color: For quick visual assessment of broader Stochastic momentum.
Setting Up Alerts: Add the indicator to your chart. Click the "Alert" button in TradingView, select this indicator under "Condition," and choose from the defined alert conditions (e.g., "Stoch TF3 Bullish Alignment"). Alert messages will indicate active filters.
6. Important Considerations / Disclaimer
This indicator provides analytical tools and potential signals; it is not a standalone trading system and does not guarantee profits.
Always use in conjunction with your trading strategy, risk management, and other analyses. Test thoroughly.
The effectiveness of filters and signals varies with market conditions and assets. Experimentation with settings is crucial.
This script is for educational/informational purposes only and is not financial advice. Trading involves substantial risk. The author, Saleh_ABO_RAED, is not responsible for any trading decisions based on this indicator.
7. Credits
The hierarchical Stochastic signal logic (S3-S5) and the initial strategic framework were inspired by the work of f56eroon (ابو بتال - خطيرون). This script, "MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals," represents an original development by Saleh_ABO_RAED, featuring the specific MTF dashboard implementation for Stochastic, MACD, and RSI, the integration of PVSRA candle coloring and a general Moving Average, advanced MA/VWAP signal filtering, background coloring, and the overall customizable script architecture.
Arabic Script Description (الوصف العربي للإسكريبت):
عنوان المؤشر: MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals
1. نظرة عامة
مؤشر "MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals" هو أداة تحليلية متقدمة ومتعددة الأوجه مصممة للتحليل الشامل للسوق. يدمج هذا المؤشر لوحة معلومات مفصلة متعددة الأطر الزمنية (MTF) لمؤشرات ستوكاستيك، الماكد (MACD)، ومؤشر القوة النسبية (RSI)، مع إشارات ستوكاستيك الهرمية التوافقية (S3, S4, S5)، وتلوين الشموع بناءً على PVSRA، ومتوسط متحرك قابل للتخصيص، وفلاتر اختيارية (MA و VWAP) للإشارات، وتلوين ديناميكي للخلفية، كل ذلك في أداة واحدة متكاملة مبرمجة بلغة Pine Script™. يهدف هذا المؤشر إلى تزويد المتداولين بمنظور أعمق للسوق من خلال دمج طبقات تحليل متعددة على الرسم البياني الحالي.
2. الأصالة والفائدة
تنبع أصالة هذا الإسكريبت من تكامله الشامل للعديد من المنهجيات التحليلية المتميزة ضمن إطار عمل متماسك وقابل للتخصيص بدرجة عالية. بينما المفهوم الأساسي لإشارات ستوكاستيك الهرمية (S3-S5) مستوحى من f56eroon (ابو بتال - خطيرون)، يمثل هذا المؤشر تطويراً أصيلاً وجوهرياً قام به Saleh_ABO_RAED. تشمل المساهمات الأصلية الرئيسية ما يلي:
التنفيذ المحدد والتخصيص الشامل للوحة معلومات MTF التي تعرض ستوكاستيك، الماكد، ومؤشر القوة النسبية عبر خمسة أطر زمنية يحددها المستخدم.
التكامل السلس لتلوين شموع PVSRA (، الحجم، )، مما يوفر طبقة تأكيد مرئية فورية للحجم.
إدراج متوسط متحرك عام قابل للتخصيص بالكامل.
خيارات التصفية المتقدمة والمستقلة باستخدام المتوسط المتحرك (MA) ومتوسط السعر المرجح بالحجم (VWAP) لإشارات ستوكاستيك S3-S5.
البنية البرمجية الشاملة التي تسمح لهذه المكونات المتنوعة بالعمل بشكل متآزر.
مبررات الدمج (Mashup Justification):
تم تصميم هذا المؤشر لتوفير رؤية متعددة الأبعاد للسوق، وهو أمر ضروري غالبًا لاتخاذ قرارات تداول قوية. من خلال الجمع بين:
تحليل MTF (لوحة المعلومات والإشارات): لفهم السياق الأوسع وتحديد الإشارات المتوافقة عبر وجهات نظر متعددة.
الزخم والاتجاه (ستوكاستيك، ماكد، RSI، المتوسط المتحرك): لقياس قوة واتجاه تحركات الأسعار.
تحليل الحجم (PVSRA): لتقييم قوة الاقتناع وراء حركة السعر.
تصفية الإشارات (MA/VWAP): لتعزيز موثوقية الإشارات المولدة.
هذا "الدمج" مبرر بفائدته في مساعدة المتداولين على تحديد إعدادات تداول ذات احتمالية أعلى من خلال التقاء هذه الإشارات التحليلية المتنوعة، كل ذلك ضمن أداة واحدة، مما يقلل من فوضى الرسم البياني ويبسط العملية التحليلية. الإسكريبت مفيد للمتداولين الذين يقدرون النهج التفصيلي متعدد الطبقات لتحليل السوق ويسعون لتأكيد الإشارات من وجهات نظر متعددة غير مترابطة.
الفائدة العملية للمتداولين:
تمكّن هذه الأداة المتداولين من:
تقييم ظروف السوق بسرعة عبر أطر زمنية متعددة ومؤشرات رئيسية.
تحديد إدخالات التداول المحتملة بناءً على إشارات ستوكاستيك الهرمية، المؤكدة بواسطة PVSRA وفلاتر MA/VWAP الاختيارية.
قياس قوة السوق والاقتناع بصريًا من خلال تلوين شموع PVSRA.
استخدام متوسط متحرك قابل للتخصيص لاتجاه الاتجاه والدعم والمقاومة الديناميكية.
اتخاذ قرارات أكثر استنارة من خلال النظر في التقاء العوامل التحليلية.
3. الميزات الرئيسية
لوحة معلومات متعددة الأطر الزمنية (ستوكاستيك، ماكد، RSI): تعرض قيم ستوكاستيك (K%, D%, الحالة)، الماكد (الخط، خط الإشارة، الحالة)، ومؤشر القوة النسبية (القيمة، المتوسط البسيط، الحالة) لما يصل إلى خمسة أطر زمنية قابلة للتخصيص (TF1 إلى TF5).
إشارات توافق ستوكاستيك الهرمية (S3, S4, S5): يتم إنشاء الإشارات بناءً على سلسلة من تأكيدات ستوكاستيك عبر الأطر TF1-TF5، مع عتبات مستوى K يحددها المستخدم للتقاطعات الأولية والتأكيدات اللاحقة.
تلوين شموع PVSRA: يدمج منطق PVSRA لتلوين الشموع بناءً على تحليل الحجم وحركة السعر (مثل شموع حجم صاعد/هابط 200%، حجم 150%، حجم عادي). خيار لتجاوز الرمز الحالي لحساب PVSRA.
متوسط متحرك قابل للتخصيص (MA): يرسم متوسطًا متحركًا (SMA أو EMA) يمكن للمستخدم اختياره مع طول ومصدر ولون وعرض قابل للتكوين.
فلتران اختياريان مستقلان للإشارات (لإشارات S3-S5):
فلتر MA: قم اختياريًا بتصفية إشارات S3-S5 باستخدام متوسط متحرك منفصل قابل للتكوين (SMA, EMA, WMA).
فلتر VWAP: قم اختياريًا بتصفية إشارات S3-S5 باستخدام VWAP مع خيارات إرساء متقدمة.
تلوين خلفية قابل للتخصيص: يقوم اختياريًا بتلوين خلفية الرسم البياني عندما تكون مؤشرات ستوكاستيك على الأطر TF3، TF4، و TF5 جميعها في توافق صاعد أو هابط.
تخصيص واسع النطاق: قم بتكوين جميع الأطر الزمنية، وجميع معلمات المؤشرات (ستوكاستيك، ماكد، RSI، ألوان PVSRA، إعدادات MA، إعدادات VWAP)، ومستويات تأكيد K للإشارات، ومظهر الجدول، وشروط التنبيه.
التنبيهات: يُعرّف المؤشر العديد من شروط التنبيه لتوافق إشارات S3 و S4 و S5 الصاعدة/الهابطة، مع إشارة رسائل التنبيه إلى الفلاتر النشطة.
4. كيف يعمل المؤشر
بيانات MTF ولوحة المعلومات: يقوم الإسكريبت بجلب وحساب بيانات ستوكاستيك، الماكد، و RSI لكل من الأطر الزمنية الخمسة التي يحددها المستخدم باستخدام request.security مع barmerge.lookahead_on لمنع تسرب البيانات المستقبلية. تملأ هذه البيانات الجدول على الرسم البياني.
تلوين شموع PVSRA: يحلل حجم كل شمعة ونطاق سعرها مقابل المتوسطات التاريخية (مثل متوسط متحرك بسيط لـ10 فترات للحجم) لتحديد الشموع ذات الحجم المرتفع بشكل كبير (مثل >=150% أو >=200% من المتوسط) أو "value2" مرتفعة (الحجم * النطاق)، وتلوينها وفقًا لذلك للدلالة على ضغط شراء أو بيع قوي.
توليد إشارات ستوكاستيك (S3-S5):
يعمل تقاطع ستوكاستيك أولي على TF1 (يمكن تصفيته اختياريًا بمستوى K) كمُشغِّل.
يتم بعد ذلك تأكيد هذا التقاطع بالتتابع بواسطة شروط ستوكاستيك متوافقة (K فوق/تحت D، و K فوق/تحت مستويات التأكيد المحددة من المستخدم) على TF2، ثم TF3 (لإشارة S3)، ثم TF4 (لـ S4)، وأخيرًا TF5 (لـ S5).
تصفية الإشارات بـ MA و VWAP: في حالة التمكين، لا يتم رسم إشارات S3-S5 المولدة (ولا تُطلق تنبيهات) إلا إذا كان السعر يستوفي أيضًا الشرط المتعلق بالمتوسط المتحرك المختار (مثال: السعر > MA للشراء) و/أو VWAP. يمكن رسم خطوط MA و VWAP بشكل مستقل.
تلوين الخلفية: بناءً على إجماع حالات ستوكاستيك (صاعدة/هابطة) على الأطر TF3، TF4، و TF5.
5. كيفية الاستخدام
تكوين الأطر الزمنية والمؤشرات الأساسية: قم بإعداد مستويات MTF المطلوبة (TF1-TF5) ومعلمات ستوكاستيك، الماكد، و RSI عبر مربع حوار "الإعدادات/المدخلات" الخاص بالإسكريبت.
تكوين PVSRA و MA العام: قم بتمكين/تعطيل تلوين شموع PVSRA ورسم المتوسط المتحرك العام؛ اضبط معلمات كل منهما (الألوان، الأطوال، الأنواع).
ضبط معلمات إشارة ستوكاستيك:
عدّل عتبات مستوى K لتقاطعات ستوكاستيك TF1 (اضبط على 0 للصاعد/100 للهابط لتعطيل فلتر دخول مستوى K).
قم بتكوين عتبات تأكيد مستوى K لـ TF2-TF5.
تكوين فلاتر MA/VWAP الاختيارية للإشارات: قم بتمكين الرسم و/أو تصفية الإشارات بشكل مستقل لـ MA و/أو VWAP؛ اختر أنواعها وأطوالها وفترات الإرساء.
التفسير:
لوحة المعلومات: للحصول على نظرة عامة على ظروف السوق.
شموع PVSRA: لقياس قوة الاقتناع وراء تحركات الأسعار.
إشارات S3-S5: كمؤشرات محتملة لتوافق ستوكاستيك متعدد الأطر يزداد قوة. كلما زاد عدد الفلاتر التي تجتازها الإشارة (MA, VWAP)، كلما أمكن اعتبارها أكثر قوة.
خطوط MA/VWAP: كدعم/مقاومة ديناميكية أو مؤشرات اتجاه.
لون الخلفية: لتقييم بصري سريع لزخم ستوكاستيك الأوسع.
إعداد التنبيهات: أضف المؤشر إلى الرسم البياني. انقر فوق زر "تنبيه" في TradingView، واختر هذا المؤشر ضمن "الشرط"، ثم اختر من شروط التنبيه المحددة (مثل "Stoch TF3 Bullish Alignment"). ستشير رسائل التنبيه إلى الفلاتر النشطة.
6. اعتبارات هامة / إخلاء مسؤولية
يوفر هذا المؤشر أدوات تحليلية وإشارات محتملة؛ إنه ليس نظام تداول قائم بذاته ولا يضمن الأرباح.
استخدمه دائمًا بالاقتران مع استراتيجية التداول الخاصة بك، إدارة المخاطر، والتحليلات الأخرى. اختبره جيدًا.
تختلف فعالية الفلاتر والإشارات باختلاف ظروف السوق والأصول. التجربة مع الإعدادات أمر بالغ الأهمية.
هذا الإسكريبت مخصص للأغراض التعليمية/المعلوماتية فقط وليس نصيحة مالية. ينطوي التداول على مخاطر كبيرة. المؤلف، Saleh_ABO_RAED، غير مسؤول عن أي قرارات تداول بناءً على هذا المؤشر.
7. الحقوق والتقدير
منطق إشارات ستوكاستيك الهرمية (S3-S5) والإطار الاستراتيجي الأولي مستوحيان من عمل f56eroon (ابو بتال - خطيرون). هذا الإسكريبت، "MTF Dashboard (Stoch,MACD,RSI) & Stochastic Signals"، يمثل تطويراً أصيلاً قام به Saleh_ABO_RAED، ويتميز بالتنفيذ المحدد للوحة معلومات MTF لمؤشرات ستوكاستيك، الماكد، و RSI، ودمج تلوين شموع PVSRA والمتوسط المتحرك العام، والتصفية المتقدمة للإشارات باستخدام MA/VWAP، وتلوين الخلفية، والبنية البرمجية الشاملة القابلة للتخصيص.
MA Dispersion+MA Dispersion+ — read the “breathing space” between your moving-averages
Get instant feedback on trend strength, volatility expansion and mean-reversion — across any timeframe.
MA Dispersion+ turns the humble moving-average stack into a single, easy-to-read oscillator that tells you at a glance whether price is coiling or fanning out.
🧩 What it does
Plugs into your favourite MA setup
• Pick the classic 5 / 20 / 50 / 200 lengths or disable any combination with one click.
• Choose the MA engine you trust — SMA, EMA, RMA, VWMA or WMA.
• Works on any timeframe thanks to TradingView’s security() engine.
Measures “spread”
For every bar it calculates the absolute distance of each selected MA from their average.
The tighter the stack, the lower the value; the wider the fan, the higher the value.
Adds professional-grade controls
• Weighting — let short-term MAs dominate (Inverse Length), keep everything equal, or dial in your own custom weights.
• Normalisation — convert the raw distance into a percentage of price, ATR multiples, or scale by the MAs’ own mean so you can compare symbols of any price or volatility.
🔍 How traders use it
Trend confirmation – rising dispersion while price breaks out = momentum is genuine.
Volatility squeeze – dispersion parking near zero warns that a big move is loading.
Multi-TF outlook – drop one pane per timeframe (e.g. 5 m, 1 h, 1 D) and see which layer of the market is driving.
Mean-reversion plays – spikes that fade quickly often coincide with exhaustion and snap-backs.
⚙️ Quick-start
Add MA Dispersion+ to your chart.
Set the pane’s timeframe in the first input.
Tick the MA lengths you actually use.
(Optional) Pick a weighting scheme and a normaliser.
Repeat the indicator for as many timeframes as you like — each instance keeps its own settings.
✨ Why you’ll love it
Zero clutter – one orange line tells you what four separate MAs whisper.
Configurable yet bullet-proof – all lengths are hard-coded constants, so Pine never complains.
Context aware – normalisation lets you compare BTC’s $60 000 chaos with EURUSD’s four--decimals calm.
Lightweight – no labels, no drawings, no background processing — perfect for mobile and multi-pane layouts.
Give MA Dispersion+ a try and let your charts breathe — you’ll never look at moving-average ribbons the same way again.
Happy trading!
RSI-EMA-Crossing with Donchian-Stop-LossThe Donchian RSI Indicator is a visual tool that combines momentum and trend analysis to identify high-quality long opportunities based on RSI crossovers, price action, and Donchian channel dynamics.
How It Works
Momentum Signal: A bullish RSI crossover is detected when the RSI crosses above its moving average.
Trend Filter: A signal is only valid if the crossover occurs while the price is above its moving average – filtering out entries against the prevailing trend.
Signal Candle: The high of the crossover candle is stored.
Entry Trigger: A valid signal occurs when a later candle closes above that signal high.
Stop-Loss (Visual Only)
The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level.
Features
Customizable RSI, Donchian Channel, and moving average lengths
Selectable MA types: SMA, EMA, WMA, VWMA, HMA
Signal candle highlighted (yellow background)
Entry points labeled on the chart
Price MA and Donchian Channel plotted
Trend filter improves signal quality by confirming upward bias
Use Case
Designed for swing and position traders
Optimized for use on daily or 4H charts
HL2 Moving Average with BandsThis indicator is designed to assist traders in identifying potential trade entries and exits for S&P 500 (ES) and Nasdaq-100 (NQ) futures. It calculates a Simple Moving Average (SMA) based on the HL2 value (average of high and low prices) of the current candle over a user-defined lookback period (default: 200 periods). The indicator plots this SMA as a blue line, providing a smoothed reference for price trends.
Additionally, it includes upper and lower bands calculated as a percentage (default: 0.5%) above and below the SMA, plotted as green and red lines, respectively. These bands act as dynamic thresholds to identify overbought or oversold conditions. The indicator generates trade signals based on price action relative to these bands:
Long Entry: A green upward triangle is plotted below the candle when the close crosses above the upper band, signaling a potential buy.
Close Long: A red square is plotted above the candle when the close crosses back below the upper band, indicating an exit for the long position.
Short Entry: A red downward triangle is plotted above the candle when the close crosses below the lower band, signaling a potential sell.
Close Short: A green square is plotted below the candle when the close crosses back above the lower band, indicating an exit for the short position.
The script is customizable, allowing users to adjust the SMA length and band percentage to suit their trading style or market conditions. It is plotted as an overlay on the price chart for easy integration with other technical analysis tools.
Recommended Time Frame and Settings for Trading S&P 500 and Nasdaq-100 Futures
Based on research and market dynamics for S&P 500 (ES) and Nasdaq-100 (NQ) futures, the 5-minute chart is recommended as the optimal time frame for day trading with this indicator. This time frame strikes a balance between capturing intraday trends and filtering out excessive noise, which is critical for futures trading due to their high volatility and leverage. The 5-minute chart aligns well with periods of high liquidity and volatility, such as the U.S. market open (9:30 AM–11:00 AM EST) and the afternoon session (2:00 PM–4:00 PM EST), when institutional traders are most active.
Why 5-minute? It allows traders to react to short-term price movements while avoiding the rapid fluctuations of 1-minute charts, which can be prone to false signals in choppy markets. It also provides enough data points to make the SMA and bands meaningful without the lag associated with longer time frames like 15-minute or hourly charts.
Recommended Settings
SMA Length: Set to 200 periods. This longer lookback period smooths the HL2 data, reducing noise and providing a reliable trend reference for the 5-minute chart. A 200-period SMA helps identify significant trend shifts without being overly sensitive to minor price fluctuations.
Band Percentage: 0.5% is more suitable for the volatility of ES and NQ futures on a 5-minute chart, as it generates fewer but higher-probability signals. Wider bands (e.g., 1%) may miss short-term opportunities, while narrower bands (e.g., 0.1%) may produce excessive false signals.
Trading Session Recommendations
Futures markets for ES and NQ are open nearly 24 hours (Sunday 6:00 PM EST to Friday 5:00 PM EST, with a daily break from 4:00 PM–5:00 PM EST), but not all hours are equally optimal due to varying liquidity and volatility. The best times to trade with this indicator are:
U.S. Market Open (9:30 AM–11:00 AM EST): This period is characterized by high volume and volatility, driven by the opening of U.S. equity markets and economic data releases (e.g., 8:30 AM EST reports like CPI or GDP). The indicator’s signals are more reliable during this window due to strong order flow and price momentum.
Afternoon Session (2:00 PM–4:00 PM EST): After the lunchtime lull, volume picks up as institutional traders return, and news or FOMC announcements often drive price action. The indicator can capture breakout moves as prices test the upper or lower bands.
Pre-Market (7:30 AM–9:30 AM EST): For traders comfortable with lower liquidity, this period can offer opportunities, especially around 8:30 AM EST economic releases. However, use tighter risk management due to wider spreads and potential volatility spikes.
Additional Tips
Avoid Low-Volume Periods: Steer clear of trading during low-liquidity hours, such as the overnight session (11:00 PM–3:00 AM EST), when spreads widen and price movements can be erratic, leading to false signals from the indicator.
Combine with Other Tools: Enhance the indicator’s effectiveness by pairing it with support/resistance levels, Fibonacci retracements, or volume analysis to confirm signals. For example, a long entry signal above the upper band is stronger if it coincides with a breakout above a key resistance level.
Risk Management: Given the leverage in futures (e.g., Micro E-mini contracts require ~$1,200 margin for ES), use tight stop-losses (e.g., below the lower band for longs or above the upper band for shorts) to manage risk. Aim for a risk-reward ratio of at least 1:2.
Test Settings: Backtest the indicator on a demo account to optimize the SMA length and band percentage for your specific trading style and risk tolerance. Micro E-mini contracts (MES for S&P 500, MNQ for Nasdaq-100) are ideal for testing due to their lower capital requirements.
Why These Settings and Time Frame?
The 5-minute chart with a 200-period SMA and 0.5% bands is tailored for the volatility and liquidity of ES and NQ futures during peak trading hours. The longer SMA period ensures the indicator captures meaningful trends, while the 0.5% bands are tight enough to signal actionable breakouts but wide enough to avoid excessive whipsaws. Trading during high-volume sessions maximizes the likelihood of valid signals, as institutional participation drives clearer price action.
By focusing on these settings and time frames, traders can leverage the indicator to capitalize on the dynamic price movements of S&P 500 and Nasdaq-100 futures while managing the inherent risks of these markets.
RSI - 5UP Overview
The "RSI - 5UP" indicator is a versatile tool that enhances the traditional Relative Strength Index (RSI) by adding smoothing options, Bollinger Bands, and divergence detection. It provides a clear visual representation of RSI levels with customizable bands and optional moving averages, helping traders identify overbought/oversold conditions and potential trend reversals through divergence signals.
Features
Customizable RSI: Adjust the RSI length and source to fit your trading style.
Overbought/Oversold Bands: Visualizes RSI levels with intuitive color-coded bands (red for overbought at 70, white for neutral at 50, green for oversold at 30).
Smoothing Options: Apply various types of moving averages (SMA, EMA, SMMA, WMA, VWMA) to the RSI, with optional Bollinger Bands for volatility analysis.
Divergence Detection: Identifies regular bullish and bearish divergences, with visual labels ("Bull" for bullish, "Bear" for bearish) and alerts.
G radient Fills: Highlights overbought and oversold zones with gradient fills (green for overbought, red for oversold).
How to Use
1. Add to Chart: Apply the "RSI - 5UP" indicator to any chart. It works well on timeframes from 5 minutes to daily.
2. Configure Settings:
RSI Settings:
RSI Length: Adjust the period for RSI calculation (default: 14).
Source: Choose the price source for RSI (default: close).
Calculate Divergence: Enable to detect bullish/bearish divergences (default: disabled).
Smoothing:
Type: Select the type of moving average to smooth the RSI ("None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", "VWMA"; default: "SMA").
Length: Set the period for the moving average (default: 14).
BB StdDev: If "SMA + Bollinger Bands" is selected, adjust the standard deviation multiplier for the bands (default: 2.0).
3.Interpret the Indicator:
RSI Levels: The RSI line (purple) oscillates between 0 and 100. Levels above 70 (red band) indicate overbought conditions, while levels below 30 (green band) indicate oversold conditions. The 50 level (white band) is neutral.
Gradient Fills: The background gradients (green above 70, red below 30) highlight overbought and oversold zones for quick reference.
Moving Average (MA): If enabled, a yellow MA line smooths the RSI. If "SMA + Bollinger Bands" is selected, green bands appear around the MA to show volatility.
Divergences: If "Calculate Divergence" is enabled, look for "Bull" (green label) and "Bear" (red label) signals:
Bullish Divergence: Indicates a potential upward reversal when the price makes a lower low, but the RSI makes a higher low.
Bearish Divergence: Indicates a potential downward reversal when the price makes a higher high, but the RSI makes a lower high.
4. Set Alerts:
Use the "Regular Bullish Divergence" and "Regular Bearish Divergence" alert conditions to be notified when a divergence is detected.
Notes
The indicator does not provide direct buy/sell signals. Use the RSI levels, moving averages, and divergence signals as part of a broader trading strategy.
Divergence detection requires the "Calculate Divergence" option to be enabled and may not work on all timeframes or assets due to market noise.
The Bollinger Bands are only visible when "SMA + Bollinger Bands" is selected as the smoothing type.
Credits
Developed by Marrulk. Enjoy trading with RSI - 5UP! 🚀