Type/to search

Dual Moving Average Price Leaping Strategy

Cryptocurrency
Created: 2023-11-21 14:28:35
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy uses the RSI indicator to determine overbought and oversold conditions, combined with a trend judgment system constructed with fast, medium and slow moving average lines, to identify opportunities to open long or short positions when prices are leaping.

Strategy Principle

  1. Use RSI indicator to determine overbought and oversold conditions

    • RSI parameter is set to 14 periods
    • Oversold line is at 30, overbought line is at 70
  2. Use three SMA lines of different periods to determine the trend

    • Fast line is 9-period SMA, representing short-term trend
    • Medium line is 50-period SMA, representing medium-term trend
    • Slow line is 200-period SMA, representing long-term trend
  3. When fast line crosses above medium line, and RSI indicator shows oversold, go long

  4. When fast line crosses below medium line, and RSI indicator shows overbought, go short

  5. Stop loss is set at 4% of entry price

  6. Profit taking is done in batches, first take profit of 20%, then take 15% as price continues to rise, exiting positions gradually

Advantage Analysis

  1. Using three SMA lines of different periods can judge trend changes across different time frames
  2. The use of RSI indicator avoids opening positions outside of overbought/oversold areas
  3. Batch profit taking increases holding period and average profit of the strategy

Risk Analysis

  1. Probability of wrong signals from the three moving average lines
  2. Risk of incomplete batch profit taking execution
  3. Need to choose suitable instruments with high price fluctuation

Optimization Directions

  1. Can test modifying parameters of moving averages and RSI to optimize entry and exit
  2. Can add other indicators to filter candle patterns etc to improve accuracy
  3. Can dynamically trail stop loss to further control risk

Summary

This strategy combines moving average indicators and the overbought/oversold indicator RSI. By capturing price trend changes while judging trading opportunities, it belongs to a commonly used trend tracking strategy. Further optimizations and improved win rate can be achieved through parameter testing and incorporating additional auxiliary judgment indicators.

Source
Pine
/*backtest
start: 2023-11-13 00:00:00
end: 2023-11-20 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © syfuslokust

//@version=4
Strategy parameters
Strategy parameters
oversold
overbought
SellPct
ExitPct
v_input_5
v_input_6
v_input_7
v_input_8
Lookback Long Period
Lookback Short Period
v_input_11
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)