
이중 지표 돌파 전략은 RSI 지표와 종결 가격 지표를 결합하여 낮은 가격과 높은 가격의 거래를 실현합니다. 이 전략은 간단하고 실용적이며, 철회 위험이 적으며, 중장선 지점을 보유하는 데 적합합니다.
이 전략은 다음과 같은 두 가지 지표에 기초하여 판단됩니다.
진입 조건은 RSI 과매매, 주식이 고도로 과소평가되어 있고, 역전 가능성이 강하다는 것을 나타냅니다. 진출 조건은 종결 가격이 하루 전 최고 가격을 뚫고, 주식이 다목적 행태로 진입하고 있음을 나타내고, 적절히 멈춰야 한다.
이중 지수 돌파구 전략은 다음과 같은 장점을 가지고 있습니다.
이 전략에는 몇 가지 위험도 있습니다.
RSI 변수를 최적화하고, 시장 유형을 평가하고, 다른 지표 판단과 결합하여 위의 위험을 피할 수 있습니다.
이 전략의 최적화 방향은 다음과 같은 부분들에 집중되어 있습니다.
이중 지표 돌파 전략은 전체적으로 매우 실용적인 양적 전략이다. 이 전략은 작동이 간단하고, 회수 위험이 적으며, 매개 변수 최적화와 규칙 개선을 통해 똑똑하고 안정적인 양적 절차가 될 수 있다. 효과적으로 착륙하면 우리에게 좋은 중장선 거래 기회를 제공할 수 있다.
/*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)