Type/to search

Moving Average Oscillation HODL Strategy

Cryptocurrency
Created: 2023-09-12 16:02:24
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy observes price oscillation around long-period moving averages (e.g. 200-day) to determine hold signals, trading breakouts for position entry and using break below as stop loss. It aims to minimize trading frequency for long-term holding.

Strategy Logic:

  1. Calculate a long-period moving average, typically 200-day.

  2. Enter long when price breaks above the moving average.

  3. Exit long when price breaks back below the moving average.

  4. Hold long position until break below stop loss.

Advantages:

  1. Long-period MA effectively identifies mid-to-long term trends.

  2. Breakout trading captures long-term reversals in a timely manner.

  3. Lower trading frequency reduces costs and risks.

Risks:

  1. Longer MAs lag significantly, resulting in poor entry timing.

  2. No limit on post-breakout drawdown risks.

  3. Frequent minor breakouts bring sustained small losses.

In summary, this HODL strategy uses long MA oscillation to determine hold timing, minimizing trade frequency. But parameter optimization and stop loss placement could improve performance and risk control for steady long-term gains.

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

//@version=3
strategy("HODLBot", default_qty_type=strategy.percent_of_equity, default_qty_value=100, calc_on_every_tick=true, overlay=true)
    
//// Time limits 
Strategy parameters
Strategy parameters
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
MA Period
smoothing
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)