AlphaTradeAlphaTrade - Smart Trend & Volume Signal Indicator
AlphaTrade is a powerful combination of Zero Lag Trend and Volumatic VIDYA to help traders make smarter entries and exits.
This script provides:
Accurate Buy/Sell Labels: Based on Zero Lag Trend crossover logic with adaptive volatility bands.
Volume-Based Zones: Highlights key liquidity areas with real-time volume annotations.
VIDYA Trend Shading: Adaptive VIDYA-based cloud colored by volume momentum and trend direction.
Multi-Timeframe Table: Displays the trend status on 5, 15, 60, 240 minutes and 1D timeframes.
Delta Volume Label: Live buy/sell volume comparison and percentage delta.
Auto Liquidity Lines: Automatically draws recent high/low levels with volume at that level.
Alerts Ready: Receive "ALIM" (Buy) and "SATIM" (Sell) alerts instantly.
Ideal for traders who want trend precision, volume confirmation, and visual clarity — all in one tool.
For best results, apply on high-liquidity assets and adjust ZLEMA/VIDYA settings to your strategy.
Объем
Percent Change of Range Candles - FullPercent Change of Range Candles – Full (PCR Full)
Description:
PCR Full is a custom momentum indicator that measures the percentage price change relative to a defined range, offering traders a unique way to evaluate strength, direction, and potential reversals in price movement.
How it works:
The main value (PCR) is calculated by comparing the price change over a selected number of candles (length) to the range between the highest high and lowest low in the same period.
This percentage change is normalized and visualized with dynamic candles on the subgraph.
Reference levels at +100, +50, 0, -50, and -100 serve as key zones to indicate potential overbought/oversold conditions, continuation, or neutrality.
How to read the indicator:
1. Trend continuation:
When PCR breaks above +50 and holds, it often confirms a strong bullish move.
Similarly, values below -50 and staying low signal a bearish continuation.
2. Wick behavior (volatility insight):
Long wicks on PCR candles suggest uncertainty or failed breakout attempts.
Short or no wicks with strong body color show stable momentum and conviction.
On the chart, multiple long wicks near -50 suggest bulls are attempting to push price upward, but lack the strength — until a confirmed breakout.
3. Polarity transition (Bearish to Bullish or vice versa):
A transition from negative PCR values to above zero shows that the market is possibly turning.
Especially if PCR climbs gradually and stabilizes above zero, it indicates a developing bullish phase.
Components:
Main PCR line: Color-coded (green for rising, red for falling).
Open Average (gray line): Smooths recent PCR values, indicating balance.
High/Low adaptive bands: Adjust dynamically to PCR polarity.
PCR Candles: Visualize OHLC of PCR data for enhanced interpretation.
Suggested use cases:
Enter trend trades when PCR crosses +50 or -50 with volume or price confirmation.
Watch for reversal signs near ±100 if PCR fails to break further.
Use 0 line as a neutral zone — markets hovering near 0 are often in consolidation.
Combine with price action or oscillators like RSI/MACD for additional signals.
Customization:
The length input allows users to define the range for PCR calculations, making it adjustable to various timeframes and strategies (scalping, intraday, swing).
Advanced Volume Profile Levels (Working)This indicator is a powerful tool for traders who use volume profile analysis to identify significant price levels. It automatically calculates and plots the three most critical levels derived from volume data—the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL)—for three different timeframes simultaneously: the previous week, the previous day, and the current, live session.
The primary focus of this indicator is unmatched readability. It features dynamic, floating labels that stay clear of price action, combined with a high-contrast design to ensure you can see these crucial levels at a glance without any visual clutter.
Key Features
Multi-Session Analysis: Gain a complete market perspective by viewing levels from different timeframes on a single chart.
Weekly Levels: Identify the long-term areas of value and control from the prior week's trading activity.
Daily Levels: Pinpoint the most significant levels from the previous day's Regular Trading Hours (9:30 AM - 4:00 PM ET).
Current Session Levels: Track the developing value area and POC in real-time with a dynamic profile that updates with every bar.
Advanced Visuals for Clarity:
Floating Labels: The labels for the weekly and daily levels intelligently "float" on the right side of your chart, moving with the price to ensure they are never obscured by candles.
High-Contrast Design: Labels are designed for maximum readability with solid, opaque backgrounds and an automatic text color (black or white) that provides the best contrast against your chosen level color.
Trailing Current Levels: The labels for the current session neatly trail the most recent price action, providing an intuitive view of intra-day developments.
Comprehensive Customization: Tailor the indicator's appearance to your exact preferences.
Toggle each profile (Weekly, Daily, Current) on or off.
Individually set the color, line style (solid, dashed, dotted), and line width for each set of levels.
Adjust the text size, background transparency, and horizontal offset for all on-chart labels.
Information Hub:
On-Chart Price Labels: Each label clearly displays both the level name and its precise price (e.g., "D-POC: 22068.50").
Corner Table: An optional, clean table in the top-right corner provides a quick summary of all active weekly and daily level values.
Built-in Alerts:
Create alerts directly from the script to be notified whenever the price crosses above or below the weekly or daily Point of Control, helping you stay on top of key market movements.
How to Use
The levels provided by this indicator serve as powerful reference points for market activity:
Point of Control (POC): The price level with the highest traded volume. It acts as a magnet for price and represents the area of "fair value" for that session. Markets often test or revert to the POC.
Value Area High (VAH) & Value Area Low (VAL): These levels define the range where approximately 70% of the session's volume occurred. They are critical support and resistance zones.
Price acceptance above the VAH may signal a bullish breakout.
Price acceptance below the VAL may signal a bearish breakdown.
Rejection at the VAH or VAL often leads to price moving back across the value area towards the POC.
Volume Weighted Average Price Dynamic Slope [sgbpulse]VWAP Dynamic Slope: A Comprehensive Indicator for Trend Identification and Smart Trading
Introducing VWAP Dynamic Slope, an innovative TradingView indicator that harnesses the power of Volume Weighted Average Price (VWAP) and enhances it with immediate visual feedback. The indicator colors the VWAP line based on its slope, allowing you to quickly and easily identify the direction and strength of the current trend for the asset, providing advanced tools for in-depth analysis.
What is VWAP and Why is it so Important?
VWAP (Volume Weighted Average Price) is an indicator that represents the average price at which an asset has traded, weighted by the volume traded at each price level. Unlike a simple moving average, VWAP gives greater weight to trades executed with high volume, making it a reliable measure of the asset's "true" or "fair" price within a given period. Many institutional traders use VWAP as a central reference point for evaluating the effectiveness of entries and exits. An asset trading above its VWAP is considered to have bullish momentum, and below it – bearish momentum.
How it Works: Dynamic VWAP Slope Analysis
VWAP Dynamic Slope analyzes the inclination of the VWAP line and displays it using an intuitive color scheme:
Positive Slope (Uptrend): When the VWAP points upwards, signaling positive momentum, the default color will be green.
Negative Slope (Downtrend): When the VWAP points downwards, signaling negative momentum, the default color will be orange.
Trend Change (CHG): When a change in the VWAP's trend direction occurs, a "CHG" label will be displayed. The label's color will be green if the change is to an uptrend, and orange if the change is to a downtrend.
Identifying Steep Slopes for Increased Momentum:
The indicator's uniqueness lies in its ability to identify "steep" slopes – rapid and particularly strong changes in the VWAP's direction. This indicates exceptionally strong momentum:
Steep Positive Slope: The VWAP color will change to dark green, indicating significant buying pressure.
Steep Negative Slope: The VWAP color will change to dark red, indicating significant selling pressure.
Dynamic Momentum Strength Label: In situations of steep slope (positive or negative), a dynamic label will be displayed with the change value of the VWAP at that point. This label allows you to monitor momentum strength, intensification, or weakening in real-time.
Advanced Analytical Tools for Complete Control
VWAP Dynamic Slope provides you with unprecedented flexibility through a variety of customizable tools:
Multiple VWAP Anchors and Visual Marking:
Common Time Anchors: Choose whether the VWAP resets at the beginning of each Session (daily), Week, Month, Quarter, Year, Decade, or Century.
Advanced Intraday Anchors: Within the Session, you can choose to calculate VWAP specifically for Pre-Market, Regular Hours, and Post-Market hours. This option is particularly crucial for intraday traders.
Important Event Anchors: The indicator allows for VWAP resets at significant milestones such as Earnings, Dividends, and Splits, for analyzing the market's immediate reaction.
Visual Anchor Marking: To enhance clarity and orientation, a Label ⚓ can be displayed at each selected anchor point, helping to immediately identify the start point of the VWAP calculation in the chosen context.
Customizable Bands (Up to Three on Each Side):
Add up to three Bands above and below the VWAP to identify areas of deviation and excursion from the average price. You have two calculation options:
Standard Deviation: Based on volatility and statistical distance from the VWAP.
Percentage: Defines fixed percentage-based bands from the VWAP.
Key Pre-Market Levels (Pre-Market High/Low):
Display the Pre-Market High and Low levels as separate lines on the chart. These lines often serve as important psychological support and resistance zones, allowing you to see how the VWAP behaves near them.
Full Customization and Precise Control:
VWAP Source Selection: Determine which price data type will be used for the VWAP calculation. The default is HLC3 (average of High, Low, and Close), but any other relevant data source available in TradingView can be selected.
Offset: Set an offset for the VWAP line, allowing you to shift it left or right on the time axis by a chosen number of bars.
Customizable Colors: Choose your preferred colors for each slope state, Pre-Market High/Low lines, and Bands.
Setting the "Steepness" Threshold (Per-mille Price Change Per Minute ‱/min with Auto-Adjustment): Determine the sensitivity for identifying a steep slope by setting the required change threshold in VWAP in terms of per-mille price change per minute (‱/min). The indicator performs smart adjustment for any timeframe you select on the chart (e.g., 30 seconds, 1 minute, 5 minutes, 10 minutes, etc.), ensuring that the "steepness" setting maintains consistency and relevance.
Examples for Setting the Steepness Threshold:
Suppose you set the steepness threshold to 0.3‱/min (per-mille price change per minute).
On a 30-second chart: The indicator will check if the VWAP changed by 0.15 ‱/min (half of the per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: Since 30 seconds is half a minute, the indicator looks for a change that is half of the threshold set for a full minute.
On a 1-minute chart: The indicator will check if the VWAP changed by 0.3 ‱/min (the full per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: Here, the bar represents a full minute, so we check the full threshold.
On a 5-minute chart: The indicator will check if the VWAP changed by 1.5 ‱/min (5 times the per-minute threshold) within a single bar. If so, the slope will be considered steep. Explanation: A 5-minute bar contains 5 minutes, so the cumulative change in VWAP needs to be 5 times greater to be considered "steep" on the same scale.
In summary, this setting allows you to precisely and uniformly control the sensitivity of steep slope detection across all timeframes, providing immense flexibility in analyzing the asset's momentum.
Advantages of Using Per-mille Price Change Per Minute (‱/min)
Using per-mille price change per minute (‱/min) offers several key advantages for your indicator:
Normalized and Objective Measurement: It provides a uniform scale for the VWAP's rate of change, regardless of the asset's price or nominal value. A 0.1 per-mille change per minute always carries the same relative significance.
Comparison Across Different Asset Prices: Using per-mille allows for direct comparison of VWAP movement strength between assets trading at very different prices (e.g., a $100 asset versus a $1 asset), enabling an understanding of true momentum without bias from the nominal price.
Smart Timeframe Agnostic Adjustment: This is a critical capability. The indicator automatically adjusts the per-mille per minute threshold you set to any chart timeframe (30 seconds, 1 minute, 5 minutes, etc.), maintaining consistency in "steepness" detection without manual recalibration.
Precise Momentum Identification: This measurement precisely identifies when the VWAP's rate of change becomes significant, and when momentum strengthens or weakens, contributing to more informed trading decisions.
In short, per-mille change per minute (‱/min) provides accuracy, consistency, and flexibility in identifying VWAP momentum changes, with smart adaptation across all timeframes.
Who is this Indicator For?
VWAP Dynamic Slope is a powerful tool for:
Intraday Traders: For quick identification of intraday trend directions and momentum across any timeframe, with specific consideration for Pre-Market, Regular Hours, or Post-Market VWAP, and incorporating key pre-market levels.
Swing Traders and Long-Term Investors: For analyzing longer-term trends based on periodic and event-driven VWAP anchors.
Beginner Traders: As an excellent visual aid for understanding the relationship between price, volume, and trend direction, and how different anchor points, pre-market levels, and data sources influence price behavior.
Experienced Traders: For integration with existing strategies, gaining additional confirmation for trend strength identification, and highly precise and flexible parameter calibration.
VWAP Dynamic Slope provides a rich, multi-dimensional layer of information about the VWAP, helping you make more informed trading decisions in real-time, within the context of your chosen asset.
Fibo_Ma with Toggleable 200 EMA FilterPlease keep in mind, I use this indicator most with my TV_ MCDX.
If you use it in lower Timeframe like 15sec, 1min, use a Higher Background Timeframe like 15min or 1H
📈 Fibo_Ma with Toggleable 200 EMA Filter
Fibo_MA is a comprehensive multi-functional indicator designed to enhance your trend analysis, breakout detection, and signal confirmation strategy.
🔍 Core Logic Overview
📊 Background Color Highlights
The script dynamically colors the chart background based on price action relative to a customizable smoothing line (smooth1).
🟩 Green background appears when the open price is above the smooth1, signaling potential bullish conditions.
🟥 Red background shows when the open price is below the smooth1, suggesting bearish pressure.
📏 200 EMA Filter
A built-in 200-period Exponential Moving Average (EMA) acts as a long-term trend filter.
The 200 EMA line changes color to reflect momentum:
🟢 Green when trending upward
🔴 Red when trending downward
🎯 Signal Alerts
Receive buy alerts when the open crosses above smooth1.
Receive sell alerts when the open crosses below smooth1.
Alert conditions are filterable and customizable for precise notifications.
⚙️ Custom Features and Flexibility
Choose from various moving average types for smooth1: EMA, SMA, WMA, VWMA, ALMA, SWMA, and even VWAP.
Configure alert conditions for:
EMA 200 crossovers with smoothing line
Trend crossovers using Fibonacci-based EMA selections
Breakout and breakdown formations with custom pivot logic
Optional ATR and Volume filters for refining entry quality.
Built-in VWAP, EMA 14 (color-coded), and multi-timeframe support for high-precision analysis.
🔔 Alerts Included
✅ Price crosses above or below smoothing line (smooth1)
✅ Breakout and breakdown patterns
✅ EMA 200 crossovers
✅ Custom trend-following EMA cross labels
This script is ideal for traders who want to combine trend strength, volume confirmation, and technical breakouts with intuitive visual cues. Perfect for intraday or swing trading strategies.
ℹ️ Use this tool in conjunction with your trading strategy. Always backtest before live trading.
Anchored VWAP & STD BandsAnchoring VWAP with optional bands.
Use the settings to adjust the point you want the VWAP to always reset on. This allows you to not have to for example set a VWAP every morning at NY open, it will just be there.
Optional bands are available and configurable to whatever standard deviation you wish to have. Please try to keep them in ascending order if you turn on multiple. Bands can fill between bands, so band 3 will fill between band 2 and 3, but not 1 and 3. If you don't care for the color filling set the transparency on the fill color for the band you want no fill on.
Some cycle examples:
Every day at 6PM:
Year: off
Month: off
Day: off
Hour: 18
Every Month:
Year: off
Month: off
Day: 1
Hour: off
Borges indicatorThe script uses bowling bands as support, indicating to the trader when to enter and exit based on volume; the longer the time frame, the greater your return can be. Use shorter time frames to make multiple trades. Best times: 5min trades of a maximum of 250 points, 15min trades of 500+ points, 30min trades of 750+ points.
Singh Divergence SignalsThis indicator detects potential trend reversals by combining candle strength and volume momentum. It signals when candle value and Price Volume Trend (PVT) oscillator diverge, marking bullish and bearish reversal points directly on the price chart with arrows. Alerts notify you of these key divergence signals to help improve trade timing.
Smarter Money Flow Divergence Detector [PhenLabs]📊 Smarter Money Flow Divergence Detector
Version: PineScript™ v6
📌 Description
SMFD was developed to help give you guys a better ability to “read” what is going on behind the scenes without directly having access to that level of data. SMFD is an enhanced divergence detection indicator that identifies money flow patterns from advanced volume analysis and price action correspondence. The detection portion of this indicator combines intelligent money flow calculations with multi timeframe volume analysis to help you see hidden accumulation and distribution phases before major price movements occur.
The indicator measures institutional trading activity by looking at volume surges, price volume dynamics, and the factors of momentum to construct an overall picture of market sentiment. It’s built to assist traders in identifying high probability entries by identifying if smart money is positioning against price action.
🚀 Points of Innovation
● Advanced Smart Money Flow algorithm with volume spike detection and large trade weighting
● Multi timeframe volume analysis for enhanced institutional activity detection
● Dynamic overbought/oversold zones that adapt to current market conditions
● Enhanced divergence detection with pivot confirmation and strength validation
● Color themes with customizable visual styling options
● Real time institutional bias tracking through accumulation/distribution analysis
🔧 Core Components
● Smart Money Flow Calculation: Combines price momentum, volume expansion, and VWAP analysis
● Institutional Bias Oscillator: Tracks accumulation/distribution patterns with volume pressure analysis
● Enhanced Divergence Engine: Detects bullish/bearish divergences with multiple confirmation factors
● Dynamic Zone Detection: Automatically adjusts overbought/oversold levels based on market volatility
● Volume Pressure Analysis: Measures buying vs selling pressure over configurable periods
● Multi factor Signal System: Generates entries with trend alignment and strength validation
🔥 Key Features
● Smart Money Flow Period: Configurable calculation period for institutional activity detection
● Volume Spike Threshold: Adjustable multiplier for detecting unusual institutional volume
● Large Trade Weight: Emphasis factor for high volume periods in flow calculations
● Pivot Detection: Customizable lookback period for accurate divergence identification
● Signal Sensitivity: Three tier system (Conservative/Medium/Aggressive) for signal generation
● Themes: Four color schemes optimized for different chart backgrounds
🎨 Visualization
● Main Oscillator: Line, Area, or Histogram display styles with dynamic color coding
● Institutional Bias Line: Real time tracking of accumulation/distribution phases
● Dynamic Zones: Adaptive overbought/oversold boundaries with gradient fills
● Divergence Lines: Automatic drawing of bullish/bearish divergence connections
● Entry Signals: Clear BUY/SELL labels with signal strength indicators
● Information Panel: Real time statistics and status updates in customizable positions
📖 Usage Guidelines
Algorithm Settings
● Smart Money Flow Period
○ Default: 20
○ Range: 5-100
○ Description: Controls the calculation period for institutional flow analysis.
Higher values provide smoother signals but reduce responsiveness to recent activity
● Volume Spike Threshold
○ Default: 1.8
○ Range: 1.0-5.0
○ Description: Multiplier for detecting unusual volume activity indicating institutional participation. Higher values require more extreme volume for detection
● Large Trade Weight
○ Default: 2.5
○ Range: 1.5-5.0
○ Description: Weight applied to high volume periods in smart money calculations. Increases emphasis on institutional sized transactions
Divergence Detection
● Pivot Detection Period
○ Default: 12
○ Range: 5-50
○ Description: Bars to analyze for pivot high/low identification.
Affects divergence accuracy and signal frequency
● Minimum Divergence Strength
○ Default: 0.25
○ Range: 0.1-1.0
○ Description: Required price change percentage for valid divergence patterns.
Higher values filter out weaker signals
✅ Best Use Cases
● Trading with intraday to daily timeframes for institutional position identification
● Confirming trend reversals when divergences align with support/resistance levels
● Entry timing in trending markets when institutional bias supports the direction
● Risk management by avoiding trades against strong institutional positioning
● Multi timeframe analysis combining short term signals with longer term bias
⚠️ Limitations
● Requires sufficient volume for accurate institutional detection in low volume markets
● Divergence signals may have false positives during highly volatile news events
● Best performance on liquid markets with consistent institutional participation
● Lagging nature of volume based calculations may delay signal generation
● Effectiveness reduced during low participation holiday periods
💡 What Makes This Unique
● Multi Factor Analysis: Combines volume, price, and momentum for comprehensive institutional detection
● Adaptive Zones: Dynamic overbought/oversold levels that adjust to market conditions
● Volume Intelligence: Advanced algorithms identify institutional sized transactions
● Professional Visualization: Multiple display styles with customizable themes
● Confirmation System: Multiple validation layers reduce false signal generation
🔬 How It Works
1. Volume Analysis Phase:
● Analyzes current volume against historical averages to identify institutional activity
● Applies multi timeframe analysis for enhanced detection accuracy
● Calculates volume pressure through buying vs selling momentum
2. Smart Money Flow Calculation:
● Combines typical price with volume weighted analysis
● Applies institutional trade weighting for high volume periods
● Generates directional flow based on price momentum and volume expansion
3. Divergence Detection Process:
● Identifies pivot highs/lows in both price and indicator values
● Validates divergence strength against minimum threshold requirements
● Confirms signals through multiple technical factors before generation
💡 Note: This indicator works best when combined with proper risk management and position sizing. The institutional bias component helps identify market sentiment shifts, while divergence signals provide specific entry opportunities. For optimal results, use on liquid markets with consistent institutional participation and combine with additional technical analysis methods.
EWMA Volatility EstimatorThis script calculates EWMA Volatility (Exponentially Weighted Moving Average Volatility).
Commonly used model in financial risk management.
It estimates recent price volatility by applying more weight to the most recent returns, capturing volatility clustering while remaining responsive to fast market shifts.
The method uses a decay factor (λ) of 0.94, the standard value used in models like RiskMetrics, and converts the variance estimate into annualized volatility in percentage terms.
This is not a forecasting tool. It’s an estimator that reflects the magnitude of recent price moves in a statistically robust way.
It can be helpful for:
Understanding regime shifts in market behavior
Designing position sizing rules based on recent volatility
Filtering entries during high or low volatility phases
How It Works
Computes log returns of the closing price.
Squares the returns to get a proxy for variance.
Applies an exponential moving average to the squared returns using an equivalent EMA period based on λ = 0.94.
Converts the result to volatility by taking the square root and scaling to a percentage.
Key Characteristics
Backward-looking estimator
Reacts faster than standard rolling-window volatility
Smooths noise while still being sensitive to recent spikes
This script is educational and informational. It is not financial advice or a guarantee of performance. Always test any tool as part of a broader strategy before using it in live markets.
Pocket Pivot Breakoutthis script will show Pivot pocket breakout + institutional buying volume
it will help in identify liquidity rush
PDH/PDL + OVN-H/L (Right-Aligned Labels + Alerts)Automatically plots the PDH/L (Prior Day High/Low) and OVN-H/L (Overnight High/Low) of the current session.
✅ What it does:
Plots PDH/PDL each day — they appear freshly after 9:30 AM EST, for the entire regular session.
Does NOT extend lines overnight — breaks the line between 16:00 and the next 9:30.
Plots OVN-H / OVN-L as dashed lines, after 9:30 AM EST each day, from 9:30 to 16:00 only.
Clean lines that reset daily
Right-aligned labels showing the level names and price values
🔔 Alerts Included:
Cross Above PDH
Cross Below PDL
Cross Above OVN-H
Cross Below OVN-L
Works on 30min or lower timeframe
Valtoro Adaptive Momentum//@version=5
strategy("Valtoro Adaptive Momentum", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === Inputs ===
lengthFast = input.int(14, title="Fast EMA")
lengthSlow = input.int(28, title="Slow EMA")
rsiPeriod = input.int(14, title="RSI Period")
atrPeriod = input.int(14, title="ATR Period")
riskMultiplier = input.float(1.5, title="Volatility Threshold Multiplier", step=0.1)
rsiOB = input.int(70, title="RSI Overbought")
rsiOS = input.int(30, title="RSI Oversold")
// === Indicators ===
fastEMA = ta.ema(close, lengthFast)
slowEMA = ta.ema(close, lengthSlow)
rsi = ta.rsi(close, rsiPeriod)
atr = ta.atr(atrPeriod)
avgATR = ta.sma(atr, atrPeriod)
// === Conditions ===
longCond = ta.crossover(fastEMA, slowEMA) and rsi < rsiOB and atr > avgATR * riskMultiplier
shortCond = ta.crossunder(fastEMA, slowEMA) and rsi > rsiOS and atr > avgATR * riskMultiplier
// === Risk Management ===
longSL = close * 0.98 // 2% Stop Loss
longTP = close * 1.05 // 5% Take Profit
shortSL = close * 1.02
shortTP = close * 0.95
// === Strategy Entries and Exits ===
if (longCond)
strategy.entry("Long", strategy.long)
strategy.exit("Exit Long", from_entry="Long", stop=longSL, limit=longTP)
if (shortCond)
strategy.entry("Short", strategy.short)
strategy.exit("Exit Short", from_entry="Short", stop=shortSL, limit=shortTP)
// === Visuals ===
plot(fastEMA, title="Fast EMA", color=color.blue)
plot(slowEMA, title="Slow EMA", color=color.red)
hline(rsiOB, "RSI Overbought", color=color.red)
hline(rsiOS, "RSI Oversold", color=color.green)
Global Money Supply M1/M2 OverlayThis indicator visualizes global money supply data (M1 & M2) across major economies—United States, Eurozone, Japan, China, and the UK—normalized and overlaid on your price chart for macroeconomic context.
📈 Plot global M1, M2, or M1+M2 Combined
💰 Unit conversion: Trillion, Billion, or Million USD
🌍 Data sourced from FRED (Federal Reserve Economic Data)
💱 Currency conversion for Japan (JPY), China (CNY), and UK (GBP) to USD
📌 Customizable line thickness, transparency, and positioning
📋 Real-time table showing current values
📈 Optional Year-over-Year growth rate display
📉 Optional trendline visualization
⚠️ Crisis zone highlights for key macroeconomic shocks:
🟡 2008 Global Financial Crisis
🟠 2020 COVID-19 Monetary Expansion
RedAndBlue Indicator LightsRedAndBlue Indicator Lights — RSI, MFI, and Bollinger Band Sentiment Table
This indicator provides a multi-timeframe sentiment dashboard using RSI , MFI , and Bollinger Bands , visualized in a compact color-coded table.
What it does:
Evaluates RSI and MFI values across multiple timeframes: 5m, 15m, 30m, 1h, 2h, 4h, and 1D
Analyzes Bollinger Bands in two ways:
BB = compares candle body position relative to Bollinger Bands
BBw = checks whether candle wicks pierce above or below the bands
Each cell displays the indicator value or a symbolic label (↓↓, ↓, –, ↑, ↑↑)
Color-coded backgrounds reflect overbought/oversold zones
All thresholds and colors are fully customizable in the input settings
Color meanings:
Green : Strong oversold (value < low1)
Light blue : Slightly oversold (value < low2)
White : Neutral zone (between low2 and high2)
Yellow : Slightly overbought (value > high2)
Red : Strong overbought (value > high1)
BB and BBw label meanings:
↓↓ = Price (or wick) pierced below the lower Bollinger Band
↓ = Candle body is between lower band and midline
– = Candle body crosses the midline (neutral)
↑ = Candle body is between midline and upper band
↑↑ = Price (or wick) pierced above the upper Bollinger Band
How to use it effectively:
If RSI, MFI, BB, and BBw all show oversold signals (green or light blue) across multiple timeframes, especially on 1h, 4h, or 1D, it may signal a good buying opportunity
If the indicators all show overbought signals (red or yellow), it may indicate a potential exit or short zone
BBw shows wick-based signals and can act as an early warning; BB confirms with the candle body
Use this table to spot sentiment confluence across timeframes before entering a trade
If most cells are white, the market is likely in a sideways or neutral state
This indicator helps you quickly identify multi-timeframe sentiment shifts and potential reversal points through a clean, structured visual layout.
Volumetric Expansion/Contraction### Indicator Title: Volumetric Expansion/Contraction
### Summary
The Volumetric Expansion/Contraction (PCC) indicator is a comprehensive momentum oscillator designed to identify high-conviction price moves. Unlike traditional oscillators that only look at price, the PCC integrates four critical dimensions of market activity: **Price Change**, **Relative Volume (RVOL)**, **Cumulative Volume Delta (CVD)**, and **Average True Range (ATR)**.
Its primary purpose is to help traders distinguish between meaningful, volume-backed market expansions and noisy, unsustainable price action. It gives more weight to moves that occur in a controlled, low-volatility environment, highlighting potential starts of new trends or significant shifts in market sentiment.
### Key Concepts & Purpose
The indicator's unique formula synthesizes the following concepts:
1. **Price Change:** Measures the magnitude and direction of the primary move.
2. **Relative Volume (RVOL):** Confirms that the move is backed by significant volume compared to its recent average, indicating institutional participation.
3. **Cumulative Volume Delta (CVD):** Measures the underlying buying and selling pressure, confirming that the price move is aligned with the net flow of market orders.
4. **Inverse Volatility (ATR):** This is the indicator's unique twist. It normalizes the signal by the inverse of the Average True Range. This means the indicator's value is **amplified** when volatility (ATR) is low (signifying a controlled, confident expansion) and **dampened** when volatility is high (filtering out chaotic, less predictable moves).
The goal is to provide a single, easy-to-read oscillator that signals when price, volume, and order flow are all in alignment, especially during a breakout from a period of contraction.
### Features
* **Main Oscillator Line:** A single line plotted in a separate pane that represents the calculated strength of the volumetric expansion or contraction.
* **Zero Line:** A dotted reference line to easily distinguish between bullish (above zero) and bearish (below zero) regimes.
* **Visual Threshold Zones:** The background automatically changes color to highlight periods of significant strength:
* **Bright Green:** Indicates a "Strong Up Move" when the oscillator crosses above the user-defined upper threshold.
* **Bright Fuchsia:** Indicates a "Strong Down Move" when the oscillator crosses below the user-defined lower threshold.
### Configurable Settings & Filters
The indicator is fully customizable to allow for extensive testing and adaptation to different assets and timeframes.
#### Main Calculation Inputs
* **Price Change Lookback:** Sets the period for calculating the primary price change.
* **CVD Normalization Length:** The lookback period for normalizing the Cumulative Volume Delta.
* **RVOL Avg Volume Length:** The lookback for the simple moving average of volume, used to calculate RVOL.
* **RVOL Normalization Length:** The lookback period for normalizing the RVOL score.
* **ATR Length & Normalization Length:** Sets the periods for calculating the ATR and its longer-term average for normalization.
#### Weights
* Fine-tune the impact of each core component on the final calculation, allowing you to emphasize what matters most to your strategy (e.g., give more weight to CVD or RVOL).
#### External Market Filter (Powerful Feature)
* **Enable SPY/QQQ Filter for Up Moves?:** A checkbox to activate a powerful regime filter.
* **Symbol:** A dropdown to choose whether to filter signals based on the trend of **SPY** or **QQQ**.
* **SMA Period:** Sets the lookback period for the Simple Moving Average (default is 50).
* **How it works:** When enabled, this filter will **only allow "Strong Up Move" signals to appear if the chosen symbol (SPY or QQQ) is currently trading above its specified SMA**. This is an excellent tool for aligning your signals with the broader market trend and avoiding bullish entries in a bearish market.
#### Visuals
* **Upper/Lower Threshold:** Allows you to define what level the oscillator must cross to trigger the colored background zones, letting you customize the indicator's sensitivity.
***
**Disclaimer:** This tool is designed for market analysis and confluence. It is not a standalone trading system. Always use this indicator in conjunction with your own trading strategy, risk management, and other forms of analysis.
Custom Volume Profile with HVN/LVNBacktest reactions to HVN/LVN zones
Use LVNs for breakout trades
Use HVNs for fading reversals
Validate your order flow levels with price-based volume reality
Color-Coded LVN MarkerThis Pine Script simulates a mini Volume Profile using standard OHLC candles, identifies Low Volume Nodes (LVNs) — price levels with relatively low traded volume — and marks them as dashed red horizontal lines on the chart.
Custom LVN MarkerThis Pine Script simulates a mini Volume Profile using standard OHLC candles, identifies Low Volume Nodes (LVNs) — price levels with relatively low traded volume — and marks them as dashed red horizontal lines on the chart.
Mark4ex vWapMark4ex VWAP is a precision session-anchored Volume Weighted Average Price (VWAP) indicator crafted for intraday traders who want clean, reliable VWAP levels that reset daily to match a specific market session.
Unlike the built-in continuous VWAP, this version anchors each day to your chosen session start and end time, most commonly aligned with the New York Stock Exchange Open (9:30 AM EST) through the market close (4:00 PM EST). This ensures your VWAP reflects only intraday price action within your active trading window — filtering out irrelevant overnight moves and providing clearer mean-reversion signals.
Key Features:
Fully configurable session start & end times — adapt it for NY session or any other market.
Anchored VWAP resets daily for true session-based levels.
Built for the New York Open Range Breakout strategy: see how price interacts with VWAP during the volatile first 30–60 minutes of the US market.
Plots a clean, dynamic line that updates tick-by-tick during the session and disappears outside trading hours.
Designed to help you spot real-time support/resistance, intraday fair value zones, and liquidity magnets used by institutional traders.
How to Use — NY Open Range Breakout:
During the first hour of the New York session, institutional traders often define an “Opening Range” — the high and low formed shortly after the bell. The VWAP in this zone acts as a dynamic pivot point:
When price is above the session VWAP, bulls are in control — the level acts as a support floor for pullbacks.
When price is below the session VWAP, bears dominate — the level acts as resistance against bounces.
Breakouts from the opening range often test the VWAP for confirmation or rejection.
Traders use this to time entries for breakouts, retests, or mean-reversion scalps with greater confidence.
⚙️ Recommended Settings:
Default: 9:30 AM to 4:00 PM New York time — standard US equities session.
Adjust hours/minutes to match your target market’s open and close.
👤 Who is it for?
Scalpers, day traders, prop traders, and anyone trading the NY Open, indices like the S&P 500, or highly liquid stocks during US cash hours.
🚀 Why use Mark4ex VWAP?
Because a properly anchored VWAP is a trader’s real-time institutional fair value, giving you better context than static moving averages. It adapts live to volume shifts and helps you follow smart money footprints.
This indicator will reconfigure every day, anchored to the New York Open, it will also leave historical NY Open VWAP for study purpose.
Average volume yearlyI noticed that there is no Average Volume for 7 days, 180 days, and 365 days, which is sometimes badly needed.
I have decided to add the Average volume for the week, 180 days, and a year.
Multi-Indicator Trend-Following Strategy v7This strategy is a trend-following system that combines multiple technical indicators into a single, optimized indicator to help identify high-probability Buy and Sell opportunities while maintaining a clean and uncluttered chart.
✅ How It Works:
This script utilizes a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Volume, MACD, and Average True Range (ATR) to determine trade entries and exits.
🟢 Buy Conditions:
Trend Crossover Entry:
A Buy signal is generated when the Fast EMA crosses above the Slow EMA, indicating a potential bullish trend.
Oversold Reversal Entry:
Alternatively, a Buy is triggered when:
The Slow EMA is significantly below the Fast EMA (oversold market behavior),
The current price is well below the Fast EMA,
A volume spike occurs, suggesting a possible reversal.
🔴 Sell Conditions:
Trend Crossover Exit:
A Sell signal is generated when the Fast EMA crosses below the Slow EMA, indicating a bearish shift.
Overbought Reversal Exit:
A Sell is triggered when:
The Slow EMA is above the Fast EMA by a wide margin,
The price is well above the Fast EMA,
A volume spike suggests downward reversal pressure.
📏 Risk Management:
Uses ATR-based stop-loss and take-profit levels to dynamically manage risk per trade.
Includes adjustable input options for ATR multipliers, moving average lengths, volume filters, and more.
🧩 Why Use This Strategy?
Rather than juggling multiple indicators manually, this script combines and simplifies them into a single, convenient strategy. It’s ideal for traders who want:
Clean visual signals,
Robust entry/exit logic backed by volume and trend behavior,
A modular and customizable setup for testing and optimization.
⚠️ Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice. Always backtest strategies thoroughly and use proper risk management when trading live.