Trading Strategy Based on Standard Deviation of Trading Volume
Overview
This strategy builds a trading volume model using moving average and standard deviation of trading volume, and determines the trend direction with the moving average of price to generate trading signals when volume is normal. It also sets upper and lower limits for trading volume to avoid wrong signals when volume is abnormal.
Strategy Logic
The core logic is to build trading volume model and judge price trend.
- Build trading volume model
- Calculate the 40-period moving average of volume vavg as the baseline
- Calculate the 40-period standard deviation of volume vsd as the normal fluctuation range
- Calculate the 5-period moving average of volume vavgn as the latest volume level
- Set lower limit of volume lowlimit as vavg minus 1 times vsd
- Set upper limit of volume uplimit as vavg plus 2 times vsd
- Judge price trend
- Calculate the 20-period moving average of close price mavg as the indicator of price trend
- Generate trading signals
- When mavg crosses above its previous day and vavgn is above lowlimit, go long
- When mavg crosses below its previous day and vavgn is above lowlimit, go short
- Close position when mavg trend reverses
The strategy combines trading volume model and price trend to avoid chasing price trends when volume is abnormal, which can filter out some false signals.
Advantage Analysis
- Combining volume changes to judge price trend can filter out some false signals and make the trading signals more reliable
- Building trading volume model using standard deviation avoids extreme volume impact
- Adjustable parameters of moving average can adapt to price changes in different cycles
Risk Analysis
- Volume and price may diverge in short term, leading to missing price trends
- Improper parameter settings of volume may cause model failure
- No stop loss in the strategy may lead to large losses
Solutions:
- Adjust moving average parameters properly to optimize the model
- Add stop loss logic to control single loss
Optimization Directions
- Add more indicators to judge price trend to make signals more reliable
- Increase machine learning module to train parameters of volume and price models based on data
- Add stop loss logic to prevent excessive single loss
- Optimize entry logic to ensure higher probability of catching trends
- Combine indicators like ATR to automatically adjust stop loss distance
Summary
The overall logic of this strategy is clear, using volume to avoid chasing false trends and the entry signals are relatively reliable. But the strategy itself is simple with large room for expansion. By adding more indicators, machine learning, stop loss and other modules, it can further improve the stability and ability to catch trends. This is a typical trend chasing strategy. After optimization, it can become a very practical quantitative strategy.
- 1

