OPEN-SOURCE SCRIPT
VWAP Long Entry PRO

VWAP Long Entry PRO - Instruction Manual
Overview
VWAP Long Entry PRO is a Pine Script v6 indicator designed for day traders following Andrew Aziz's VWAP trading methodology from "How to Day Trade for a Living." The indicator identifies high-probability long entry opportunities when stocks bounce off VWAP with proper trend, volume, and timing confirmation.
What This Indicator Does
The indicator monitors multiple conditions simultaneously and alerts you only when ALL criteria are met for a valid VWAP long entry:
1. ✅ Price is near VWAP (within customizable proximity)
2. ✅ Price crosses above VWAP (bullish candle confirmation)
3. ✅ Uptrend confirmed (EMA 20 > EMA 50)
4. ✅ Volume spike present (volume > 1.5x average)
5. ✅ Within optimal trading hours (default: first 2 hours after market open)
Visual Elements on the Chart
1. VWAP Line (Yellow)
* Shows the Volume Weighted Average Price for the current session
* Acts as dynamic support/resistance
2. EMA Lines
* Blue Line: 20-period Exponential Moving Average
* Red Line: 50-period Exponential Moving Average
* Trend is bullish when blue is above red
3. Green Triangle Markers
* Appear below candles when ALL entry conditions are met
* These are your entry signals
4. Background Colors
* Light Yellow Background: Price is within proximity zone of VWAP
* Light Red Background: Price crossed VWAP but filters failed (helps identify missed opportunities)
5. Filter Status Table (Top Right)
Real-time dashboard showing current status of all filters:
Filter Status
Trend ✓ (green) or ✗ (red)
Volume ✓ (green) or ✗ (red)
Time ✓ (green) or ✗ (red)
Near VWAP ✓ (green) or ✗ (red)
Entry OK ✓ GO (lime) or ✗ (orange)
How to Use the Indicator
Step 1: Apply to Your Watchlist
1. Add VWAP Long Entry PRO to charts of stocks on your morning gappers watchlist
2. Use 1-minute, 2-minute, or 5-minute timeframes
3. Monitor multiple stocks simultaneously
Step 2: Wait for Setup
Watch the Filter Status Table in the top right corner. A valid entry requires:
* All filters showing green ✓
* "Entry OK" showing ✓ GO in lime/green
Step 3: Execute the Trade
When a green triangle appears below a candle:
* Entry: Enter long at or near the close of that candle
* Stop Loss: Place stop just below VWAP (typically 2-5 cents below)
* Profit Target: Use resistance levels, previous highs, or VWAP + ATR
Step 4: Manage the Trade
* Hold as long as price stays above VWAP
* Exit if price closes back below VWAP
* Scale out at resistance levels
Customizable Settings
Access settings by clicking the gear icon next to the indicator name.
VWAP Proximity
* Default: 0.002 (0.2%)
* Purpose: Defines how close price must be to VWAP
* Adjust If:
* Too many signals → increase (e.g., 0.001 = 0.1%)
* Too few signals → decrease (e.g., 0.003 = 0.3%)
Filters Group
Trend Filter
* Use Trend Filter: Toggle on/off
* EMA 20 Length: Default 20
* EMA 50 Length: Default 50
* Purpose: Ensures you're trading with the trend
* Disable If: Trading reversals or range-bound stocks
Volume Filter
* Use Volume Filter: Toggle on/off
* Volume Multiplier: Default 1.5 (volume must be 1.5x average)
* Volume Average Period: Default 20 bars
* Purpose: Confirms institutional participation
* Adjust If:
* Too restrictive → lower to 1.2x
* Need stronger confirmation → increase to 2.0x
Time Filter
* Use Time Filter: Toggle on/off
* Start Hour (EST): Default 9
* Start Minute: Default 30
* Hours to Trade: Default 2
* Purpose: Focus on highest probability time window (9:30-11:30 AM EST)
* Adjust If:
* Trading afternoon momentum → extend hours to 4-6
* Power hour trading → change start to 15:00, 1 hour
Alert Setup
Creating an Alert
1. Click the Alert Icon (clock) in top toolbar
2. Condition: Select "VWAP Long Entry PRO"
3. Alert Trigger: Choose "VWAP Long Entry PRO"
4. Options: Select "Once Per Bar Close"
5. Expiration: Set to desired timeframe (default: 60 days)
6. Alert Actions: Enable:
* ✓ Notify on App
* ✓ Show Popup
* ✓ Send Email (optional)
* ✓ Play Sound
7. Message: The default message includes:
* Ticker symbol
* Close price
* VWAP value
* Confirmation that all filters passed
Multi-Symbol Alert
To monitor multiple stocks with one alert:
1. In the alert creation dialog, use the Symbol dropdown
2. Select multiple tickers from your watchlist
3. The alert will fire when ANY of those stocks meet the criteria
Trading Strategy
Based on Andrew Aziz's VWAP Methodology
Setup Requirements:
* Stock must be "in play" (gap, news, high relative volume from morning scanner)
* Price pulls back to VWAP during the trading day
* VWAP acts as support for longs (or resistance for shorts)
Entry Rules:
1. Wait for price to approach VWAP
2. Confirm VWAP as support with a bullish candle closing above it
3. Enter long on confirmation candle close or next candle open
4. All filters (trend, volume, time) must be green
Stop Loss:
* Place stop 2-5 cents below VWAP
* Adjust based on stock volatility and your risk tolerance
Profit Targets:
* First target: Previous resistance or swing high
* Second target: Daily pivot or Fibonacci extension
* Trailing stop: Move stop to breakeven once up 1:1 risk/reward
Risk Management:
* Risk 1-2% of account per trade
* Position size based on distance from stop loss
* Aim for 2:1 or 3:1 reward-to-risk ratio
Common Scenarios
Scenario 1: Clean VWAP Bounce
* All filters green ✓
* Price pulls back to VWAP
* Green triangle appears
* Action: Enter long immediately
Scenario 2: Failed Volume
* Trend ✓, Time ✓, Near VWAP ✓
* Volume ✗ (red X)
* Action: Wait for volume increase or skip trade
Scenario 3: Wrong Time Window
* All filters green except Time ✗
* Action: If you trade mid-day, consider extending time window in settings
Scenario 4: Downtrend
* Trend ✗ (EMA 20 < EMA 50)
* Action: Skip long entry; consider short setup instead
Scenario 5: False Breakout
* Light red background appears (filters failed)
* Price crossed VWAP but no confirmation
* Action: No entry; indicator correctly filtered out weak signal
Best Practices
1. Pre-Market Preparation
* Run your gappers scanner at 9:00 AM EST
* Identify 3-5 stocks "in play"
* Add VWAP Long Entry PRO to each chart
* Set up alerts for your watchlist
2. Chart Timeframe Selection
* 1-minute: Scalping, high-frequency entries (more signals, more noise)
* 2-minute: Balanced (recommended for beginners)
* 5-minute: Swing entries, fewer but higher-quality signals
3. Combine with Price Action
The indicator is a filter and alert system, not a complete strategy. Also consider:
* Support/resistance levels
* Candlestick patterns (hammer, engulfing)
* Overall market trend (SPY, QQQ)
* Stock-specific news and catalysts
4. Backtesting
* Use TradingView's Bar Replay feature
* Review past signals on your favorite stocks
* Adjust filter settings based on your results
* Document win rate and average R:R
5. Paper Trading First
* Test the indicator with paper trading for 1-2 weeks
* Track all signals and outcomes
* Refine settings before risking real capital
Troubleshooting
Problem: No Signals Appearing
Solutions:
* Check if all filters are enabled (they may be too restrictive)
* Verify stock has sufficient volume and volatility
* Try increasing VWAP proximity from 0.2% to 0.3%
* Disable time filter if trading mid-day
* Check if stock is actually near VWAP on chart
Problem: Too Many Signals
Solutions:
* Decrease VWAP proximity from 0.2% to 0.1%
* Increase volume multiplier from 1.5x to 2.0x
* Enable all filters (trend, volume, time)
* Use 5-minute chart instead of 1-minute
Problem: Filter Status Table Not Visible
Solutions:
* Scroll chart to right (table is in top right corner)
* Check if indicator is loaded (should appear in indicator list on left)
* Refresh chart and re-add indicator
* Close other overlapping indicators
Problem: Alert Not Firing
Solutions:
* Verify alert is set to "Once Per Bar Close" (not "Only Once")
* Check alert hasn't expired
* Ensure correct symbols are selected in alert
* Confirm indicator is applied to chart with alert
Limitations
What This Indicator Does NOT Do:
* ❌ Automatically enter/exit trades
* ❌ Calculate position size
* ❌ Account for fundamental news or earnings
* ❌ Work on stocks without sufficient liquidity
* ❌ Guarantee profitable trades
When NOT to Use:
* Pre-market or after-hours (VWAP resets at market open)
* Low-volume penny stocks (< 100K daily volume)
* Stocks without clear trend or catalyst
* During major news events or FOMC meetings
* First 5 minutes after market open (price discovery phase)
Example Trade Walkthrough
Stock: XYZ (from morning gappers, +5% gap on earnings) Time: 10:15 AM EST Timeframe: 2-minute chart
Filter Status Table Shows:
* Trend: ✓ (EMA 20 > EMA 50)
* Volume: ✓ (2.3x average)
* Time: ✓ (within 9:30-11:30 window)
* Near VWAP: ✓ (price at $50.05, VWAP at $50.00)
* Entry OK: ✗ (waiting for bullish close)
Next Candle:
* Opens at $50.02
* Drops to $49.98 (testing VWAP)
* Closes at $50.08 (bullish candle, above VWAP)
* Green triangle appears!
* Entry OK: ✓ GO
Trade Execution:
* Entry: $50.10 (next candle open)
* Stop Loss: $49.95 (5 cents below VWAP)
* Risk: $0.15 per share
* Target 1: $50.40 (previous resistance) = 2:1 R:R
* Target 2: $50.70 (daily high) = 4:1 R:R
Outcome:
* Price rallies to $50.45
* Scale out 50% at Target 1
* Move stop to breakeven ($50.10)
* Exit remaining 50% at $50.65
* Result: Profitable trade with 3:1 average R:R
Frequently Asked Questions
Q: Can I use this for short entries? A: The current version is for long entries only. For shorts, you'd need to reverse the logic (price rejecting VWAP as resistance, downtrend, etc.).
Q: What stocks work best with this indicator? A: Mid-cap momentum stocks ($1B-$10B market cap), price $10-$100, daily volume > 1M, with a clear catalyst (earnings, news, sector move).
Q: Can I trade this on daily or weekly charts? A: No. VWAP is an intraday indicator that resets each trading day. Use only on intraday timeframes (1m, 2m, 5m, 15m, 30m).
Q: Should I take every signal? A: No. Use the indicator as a filter, not a mechanical system. Consider overall market conditions, stock-specific catalysts, and your own price action analysis.
Q: How accurate is this indicator? A: Accuracy depends on market conditions, stock selection, and your execution. Expect 50-65% win rate with proper 2:1+ risk/reward, similar to Aziz's methodology.
Resources
* Book: "How to Day Trade for a Living" by Andrew Aziz
* VWAP Strategy: Focus on Chapters 7.6 (VWAP Strategy) and supporting examples
* Community: Bear Bull Traders (bearbulltraders.com)
* Practice: Use TradingView's Bar Replay and Paper Trading features
Support & Updates
For questions, issues, or feature requests, refer to the TradingView script comments or the Bear Bull Traders community.
Version: 1.0 Pine Script Version: v6 Last Updated: December 30, 2025
Disclaimer: This indicator is for educational purposes only. Trading involves substantial risk. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.
1. tradingview.com/chart/NelMAKj4/
Overview
VWAP Long Entry PRO is a Pine Script v6 indicator designed for day traders following Andrew Aziz's VWAP trading methodology from "How to Day Trade for a Living." The indicator identifies high-probability long entry opportunities when stocks bounce off VWAP with proper trend, volume, and timing confirmation.
What This Indicator Does
The indicator monitors multiple conditions simultaneously and alerts you only when ALL criteria are met for a valid VWAP long entry:
1. ✅ Price is near VWAP (within customizable proximity)
2. ✅ Price crosses above VWAP (bullish candle confirmation)
3. ✅ Uptrend confirmed (EMA 20 > EMA 50)
4. ✅ Volume spike present (volume > 1.5x average)
5. ✅ Within optimal trading hours (default: first 2 hours after market open)
Visual Elements on the Chart
1. VWAP Line (Yellow)
* Shows the Volume Weighted Average Price for the current session
* Acts as dynamic support/resistance
2. EMA Lines
* Blue Line: 20-period Exponential Moving Average
* Red Line: 50-period Exponential Moving Average
* Trend is bullish when blue is above red
3. Green Triangle Markers
* Appear below candles when ALL entry conditions are met
* These are your entry signals
4. Background Colors
* Light Yellow Background: Price is within proximity zone of VWAP
* Light Red Background: Price crossed VWAP but filters failed (helps identify missed opportunities)
5. Filter Status Table (Top Right)
Real-time dashboard showing current status of all filters:
Filter Status
Trend ✓ (green) or ✗ (red)
Volume ✓ (green) or ✗ (red)
Time ✓ (green) or ✗ (red)
Near VWAP ✓ (green) or ✗ (red)
Entry OK ✓ GO (lime) or ✗ (orange)
How to Use the Indicator
Step 1: Apply to Your Watchlist
1. Add VWAP Long Entry PRO to charts of stocks on your morning gappers watchlist
2. Use 1-minute, 2-minute, or 5-minute timeframes
3. Monitor multiple stocks simultaneously
Step 2: Wait for Setup
Watch the Filter Status Table in the top right corner. A valid entry requires:
* All filters showing green ✓
* "Entry OK" showing ✓ GO in lime/green
Step 3: Execute the Trade
When a green triangle appears below a candle:
* Entry: Enter long at or near the close of that candle
* Stop Loss: Place stop just below VWAP (typically 2-5 cents below)
* Profit Target: Use resistance levels, previous highs, or VWAP + ATR
Step 4: Manage the Trade
* Hold as long as price stays above VWAP
* Exit if price closes back below VWAP
* Scale out at resistance levels
Customizable Settings
Access settings by clicking the gear icon next to the indicator name.
VWAP Proximity
* Default: 0.002 (0.2%)
* Purpose: Defines how close price must be to VWAP
* Adjust If:
* Too many signals → increase (e.g., 0.001 = 0.1%)
* Too few signals → decrease (e.g., 0.003 = 0.3%)
Filters Group
Trend Filter
* Use Trend Filter: Toggle on/off
* EMA 20 Length: Default 20
* EMA 50 Length: Default 50
* Purpose: Ensures you're trading with the trend
* Disable If: Trading reversals or range-bound stocks
Volume Filter
* Use Volume Filter: Toggle on/off
* Volume Multiplier: Default 1.5 (volume must be 1.5x average)
* Volume Average Period: Default 20 bars
* Purpose: Confirms institutional participation
* Adjust If:
* Too restrictive → lower to 1.2x
* Need stronger confirmation → increase to 2.0x
Time Filter
* Use Time Filter: Toggle on/off
* Start Hour (EST): Default 9
* Start Minute: Default 30
* Hours to Trade: Default 2
* Purpose: Focus on highest probability time window (9:30-11:30 AM EST)
* Adjust If:
* Trading afternoon momentum → extend hours to 4-6
* Power hour trading → change start to 15:00, 1 hour
Alert Setup
Creating an Alert
1. Click the Alert Icon (clock) in top toolbar
2. Condition: Select "VWAP Long Entry PRO"
3. Alert Trigger: Choose "VWAP Long Entry PRO"
4. Options: Select "Once Per Bar Close"
5. Expiration: Set to desired timeframe (default: 60 days)
6. Alert Actions: Enable:
* ✓ Notify on App
* ✓ Show Popup
* ✓ Send Email (optional)
* ✓ Play Sound
7. Message: The default message includes:
* Ticker symbol
* Close price
* VWAP value
* Confirmation that all filters passed
Multi-Symbol Alert
To monitor multiple stocks with one alert:
1. In the alert creation dialog, use the Symbol dropdown
2. Select multiple tickers from your watchlist
3. The alert will fire when ANY of those stocks meet the criteria
Trading Strategy
Based on Andrew Aziz's VWAP Methodology
Setup Requirements:
* Stock must be "in play" (gap, news, high relative volume from morning scanner)
* Price pulls back to VWAP during the trading day
* VWAP acts as support for longs (or resistance for shorts)
Entry Rules:
1. Wait for price to approach VWAP
2. Confirm VWAP as support with a bullish candle closing above it
3. Enter long on confirmation candle close or next candle open
4. All filters (trend, volume, time) must be green
Stop Loss:
* Place stop 2-5 cents below VWAP
* Adjust based on stock volatility and your risk tolerance
Profit Targets:
* First target: Previous resistance or swing high
* Second target: Daily pivot or Fibonacci extension
* Trailing stop: Move stop to breakeven once up 1:1 risk/reward
Risk Management:
* Risk 1-2% of account per trade
* Position size based on distance from stop loss
* Aim for 2:1 or 3:1 reward-to-risk ratio
Common Scenarios
Scenario 1: Clean VWAP Bounce
* All filters green ✓
* Price pulls back to VWAP
* Green triangle appears
* Action: Enter long immediately
Scenario 2: Failed Volume
* Trend ✓, Time ✓, Near VWAP ✓
* Volume ✗ (red X)
* Action: Wait for volume increase or skip trade
Scenario 3: Wrong Time Window
* All filters green except Time ✗
* Action: If you trade mid-day, consider extending time window in settings
Scenario 4: Downtrend
* Trend ✗ (EMA 20 < EMA 50)
* Action: Skip long entry; consider short setup instead
Scenario 5: False Breakout
* Light red background appears (filters failed)
* Price crossed VWAP but no confirmation
* Action: No entry; indicator correctly filtered out weak signal
Best Practices
1. Pre-Market Preparation
* Run your gappers scanner at 9:00 AM EST
* Identify 3-5 stocks "in play"
* Add VWAP Long Entry PRO to each chart
* Set up alerts for your watchlist
2. Chart Timeframe Selection
* 1-minute: Scalping, high-frequency entries (more signals, more noise)
* 2-minute: Balanced (recommended for beginners)
* 5-minute: Swing entries, fewer but higher-quality signals
3. Combine with Price Action
The indicator is a filter and alert system, not a complete strategy. Also consider:
* Support/resistance levels
* Candlestick patterns (hammer, engulfing)
* Overall market trend (SPY, QQQ)
* Stock-specific news and catalysts
4. Backtesting
* Use TradingView's Bar Replay feature
* Review past signals on your favorite stocks
* Adjust filter settings based on your results
* Document win rate and average R:R
5. Paper Trading First
* Test the indicator with paper trading for 1-2 weeks
* Track all signals and outcomes
* Refine settings before risking real capital
Troubleshooting
Problem: No Signals Appearing
Solutions:
* Check if all filters are enabled (they may be too restrictive)
* Verify stock has sufficient volume and volatility
* Try increasing VWAP proximity from 0.2% to 0.3%
* Disable time filter if trading mid-day
* Check if stock is actually near VWAP on chart
Problem: Too Many Signals
Solutions:
* Decrease VWAP proximity from 0.2% to 0.1%
* Increase volume multiplier from 1.5x to 2.0x
* Enable all filters (trend, volume, time)
* Use 5-minute chart instead of 1-minute
Problem: Filter Status Table Not Visible
Solutions:
* Scroll chart to right (table is in top right corner)
* Check if indicator is loaded (should appear in indicator list on left)
* Refresh chart and re-add indicator
* Close other overlapping indicators
Problem: Alert Not Firing
Solutions:
* Verify alert is set to "Once Per Bar Close" (not "Only Once")
* Check alert hasn't expired
* Ensure correct symbols are selected in alert
* Confirm indicator is applied to chart with alert
Limitations
What This Indicator Does NOT Do:
* ❌ Automatically enter/exit trades
* ❌ Calculate position size
* ❌ Account for fundamental news or earnings
* ❌ Work on stocks without sufficient liquidity
* ❌ Guarantee profitable trades
When NOT to Use:
* Pre-market or after-hours (VWAP resets at market open)
* Low-volume penny stocks (< 100K daily volume)
* Stocks without clear trend or catalyst
* During major news events or FOMC meetings
* First 5 minutes after market open (price discovery phase)
Example Trade Walkthrough
Stock: XYZ (from morning gappers, +5% gap on earnings) Time: 10:15 AM EST Timeframe: 2-minute chart
Filter Status Table Shows:
* Trend: ✓ (EMA 20 > EMA 50)
* Volume: ✓ (2.3x average)
* Time: ✓ (within 9:30-11:30 window)
* Near VWAP: ✓ (price at $50.05, VWAP at $50.00)
* Entry OK: ✗ (waiting for bullish close)
Next Candle:
* Opens at $50.02
* Drops to $49.98 (testing VWAP)
* Closes at $50.08 (bullish candle, above VWAP)
* Green triangle appears!
* Entry OK: ✓ GO
Trade Execution:
* Entry: $50.10 (next candle open)
* Stop Loss: $49.95 (5 cents below VWAP)
* Risk: $0.15 per share
* Target 1: $50.40 (previous resistance) = 2:1 R:R
* Target 2: $50.70 (daily high) = 4:1 R:R
Outcome:
* Price rallies to $50.45
* Scale out 50% at Target 1
* Move stop to breakeven ($50.10)
* Exit remaining 50% at $50.65
* Result: Profitable trade with 3:1 average R:R
Frequently Asked Questions
Q: Can I use this for short entries? A: The current version is for long entries only. For shorts, you'd need to reverse the logic (price rejecting VWAP as resistance, downtrend, etc.).
Q: What stocks work best with this indicator? A: Mid-cap momentum stocks ($1B-$10B market cap), price $10-$100, daily volume > 1M, with a clear catalyst (earnings, news, sector move).
Q: Can I trade this on daily or weekly charts? A: No. VWAP is an intraday indicator that resets each trading day. Use only on intraday timeframes (1m, 2m, 5m, 15m, 30m).
Q: Should I take every signal? A: No. Use the indicator as a filter, not a mechanical system. Consider overall market conditions, stock-specific catalysts, and your own price action analysis.
Q: How accurate is this indicator? A: Accuracy depends on market conditions, stock selection, and your execution. Expect 50-65% win rate with proper 2:1+ risk/reward, similar to Aziz's methodology.
Resources
* Book: "How to Day Trade for a Living" by Andrew Aziz
* VWAP Strategy: Focus on Chapters 7.6 (VWAP Strategy) and supporting examples
* Community: Bear Bull Traders (bearbulltraders.com)
* Practice: Use TradingView's Bar Replay and Paper Trading features
Support & Updates
For questions, issues, or feature requests, refer to the TradingView script comments or the Bear Bull Traders community.
Version: 1.0 Pine Script Version: v6 Last Updated: December 30, 2025
Disclaimer: This indicator is for educational purposes only. Trading involves substantial risk. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.
1. tradingview.com/chart/NelMAKj4/
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.