Skip to content

Latest commit

 

History

History
163 lines (101 loc) · 5.69 KB

基于双重指标突破策略Dual-Indicators-Breakthrough-Strategy.md

File metadata and controls

163 lines (101 loc) · 5.69 KB

Name

基于双重指标突破策略Dual-Indicators-Breakthrough-Strategy

Author

ChaoZhang

Strategy Description

IMG [trans]

概述

双重指标突破策略通过结合RSI指标和收盘价指标,实现低买高卖的方式进行交易。该策略简单实用,回撤风险较小,适合中长线持仓。

策略原理

该策略主要基于以下两个指标进行判断:

  1. RSI指标:当RSI2小于15时,做多入场。
  2. 前一日收盘价:当今日收盘价高于前一日的最高价时,平仓离场。

入场条件是RSI超买,表明股票被高度低估,具有较强的反转可能性。离场条件是收盘价突破前一日最高价,表明股票正在进入多头行情,应适当止盈。

优势分析

双重指标突破策略具有以下优势:

  1. 策略操作简单,容易实施。
  2. 基于双重指标,可以有效控制假信号。
  3. RSI指标参数优化空间大,可调整至最佳状态。
  4. 追踪中长线趋势,回撤风险较小。
  5. 可广泛适用于大中盘股票,实战效果良好。

风险分析

该策略也存在一些风险:

  1. 个股波动过大,RSI参数需要调整。
  2. 多头行情中容易预期短线回调。
  3. 前一日最高价突破幅度需要评估合理性。

可以通过优化RSI参数、评估行情类型、结合其他指标判断来规避上述风险。

优化方向

该策略的优化方向主要集中在以下几个方面:

  1. 评估不同周期的RSI指标效果。
  2. 测试收盘价与其他价格指标的组合。
  3. 增加止损机制,如离场后一段时间再重入场。
  4. 结合交易量变动评估入场信号的可靠性。
  5. 利用机器学习算法自动优化参数。

总结

双重指标突破策略整体而言是一个非常实用的量化策略。该策略操作简单,回撤风险较小,通过参数优化和规则完善可以成为聪明且稳定的量化程序。如果有效落地,可以为我们提供不错的中长线交易机会。

||

Overview

The dual indicators breakthrough strategy combines the RSI indicator and the closing price indicator to achieve low buying and high selling for trading. This strategy is simple and practical with low pullback risk and is suitable for medium and long term holds.

Strategy Principle

The strategy is mainly based on the following two indicators for judgment:

  1. RSI indicator: go long when RSI2 is less than 15.
  2. Previous day's closing price: close the position when today's closing price is higher than yesterday's highest price.

The entry condition is oversold RSI, indicating that the stock is highly undervalued and has a strong reversal potential. The exit condition is that the closing price breaks through the highest price of the previous day, indicating that the stock is entering a bullish trend and profits should be taken appropriately.

Advantage Analysis

The dual indicator breakthrough strategy has the following advantages:

  1. The strategy operation is simple and easy to implement.
  2. False signals can be effectively controlled based on dual indicators.
  3. RSI indicator has large parameter optimization space for adjustment to optimal state.
  4. Track medium and long term trends with low pullback risk.
  5. Widely applicable to large and medium caps with good practical results.

Risk Analysis

The strategy also has some risks:

  1. Excessive fluctuations in individual stocks require RSI parameter adjustments.
  2. Expect short-term pullbacks in uptrends.
  3. Breakthrough amplitude of previous day's highest price needs evaluation of reasonableness.

The above risks can be avoided through optimization of RSI parameters, evaluation of market conditions, and use of other indicators for judgment.

Optimization Directions

The main optimization directions of this strategy are focused on the following aspects:

  1. Evaluate the effect of RSI indicators of different cycles.
  2. Test combinations of closing prices with other price indicators.
  3. Increase stop loss mechanisms, such as re-entry after a period of exit.
  4. Evaluate the reliability of entry signals in combination with trading volume changes.
  5. Automatically optimize parameters using machine learning algorithms.

Summary

In general, the dual indicator breakthrough strategy is a very useful quantitative strategy. The strategy is simple to operate with low pullback risks. Through parameter optimization and rule refinement, it can become an intelligent and stable quantitative program. If implemented effectively, it can provide us with good medium and long term trading opportunities.

[/trans]

Source (PineScript)

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

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

// If RSI(2) is less than 15, then enter at the close.
// Exit on close if today’s close is higher than yesterday’s high.

//@version=5
strategy("Hobbiecode - RSI + Close previous day", overlay=true)

// RSI parameters
rsi_period = 2
rsi_lower = 15

// Calculate RSI
rsi_val = ta.rsi(close, rsi_period)

// Check if RSI is lower than the defined threshold
if (rsi_val < rsi_lower)
    strategy.entry("Buy", strategy.long)

// Check if today's close is higher than yesterday's high
if (strategy.position_size > 0 and close > ta.highest(high[1], 1))
    strategy.close("Buy")

// Plot RSI on chart
plot(rsi_val, title="RSI", color=color.red)
hline(rsi_lower, title="Oversold Level", color=color.blue)


Detail

https://www.fmz.com/strategy/439989

Last Modified

2024-01-25 15:39:06