Type/to search

Larry Williams' Three-Period Dynamic Moving Average Trading Strategy

EMA
1
Follow
1802
Followers

img

Overview

This article introduces a trading strategy based on Larry Williams' three-period dynamic moving average. The strategy utilizes two exponential moving averages (EMAs) to capture price trends and generates trading signals when the closing price of three consecutive candles breaks through the EMAs. The strategy parameters are adjustable and suitable for different markets and timeframes.

Strategy Principles

  1. Calculate two EMAs: high price EMA and low price EMA of closing prices, with adjustable periods.
  2. Determine if the current time is within the set trading interval.
  3. Determine if the last three candles consecutively closed above (bullish) or below (bearish) the EMAs.
  4. If condition 3 is met and the position is 0, open a long position; if the opposite of condition 3 is met and a long position is held, close the position.
  5. Close the position at the end of each trading day if holding a position.

Strategy Advantages

  1. Flexible parameters: EMA periods, trading time intervals, and other parameters are adjustable to adapt to different markets.
  2. Trend tracking: Utilizes EMAs and the direction of consecutive candles to identify trends, which helps capture trending markets.
  3. Timely stop-loss: Immediately closes the position when the price breaks through the EMAs against the trend, controlling drawdowns.
  4. Intraday position closing: Closes positions at the end of each trading day, avoiding overnight risks.

Strategy Risks

  1. Choppy market risk: Frequent trading in trendless markets may lead to losses.
  2. Parameter risk: Performance varies greatly with different parameters in different markets, requiring targeted optimization.
  3. Gap risk: Opening gaps may cause slippage in the strategy's entry price, increasing risk.

Strategy Optimization Directions

  1. Trend filters: Incorporate indicators like ATR and RSI to help assess trend strength and avoid choppy markets.
  2. Dynamic parameter optimization: Dynamically adjust parameters based on recent market characteristics to improve adaptability.
  3. Position management: Adjust positions based on trend strength and capital, controlling risks.
  4. Incorporate stop-loss and profit-taking: Set reasonable stop-loss levels and profit targets to reduce single-trade risk.

Summary

Larry Williams' three-period dynamic moving average trading strategy is a trend-following strategy based on dual EMAs and the direction of consecutive candles. With parameter optimization, it can adapt to different markets. However, the strategy itself is relatively simple, performs poorly in choppy markets, and lacks risk control measures, requiring further optimization and improvement. Considering the strategy's pros and cons, it is more suitable for use in markets with clear trends and should be combined with position management and risk control measures to improve overall performance and stability.

Source
Pine
/*backtest
start: 2023-05-05 00:00:00
end: 2024-05-10 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy("Larry Williams 3 Periodos Editável de MarcosJr", overlay=true, process_orders_on_close=true)

// Parametrização do período do EMA
Strategy parameters
Strategy parameters
Highs Period (Optional)
Lows Period (Optional)
Start Year (Optional)
Start Month (Optional)
Start Day (Optional)
End Year (Optional)
End Month (Optional)
End Day (Optional)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)