
RSI 상어 거래 전략은 상대적으로 강한 지수 ((RSI) 의 여러 평균 선의 조합을 사용하여 시장 추세를 판단하고 거래 신호를 보내는 양적 거래 전략이다. 이 전략은 상어 포획 원리를 모티브로 하여, 단기 RSI 선이 장기 RSI 선을 가로지르면 거래한다.
RSI 오징어 거래 전략은 5일, 13일, 34일 세 개의 RSI 평균선을 동시에 이용한다. 이 중 5일 RSI 라인은 오징어 오징어 라인, 13일 라인은 오징어 입술 오징어 라인, 34일 라인은 오징어 턱선 오징어 턱선 위에 오징어 또는 오징어 입술 오징어 라인을 통과할 때, 다중 신호를 발산한다. 오징어 오징어 오징어 라인 또는 오징어 입술 오징어 라인 아래 오징어 턱선 아래 오징어 턱선 오징어를 통과할 때, 공백 신호를 발산한다.
거래 전략의 핵심은 단기 RSI 선과 장기 RSI 선의 교차점을 포착하여 시장의 단기 경향과 장기 경향의 관계를 판단하고 역전 기회를 찾습니다. 단기 RSI 선이 장기 RSI 선을 교차하면 단기 가격이 역전되었다는 것을 나타냅니다.
RSI 해파리 거래 전략은 다음과 같은 장점이 있습니다.
RSI 해파리 거래 전략에는 다음과 같은 위험도 있습니다.
다른 지표, 최적화 변수, 그리고 적절히 조정된 포지션 규모를 조합하여 이러한 위험을 완화할 수 있습니다.
RSI 해파리 거래 전략은 다음과 같은 측면에서 최적화 될 수 있습니다.
RSI 낚시 거래 전략은 여러 RSI 평행선 교차를 사용하여 시장 역전 기회를 잡습니다. 그것은 간단하고 실용적이며 자동화 된 거래에 적합하지만 결점이 있습니다. 매개 변수 최적화 및 지표 조합을 통해이 전략을 강화하여 안정적으로 수익성있는 알고리즘 거래 전략으로 만들 수 있습니다.
/*backtest
start: 2022-11-30 00:00:00
end: 2023-12-06 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=3
strategy("RSI Alligator", overlay=false)
jaws = rsi(close, 34)
teeth = rsi(close, 5)
lips = rsi(close, 13)
plot(jaws, color=blue, title="Jaw")
plot(teeth, color=green, title="Teeth")
plot(lips, color=red, title="Lips")
longCondition = crossover(rsi(close, 13), rsi(close, 34)) and (rsi(close, 5) > rsi(close, 34))
longCondition1 = crossover(rsi(close, 5), rsi(close, 34)) and (rsi(close, 13) > rsi(close, 34))
if (longCondition)
strategy.entry("Long", strategy.long)
if (longCondition1)
strategy.entry("Long", strategy.long)
shortCondition = crossunder(rsi(close, 13), rsi(close, 34)) and (rsi(close, 5) < rsi(close, 34))
shortCondition1 = crossunder(rsi(close, 5), rsi(close, 34)) and (rsi(close, 13) < rsi(close, 34))
if (shortCondition)
strategy.entry("Short", strategy.short)
if (shortCondition1)
strategy.entry("Short", strategy.short)
// === BACKTESTING: EXIT strategy ===
sl_inp = input(10, title='Stop Loss %', type=float)/100
tp_inp = input(90, title='Take Profit %', type=float)/100
stop_level = strategy.position_avg_price * (1 - sl_inp)
take_level = strategy.position_avg_price * (1 + tp_inp)
strategy.exit("Stop Loss/Profit", "Long", stop=stop_level, limit=take_level)