Type/to search

Price Volatility Breakout Strategy Based on Double Moving Averages

Cryptocurrency
Created: 2023-12-08 16:44:22
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

The core idea of this strategy is to use price volatility to judge market trends. When volatility rises, it means the market is forming a new trend. And when volatility declines, it means the current trend is ending. The strategy calculates the percentage change of price and then filters it with double moving averages to get an indicator reflecting price volatility. It generates buy signals when the indicator crosses above its signal line, and sells signals when crossing below.

Strategy Logic

The strategy first calculates the percentage change of price:

i=(src/nz(src[1], src))*100

Then it filters i with a 35-period moving average to get the preliminary volatility indicator pmol2. Pmol2 is filtered again with a 20-period moving average to get the final indicator pmol. Finally, a 10-period moving average of pmol is used as the signal line pmols. Buy when pmol crosses over pmols and sell when crossing below.

Advantage Analysis

  • The double MA filtering extracts volatility well and filters out noise.
  • Calculating percentage change amplifies price movements, making trend changes more visible.
  • Profit model is clear: buy at trend start, sell at trend end.

Risk Analysis

  • Double filtering causes some lag.
  • Percentage change calculation is sensitive to price amplitude.
  • Need timely exits at bull-bear transitions.

Optimization Directions

  • Optimize MA parameters to improve trend catching.
  • Try different price change calculation methods.
  • Add filters to avoid wrong signals.

Summary

This strategy uses percentage change and double MA filtering to extract price volatility and judge trend changes. It belongs to the relatively mature technical indicator strategies. The strategy has good trend catching capability but medium turning point recognition capability. Can optimize via parameter tuning and adding auxiliary conditions.

Source
Pine
/*backtest
start: 2022-12-01 00:00:00
end: 2023-12-07 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
strategy("Strategy for DPMO", overlay=true)

src=input(close, title="Source")
Strategy parameters
Strategy parameters
Source
First Smoothing
Second Smoothing
Signal Smoothing
Enable Bar Colors
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)