이 전략은 상대적으로 강한 지수 ((RSI) 지표를 기반으로 순수 다중 거래 시스템을 설계했다. 이 시스템은 RSI의 다른 상하 궤도를 구성하여 RSI 지표가 금 포크가 발생할 때 더 많은 포즈를 취하고, 죽은 포크가 발생할 때 평소 포즈를 취한다.
이 전략은 주로 RSI 지표에 의존하여 거래 신호를 생성한다. RSI 지표는 일정 기간 동안 종결 가격 상승과 하락의 비율을 계산하여 주식의 과매매를 반영한다. RSI 값이 높으면 과매를 의미하고, RSI 값이 낮으면 과매를 의미한다.
구체적으로, 전략은 RSI의 여러 변수를 설정하여 거래 신호를 생성합니다.
RSI 값을 계산한 후, 전략은 다음과 같은 원칙을 가지고 거래 신호를 생성합니다.
이렇게 하면, RSI의 여러 그룹을 설정하여 오버 바이 오버 셀 영역 사이의 금 포크를 포착하여 트렌드 추적이 가능합니다.
RSI 기반의 트렌드 추적 전략은 다음과 같은 장점이 있습니다.
물론, 이 전략에는 위험도 있습니다.
이에 대해, RSI 주기 변수를 적절히 조정하고, 평균선 지표와 결합하여, 합리적인 스톱 로즈 위치를 설정하는 등의 방법으로 최적화 할 수 있다.
이 전략은 다음의 몇 가지 측면에서 더 개선될 수 있습니다.
이 전략은 구성된 RSI 기술 지표를 통해 간단한 트렌드 추적 거래 시스템을 구현한다. 전략 아이디어는 명확하고 이해하기 쉽고, 자신의 필요에 따라 파라미터를 조정할 수 있다. 그러나 또한 몇 가지 위험이 있으며, 주의를 기울여야 한다.
/*backtest
start: 2023-09-06 00:00:00
end: 2023-10-06 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version= 4
// https://sauciusfinance.altervista.org, another trading idea, suggested by the fact that RSI tends to accompany the trend
strategy(title="Pure RSI long only", overlay = true, max_bars_back=500)
// INPUTS
rsi_low = input(30, title ="RSI lower band", minval=5, step = 1)
rsi_middle = input(55, title ="RSI middle band", minval=10, step = 1)
rsi_mhigh = input(60, title ="RSI middle high", minval=20, step = 1)
rsi_high = input(70, title ="RSI high", minval=30, step = 1)
rsi_top = input(75, title ="RSI top", minval=30, step = 1)
rsi_period = input(14, title="RSI period", minval = 1, step = 1)
// CALCULATIONS
myrsi = rsi(close, rsi_period)
/// Entry: when RSI rises from the bottom or, after a retracement, it overcomes again the middle level of 50
strategy.entry("Long", true, when = crossover(myrsi,rsi_low))
strategy.entry("Long", true, when = crossover(myrsi,rsi_middle))
/// EXITS: when RSI crosses under the initial bottom level (stop loss) or undergoes one of the next 3 steps : 50, 60, 70 or it's simply
// higher than 70
// you may test viceversa for short, adding level of 40
strategy.close("Long", when = crossunder(myrsi, rsi_low), comment="low")
strategy.close("Long", when = crossunder(myrsi, rsi_middle), comment="middle")
strategy.close("Long", when = crossunder(myrsi, rsi_mhigh), comment="middle-hi")
strategy.close("Long", when = crossunder(myrsi, rsi_high), comment="high")
strategy.close("Long", when = (myrsi>rsi_top), comment="top")
plotchar(myrsi, title = "myrsi", char='+', color=color.black)
// CONCLUSION: this system give notable results related to MA & RSI trading system and it's a good alternative. The best is making
// roboadvisoring by working this two system togheter, i.e. watching both MA and levels of RSI together (you may also enter if RSI
// crosses over 30 and then wait for a confirm in MA)