MACD SignalsHere's my version of a customizable MACD with easy to set alerts and signals.
I wanted to get push notifications on specific changes on the MACD but couldn't find a version with easy to set alerts. So here's my experimental version that is still in testing.
You can turn on/off the alerts and signals. I've included a few different strategies to use the alerts:
Bullish/Bearish crossover: Trend continuation after pullback.
Bullish/Bearish crossover while over/under the 0 line: possible support and resistance bounce.
MACD crossing 0 line: Trend changing from bullish to bearish or vice versa.
*These should NOT be used and entry or exit signals. These are simply speculations to get my attention to the chart and look for other confirmations and determine a plan from there.
If you use the alerts, note that "once every minute" alerts will cause false signals since the current candle isn't closed. "Once every bar close" is better for this.
Version 1
Indicators and strategies
SMA + Range Breakout StrategySimple Moving Average with Range Breakout with RSI confirmation having Trailing Stop Loss
Trailing Stop-Loss
RSI Confirmation Filter
Breakout Alerts
[blackcat] L2 Angle Trend TrackerOVERVIEW
The " L2 Angle Trend Tracker" is a sophisticated technical analysis tool designed to monitor trend direction and momentum using multiple Exponential Moving Averages (EMAs) with different periods. 📈 This script calculates the angles of 5 EMAs (5, 8, 10, 12, and 15 periods) and displays them with gradient colors, providing a comprehensive view of market momentum. When all EMAs cross above or below specified threshold levels, it generates Buy or Sell signals with visual alerts. The indicator helps traders identify trend reversals, potential entry/exit points, and market sentiment shifts with precision. 🚀 This powerful tool is particularly useful for traders who want to combine multiple timeframe analysis with angle-based momentum confirmation.
FEATURES
Calculates angles for 5 EMAs with customizable periods (5, 8, 10, 12, and 15)
Displays angle values with distinct colors for each EMA (Green, Blue, Purple, Orange, and Red)
Generates Buy signals when all EMAs cross above the lower threshold
Generates Sell signals when all EMAs cross below the upper threshold
Shows a zero line and threshold lines for easy reference
Customizable threshold levels for Buy/Sell signals
Visual alerts with "Buy" and "Sell" labels at the point of signal generation
The script uses a mathematical formula to calculate the angle of each EMA relative to its position 11 bars ago
Angle values are converted from radians to degrees for easier interpretation
The zero line represents no change in the EMA angle
The indicator is not overlayed on the price chart by default, but can be adjusted in the script settings 📊
HOW TO USE
Adjust the EMA periods to match your trading strategy 🛠️
Shorter periods (5, 8) are more sensitive to price changes
Longer periods (10, 12, 15) provide smoother trend confirmation
Set appropriate threshold values for Buy/Sell signals based on your risk tolerance
Default thresholds are 70 for upper threshold and -70 for lower threshold
Consider adjusting thresholds based on market volatility
Watch for Buy signals when all EMAs cross above the lower threshold (default: -70)
The signal appears as a green "Buy" label on the chart
This indicates a potential trend reversal to the upside
Watch for Sell signals when all EMAs cross below the upper threshold (default: 70)
The signal appears as a red "Sell" label on the chart
This indicates a potential trend reversal to the downside
Combine with other indicators for confirmation before making trading decisions 🧠
Consider using volume confirmation, support/resistance levels, or other oscillators
The angle tracker works well with trend-following strategies
Use the angle values to gauge momentum strength
Steeper angles indicate stronger momentum
Flatter angles suggest weakening momentum or consolidation
CONFIGURATION
EMA Periods: The script uses five different EMA periods that can be customized:
EMA Period 5: Short-term trend indicator
EMA Period 8: Medium-short term trend indicator
EMA Period 10: Medium-term trend indicator
EMA Period 12: Medium-long term trend indicator
EMA Period 15: Long-term trend indicator
Threshold Settings:
Threshold Top: Sets the upper boundary for Sell signals (default: 70)
Threshold Bot: Sets the lower boundary for Buy signals (default: -70)
These thresholds can be adjusted based on market conditions and trading style
LIMITATIONS
The script may generate false signals in ranging markets or during periods of high volatility
All EMAs must cross the threshold for a signal to appear, which may filter some valid signals
The angle calculation uses a 11-bar lookback period, which may not be suitable for all timeframes
Works best in trending markets and may produce whipsaws in choppy conditions ⚠️
The indicator is more effective on higher timeframes (4H, 1D) than on very short timeframes (1M, 5M)
Signal generation requires confirmation from multiple EMAs, which may delay entry/exit points
The angle calculation method may not be suitable for all financial instruments
ADVANCED TIPS
Use multiple instances of this indicator with different EMA settings for multi-timeframe analysis
Combine with volume analysis to confirm the strength of signals
Look for confluence with support and resistance levels for more reliable signals
Consider using the angle values as a filter for other trading strategies
The indicator can be used to identify momentum exhaustion points when angles flatten
For swing trading, consider using the Buy and Sell signals as potential entry/exit points
For day trading, you may want to use shorter EMA periods and adjust threshold values accordingly
NOTES
The script uses a mathematical formula to calculate the angle of each EMA relative to its position 11 bars ago
The angle values are converted from radians to degrees for easier interpretation
The zero line represents no change in the EMA angle
The indicator is not overlayed on the price chart by default, but can be adjusted in the script settings 📊
The angle calculation provides a dynamic view of momentum that traditional moving averages don't offer
The threshold values are based on empirical testing and can be fine-tuned for specific instruments
THANKS
Special thanks to the TradingView community for their support and feedback on this indicator. If you find this script helpful, please consider leaving a comment or sharing your experiences with it. Your feedback helps improve the tool for everyone. 🙏
Also, a nod to the original concept developers who pioneered angle-based trend analysis. This script builds upon those foundational ideas to provide a more comprehensive view of market momentum. 🌟
Uptrick: Asset Rotation SystemOverview
The Uptrick: Asset Rotation System is a high-level performance-based crypto rotation tool. It evaluates the normalized strength of selected assets and dynamically simulates capital rotation into the strongest asset while optionally sidestepping into cash when performance drops. Built to deliver an intelligent, low-noise view of where capital should move, this system is ideal for traders focused on strength-driven allocation without relying on standard technical indicators.
Purpose
The purpose of this tool is to identify outperforming assets based strictly on relative price behavior and automatically simulate how a portfolio would evolve if it consistently moved into the strongest performer. By doing so, it gives users a realistic and dynamic model for capital optimization, making it especially suitable during trending markets and major crypto cycles. Additionally, it includes an optional safety fallback mechanism into cash to preserve capital during risk-off conditions.
Originality
This system stands out due to its strict use of normalized performance as the only basis for decision-making. No RSI, no MACD, no trend oscillators. It does not rely on any traditional indicator logic. The rotation logic depends purely on how each asset is performing over a user-defined lookback period. There is a single optional moving average filter, but this is used internally for refinement, not for entry or exit logic. The system’s intelligence lies in its minimalism and precision — using normalized asset scores to continuously rotate capital with clarity and consistency.
Inputs
General
Normalization Length: Defines how many bars are used to calculate each asset’s normalized score. This score is used to compare asset performance.
Visuals: Selects between Equity Curve (show strategy growth over time) or Asset Performance (compare asset strength visually).
Detect after bar close: Ensures changes only happen after a candle closes (for safety), or allows bar-by-bar updates for quicker reactions.
Moving Average
Used internally for optional signal filtering.
MA Type: Lets you choose which moving average type to use (EMA, SMA, WMA, RMA, SMMA, TEMA, DEMA, LSMA, EWMA, SWMA).
MA Length: Sets how many bars the moving average should calculate over.
Use MA Filter: Turns the filter on or off. It doesn’t affect the signal directly — just adds a layer of control.
Backtest
Used to simulate equity tracking from a chosen starting point. All calculations begin from the selected start date. Prior data is ignored for equity tracking, allowing users to isolate specific market cycles or testing periods.
Starting Day / Month / Year: The exact day the strategy starts tracking equity.
Initial Capital $: The amount of simulated starting capital used for performance calculation.
Rotation Assets
Each asset has 3 controls:
Enable: Include or exclude this asset from the rotation engine.
Symbol: The ticker for the asset (e.g., BINANCE:BTCUSDT).
Color: The color for visualization (labels, plots, tables).
Assets supported by default:
BTC, ETH, SOL, XRP, BNB, NEAR, PEPE, ADA, BRETT, SUI
Cash Rotation
Normalization Threshold USDC: If all assets fall below this threshold, the system rotates into cash.
Symbol & Color: Sets the cash color for plots and tables.
Customization
Dynamic Label Colors: Makes labels change color to match the current asset.
Enable Asset Label: Plots asset name labels on the chart.
Asset Table Position: Choose where the key asset usage table appears.
Performance Table Position: Choose where the backtest performance table appears.
Enable Realism: Enables slippage and fee simulation for realistic equity tracking. Adjusted profit is shown in the performance table.
Equity Styling
Show Equity Curve (STYLING): Toggles an extra-thick visual equity curve.
Background Color: Adds a soft background color that matches the current asset.
Features
Dual Visualization Modes
The script offers two powerful modes for real-time visual insights:
Equity Curve Mode: Simulates the growth of a portfolio over time using dynamic asset rotation. It visually tracks capital as it moves between outperforming assets, showing compounded returns and the current allocation through both line plots and background color.
Asset Performance Mode: Displays the normalized performance of all selected assets over the chosen lookback period. This mode is ideal for comparing relative strength and seeing how different coins perform in real-time against one another, regardless of price level.
Multi-Asset Rotation Logic
You can choose up to 10 unique assets, each fully customizable by symbol and color. This allows full flexibility for different strategies — whether you're rotating across majors like BTC, ETH, and SOL, or including meme tokens and stablecoins. You decide the rotation universe. If none of the selected assets meet the strength threshold, the system automatically moves to cash as a protective fallback.
Key Asset Selection Table
This on-screen table displays how frequently each enabled asset was selected as the top performer. It updates in real time and can help traders understand which assets the system has historically favored.
Asset Name: Shortened for readability
Color Box: Visual color representing the asset
% Used: How often the asset was selected (as a percentage of strategy runtime)
This table gives clear insight into historical rotation behavior and asset dominance over time.
Performance Comparison Table
This second table shows a full backtest vs. chart comparison, broken down into key performance metrics:
Backtest Start Date
Chart Asset Return (%) – The performance of the asset you’re currently viewing
System Return (%) – The equity growth of the rotation strategy
Outperformed By – Shows how many times the system beat the chart (e.g., 2.1x)
Slippage – Estimated total slippage costs over the strategy
Fees – Estimated trading fees based on rotation activity
Total Switches – Number of times the system changed assets
Adjusted Profit (%) – Final net return after subtracting fees and slippage
Equity Curve Styling
To enhance visual clarity and aesthetics, the equity curve includes styling options:
Custom Thickness Curve: A second stylized line plots a shadow or highlight of the main equity curve for stronger visual feedback
Dynamic Background Coloring: The chart background changes color to match the currently held asset, giving instant visual context
Realism Mode
By enabling Realism, the system calculates estimated:
Trading Fees (default 0.1%)
Slippage (default 0.05%)
These costs are subtracted from the equity curve in real time, and shown in the table to produce an Adjusted Return metric — giving users a more honest and execution-aware picture of system performance.
Adaptive Labeling System
Each time the asset changes, an on-chart label updates to show:
Current Asset
Live Equity Value
These labels dynamically adjust in color and visibility depending on the asset being held and your styling preferences.
Full Customization
From visual position settings to table placements and custom asset color coding, the entire system is fully modular. You can move tables around the screen, toggle background visuals, and control whether labels are colored dynamically or uniformly.
Key Concepts
Normalized values represent how much an asset has changed relative to its past price over a fixed period, allowing performance comparisons across different assets. Outperforming refers to the asset with the highest normalized value at a given time. Cash fallback means the system moves into a stable asset like USDC when no strong performers are available. The equity curve is a running total of simulated capital over time. Slippage is the small price difference between expected and actual trade execution due to market movement.
Use Case Flexibility
You don’t need to use all 10 assets. The system works just as effectively with only 1 asset — such as rotating between CASH and SOL — for a simple, minimal strategy. This is ideal for more focused portfolios or thematic rotation systems.
How to Use the Indicator
To use the Uptrick: Asset Rotation System, start by selecting which assets to include and entering their symbols (e.g., BINANCE:BTCUSDT). Choose between Equity Curve mode to see simulated portfolio growth, or Asset Performance mode to compare asset strength. Set your lookback period, backtest start date, and optionally enable the moving average filter or realism settings for slippage and fees. The system will then automatically rotate into the strongest asset, or into cash if no asset meets the strength threshold. Use alerts to be notified when a rotation occurs.
Asset Switch Alerts
The script includes built-in alert conditions for when the system rotates into a new asset. You can enable these to be notified when the system reallocates to a different coin or to cash. Each alert message is labeled by target asset and can be used for automation or monitoring purposes.
Conclusion
The Uptrick: Asset Rotation System is a next-generation rotation engine designed to cut through noise and overcomplication. It gives users direct insight into capital strength, without relying on generic indicators. Whether used to track a broad basket or focus on just two assets, it is built for accuracy, adaptability, and transparency — all in real-time.
Disclaimer
This script is for research and educational purposes only. It is not intended as financial advice. Past performance is not a guarantee of future results. Always consult with a financial professional and evaluate risks before trading or investing.
Trend Finder Using Pull Back Method {Darkoexe}This indicator predicts trends using pull backs structure to predict the trend direction. It builds off the flag pattern concept but it uses precise precise measurements to determine trend direction.
A pull back occurs every time the price direction switches then closes either below or above the open of the previous candle depending on the type of pull back, bullish or bearish.
For an up trend to be a defined, when a bullish pull back occurs and does not go below the previous low, if the price then passes above the start of the pull back, an up trend signal will be printed. Only bullish pull backs will be displayed during an up trend.
For a down trend to be defined, when a bearish pull back occurs and does not go above the previous high, if the price then passes below the start of the pull back, a down trend signal will be printed. Only bearish pull backs will be displayed during a down trend.
If the conditions for an up trend or down trend are not met, no trend will be printed. Both bearish and bullish pull backs will be displayed during a no trend.
All the labels colors can be changed.
//Darkoexe
Trend Finder {Darkoexe}This indicator displays the end and start of trends using an ATR factor.
The ATR with trend factor is used to determine the minimum length for a trend to be considered a trend.
The ATR against trend factor is used to determine the minimum length price needs to move against a trend for it to break the trend.
The ATR factors are multiplied with the ATR to determine these lengths.
The labels indicate the starts and ends of trends;
The green label indicates the start of an up trend.
The red label indicates the start of a down trend.
The black/gray label indicates the start of a trend and the end of another trend at the same location.
The purple/pink label indicates the end of a trend.
All the label colors can be changed.
IMPORTANT NOTE: This is a repainting indicator, it should only be used to back test and analyze previous trends. Do not use this indicator for live trading.
Sunday OpenSunday Open – Weekly Open Levels
Description
The "Sunday Open" indicator automatically displays the market open levels for Sunday. These levels are often used by traders as potential support and resistance zones. The script requires no manual data input and works on any timeframe.
Functionality
- Displays the N most recent Sunday Open levels, including the current and previous ones.
- The color of the current level differs from the older ones, making it easier to identify on the chart.
- Lines can be customized by style, thickness, and label visibility.
- Alerts are triggered when the price crosses any Sunday Open level (either up or down).
User Settings
- Number of levels to display (1–100)
- Color for the current and past levels
- Line style: solid, dashed, dotted
Line thickness
- Display text labels on the chart
- Enable/disable alerts for price crossing
Useful For
- Quickly identifying key reference points at the beginning of the week
- Setting up trading scenarios around the open zone
- Receiving signals for breakouts or touches of the levels
Important !
All elements are created automatically—no manual drawing required.
If you want to create alerts for when the price crosses a Sunday Open level, you need to go to "Alerts" at the top of the screen and select "SO" in the "Condition" field.
CCT Volatility Index📘 CCT Volatility Index
The CCT Volatility Index is a refined adaptation of the LS Volatility Index , originally presented by Brazilian traders Alexandre Wolwacz (Stormer), Fabrício Lorenz, and Fábio Figueiredo (Vlad) . This implementation respects the core logic of the original concept but introduces two important enhancements:
Bollinger Band Width Percentage (BBWP)
Average True Range (ATR)
These are incorporated into the traditional formula (price deviation from a moving average divided by historical volatility), producing a normalized and responsive oscillator.
🧠 Conceptual Summary
This is a volatility indicator, not a directional trend tool. It measures the degree of price dispersion and tension in the market. It can be applied in two primary contexts:
🔁 Reversal Scenarios
When the index approaches extreme levels (near 100), it may signal exhaustion of volatility and potential mean reversion, especially if price is far from the moving average (SMA21 by default).
📈 Trend Continuation
If price stays near the average and the index maintains an elevated or rising profile, it may suggest trend acceptance with ongoing momentum. In this case, volatility expansion aligns with continuation.
🎯 Strategy Guidelines
Trigger points may come from the index crossing its own moving average (white line), either as a breakout or via retest confirmation.
Overlay colors identify BBWP compression/expansion zones:
- Blue: BBWP is 2% above its historical mean.
- Red: BBWP is 98% above.
These zones can help identify breakout setups or mean-reverting conditions.
📊 Info Panel
The indicator includes a dynamic panel showing:
The current price
The moving average used as reference
The percentage deviation between them
This allows you to evaluate if the asset is currently "stretched" or "fair" under current volatility.
⚠️ Disclaimer
This tool is for educational and informational purposes only. It does not constitute investment advice and should not be used in isolation. Always combine it with other tools, market context, and proper risk management.
RESHAIndicator Name: RESHA – Static Price Levels
Description:
The RESHA indicator is a simple tool that allows traders to manually define multiple horizontal price levels on the chart. These levels are displayed as horizontal lines, each extending a customizable number of candles forward. Traders can input a comma-separated list of prices, which are then plotted automatically on the chart.
Features:
📍 Custom input box for price levels (comma-separated).
📏 Adjustable line length in bars.
Visual price labels at the end of each level.
Clean and minimalistic design, perfect for support/resistance zones or static analysis.
This tool is ideal for traders who want to keep key price zones visible at all times without relying on dynamic calculations or automated indicators.
OHLCVRangeXThe OHLCVRange library provides modular range-building utilities for Pine Script v6 based on custom conditions like time, price, volatility, volume, and pattern detection. Each function updates a persistent range (OHLCVRange) passed in from the calling script, based on live streaming candles.
This library is designed to support dynamic windowing over incoming OHLCV bars, with all persistent state handled externally (in the indicator or strategy). The library merely acts as a filter and updater, appending or clearing candles according to custom logic.
📦
export type OHLCVRange
OHLCV.OHLCV candles // Sliding window of candles
The OHLCVRange is a simple container holding an array of OHLCV.OHLCV structures.
This structure should be declared in the indicator using var to ensure persistence across candles.
🧩 Range Updater Functions
Each function follows this pattern:
export updateXxxRange(OHLCVRange r, OHLCV.OHLCV current, ...)
r is the range to update.
current is the latest OHLCV candle (typically from your indicator).
Additional parameters control the behavior of the range filter.
🔁 Function List
1. Fixed Lookback Range
export updateFixedRange(OHLCVRange r, OHLCV.OHLCV current, int barsBack)
Keeps only the last barsBack candles.
Sliding window based purely on number of bars.
2. Session Time Range
export updateSessionRange(OHLCVRange r, OHLCV.OHLCV current, int minuteStart, int minuteEnd)
Keeps candles within the [minuteStart, minuteEnd) intraday session.
Clears the range once out of session bounds.
3. Price Zone Range
export updatePriceZoneRange(OHLCVRange r, OHLCV.OHLCV current, float minP, float maxP)
Retains candles within the vertical price zone .
Clears when a candle exits the zone.
4. Consolidation Range
export updateConsolidationRange(OHLCVRange r, OHLCV.OHLCV current, float thresh)
Stores candles as long as the candle range (high - low) is less than or equal to thresh.
Clears on volatility breakout.
5. Volume Spike Range
export updateVolumeSpikeRange(OHLCVRange r, OHLCV.OHLCV current, float avgVol, float mult, int surround)
Triggers a new range when a volume spike ≥ avgVol * mult occurs.
Adds candles around the spike (total surround * 2 + 1).
Can be used to zoom in around anomalies.
6. Engulfing Pattern Range
export updateEngulfingRange(OHLCVRange r, OHLCV.OHLCV current, int windowAround)
Detects bullish or bearish engulfing candles.
Stores 2 * windowAround + 1 candles centered around the pattern.
Clears if no valid engulfing pattern is found.
7. HTF-Aligned Range
export updateHTFAlignedRange(OHLCVRange r, OHLCV.OHLCV current, OHLCV.OHLCV prevHtf)
Used when aligning lower timeframe candles to higher timeframe bars.
Clears and restarts the range on HTF bar transition (compare prevHtf.bar_index with current).
Requires external management of HTF candle state.
💡 Usage Notes
All OHLCVRange instances should be declared as var in the indicator to preserve state:
var OHLCVRange sessionRange = OHLCVRange.new()
sessionRange := OHLCVRange.updateSessionRange(sessionRange, current, 540, 900)
All OHLCV data should come from the OHLCVData library (v15 or later):
import userId/OHLCVData/15 as OHLCV
OHLCV.OHLCV current = OHLCV.getCurrentChartOHLCV()
This library does not use var internally to enforce clean separation of logic and persistence.
📅 Planned Enhancements
Fib zone ranges: capture candles within custom Fibonacci levels.
Custom event ranges: combine multiple filters (e.g., pattern + volume spike).
Trend-based ranges: windowing based on moving average or trend breaks.
Killzones (UTC+3) by Roy⏰ Time-Based Division – Trading Quarters:
The trading day is divided into four main quarters, each reflecting distinct market behaviours:
Opo Finance Blog
Quarter Time (Israel Time) Description
Q1 16:30–18:30 Wall Street opening; highest volatility.
Q2 18:30–20:30 Continuation or correction of the opening move.
Q3 20:30–22:30 Quieter market; often characterized by consolidation.
Q4 22:30–24:00 Preparation for market close; potential breakouts or sharp movements.
This framework assists traders in anticipating market dynamics within each quarter, enhancing decision-making by aligning strategies with typical intraday patterns.
Moving Average Price Deviation Spread
**Moving Average Price Deviation Spread (MA Dev)**
This indicator visualizes the deviation of price from its exponential moving average (EMA) and scales it within dynamic upper and lower bounds. The core logic measures the smoothed spread between price and EMA, then calculates standard deviation over a rolling window to define statistical thresholds.
* **Spread**: EMA of (Close - EMA), highlighting directional bias.
* **Upper/Lower Bounds**: EMA of ±1.96 \* standard deviation of the spread, framing high/low deviation zones.
* **Use Case**: Spot overextended conditions, mean reversion setups, or volatility-driven breakouts. Ideal for timing entries and exits around price extremes.
HTF ReversalsHTF Reversals — Big Turtle Soup & Relief Patterns
A multi-timeframe reversal indicator based on the logic of how pivots form and how true reversals begin. Designed for traders who want to catch high-probability turning points on higher timeframes, with visual clarity and actionable signals.
“Reversals don’t start from nowhere — they begin with a failed expansion and a reclaim of a prior range. This script helps you spot those moments, before the crowd.”
How It Works
Detects High Timeframe (HTF) “CR” Candles:
The script scans for large-bodied candles (“CR” candles) on higher timeframes (Monthly, Weekly, 3-Day). These candles often mark the end of a trend expansion and the start of a potential reversal zone.
Looks for “Inside” Candles:
After a CR candle, the script waits for a smaller “inside” candle, which signals a pause or failed continuation. The relationship between the CR and inside candle is key for identifying a possible reversal setup.
Engulfing Confirmation (Optional):
If the inside candle doesn’t immediately trigger a reversal, the script can wait for an engulfing move in the opposite direction, confirming the failed expansion and increasing the probability of a reversal.
Entry & Target Calculation:
For each valid setup, the script calculates a retracement entry (using Fibonacci levels like 0.382 or 0.618) and a logical target (usually the CR candle’s high or low).
Visuals: Lines & Boxes:
Each signal is marked with a horizontal line (entry) and a colored box extending from the HTF close to the entry price, visually highlighting the reversal zone for the same duration as the signal’s expected play-out.
Dashboard & Alerts:
A dashboard table summarizes the latest signals for each timeframe. Custom alerts notify you of new setups in real time.
Why It Works
Pivot Logic:
Reversals often start when a strong expansion candle (pivot) is followed by a failed attempt to continue in the same direction. This script codifies that logic, looking for the “pause” after the expansion and the first sign of a reclaim.
Multi-Timeframe Edge:
By focusing on higher timeframes, the indicator filters out noise and highlights only the most significant reversal opportunities.
Objective, Repeatable Rules:
All conditions are clearly defined and repeatable, removing subjectivity from reversal trading.
Visual Clarity:
The combination of lines and boxes makes it easy to see where reversals are likely to start and where your risk/reward lies.
How to Use
Add the indicator to your chart and select your preferred timeframes (Monthly, Weekly, 3-Day).
Watch for new signals on the dashboard or via alerts.
Use the entry line and box as your trade zone; the target is also displayed.
Combine with your own confluence (price action, volume, etc.) for best results.
This indicator is best used as a framework for understanding where high-probability reversals are likely to occur, not as a standalone buy/sell tool. Always use proper risk management.
Dynamic Volatility EnvelopeDynamic Volatility Envelope: Indicator Overview
The Dynamic Volatility Envelope is an advanced, multi-faceted technical indicator designed to provide a comprehensive view of market trends, volatility, and potential future price movements. It centers around a customizable linear regression line, enveloped by dynamically adjusting volatility bands. The indicator offers rich visual feedback through gradient coloring, candle heatmaps, a background volatility pulse, and an on-chart trend strength meter.
Core Calculation Mechanism
Linear Regression Core :
-A central linear regression line is calculated based on a user-defined source (e.g., close, hl2) and lookback period.
-The regression line can be optionally smoothed using an Exponential Moving Average (EMA) to reduce noise.
-The slope of this regression line is continuously calculated to determine the current trend direction and strength.
Volatility Channel :
-Dynamic bands are plotted above and below a central basis line. This basis is typically the calculated regression line but shifts to an EMA in Keltner mode.
-The width of these bands is determined by market volatility, using one of three user-selectable modes:
ATR Mode : Bandwidth is a multiple of the Average True Range (ATR).
Standard Deviation Mode : Bandwidth is a multiple of the Standard Deviation of the source data.
Keltner Mode (EMA-based ATR) : ATR-based bands are plotted around a central Keltner EMA line, offering a smoother channel.
The channel helps identify dynamic support and resistance levels and assess market volatility.
Future Projection :
The indicator can project the current regression line and its associated volatility bands into the future for a user-defined number of bars. This provides a visual guide for potential future price pathways based on current trend and volatility characteristics.
Candle Heatmap Coloring :
-Candle bodies and/or wicks/borders can be colored based on the price's position within the upper and lower volatility bands.
-Colors transition in a gradient from bearish (when price is near the lower band) through neutral (mid-channel) to bullish (when price is near the upper band), providing an intuitive visual cue of price action relative to the dynamic envelope.
Background Volatility Pulse :
The chart background color can be set to dynamically shift based on a ratio of short-term to long-term ATR. This creates a "pulse" effect, where the background subtly changes color to indicate rising or falling market volatility.
Trend Strength Meter :
An on-chart text label displays the current trend status (e.g., "Strong Bullish", "Neutral", "Bearish") based on the calculated slope of the regression line relative to user-defined thresholds for normal and strong trends.
Key Features & Components
-Dynamic Linear Regression Line: Core trend indicator with optional smoothing and slope-based gradient coloring.
-Multi-Mode Volatility Channel: Choose between ATR, Standard Deviation, or Keltner (EMA-based ATR) calculations for band width.
-Customizable Vertical Gradient Channel Fills: Visually distinct fills for upper and lower channel segments with user-defined top/bottom colors and gradient spread.
-Future Projection: Extrapolates regression line and volatility bands to forecast potential price paths.
-Price-Action Based Candle Heatmap: Intuitive candle coloring based on position within the volatility channel, with adjustable gradient midpoint.
-Volatility-Reactive Background Gradient: Subtle background color shifts to reflect changes in market volatility.
-On-Chart Trend Strength Meter: Clear textual display of current trend direction and strength.
-Extensive Visual Customization: Fine-tune colors, line styles, widths, and gradient aggressiveness for most visual elements.
-Comprehensive Tooltips: Detailed explanations for every input setting, ensuring ease of use and understanding.
Visual Elements Explained
Regression Line : The primary trend line. Its color dynamically changes (e.g., green for uptrend, red-pink for downtrend, neutral for flat) based on its slope, with smooth gradient transitions.
Volatility Channel :
Upper & Lower Bands : These lines form the outer boundaries of the envelope, acting as dynamic support and resistance levels.
Channel Fill : The area between the band center and the outer bands is filled with a vertical gradient. For example, the upper band fill might transition from a darker green near the center to a lighter green at the upper band.
Band Borders : The lines outlining the upper and lower bands, with customizable color and width.
Future Projection Lines & Fill :
Projected Regression Line : An extension of the current regression line into the future, typically styled differently (e.g., dashed).
Projected Channel Bands : Extensions of the upper and lower volatility bands.
Projected Area Fill : A semi-transparent fill between the projected upper and lower bands.
Candle Heatmap Coloring : When enabled, candles are colored based on their closing price's relative position within the channel. Bullish colors appear when price is in the upper part of the channel, bearish in the lower, and neutral in the middle. Users can choose to color the entire candle body or just the wicks and borders.
Background Volatility Pulse : The chart's background color subtly shifts (e.g., between a calm green and an agitated red-pink) to reflect the current volatility regime.
Trend Strength Meter : A text label (e.g., "TREND: STRONG BULLISH") positioned on the chart, providing an at-a-glance summary of the trend.
Configuration Options
Users can tailor the indicator extensively via the settings panel, with options logically grouped:
Core Analysis Engine : Adjust regression source data, lookback period, and EMA smoothing for the regression line.
Regression Line Visuals : Control visibility, line width, trend-based colors (uptrend, downtrend, flat), slope thresholds for trend definition, strong slope multiplier (for Trend Meter), and color gradient sharpness.
Volatility Channel Configuration : Select band calculation mode (ATR, StdDev, Keltner), set relevant periods and multipliers. Customize colors for vertical gradient fills (upper/lower, top/bottom), border line colors, widths, and the gradient spread factor for fills.
Future Projection Configuration : Toggle visibility, set projection length (number of bars), line style, and colors for projected regression and band areas.
Appearance & Candle Theme : Set default bull/bear candle colors, enable/disable candle heatmap, choose if body color matches heatmap, and configure heatmap gradient target colors (bull, neutral, bear) and the gradient's midpoint.
Background Volatility Pulse : Enable/disable the background effect and configure short/long ATR periods for the volatility calculation.
Trend Strength Meter : Enable/disable the meter, and choose its on-chart position and text size.
Interpretation Notes
-The Regression Line is the primary indicator of trend direction. Its slope and color provide immediate insight.
-The Volatility Bands serve as dynamic support and resistance zones. Price approaching or touching these bands may indicate potential turning points or breakouts. The width of the channel itself reflects market volatility – widening suggests increasing volatility, while narrowing suggests consolidation.
Future Projections are not predictions but rather an extension of current conditions. They can help visualize potential areas where price might interact with projected support/resistance if the current trend and volatility persist.
Candle Heatmap Coloring offers a quick visual assessment of where price is trading within the dynamic envelope, highlighting strength or weakness relative to the channel.
The Background Volatility Pulse gives a contextual feel for overall market agitation or calmness.
This indicator is designed to be a comprehensive analytical tool. Its signals and visualizations are best used in conjunction with other technical analysis techniques, price action study, and robust risk management practices. It is not intended as a standalone trading system.
Risk Disclaimer
Trading and investing in financial markets involve substantial risk of loss and is not suitable for every investor. The Dynamic Volatility Envelope indicator is provided for analytical and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security. Past performance is not indicative of future results. Always use sound risk management practices and never trade with capital you cannot afford to lose. The developers assume no liability for any financial losses incurred based on the use of this indicator.
Anti-Fade GuardThis indicator helps you avoid the costly mistake of fading strong trends by identifying when the market is in a high-conviction directional move — and when it’s not.
Inspired by real trading behaviors and momentum confirmation principles, Anti-Fade Guard provides a clear, visual decision tool for intraday and scalping traders.
✅ How It Works
It uses a multi-factor scoring model that analyzes:
• 📈 EMA Trend Bias — Direction of price vs EMA and EMA slope
• 🔁 2-Bar Trend Structure — Detects consistent higher highs/lows
• 🚨 Breakout Confirmation — Confirms clean moves through previous bar extremes
• 🔊 Volume Strength — Detects conviction based on volume above 20-bar average
• 📏 Body-to-Range Strength — Filters out candles with indecision (e.g. dojis)
Each signal contributes to a bullish or bearish score, and a trend is only considered valid when 2 or more signals agree.
🟩🟥 Visual Output
A real-time summary box in the bottom-right corner shows:
• Trend Status: 📈 Bullish / 📉 Bearish / 🟩 Neutral
• Signal Breakdown: EMA, Price Structure, Breakout, Volume, Candle Strength
• A Heatmap-style Trend Score: color-coded for conviction
This makes it easy to filter setups, stay on the right side of the market, and avoid fighting the trend.
Risk Calculator PRO — manual lot size + auto lot-suggestionWhy risk management?
90 % of traders blow up because they size positions emotionally. This tool forces Risk-First Thinking: choose the amount you’re willing to lose, and the script reverse-engineers everything else.
Key features
1. Manual or Market Entry – click “Use current price” or type a custom entry.
2. Setup-based ₹-Risk – four presets (A/B/C/D). Edit to your workflow.
3. Lot-Size Input + Auto Lot Suggestion – you tell the contract size ⇒ script tells you how many lots.
4. Auto-SL (optional) – tick to push stop-loss to exactly 1-lot risk.
5. Instant Targets – 1 : 2, 1 : 3, 1 : 4, 1 : 5 plotted and alert-ready.
6. P&L Preview – table shows potential profit at each R-multiple plus real ₹ at SL.
7. Margin Column – enter per-lot margin once; script totals it for any size.
8. Clean Table UI – dark/light friendly; updates every 5 bars.
9. Alert Pack – SL, each target, plus copy-paste journal line on the chart.
How to use
1. Add to chart > “Format”.
2. Type the lot size for the symbol (e.g., 1250 for Natural Gas, 1 for cash equity).
3. Pick Side (Buy / Sell) & Setup grade.
4. ✅ If you want the script to place SL for you, tick Auto-SL (risk = 1 lot).
5. Otherwise type your own Stop-loss.
6. Read the table:
• Suggested lots = how many to trade so risk ≤ setup ₹.
• Risk (currency) = real money lost if SL hits.
7. Set TradingView alerts on the built-in conditions (T1_2, SL_hit, etc.) if you’d like push / email.
8. Copy the orange CSV label to Excel / Sheets for journalling.
Best practices
• Never raise risk to “fit” a trade. Lower size instead.
• Review win-rate vs. R multiple monthly; adjust setups A–D accordingly.
• Test Auto-SL in replay before going live.
Disclaimer
This script is educational. Past performance ≠ future results. The author isn’t responsible for trading losses.
Vector Candles [v6 Optimized + EMA]
Vector Candles represent an innovative technical analysis approach that transforms traditional candlestick charting by integrating volume dynamics, color-coded momentum, and multi-dimensional market insights. Unlike standard candlesticks that merely display price movement, Vector Candles encode additional market information through sophisticated color and volume algorithms.
Key Features:
-Dynamic Volume-Based Coloring: Candles change color based on trading volume intensity
-Volume Categories:
High Volume (Lime/Red): Significant market activity (200%+- Vol of Previous 10 Candles)
Above Average Volume (Blue/Fuchsia): Moderate market momentum (150%+- Vol of Previous 10 Candles).
Normal Volume (Gray Scales): Standard market conditions.
Stopping Volume Candles - Typically Pinbar/Doji candles. Stops volume in the current direction of delivery & can help forecast impending reversals or end to the current trend.
-Integrated EMA (Exponential Moving Average) Option:
-Customizable EMA Length (Default: 50 periods) (I use 33)
Configurable EMA Source (e.g., close price)
Optional EMA Overlay for Trend Confirmation
FII SMART KEY LEVELSIntroducing the **Global Institutional Flow Indicator (GIFI)**—your all-in-one guide to the levels that matter most, powered by real-time foreign institutional activity. GIFI seamlessly adapts to any market—be it NSE and BSE equities, major cryptocurrencies, or the world’s most liquid forex pairs—so you never miss a beat.
Key Features:
Foreign Institutional Footprint
Tracks aggregated buy and sell volumes of FIIs (Foreign Institutional Investors) and equivalent large players across markets, highlighting where “smart money” is concentrating their capital.
* **Dynamic Support & Resistance Levels**
Automatically calculates high-conviction zones—zones where institutional orders have previously clustered—so you can pinpoint ultra-reliable levels for entries, exits, and stop placements.
* **Multi-Asset Compatibility**
One unified indicator that works out of the box on NSE and BSE stocks, top crypto tokens, and major FX crosses. No need to switch tools when you move between markets.
* **Trend-Aligned Signals**
Overlays institutional levels on your favorite trend filters—moving averages, ADX, or MACD—so you only trade in the direction that big players are committing.
* **Volume-Weighted Confirmation**
Confirms level-breaks and bounces with volume delta analysis, ensuring you’re following genuine institutional commitment rather than retail noise.
* **Adaptive Timeframes**
From 5-minute scalps to daily swing setups, GIFI adjusts its sensitivity so you capture the most meaningful levels on any timeframe.
**Why It Works:**
Foreign institutions often leave telltale footprints when they build or unwind positions at scale. GIFI decodes those footprints into actionable levels—revealing where the “smart money” is most willing to buy or sell. When price approaches one of these institutional zones, you gain:
* **Higher Probability Entries**
Enter trades alongside large-ticket players rather than against them.
* **Optimized Risk Management**
Place stops just beyond genuine institutional commitment zones, reducing the odds of false breakouts.
* **Clearer Exit Strategies**
Target profit levels where institutions are likely to take profits or enter fresh positions.
Whether you’re scalping Nifty futures, swing-trading mid-cap stocks, riding crypto trends, or trading EUR/USD, the Global Institutional Flow Indicator equips you with the insights you need to trade confidently—knowing you’re aligning with the forces that really move the markets.
Stoch Quad Oscillator📘 Stoch Quad Oscillator – User Guide
✅ Purpose
The Stoch Quad Oscillator is a multi-timeframe stochastic oscillator tool that helps traders detect oversold and overbought conditions, momentum shifts, and quad rotation signals using four distinct stochastic configurations. It includes visual cues, customizable parameters, and background highlights to improve decision-making during trend reversals or momentum surges.
🛠️ Inputs & Parameters
⏱ Timeframe
Timeframe for Stochastic Calculation: Defines which chart timeframe to use for stochastic calculations (default is "1" minute). This enables multi-timeframe analysis while on a lower timeframe chart.
📈 Stochastic Parameters
Four different stochastic configurations are used:
Label %K Length %D Smoothing Notes
K9 D3 9 3 Fastest, short-term view
K14 D3 14 3 Moderately short-term
K40 D4 40 4 Medium-term trend view
K60 D10 60 10 Long-term strength
Smoothing Type: Choose between SMA or EMA to control how smoothed the %D line is.
🎯 Levels
Overbought Level: Default 80
Oversold Level: Default 20
These are used to indicate overextended price conditions on any of the stochastic plots.
🔄 Quad Rotation Detection Settings
When enabled, the script detects synchronized oversold/overbought conditions with strong momentum using all 4 stochastic readings.
Enable Quad Rotation: Toggles detection on or off
Slope Calculation Bars: Number of bars used to calculate slope of %D lines
Slope Threshold: Minimum slope strength for signal (higher = stronger confirmation)
Oversold Quad Level: Total of all four stochastic values that define a quad oversold zone
Overbought Quad Level: Total of all four stochastic values that define a quad overbought zone
Oversold Quad Highlight Color: Background color when oversold quad is triggered
Overbought Quad Highlight Color: Background color when overbought quad is triggered
Slope Averaging Method: Either Simple Average or Weighted Average (puts more weight on higher timeframes)
Max Signal Bar Window: Defines how recent the signal must be to be considered valid
📊 Plots & Visual Elements
📉 Stochastic %D Lines
Each stochastic is plotted separately:
K9 D3 – Red
K14 D3 – Orange
K40 D4 – Fuchsia
K60 D10 – Silver
These help visualize short to long-term momentum simultaneously.
📏 Horizontal Reference Lines
Overbought Line (80) – Red
Oversold Line (20) – Green
These help you identify threshold breaches visually.
🌈 Background Highlighting
The indicator provides background highlights to mark potential signal zones:
✅ All Oversold or Overbought Conditions
When all four stochastics are either above overbought or below oversold:
Bright Red if all are overbought
Bright Green if all are oversold
🚨 Quad Rotation Signal Zones (if enabled)
Triggered when:
The combined sum of all four stochastic levels is extremely low/high (below/above oversoldQuadLevel or overboughtQuadLevel)
The average slope of the 4 %D lines is sharply positive (> slopeThreshold)
Highlights:
Custom Red Tint = Strong overbought quad signal
Custom Green Tint = Strong oversold quad signal
These zones can indicate momentum shifts or reversal potential when used with price action or other tools.
⚠️ Limitations & Considerations
This indicator does not provide trade signals. It visualizes conditions and potential setups.
It is best used in confluence with price action, support/resistance levels, and other indicators.
False positives may occur in ranging markets. Reduce reliance on slope thresholds during low volatility.
Quad signals rely on slope strength, which may lag slightly behind sudden reversals.
🧠 Tips for Use
Combine with volume, MACD, or PSAR to confirm direction before entry.
Watch for divergences between price and any of the stochastics.
Use on higher timeframes (e.g., 5m–30m) to filter for swing trading setups; use shorter TFs (1m–5m) for scalping signals.
Adjust oversoldQuadLevel and overboughtQuadLevel based on market conditions (e.g., in trending vs ranging markets).
Mirrored Buy/Sell Volume + Cumulative DeltaUser Guide: Mirrored Buy/Sell Volume (Histogram)
🔍 What It Does
Displays green bars above zero for estimated buy volume
Displays red bars below zero for estimated sell volume
Adds a blue line showing Cumulative Delta (buy − sell over time)
Optional threshold lines help spot when net momentum builds up
📊 How Volume is Estimated
Same estimation method as the table version:
Buy Volume is proportion of volume estimated using (close - low) / (high - low)
Sell Volume is remainder of the total volume
Cumulative Delta = running total of (Buy − Sell) volume
This gives you:
A real-time sense of which side is gradually gaining control
More context than looking at candles or volume bars alone
✅ Best For
Visual trade decision support: who’s winning the tug-of-war?
Spotting trend initiation or momentum shifts
Combining with oscillator/trend tools for confirmation
⚠️ Limitations
Still an approximation — not based on actual trade aggressor data
Cannot separate passive vs. aggressive orders
Cumulative Delta does not reset unless specifically coded to do so
May mislead if the bar has long wicks or closes near midpoint
High/Low Liquidation LevelsThe Visible High/Low Liquidation Levels indicator is designed to help traders better understand potential liquidation zones within a visible range on the chart. It does this by identifying dynamic high and low median price levels and plotting corresponding liquidation levels based on various leverage ratios.
This tool visually marks these critical zones, offering insight into areas where over-leveraged positions (such as x1, x2, x5, up to x100) are more likely to get liquidated, either above the recent low or below the recent high. This can support risk management and decision-making, especially in volatile markets.
Features:
Displays median high and low levels based on a configurable number of visible bars.
Plots liquidation levels above the low median and below the high median for multiple leverage tiers: x1, x2, x3, x5, x10, x25, x50, x75, x100.
Full customization over which leverage levels to show.
Color-coded lines for easy visual distinction.
Configurable bar range for calculating highs and lows separately.
Built-in legend table for clear reference to level color mappings.
Relative Performance Spread**Relative Performance Spread Indicator – Overview**
This indicator compares the **relative performance between two stocks** by normalizing their prices and calculating the **spread**, **area under the curve (AUC)**, or **normalized price ratio**.
### **How It Works**
* **Input**: Select a second stock (`ticker2`) and a moving average window.
* **Normalization**: Each stock is normalized by its own moving average → `norm = close / MA`.
* **Spread**: The difference `spread = norm1 - norm2` reflects which stock is outperforming.
* **AUC**: Cumulative spread over time shows prolonged dominance or underperformance.
* **Bounds**: Bollinger-style bands are drawn around the spread to assess deviation extremes.
### **Usage**
* **Plot Type Options**:
* `"Spread"`: Spot outperformance; crossing bands may signal rotation.
* `"AUC"`: Track long-term relative trend dominance.
* `"Normalized"`: Directly compare scaled price movements.
Use this tool for **pair trading**, **relative momentum**, or **rotation strategies**. It adapts well across assets with different price scales.
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، وتلوين الخلفية، والبنية البرمجية الشاملة القابلة للتخصيص.
BW MFI fixed v6Bill Williams MFI
Sure! Here’s an English description of the indicator you have:
---
### Bill Williams Market Facilitation Index (MFI) — Indicator Description
This indicator implements the **Market Facilitation Index (MFI)** as introduced by Bill Williams. The MFI measures the market's willingness to move the price by comparing the price range to the volume.
---
### How it works:
* **MFI Calculation:**
The MFI is calculated as the difference between the current bar’s high and low prices divided by the volume of that bar:
$$
\text{MFI} = \frac{\text{High} - \text{Low}}{\text{Volume}}
$$
* **Color Coding Logic:**
The indicator compares the current MFI and volume values to their previous values and assigns colors to visualize market conditions according to Bill Williams’ methodology:
| Color | Condition | Market Interpretation |
| ----------- | ------------------ | --------------------------------------------------------------------------------------------- |
| **Green** | MFI ↑ and Volume ↑ | Strong trend continuation or acceleration (increased price movement supported by volume) |
| **Brown** | MFI ↓ and Volume ↓ | Trend weakening or possible pause (both price movement and volume are decreasing) |
| **Blue** | MFI ↑ and Volume ↓ | Possible false breakout or lack of conviction (price moves but volume decreases) |
| **Fuchsia** | MFI ↓ and Volume ↑ | Market indecision or battle between bulls and bears (volume rises but price movement shrinks) |
| **Gray** | None of the above | Neutral or unchanged market condition |
* **Display:**
The indicator plots the MFI values as colored columns on a separate pane below the price chart, providing a visual cue of the market’s behavior.
---
### Purpose:
This tool helps traders identify changes in market momentum and the strength behind price moves, providing insight into when trends might accelerate, weaken, or potentially reverse.
---
If you want, I can help you write a more detailed user guide or trading strategy based on this indicator!