
이 전략은 상대적으로 약한 지수 ((RSI), 125 일 최고 가격의 돌파구와 거래량 필터를 결합한 다차원 거래 시스템입니다. 이 전략은 RSI 초과 매매 영역의 교차, 125 일 최고 가격의 돌파구 및 거래량의 눈에 띄는 증가를 모니터링하여 잠재적인 거래 기회를 식별합니다.
이 전략은 트레이딩 신호를 확인하기 위해 세 가지 필터링 메커니즘을 사용합니다.
이 세 가지 조건이 동시에 충족될 때만, 전략은 해당 거래 작업을 수행한다.
이 전략은 RSI, 125-일 최고점 및 거래량 필터를 결합하여 비교적 완벽한 거래 시스템을 구축한다. 전략의 여러 확인 메커니즘은 가짜 신호의 위험을 효과적으로 감소시키고, 각 구성 요소는 명확한 시장 논리적인 지원을 가지고 있다. 합리적인 매개 변수 최적화 및 위험 관리를 통해 이 전략은 실제 거래에서 안정적인 성능을 기대한다.
/*backtest
start: 2024-02-22 00:00:00
end: 2025-02-19 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=6
strategy("RSI Strategy with 125-Day High and Volume Filter", overlay=true)
// Input variables
length = input(14, title="RSI Length")
overSold = input(30, title="Oversold Level")
overBought = input(70, title="Overbought Level")
price = close
// RSI Calculation
vrsi = ta.rsi(price, length)
// Conditions for RSI crossover
co = ta.crossover(vrsi, overSold)
cu = ta.crossunder(vrsi, overBought)
// 125-day high calculation
high_125 = ta.highest(high, 125)
// Crossing conditions for 125-day high
cross_above_high_125 = ta.crossover(price, high_125)
cross_below_high_125 = ta.crossunder(price, high_125)
// Volume condition: Check if current volume is at least 2 times the previous volume
volume_increased = volume > 2 * volume[1]
// Entry logic for RSI and 125-day high with volume filter
if (not na(vrsi))
if (co and volume_increased)
strategy.entry("RsiLE", strategy.long, comment="RsiLE")
if (cu and volume_increased)
strategy.entry("RsiSE", strategy.short, comment="RsiSE")
// Entry logic for 125-day high crossing with volume filter
if (cross_above_high_125 and volume_increased)
strategy.entry("BuyHigh125", strategy.long, comment="BuyHigh125")
if (cross_below_high_125 and volume_increased)
strategy.entry("SellHigh125", strategy.short, comment="SellHigh125")
// Plot the 125-day high for visualization
plot(high_125, title="125-Day High", color=color.orange, linewidth=2, style=plot.style_line)