Multi Moving Average with CustomizationCore Functionality
The indicator allows you to display up to 5 different moving averages on your chart simultaneously.
Each moving average can be fully customized with its own settings.
You can choose between
1. Simple Moving Average (SMA),
2. Exponential Moving Average (EMA)
3. Weighted Moving Average (WMA) types
Multi-Timeframe Support
One standout feature is the ability to display higher timeframe moving averages on lower timeframe charts.
For example, you can show a 200 EMA from the daily chart while viewing a 15-minute chart.
Advanced Visualization Features
The indicator includes several visualization enhancements:
1. MA Cloud - Creates a filled area between any two selected moving averages. The cloud automatically changes color based on which MA is on top - typically green when the faster MA is above (bullish) and red when below (bearish).
2. Golden/Death Cross Detection - Automatically detects and marks important MA crossover events:
* Golden Cross: When a shorter-term MA crosses above a longer-term MA (bullish signal)
* Death Cross: When a shorter-term MA crosses below a longer-term MA (bearish signal)
3. Trend Background - Colors the entire chart background based on whether price is above or below a specified MA, giving a clear visual indicator of the overall trend.
Alert System
The indicator can generate alerts when price crosses above or below any selected moving average. This feature is useful for automated trading signals or notifications, and can be configured to trigger once per bar.
Flexible Architecture
The code uses several programming techniques to maximize flexibility:
* Switch statements for selecting MA types and cloud values
* Conditional logic throughout the code
* Function abstraction for calculating MAs and handling multi-timeframe display
* String identifiers to select which MAs to use for cloud visualization
Unique Technical Aspects
1. The multi-timeframe plotting function solves the common problem of higher timeframe MAs looking distorted on lower timeframe charts.
2. The cloud feature uses string identifiers to select which MAs to use, allowing for any combination.
3. The indicator employs smart conditional logic to handle complex decision trees efficiently.
4. Every visual aspect (colors, line widths, display conditions) is customizable through the settings.
This indicator combines multiple technical analysis tools into a single, highly configurable package that can adapt to different trading styles and timeframes.
Its ability to correctly display higher timeframe MAs on lower timeframe charts makes it particularly valuable for traders who analyze multiple timeframes simultaneously.
Hacim
Impulse Profile Zones [BigBeluga]🔵 OVERVIEW
Impulse Profile Zones is a volume-based tool designed to highlight high-impact candles and visualize hidden liquidity zones inside them using microstructure data. It’s ideal for identifying volume concentration and potential reaction points during impulsive market moves.
Whenever a candle exceeds a specified size threshold, this indicator captures its structure and overlays a detailed intrabar volume profile (from a 10x lower timeframe), allowing traders to analyze the distribution of interest within powerful market impulses.
🔵 CONCEPTS
Filters candles that exceed a user-defined threshold by size.
For qualifying candles, retrieves lower timeframe price and volume data.
Divides the candle’s body into 10 volume bins and calculates the volume per zone. Highlights the bin with the highest volume as the Point of Control (POC) .
Each POC line extends forward until a new impulse is detected.
🔵 FEATURES
Impulse Candle Detection:
Triggers only when a candle’s body size is larger than the defined threshold.
Lower Timeframe Profiling:
Aggregates 10-bin volume data from a lower timeframe (typically 1/10 of current TF).
Volume Distribution Bars:
Each bin displays a stylized bar using unicode block characters (e.g., ▇▇▇, ▇▇ or ▇--).
The bar size reflects the relative volume intensity.
POC Zone Mapping:
The bin with the highest volume is marked with a bold horizontal line.
Its value is labeled and extended until the next valid impulse.
🔵 HOW TO USE
Use large candle profiles to assess which price levels inside a move were most actively traded.
Watch the POC line as a magnet for future price interaction (support/resistance or reaction).
Combine with market structure or order block indicators to identify confluence levels.
Adjust the “Filter Large Candles” input to detect more or fewer events based on volatility.
🔵 CONCLUSION
Impulse Profile Zones is a hybrid microstructure tool that bridges lower timeframe volume with higher timeframe impulse candles. By revealing where most of the volume occurred inside large moves, traders gain a deeper view into hidden liquidity, enabling smarter trade entries and more confident profit-taking zones.
(OFPI) Order Flow Polarity Index - Momentum Gauge (DAFE) (OFPI) Order Flow Polarity Index - Momentum Gauge: Decode Market Aggression
The (OFPI) Gauge Bar is your front-row seat to the battle between buyers and sellers. This isn’t just another indicator—it’s a momentum tracker that reveals market aggression through a sleek, centered gauge bar and a smart dashboard. Built for traders who want clarity without clutter, it’s your edge for spotting who’s driving price, bar by bar.
What Makes It Unique?
Order Flow Pressure Index (OFPI): Splits volume into buy vs. sell pressure based on candle body position. It’s not just volume—it’s intent, showing who’s got the upper hand.
T3 Smoothing Magic: Uses a Tilson T3 moving average to keep signals smooth yet responsive. No laggy SMA nonsense here.
Centered Gauge Bar: A 20-segment bar splits bullish (lime) and bearish (red) momentum around a neutral center. Empty segments scream indecision—it’s like a visual heartbeat of the market.
Momentum Shift Alerts: Catches reversals with “Momentum Shift” flags when the OFPI crests, so you’re not caught off guard.
Clean Dashboard: A compact, bottom-left table shows momentum status, the gauge bar, and the OFPI value. Color-coded, transparent, and no chart clutter.
Inputs & Customization
Lookback Length (default 10): Set the window for pressure calculations. Short for scalps, long for trends.
T3 Smoothing Length (default 5): Tune the smoothness. Tight for fast markets, relaxed for chill ones.
T3 Volume Factor (default 0.7): Crank it up for snappy signals or down for silky trends.
Toggle the dashboard for minimalist setups or mobile trading.
How to Use It
Bullish Momentum (Lime, Right-Filled): Buyers are flexing. Look for breakouts or trend continuations. Pair with support levels.
Bearish Momentum (Red, Left-Filled): Sellers are in charge. Scout for breakdowns or shorts. Check resistance zones.
Neutral (Orange, Near Center): Market’s chilling. Avoid big bets—wait for a breakout or play the range.
Momentum Shift: A reversal might be brewing. Confirm with price action before jumping in.
Not a Solo Act: Combine with your strategy—trendlines, RSI, whatever. It’s a momentum lens, not a buy/sell bot.
Why Use the OFPI Gauge?
See the Fight: Most tools just count volume. OFPI shows who’s winning with a visual that slaps.
Works Anywhere: Crypto, stocks, forex, any timeframe. Tune it to your style.
Clean & Pro: No chart spam, just a sharp gauge and a dashboard that delivers.
Unique Edge: No other indicator blends body-based pressure, T3 smoothing, and a centered gauge like this.
The OFPI Gauge catches the market’s pulse so you can trade with confidence. It’s not about predicting the future—it’s about knowing who’s in control right now.
For educational purposes only. Not financial advice. Always use proper risk management.
Use with discipline. Trade your edge.
— Dskyz , for DAFE Trading Systems
Polarity-VoVix Fusion Index (PVFI) Polarity-VoVix Fusion Index (PVFI) - Order Flow and Volatility Regime Detector
The PVFI is a next-generation indicator that fuses the Order Flow Polarity Index (OFPI) with a proprietary VoVix Volume Delta (VVD) engine. This tool is designed for traders who want to see not just how much volume is trading, but who is in control and how volatility is shifting beneath the surface.
What Makes PVFI Standout from the rest?
- Dual Engine: PVFI combines two advanced signals:
* OFPI: Measures real-time buy/sell pressure using candle body position and volume, then smooths it with a T3 moving average for clarity and responsiveness.
* VVD: Captures the "volatility of volume delta" - a normalized, memory-boosted measure of aggressive buying/selling, with a custom non-linear clamp for organic, non-pegged signals.
- Visual Clarity: Neon-glow OFPI line and shadowed, color-gradient VVD area make regime shifts and momentum instantly visible.
- Adaptive Dashboard: Toggle between a full-featured dashboard (desktop) and a compact info line (mobile) for seamless use on any device.
- Universal: Works on any asset - crypto, stocks, futures, forex - and any timeframe.
- No Chart Clutter: Clean, modern visuals and toggles for a pro look.
Inputs:
OFPI Lookback Length (ofpi_len): Sets the window for order flow pressure calculation. Shorter = more sensitive, longer = smoother. For scalping, try 5-10. For swing trading, 15-30. Crypto often benefits from shorter windows due to volatility.
OFPI T3 Smoothing Length (t3_len): Controls the smoothness of the OFPI line. Lower = more responsive, higher = smoother. Use 3-7 for fast markets, 8-15 for slow or higher timeframes.
OFPI T3 Volume Factor (t3_vf): Adjusts the T3’s sensitivity. Higher = more responsive, lower = more stable. 0.6-0.8 is typical. Raise for more “snappy” signals, lower for less noise.
VVD Delta Lookback (delta_len): Sets the window for VVD’s volume delta calculation. 10-20 for most assets. Shorter for high-volatility, longer for slow markets.
VVD Volatility Normalization Length (vol_norm_len): Normalizes VVD by recent volume. 15-30 is typical. Use higher for assets with wild volume swings.
VVD Momentum Memory (momentum_mem): Adds a “memory” boost to VVD, amplifying persistent buying/selling. 2-5 is common. Lower for choppy markets, higher for trending.
Show Dashboard (showDash): Toggles the full dashboard table (best for desktop). Turn off for a minimalist or mobile setup.
Show Compact Info Line (showInfoLabel): Toggles a single-line info label (best for mobile). Turn on for mobile or minimalist setups.
How PVFI Works:
- OFPI Calculation: Splits each candle’s volume into buy/sell pressure based on where the close is within the range. Aggregates over your chosen lookback, then smooths with a T3 moving average for a neon, lag-minimized signal.
- VVD Calculation: Measures the “aggression” of volume (body-weighted), normalizes by recent volume, and applies a memory boost for persistent trends. Uses a custom tanh clamp for a natural, non-pegged range.
- Visuals: OFPI is plotted as a neon line (with glow). VVD is a color-gradient area with a soft shadow, instantly showing regime shifts.
- Dashboard/Info Line: Desktop: Full dashboard with all key stats, color-coded and branded. Mobile: Compact info line with arrows for quick reads.
How you'll use PVFI:
- Bullish OFPI (Teal Neon, Up Arrow): Buyers are dominating. Look for breakouts, trend continuations, or confirmation with your own system.
- Bearish OFPI (Green Neon, Down Arrow): Sellers are in control. Watch for breakdowns or short setups.
- VVD Positive (Teal Area): Aggressive buying is increasing. Confirm with price action.
- VVD Negative (Purple Area): Aggressive selling is increasing. Use for risk management or short bias.
- Neutral/Flat: Market is balanced or indecisive. Consider waiting for a clear regime shift.
- Dashboard/Info Line: Use the dashboard for full context, or the info line for a quick glance on mobile.
Tips:
- For scalping, use lower lookbacks and smoothing.
- For swing trading, increase lookbacks and smoothing for stability.
- Works on all assets and timeframes - tune to your style.
Why PVFI is Unique:
- Fusion of Order Flow and Volatility: No other indicator combines body-based order flow with a volatility-of-volume delta, both visualized with modern, pro-grade graphics.
- Adaptive, Not Static: PVFI adapts to market regime, not just price movement.
- Mobile-Ready: Dashboard and info line toggles for any device.
- No Chart Clutter: Clean, color-coded, and easy to read.
For Educational Use Only
PVFI is a research and educational tool, not financial advice. Always use proper risk management and combine with your own strategy.
Trade with clarity. Trade with edge.
— Dskyz , for DAFE Trading Systems
VWMA/EMA Crossover with Volume Signal Indicator is based on vwma 20 and ema 25 with buy signals when vwma crosses above ema with bullish volume and sell signals when vwma crosses below ema with bearish volume. based on volume label changes to strong buy/sell signal
Smart Money Signal Engine (Smart Liquidity Zone - Anchored)🧭 Smart Liquidity Zone Indicator – Simple Guide
✅ What This Does
This tool helps you spot:
1. Smart Money Buy Zones (green box)
2. Fake Breakouts (trap alerts)
3. Real Breakouts (momentum alerts)
⸻
1. 🟩 Liquidity Zone (Green Box)
What it means:
Where big players (smart money) are likely interested in buying.
What you do:
• If price enters the box and holds → consider buying
• If price drops through fast → wait or look for short setups
⸻
2. 🔴 Trap Alert (Smart Money Trap)
What it means:
Price goes up fast with volume…
But no real buying power underneath = likely fakeout
On chart:
You’ll see a red label that says “Trap”
What you do:
• ❌ Don’t chase the pump
• ✅ Wait for reversal or short entry
⸻
3. 🟢 Breakout Alert
What it means:
Price breaks above a key level with strong volume
Smart money is likely behind the move
On chart:
You’ll see a green label that says “Breakout”
What you do:
• ✅ You can enter a momentum trade
• ✅ Place stop below previous structure
⸻
🔔 How to Turn on Alerts
Go to:
• TradingView > Alerts > Condition
• Choose:
• Smart Money Trap Alert
• Breakout Confirmed Alert
This way, TradingView notifies you instantly when:
• A fakeout is happening
• A real breakout begins
MFI Candle Trend🎯 Purpose:
The MFI Candle Trend is a custom TradingView indicator that transforms the Money Flow Index (MFI) into candle-style visuals using various smoothing and transformation techniques. Rather than displaying MFI as a line, this script generates synthetic candles from MFI values, helping traders visualize money flow trends, strength, and potential reversals with more clarity.
📌 Trend strength can be analyzed based on buying and selling pressures in the trend direction.
🧩 How It Works:
Calculates MFI values for open, high, low, and close prices.
Applies optional smoothing using the user-selected moving average (EMA, SMA, WMA, etc.).
Transforms the smoothed MFI data into synthetic candles using a selected method:
Normal: Uses raw MFI data
Heikin-Ashi: Applies HA transformation to MFI
Linear: Uses linear regression on MFI values
Rational Quadratic: Applies advanced rational quadratic filtering via an external kernel library
Colors candles based on MFI momentum:
Cyan: Strong positive MFI movement
Red: Strong negative MFI movement
⚙️ Key Inputs:
Method:
The type of smoothing method to apply to MFI
Options: None, EMA, SMA, SMMA (RMA), WMA, VWMA, HMA, Mode
Length:
Period for both the MFI and smoothing calculation
Candle:
Selects the transformation mode for generating synthetic candles
Options: Normal, Heikin-Ashi, Linear, Rational Quadratic
Rational Quadratic:
Adjusts the depth of smoothing for the Rational Quadratic filter (applies only if selected)
📊 Outputs:
Synthetic MFI Candlesticks:
Plotted using the smoothed and transformed MFI values.
Dynamic Coloring:
Cyan when MFI momentum is increasing
Red when MFI momentum is decreasing
Horizontal Lines:
80: Overbought zone
20: Oversold zone
🧠 Why Use This Indicator?
Unlike traditional MFI indicators that use a line plot, this tool gives traders:
A candle-based visualization of money flow momentum
Enhanced trend and reversal detection using color-coded MFI candles
A choice of smoothing filters and transformations for noise reduction
A powerful combination of momentum and structure-based analysis
To combine volume and price strength into a single chart element
❗Important Note:
This indicator is for educational and analytical purposes only. It does not constitute financial advice. Always use proper risk management and validate with additional tools or analysis.
Volume CandlesVolume Candles — Context-Aware Candle Color
Description:
This visual indicator colors your price candles based on relative volume intensity, helping traders instantly detect low, medium, and high volume activity at a glance. It supports two modes — Percentile Ranking and Volume Average — offering flexible interpretation of volume pressure across all timeframes.
It uses a 3-tiered color system (bright, medium, dark) with customizable tones for both bullish and bearish candles.
How It Works:
You can choose between two modes for volume classification:
Ranking Mode (Default):
Measures current volume’s percentile rank over a lookback period. Higher percentiles = stronger color intensity.
Percentile thresholds:
< 50% → light color (low volume)
50–80% → medium intensity
> 80% → high volume
Volume Average Mode:
Compares current volume against its simple moving average (SMA).
Volume thresholds:
< 0.5× SMA → light color
Between 0.5× and 1.5× → medium
> 1.5× → high intensity
Candle Paint:
Candles are colored directly on the chart, not in a separate pane. Bullish candles use green shades, bearish use red. All colors are fully customizable.
How to Interpret:
Bright Colors = High volume (potential strength or climax)
Muted/Transparent Colors = Low or average volume (consolidation, traps)
Example Use Cases:
Spot fakeouts with large price movement on weak volume (dark color)
Confirm breakout strength with bright candles
Identify stealth accumulation/distribution
Inputs & Settings:
Mode: Ranking Percentile or Volume Average
Lookback Period for ranking and SMA
Custom Colors for bullish and bearish candles at 3 intensity levels
Best For:
Price action traders wanting context behind each candle
Scalpers and intraday traders needing real-time volume feedback
Anyone using volume as a filter for entries or breakouts
Pro Tips:
Combine with Price Action, Bollinger Bands or VWAP/EMA levels to confirm breakout validity and intent behind a move.
Use alongside RSI/MACD divergences for high-volume reversal signals.
For swing trading, expand the lookback period to better normalize volume over longer trends.
VWMA and EMA Crossover SignalsTrading signals based on VWMA and EMA cross overs. Buy and sell signals are produced once a cross over happens.
VWMA and EMA Crossover with Volume Indicator is based on vwma 20 and ema 25 with buy signals when vwma crosses above ema and sell signals when vwma crosses below ema. It give buy sell signals based on volume, if volume is above average at the time of cross over over you will see a strong buy sell signal.
🐳 펭기 ETH 고래 매집 감지기//@version=5
indicator("🐳 펭기 ETH 고래 매집 감지기", overlay=true)
// OBV 계산
obv = 0.0
obv := nz(obv ) + (close > close ? volume : close < close ? -volume : 0)
obv_rising = obv > ta.sma(obv, 5)
// CMF 수동 계산
length = 20
mfv = ((close - low) - (high - close)) / (high - low) * volume
cmf = ta.sma(mfv, length) / ta.sma(volume, length)
cmf_positive = cmf > 0
// 거래량 급증 여부
vol_avg = ta.sma(volume, 5)
vol_surge = volume > vol_avg * 1.5
// 실체 양봉 조건
real_body = math.abs(close - open)
upper_wick = high - math.max(close, open)
candle_bullish = close > open and upper_wick < real_body * 0.3
// 고래 매집 트리거
trigger = obv_rising and cmf_positive and vol_surge and candle_bullish
// 시각화 및 알림
plotshape(trigger, title="ETH 고래 매집 신호", location=location.belowbar, color=color.teal, style=shape.labelup, text="🐳")
alertcondition(trigger, title="📢 ETH 고래 매집 감지!", message="ETH에서 고래 매집 조건 충족!")
No Supply / No Demand Candle AlertsNo Supply Candle: A No Supply candle generally has a large body (close near high) with low volume. So, you would likely want the body percentage to be high, meaning the price action is concentrated near the high of the candle.
No Demand Candle: A No Demand candle generally has a large body (close near low) with low volume. You would want a high body percentage but with the close near low.
Breakout Pro + ADX/Volume Filter🚀 Breakout Pro: ADX + Volume + RSI Filter
High-Probability Breakout System with Trend & Volume Confirmation
🔥 Why This Indicator Stands Out
A multi-filter breakout strategy designed for precision:
✅ ADX Trend Filter (Only trade when ADX > 25 = strong trend)
✅ Volume Spike Confirmation (2x avg volume = valid breakout)
✅ Auto Risk-Reward Tools (TP/SL based on breakout range)
✅ Retest Zones (Optimal secondary entries)
⚠️ Needs Upgrade! Help us add RSI momentum filters to reduce false signals!
📌 How It Works
Buy Signal (▲ Green Arrow):
Breakout above 20-period high
Strong ADX + high volume + bullish trend
Sell Signal (▼ Red Arrow):
Breakout below 20-period low
Strong ADX + high volume + bearish trend
Retest Levels (Blue/Orange Circles):
Potential low-risk re-entry zones
💻 Open-Source Collaboration
We’re inviting the TradingView community to enhance this indicator by:
pine
// TO-DO: Add RSI Momentum Filters
// 1. Avoid breakouts when RSI is overbought (>70) or oversold (<30)
// 2. RSI divergence confirmation
// Contributors will be credited!
🎯 Perfect For
Day traders & swing traders (stocks, forex, crypto)
Those who trade breakouts with volume confirmation
Developers who want to collaborate on open-source tools
📢 Note: This indicator is FREE. If you find it useful, support us with a like & share!
🔗 Tags:
#BreakoutTrading #ADX #VolumeSpike #RSI #PineScript #TradingStrategy
Volumen + Agotamiento + Tendencia Vol ↓This script detects potential exhaustion zones based on volume behavior, ideal for intraday trading on the 5-minute timeframe.
🔍 What it highlights:
- **Exhaustion signals** (bullish or bearish) when:
- Current volume is **below the 30-period moving average**.
- The previous candle had higher volume.
- Price attempts to continue in one direction but shows weakness.
📉 It also displays:
- A subtle "Vol ↓" label when there is a **volume downtrend**, defined as at least 60% of the last 5 candles showing decreasing volume.
🕒 Time filter:
- Signals only appear between **9:00 AM and 2:00 PM (New York time)**, aligning with the most liquid trading hours.
✅ Recommended usage:
- Best suited for **5-minute charts** and **intraday setups**.
- Works great as a confirmation layer for support/resistance levels, VWAP zones, or trend exhaustion.
- Can be combined with order flow tools like Bookmap or delta-based analysis for precise execution.
⚠️ Note:
This is not a delta or absorption-based indicator. It simplifies visual exhaustion detection based on volume structure. Use it as a **contextual alert**, not a standalone signal generator.
📎 Script by: Daniel Gonzalez
🔁 100% open-source and customizable
Green/Red Volume Ratio (rolling)This indicator calculates the ratio between the total volume of bullish candles (where the close is higher than the open) and the total volume of bearish candles (where the close is lower than the open) over a user-defined rolling window (default: 50 days).
A value above 1 means buying volume dominates selling volume over the period, signaling bullish pressure.
A value below 1 means selling volume dominates, indicating bearish pressure.
A value of 1 means the total buying and selling volumes are equal.
The indicator helps traders quickly gauge whether buyers or sellers are in control over recent history, assisting in trend confirmation and sentiment analysis.
Trend Board Pro 1.0Script Name: Trend Board Pro 1.0
Description:
The "Trend Board Pro 1.0" is a TradingView indicator displaying a table with market metrics: daily price change (%), daily volume, average volume, Normalized Average True Range (NATR), correlation with another ticker, trend direction, and open interest (OI). Each metric is color-coded for quick analysis.
Functionality:
Daily Price Change (%): Daily percentage price change. Green for increase, red for decrease.
Daily Volume (DV): Total 24-hour trading volume (in USD). Highlighted if above threshold.
Average Volume (AV): Average volume over the specified period. Highlighted if above threshold.
NATR: Normalized Average True Range, indicating volatility. Highlighted if above threshold.
Correlation (C): Correlation with a ticker (default: BINANCE:BTCUSDT.P). Red for positive, green for negative, gray for neutral.
Trend Direction: Shows the current market direction:
L: Long (uptrend).
S: Short (downtrend).
LK: Long correction (correction in an uptrend).
SK: Short correction (correction in a downtrend).
N: Neutral. Green for L/LK, red for S/SK, gray for N. Displayed without a prefix.
Open Interest (OI): Compares current OI with OI at the start of the period (OI Period). Green for increase, red for decrease, gray for equal or unavailable data.
Settings:
Avg Vol length: Period for average volume (default: 30).
NATR length: Period for NATR (default: 14).
Avg type: Moving average type for NATR (SMA, EMA, RMA, WMA).
Board position: Table position (Right top, Right bottom, etc.).
Cell width: Width of daily change cell (1–20).
OI Period: Period for OI comparison (default: 20).
Show : Enable/disable metrics (Daily Change, Day Volume, Avg Volume, NATR, Correlation, Trend, Open Interest).
Show titles: Display prefixes (DV, AV, N, C, O) for all columns except Trend.
Cell Background/Text color: Default cell background and text colors.
Cell Background/Text color alert: Colors for highlighted cells.
Correlation symbol: Ticker for correlation (default: BINANCE:BTCUSDT.P).
Correlation period: Correlation period (default: 20).
Thresholds: Thresholds for volume, NATR, and correlation.
Correlation colors: Positive (red), negative (green), neutral (gray).
Trend colors: Long (green), short (red), neutral (gray), text (white).
OI colors: Increase (green), decrease (red), text (white).
How to Use:
Open TradingView’s Pine Script editor.
Copy and paste the code.
Click "Add to Chart."
Adjust settings in the indicator menu (right-click → "Settings").
Ensure the ticker supports OI (e.g., futures) and Correlation symbol is available.
Verify the table. "N/A" appears if data is unavailable.
Troubleshooting:
OI: If "N/A," check OI data availability (BTCUSDT_OI).
Correlation: If "N/A," check Correlation Ticker Data in Data Window. Try BINANCE:BTCUSDT.
Trend: Ensure the chart has sufficient data for trend calculation.
Daily Volume: Verify volume data on the hourly timeframe.
Notes:
Optimized for cryptocurrencies but works with any instrument.
For non-crypto intraday, OI is requested from the daily timeframe.
[blackcat] L1 Net Volume DifferenceOVERVIEW
The L1 Net Volume Difference indicator serves as an advanced analytical tool designed to provide traders with deep insights into market sentiment by examining the differential between buying and selling volumes over precise timeframes. By leveraging these volume dynamics, it helps identify trends and potential reversal points more accurately, thereby supporting well-informed decision-making processes. The key focus lies in dissecting intraday changes that reflect short-term market behavior, offering critical input for both swing and day traders alike. 📊
Key benefits encompass:
• Precise calculation of net volume differences grounded in real-time data.
• Interactive visualization elements enhancing interpretability effortlessly.
• Real-time generation of buy/sell signals driven by dynamic volume shifts.
TECHNICAL ANALYSIS COMPONENTS
📉 Volume Accumulation Mechanisms:
Monitors cumulative buy/sell volumes derived from comparative closing prices.
Periodically resets accumulation counters aligning with predefined intervals (e.g., 5-minute bars).
Facilitates identification of directional biases reflecting underlying market forces accurately.
🕵️♂️ Sentiment Detection Algorithms:
Employs proprietary logic distinguishing between bullish/bearish sentiments dynamically.
Ensures consistent adherence to predefined statistical protocols maintaining accuracy.
Supports adaptive thresholds adjusting sensitivities based on changing market conditions flexibly.
🎯 Dynamic Signal Generation:
Detects transitions indicating dominance shifts between buyers/sellers promptly.
Triggers timely alerts enabling swift reactions to evolving market dynamics effectively.
Integrates conditional logic reinforcing signal validity minimizing erroneous activations.
INDICATOR FUNCTIONALITY
🔢 Core Algorithms:
Utilizes moving averages along with standardized deviation formulas generating precise net volume measurements.
Implements Arithmetic Mean Line Algorithm (AMLA) smoothing techniques improving interpretability.
Ensures consistent alignment with established statistical principles preserving fidelity.
🖱️ User Interface Elements:
Dedicated plots displaying real-time net volume markers facilitating swift decision-making.
Context-sensitive color coding distinguishing positive/negative deviations intuitively.
Background shading highlighting proximity to key threshold activations enhancing visibility.
STRATEGY IMPLEMENTATION
✅ Entry Conditions:
Confirm bullish/bearish setups validated through multiple confirmatory signals.
Validate entry decisions considering concurrent market sentiment factors.
Assess alignment between net volume readings and broader trend directions ensuring coherence.
🚫 Exit Mechanisms:
Trigger exits upon hitting predetermined thresholds derived from historical analyses.
Monitor continuous breaches signifying potential trend reversals promptly executing closures.
Execute partial/total closes contingent upon cumulative loss limits preserving capital efficiently.
PARAMETER CONFIGURATIONS
🎯 Optimization Guidelines:
Reset Interval: Governs responsiveness versus stability balancing sensitivity/stability.
Price Source: Dictates primary data series driving volume calculations selecting relevant inputs accurately.
💬 Customization Recommendations:
Commence with baseline defaults; iteratively refine parameters isolating individual impacts.
Evaluate adjustments independently prior to combined modifications minimizing disruptions.
Prioritize minimizing erroneous trigger occurrences first optimizing signal fidelity.
Sustain balanced risk-reward profiles irrespective of chosen settings upholding disciplined approaches.
ADVANCED RISK MANAGEMENT
🛡️ Proactive Risk Mitigation Techniques:
Enforce strict compliance with pre-defined maximum leverage constraints adhering strictly to guidelines.
Mandatorily apply trailing stop-loss orders conforming to script outputs reinforcing discipline.
Allocate positions proportionately relative to available capital reserves managing exposures prudently.
Conduct periodic reviews gauging strategy effectiveness rigorously identifying areas needing refinement.
⚠️ Potential Pitfalls & Solutions:
Address frequent violations arising during heightened volatility phases necessitating manual interventions judiciously.
Manage false alerts warranting immediate attention avoiding adverse consequences systematically.
Prepare contingency plans mitigating margin call possibilities preparing proactive responses effectively.
Continuously assess automated system reliability amidst fluctuating conditions ensuring seamless functionality.
PERFORMANCE AUDITS & REFINEMENTS
🔍 Critical Evaluation Metrics:
Assess win percentages consistently across diverse trading instruments gauging reliability.
Calculate average profit ratios per successful execution measuring profitability efficiency accurately.
Measure peak drawdown durations alongside associated magnitudes evaluating downside risks comprehensively.
Analyze signal generation frequencies revealing hidden patterns potentially skewing outcomes uncovering systematic biases.
📈 Historical Data Analysis Tools:
Maintain comprehensive records capturing every triggered event meticulously documenting results.
Compare realized profits/losses against backtested simulations benchmarking actual vs expected performances accurately.
Identify recurrent systematic errors demanding corrective actions implementing iterative refinements steadily.
Document evolving performance metrics tracking progress dynamically addressing identified shortcomings proactively.
PROBLEM SOLVING ADVICE
🔧 Frequent Encountered Challenges:
Unpredictable behaviors emerging within thinly traded markets requiring filtration processes.
Latency issues manifesting during abrupt price fluctuations causing missed opportunities.
Overfitted models yielding suboptimal results post-extensive tuning demanding recalibrations.
Inaccuracies stemming from incomplete/inaccurate data feeds necessitating verification procedures.
💡 Effective Resolution Pathways:
Exclude low-liquidity assets prone to erratic movements enhancing signal integrity.
Introduce buffer intervals safeguarding major news/event impacts mitigating distortions effectively.
Limit ongoing optimization attempts preventing model degradation maintaining optimal performance levels consistently.
Verify reliable connections ensuring uninterrupted data flows guaranteeing accurate interpretations reliably.
USER ENGAGEMENT SEGMENT
🤝 Community Contributions Welcome
Highly encourage active participation sharing experiences & recommendations!
THANKS
Heartfelt acknowledgment extends to all developers contributing invaluable insights about volume-based trading methodologies! ✨
A.K. Pro Signal DashboardA.K. Pro Signal Dashboard is a powerful all-in-one market intelligence tool designed for traders who demand clarity, speed, and confidence in every decision.
This open-source script delivers a fully customizable visual dashboard that consolidates multiple high-impact indicators into one clean panel — helping you quickly assess market direction, momentum, and volume dynamics.
🔍 Core Features:
✅ Multi-Timeframe Trend Scanner – Analyzes EMA-based trend across 5m, 15m, 30m, and 1h timeframes.
✅ Live Buy/Sell Pressure – Measures candle behavior to estimate short-term market bias.
✅ Daily Volume Split – Calculates intraday buy/sell dominance as a percentage of total volume.
✅ Integrated Indicators – RSI, MACD, ADX, VWAP, and Stochastic RSI provide a well-rounded market view.
✅ Buy/Sell Signal Engine – Smart signal logic based on trend alignment and momentum confirmation.
✅ Visual Dashboard Table – Adjustable font size and screen position for flexible display.
✅ Alerts Built In – Get notified instantly when bullish or bearish signals are triggered.
Whether you're scalping fast markets or swing trading clean setups, this dashboard equips you with the critical insights you need — all at a glance.
🧠 Built with Pine Script v6
⚙️ Fully open-source and designed to be extended or customized by any trader.
✨ By: @XAU_USD_TRADER
Trailing Cumulative Volume DeltaShort Description:
A dynamic volume delta indicator that calculates a trailing sum of net buying/selling pressure over a user-defined number of recent bars, offering a more adaptive view of order flow momentum compared to fixed-anchor CVD.
Overview:
The Trailing Cumulative Volume Delta (TCVD) indicator provides a powerful way to analyze market sentiment by tracking the net difference between buying and selling volume. Unlike traditional Cumulative Volume Delta (CVD) indicators that typically reset at fixed intervals (e.g., daily, weekly), the TCVD calculates a rolling sum of volume delta over a specified number of recent bars. This "trailing" approach offers a more fluid and responsive measure of recent order flow dynamics.
How it Works:
Per-Bar Delta Calculation: For each bar on your chart, the indicator first calculates the net Volume Delta. This is done by looking at a finer, user-configurable Lower Timeframe (e.g., 1-minute data for a 15-minute chart bar) to determine the aggressive buying vs. selling volume within that bar.
Trailing Sum: The indicator then sums these individual per-bar net deltas over a user-defined Trailing Bars lookback period. For example, if "Trailing Bars" is set to 20, the TCVD value will represent the cumulative net delta of the last 20 bars.
Visualization:
The TCVD is plotted in a "MACD-Columns-Style" in a separate pane.
Teal: When the TCVD value is increasing (suggesting growing net buying pressure or diminishing net selling pressure over the trailing period).
Red: When the TCVD value is decreasing (suggesting growing net selling pressure or diminishing net buying pressure over the trailing period).
White: When it is returning to the mean.
How to Interpret and Use TCVD:
Trend Strength & Momentum:
A rising TCVD suggests that, on average over the trailing period, buying pressure is dominant or strengthening. This can confirm bullish price action or indicate underlying strength.
A falling TCVD suggests that selling pressure is dominant or strengthening, potentially confirming bearish price action or indicating weakness.
Divergences:
Unlike other Divergences, the CVD has two different types of Divergences: a) Absorption and b) Exhaustion. You only want to trade the Absorption pattern.
Zero Line Crossovers:
TCVD crossing above the zero line can indicate a shift towards net positive buying pressure over the lookback period.
TCVD crossing below the zero line can indicate a shift towards net positive selling pressure.
Confirmation: Use TCVD to confirm breakouts or breakdowns. A price breakout accompanied by a strongly rising TCVD is generally more reliable.
Key Settings:
Trailing Bars: (Default: 10)
Determines the number of recent bars to include in the cumulative delta sum.
Shorter periods make the TCVD more responsive to immediate changes.
Longer periods provide a smoother, longer-term view of order flow.
Use custom timeframe: (Checkbox, Default: false)
Allows you to override the automatic selection of the lower timeframe for delta calculation.
Timeframe for Delta Calculation: (Default: "1" - 1 minute)
Specifies the lower timeframe data used to calculate the volume delta for each individual chart bar.
Choosing a very fine timeframe (e.g., seconds) can provide high precision but may be limited by data availability or processing load.
If "Use custom timeframe" is unchecked, the script attempts to choose a sensible default based on your chart's timeframe (e.g., "1S" for second charts, "1" for intraday, "5" for daily, "60" for weekly+).
Examples:
Confirming Breakout Strength:
Price breaks out above a significant resistance level.
If the TCVD is also sharply rising and has perhaps crossed above its zero line, it provides confirmation that strong buying interest is fueling the breakout, increasing confidence in its validity.
Important Notes:
This indicator requires reliable volume data from your broker/data feed to function correctly. If your chart does not have volume, or if the volume data is unreliable, the TCVD will not be accurate.
Like all indicators, TCVD is best used as part of a comprehensive trading strategy, in conjunction with price action analysis and other indicators or tools.
Experiment with the Trailing Bars and Timeframe for Delta Calculation settings to find what best suits your trading style, the asset you are analyzing, and the chart timeframe you are using.
Feel free to modify this, add your personal touch, or include specific screenshots when you publish!
MA Thrust Processor | QuantEdgeB⚡MA Thrust Processor | QuantEdgeB
🔭 What is the MA Thrust Processor?
The MA Thrust Processor (MTP) is a dynamic and modular market momentum engine that specializes in thrust-based signal analysis derived from smoothed moving averages. It’s engineered to model directional commitment, detect signal imbalances, and visualize structural momentum in a range of market conditions.
🧬 Think of MTP as a precision-engineered motion sensor — decoding strength, follow-through, and structural imbalance in real time — it detects force, direction, velocity, and alignment, adapting based on your preferred calculation model (Wave, Thrust, Z-Score, or Normalized) and signal mode (Impulse, Trend, or HA Candles).
_______________________
1. 🔧 System Core: Customizability and Processing Engine
📊 Moving Average Types
MA Thrust Processor supports a rich menu of 13+ moving average styles:
• Standard: SMA, EMA, WMA
• Advanced: HMA, LSMA, ALMA, JMA, TEMA, DEMA, SMMA
• Volume-Based: VWMA
• Adaptive Models: VIDYA (3 modes), FRAMA
💡 Each MA type acts as the backbone for signal smoothing and thrust deviation modeling, giving the user tight control over behavior and lag tradeoffs.
⚙️ Calculation Methods (MA Derivatives)
You choose how the core value is calculated:
1️⃣ 𝓦𝓪𝓿𝓮
• Sine-wave modeled oscillator
• Combines MA distance with standard deviation normalization
• Ideal for detecting divergences and cyclical structure
• Output includes center, smoothed line , and histogram.
2️⃣ 𝓣𝓱𝓻𝓾𝓼𝓽
• Calculates MA deviation vs. price and midpoint
• Captures aggressive directional pushes relative to range center
• Excellent for breakout/trend force analysis
3️⃣ 𝓩-𝓢𝓬𝓸𝓻𝓮
• Mean-reverting z-score over MA
• Expresses statistical distance from norm
• Used in reversion or probabilistic strategies
4️⃣ 𝓝𝓸𝓻𝓶𝓪𝓵𝓲𝔃𝓮𝓭
• Scales MA output to 0–1 (centered at 0.5)
• Tracks where the signal lies in its own relative range
• Great for flat vs. trending recognition
_______________________
2. 🧨 SIGNAL MODES – The Behavioral Core
The system supports 3 powerful signal modes that define how the thrust logic is interpreted and visualized.
1️⃣ 𝓘𝓶𝓹𝓾𝓵𝓼𝓮 Mode
🔥 Use Case: Breakouts, aggressive reversals, divergences
🔍 Logic:
• In Wave mode: compares Wave O (oscillator) and S (smoothed)
• In Thrust/Z-Score/Normalized: applies thresholds (static, SD, or percentile)
• Detects sharp departures or rejections from bounds
🎯 Ideal for:
• Scalp or event trades
• High-velocity moves
• Leading edge of trend or compression breaks
2️⃣ 𝓣𝓻𝓮𝓷𝓭 Mode
🧭 Use Case: Stable continuation and trend following
🔍 Logic:
• Signal triggers when value crosses a calculated midline or long-term average
• Thresholds: midline or 365-SMA of smoothed value
• Acts as a stable “bias direction” for trades
🎯 Ideal for:
• Swing trading
• Portfolio allocations
• Holding directional exposure longer
3️⃣ 𝓗𝓐 𝓒𝓪𝓷𝓭𝓵𝓮𝓼 Mode
🎨 Use Case: Visual clarity + phase detection
🔍 Logic:
• Converts signal to Heikin-Ashi candles
• Adds logic for momentum, reversal, continuation, or chop
• Highly discretionary and pattern-oriented
🎯 Ideal for:
• Visual traders
• Phase-based strategies
• Avoiding false positives in chop
_______________________
3. 📊 System Sensor Table (Strength Meter)
MA Thrust Processor includes a sophisticated sensor display with multi-layered insights.
🔁 Signal State
• Long ⟹ bullish conviction or thrust
• Short ⟹ bearish dominance or rejection
• Cash ⟹ neutrality or low conviction
Dynamically generated by logic mode and indicator thresholds.
📊 Strength Bars: Conviction + Potential
Strength output is never binary — instead, it’s expressed via:
1️⃣ Conviction Strength (when signal is active):
• Score from 0% to 100%
• Based on:
o Momentum velocity (Rate of Change)
o Distance from key thresholds
o Divergence signal (Wave mode)
o Flat signal detection (for Normalized)
2️⃣ Potential Strength (when signal = neutral):
• Displays both Bullish and Bearish readiness
• Interprets which side is loading pressure
• Helps traders spot “who has the edge” before breakout
👀 In Wave Mode, potential is calculated from oscillator vs. smoothed
👀 In Impulse/Trend, it blends distance + RoC + signal stability
🔸 HA Candle Phase (HA Mode Only)
When HA mode is active, strength bars are replaced with a live phase classifier:
• Momentum Up/Down: price above/below threshold + same color trend
• Reversal Up/Down: price above/below bounds, opposite signal color
• Continuation Up/Down: following a breakout/confirmation
• Chop: indecision zone
• Neutral: no clear trend
This turns HA mode into a narrative engine, expressing what’s happening, why, and what might come next.
_______________________
4. 🧠 Smart Auto-Configuration
Enabling Use Recommended Settings triggers optimized configurations:
• Pre-set thresholds (static, percentile, SD)
• Ideal lengths for each logic type
• Proper bounds scaling
• MA selections that match the logic
For example:
• Impulse + Thrust ⇒ shorter length + SD
• Trend + Z-Score ⇒ long mean-based
• Wave ⇒ balanced smoothing + SD blend
_______________________
5. 🧪 Summary of Use Cases
Each mode and calculation method within the MA Thrust Processor is tailored for specific trading styles and market conditions. Here’s how to think about their best applications:
🔹 Signal Modes
Impulse Mode is designed for speed and responsiveness. It excels in fast markets where breakouts or sharp reversals happen quickly. Ideal for scalpers, intraday traders, or anyone looking to catch momentum just as it ignites. It’s particularly effective around high-impact events like economic reports or news catalysts, as it picks up directional shifts rapidly.
Trend Mode focuses on longer-term, stable price action. It identifies directional bias using midline or average-based thresholds, making it best for swing traders and trend followers. Because of its stability, it filters out minor fluctuations and helps you stay in trades longer when the directional move is sustained.
HA Candles Mode is for traders who prefer a visual, phase-based approach. It smooths data using Heikin-Ashi logic and adds interpretive layers like "Momentum," "Reversal," or "Chop" to describe what’s happening structurally. This is excellent for discretionary traders, those who use price rhythm or structure, and those seeking cleaner entry points in noisy environments.
🔹 Calculation Methods
Wave is an oscillator-based model. It detects momentum swings and divergence between price and the smoothed oscillator. Great for spotting early reversals, pullback continuations, or cyclical rhythm patterns. In Impulse mode, it shows histogram shifts that reflect internal thrust dynamics.
Thrust quantifies directional pressure by comparing the signal’s distance from both the midpoint of price range and an SMA. This method is powerful when you want to assess how much true force is behind a move — especially useful during breakout scenarios or strong directional pushes.
Z-Score mode normalizes the signal to its statistical distance from the mean. This makes it ideal for mean reversion strategies or situations where price has deviated too far from historical behavior. Traders can look for exhaustion zones or pullback opportunities with greater confidence.
Normalized rescales the signal within a 0–1 range (centered at 0.5), helping traders understand where the price sits within its own context — whether it’s relatively extended or compressed. It’s great for range traders, flat market identification, or mapping gradual bias accumulation.
_______________________
Each mode and method has been thoughtfully designed to align with different strategy frameworks — and switching between them completely reconfigures the way the system operates, giving traders unmatched flexibility across timeframes and asset classes
_______________________
🧭 Conclusion
MA Thrust Processor isn’t just a tool - it’s a precision-calibrated thrust engine that gives market context form. It lets you define your logic, style, and MA behavior while delivering rich visual output and conviction-based strength insight.
Whether you're reading momentum waves, modeling thrust deviation, or interpreting candle structure, MTP adapts to your strategy.
🚀 From short-term scalps to long-term rotations, MTP delivers signal clarity with the quantitative conviction needed in modern markets.
📌 Trade with Statistical Precision | Powered by QuantEdgeB
🔹 Disclaimer: Past performance is not indicative of future results.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Leverage Liquidation LevelsThis indicator visualizes static leverage liquidation levels calculated from a user-defined base price. It helps traders understand potential price impacts at different leverage ratios by displaying multiple thresholds (x2, x5, x10, x20, x50, x75, x100) for both long and short positions.
🔹 What This Indicator Shows
The indicator creates horizontal lines representing price levels where liquidations might occur for traders using various leverage multiples. Lines above the base price show potential short liquidation levels, while lines below show potential long liquidation levels.
🔹 How To Use
1. Set your base price parameter (default: 27319)
2. The indicator will display color-coded lines for each leverage level
3. Use these visual references to better understand risk when trading with leverage
🔹 Key Features
- Color-coded lines for easy identification of different leverage levels
- Visual distinction between long and short liquidation zones
- Customizable base price to adapt to any asset or price range
🔹 Disclaimer
This indicator provides static reference points based on mathematical calculations only. It does not use real-time liquidation data from exchanges and should be used for educational purposes and risk visualization only. Actual liquidation levels depend on multiple factors including exchange-specific parameters, funding rates, and market conditions.
For educational purposes only. Not financial advice.
Golden Dynamic Entry Pro v2.3//@version=5
indicator("Golden Dynamic Entry Pro v2.3", overlay=true)
// === الإعدادات === //
showWeakSignals = input.bool(true, "إظهار إشارات المراقبة")
showTargets = input.bool(true, "رسم الأهداف")
showGoldenZone = input.bool(true, "عرض المنطقة الذهبية")
highlightDynamic = input.bool(true, "تمييز شمعة داينمك")
showChannel = input.bool(true, "عرض القناة السعرية")
showBollinger = input.bool(true, "عرض بولنجر باند")
showFVG = input.bool(true, "عرض فجوات القيمة العادلة (FVG)")
// === المنطقة الذهبية === //
var float fibHigh = na
var float fibLow = na
if bar_index % 20 == 0
fibHigh := ta.highest(high, 50)
fibLow := ta.lowest(low, 50)
fib618 = fibHigh - (fibHigh - fibLow) * 0.618
fib786 = fibHigh - (fibHigh - fibLow) * 0.786
inGoldenZone = not na(fib618) and close <= fib618 and close >= fib786
// === الاتجاه العام === //
isUpTrend = ta.lowest(low, 5) > ta.lowest(low, 5)
isDownTrend = ta.highest(high, 5) < ta.highest(high, 5)
isSideways = not isUpTrend and not isDownTrend
plotshape(isUpTrend, location=location.top, style=shape.triangleup, color=color.green, size=size.tiny)
plotshape(isDownTrend, location=location.top, style=shape.triangledown, color=color.red, size=size.tiny)
bgcolor(isSideways ? color.new(color.gray, 90) : na)
// === شمعة داينمك === //
bodySize = math.abs(close - open)
avgBody = ta.sma(bodySize, 10)
highVolume = volume > ta.sma(volume, 10) * 1.5
isDynamicCandle = bodySize > avgBody * 1.5 and highVolume
plotshape(highlightDynamic and isDynamicCandle, location=location.abovebar, style=shape.circle, size=size.tiny, color=color.white)
// === مؤشرات فنية === //
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
macdCrossUp = ta.crossover(macdLine, signalLine)
macdCrossDown = ta.crossunder(macdLine, signalLine)
rsi = ta.rsi(close, 14)
rsiBuy = rsi < 30
rsiSell = rsi > 70
// === شموع انعكاسية === //
bullishPin = close > open and (high - close) > 2 * (close - open)
bearishPin = open > close and (close - low) > 2 * (open - close)
// === إشارات قوية === //
buySignal = inGoldenZone and isUpTrend and bullishPin and macdCrossUp and rsiBuy and isDynamicCandle
sellSignal = inGoldenZone and isDownTrend and bearishPin and macdCrossDown and rsiSell and isDynamicCandle
plotshape(buySignal, location=location.belowbar, style=shape.arrowup, color=color.green, size=size.small)
plotshape(sellSignal, location=location.abovebar, style=shape.arrowdown, color=color.red, size=size.small)
// === إشارات مراقبة === //
weakBuyScore = inGoldenZone ? (isUpTrend ? 1 : 0) + (bullishPin ? 1 : 0) + (rsi < 40 ? 1 : 0) + (macdCrossUp ? 1 : 0) + (isDynamicCandle ? 1 : 0) : 0
weakBuySignal = showWeakSignals and weakBuyScore >= 2 and not buySignal
weakSellScore = inGoldenZone ? (isDownTrend ? 1 : 0) + (bearishPin ? 1 : 0) + (rsi > 60 ? 1 : 0) + (macdCrossDown ? 1 : 0) + (isDynamicCandle ? 1 : 0) : 0
weakSellSignal = showWeakSignals and weakSellScore >= 2 and not sellSignal
plotshape(weakBuySignal, location=location.belowbar, style=shape.arrowup, color=color.gray, size=size.tiny)
plotshape(weakSellSignal, location=location.abovebar, style=shape.arrowdown, color=color.gray, size=size.tiny)
// === أهداف السعر === //
if showTargets and buySignal
target1 = close + (high - low)
target2 = close + (high - low) * 1.5
line.new(bar_index, target1, bar_index + 10, target1, color=color.green, style=line.style_dotted)
line.new(bar_index, target2, bar_index + 10, target2, color=color.green, style=line.style_dotted)
if showTargets and sellSignal
target1 = close - (high - low)
target2 = close - (high - low) * 1.5
line.new(bar_index, target1, bar_index + 10, target1, color=color.red, style=line.style_dotted)
line.new(bar_index, target2, bar_index + 10, target2, color=color.red, style=line.style_dotted)
// === المنطقة الذهبية === //
var box goldenZone = na
if showGoldenZone and bar_index % 20 == 0 and not na(fib618) and not na(fib786)
box.delete(goldenZone)
zoneColor = close > close ? color.green : color.red
goldenZone := box.new(left=bar_index, right=bar_index + 20, top=fib618, bottom=fib786, border_color=zoneColor, bgcolor=color.new(zoneColor, 85))
// === قناة سعرية === //
lengthChannel = 100
highestHigh = ta.highest(high, lengthChannel)
lowestLow = ta.lowest(low, lengthChannel)
if showChannel
line.new(bar_index - lengthChannel, highestHigh, bar_index, highestHigh, extend=extend.right, color=color.new(color.orange, 50), style=line.style_dashed)
line.new(bar_index - lengthChannel, lowestLow, bar_index, lowestLow, extend=extend.right, color=color.new(color.orange, 50), style=line.style_dashed)
// === بولنجر باند === //
lengthBB = 20
mult = 2.0
basis = ta.sma(close, lengthBB)
dev = mult * ta.stdev(close, lengthBB)
upperBB = basis + dev
lowerBB = basis - dev
plot(showBollinger ? upperBB : na, title="Upper BB", color=color.blue)
plot(showBollinger ? basis : na, title="Middle BB", color=color.gray)
plot(showBollinger ? lowerBB : na, title="Lower BB", color=color.blue)
// === FVG (Fair Value Gaps) === //
fvgBullCond = low > high
fvgBearCond = high < low
if showFVG and fvgBullCond
box.new(left=bar_index - 2, right=bar_index, top=low , bottom=high, bgcolor=color.new(color.green, 85), border_color=color.green)
if showFVG and fvgBearCond
box.new(left=bar_index - 2, right=bar_index, top=low, bottom=high , bgcolor=color.new(color.red, 85), border_color=color.red)
// === تنبيهات === //
alertcondition(buySignal, title="Buy Alert", message="إشارة شراء مؤكدة")
alertcondition(sellSignal, title="Sell Alert", message="إشارة بيع مؤكدة")
alertcondition(weakBuySignal, title="Weak Buy", message="إشارة مراقبة شرائية")
alertcondition(weakSellSignal, title="Weak Sell", message="إشارة مراقبة بيعية")