Type/to search

Williams Fractals Combined with ZZ Indicator for Quantitative Trading Strategies

Common strategy
Created: 2024-01-29 15:24:30
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a quantitative trading strategy that combines the use of Bill Williams' fractal theory and the ZZ indicator. It judges market trends through the calculation of Williams fractals and identifies potential breakout points by drawing support/resistance lines using the ZZ indicator to implement trend-following trades.

Strategy Principle

The strategy first calculates the Williams fractals to determine whether the current fractal is rising or falling. If it is a rising fractal, it is believed that the current trend is upward. If it is a falling fractal, it is believed that the current trend is downward.

It then draws ZZ indicator’s support and resistance lines based on the fractal points. If the price breaks through the resistance line corresponding to the rising fractal, go long. If the price breaks through the support line corresponding to the falling fractal, go short.

Through such a combination, it is possible to capture changes in trends in a timely manner and implement trend-following trades.

Advantage Analysis

This strategy combines two different technical analysis methods - Williams fractals and ZZ indicators - to uncover more trading opportunities.

It can timely judge the turning point of market trends and has good stop loss/take profit criteria to capture the main trend direction. In addition, the ZZ indicator can filter out some false breakouts to avoid unnecessary losses.

In general, this strategy considers both trend judgment and specific entry point selections to balance risks and returns.

Risk Analysis

The biggest risk of this strategy is that fractal judgments and ZZ indicator may issue wrong trading signals, leading to unnecessary losses. For example, after breaking through the resistance line, prices may quickly fall back, unable to sustain the uptrend.

In addition, the way fractals are calculated can lead to misjudgments if the timeframe is set improperly. Setting the timeframe too short increases the probability of false breakouts.

To reduce these risks, appropriately adjust the calculation parameters of fractals and increase filtering conditions to reduce erroneous signals. Besides, set wider stop loss to control single trade loss size.

Optimization Directions

This strategy can be further optimized in the following aspects:

  1. Add momentum indicator filters such as MACD or Bollinger Bands to avoid some false breakouts.

  2. Optimize fractal parameter settings and adjust the calculation of highs and lows and shorten the timeframe to obtain more accurate trend judgments.

  3. Increase machine learning algorithms to judge trend accuracy and avoid human limitations.

  4. Add adaptive stop loss mechanism based on market volatility.

  5. Use deep learning algorithms to optimize overall parameter settings.

Summary

By skillfully combining Williams' fractal theory and the ZZ indicator, this strategy achieves timely detection and capturing of changes in market trends. It maintains high win rate and expects to obtain long-term excess returns. Next step by introducing more filters and AI capabilities, it is expected to further improve strategy stability and return rate.

Source
Pine
/*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"}]
*/

//@version=4
strategy(title = "robotrading ZZ-8 fractals", shorttitle = "ZZ-8", overlay = true, default_qty_type = strategy.percent_of_equity, initial_capital = 100, default_qty_value = 100, commission_value = 0.1)

//Settings
Strategy parameters
Strategy parameters
Long
Short
filter Bill Williams Fractals
Show levels
Show fractals (repaint!)
Show dots (repaint!)
Show background
Show drawdown
Start Time
Final Time
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)