Scalping Strategy with Volume and VWAP Confirmation
This is a scalping strategy that utilizes volume and Volume Weighted Average Price (VWAP) for confirmation. It combines these two important technical indicators to identify trends and locate higher probability entry…

Overview
This is a scalping strategy that utilizes volume and Volume Weighted Average Price (VWAP) for confirmation. It combines these two important technical indicators to identify trends and locate higher probability entry points.
Strategy Logic
The strategy mainly relies on two indicators for decision making - volume and VWAP.
Firstly, it calculates the 20-period VWAP. VWAP represents the average price of the day, and is an important benchmark for assessing price reasonableness. If the price is higher than VWAP, it indicates stronger bullish forces, and vice versa for bearish forces.
Secondly, the strategy also checks if the volume of each candlestick bar exceeds the preset threshold of 100. Only when the trading volume is sufficiently active, a definite trend is considered to exist. This avoids incorrect trades when the market is dull and inactive.
Based on these two criteria, the entry and exit rules are formed:
Entry Conditions
- Long: Close > VWAP and Volume > 100
- Short: Close < VWAP and Volume > 100
Exit Conditions
- Long: Close < VWAP
- Short: Close > VWAP
As we can see, the strategy combines both the price indicator VWAP and volume, using dual confirmation to improve stability.
Advantages
The main advantages of this strategy include:
- Using VWAP to gauge price reasonableness, avoiding blind trend following
- Confirming signals with volume to make them more reliable
- High operation frequency, suitable for scalping, allowing higher profits
- Simple and clear logic, easy to understand and implement
- Considers both VWAP and volume for dual confirmation and higher win rate
Risks
There are also some risks to note:
- As a scalping strategy, high operation frequency leads to higher transaction costs and slippage
- VWAP signals may be incorrect when market trend is unclear
- Volume indicator less applicable for low liquidity stocks
- Difficult to universally optimize parameters like volume threshold
- Scalping requires close monitoring of the markets
To mitigate risks, high liquidity stocks with narrow price range and volatility are recommended. Fine tune parameters for different stocks. Also control position sizing to limit losses.
Optimization
Some ways to further optimize the strategy:
- Optimize VWAP parameter for individual stocks
- Set volume threshold based on average daily volume
- Add other filters when there are no positions to avoid false signals
- Incorporate stop loss for max loss control
- Adjust position sizing rules for higher profit ratio
Through parameter tuning, adding filters, stop loss etc, we can further improve the stability and profitability.
Conclusion
The strategy consolidates two major indicators, VWAP and volume, to pick stocks with price reasonableness and high volume confirmation. It has high operation frequency and strong trend capturing capability. At the same time, trading costs and stop losses should be managed. Further optimizations can lead to even better strategy performance.
Parameters
| Name | Default | What it controls |
|---|---|---|
| v_input_1 | 14 | MACD Length |
| v_input_2 | 100 | Volume Threshold |
| v_input_3 | 20 | VWAP Length |
Source Pine Script
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © netyogindia
//@version=5
strategy("Scalping Strategy with Volume and VWAP Confirmation", overlay=true)
// Input parameters
length = input(14, title="MACD Length")
volume_threshold = input(100, title="Volume Threshold")
vwap_length = input(20, title="VWAP Length")
// Calculate VWAP
vwapValue = ta.vwap(close, vwap_length)
// Calculate volume
barVolume = volume
// Define entry conditions
longCondition = close > vwapValue and barVolume > volume_threshold
shortCondition = close < vwapValue and barVolume > volume_threshold
// Define exit conditions
exitLongCondition = close < vwapValue
exitShortCondition = close > vwapValue
// Plot VWAP
plot(vwapValue, color=color.blue, title="VWAP")
// Plot Volume bars
barcolor(barVolume >= volume_threshold ? color.green : na)
// Execute strategy orders
strategy.entry("Long", strategy.long, when=longCondition)
strategy.entry("Short", strategy.short, when=shortCondition)
strategy.close("Long", when=exitLongCondition)
strategy.close("Short", when=exitShortCondition)
Published by ChaoZhang on the FMZ strategy square · last modified 2024-01-29. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Scalping-Strategy-with-Volume-and-VWAP-Confirmation.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Dual Moving Average Crossover Scalping StrategyPine Script · Scalping · 1h
- MACD Willy StrategyPine Script · Scalping · 1h
- EMA MACD Composite Strategy for Trend ScalpingPine Script · Scalping · 1d
- Moving Average Scalping StrategyPine Script · Scalping · 4h
- Multi Indicator Synergistic Dynamic Risk Management Scalping Strategy EMAMACDRSI with ATR Adaptive Stop Loss Take Profit TechniquePine Script · Scalping · 2d
- Scalping Strategy Based on Market Liquidity and TrendPine Script · Scalping · 2h