
이 전략은 거래량 이상과 RSI 지표에 기반한 거래 시스템이다. 이 전략은 거래량 돌파구와 RSI 초과 구매 초과 판매 수준을 모니터링하여 잠재적인 거래 기회를 식별하고, 가격 행동 확인 신호와 결합한다. 이 전략은 위험 수익을 최적화하기 위해 동적인 중지 및 수익 목표 설정을 사용합니다.
전략의 핵심 논리에는 다음과 같은 핵심 요소가 포함됩니다.
이 전략은 여러 클래식 기술 지표를 통합하여 논리적으로 엄격한 거래 시스템을 구축한다. 전략의 장점은 여러 확인 메커니즘과 완벽한 위험 관리 시스템이지만, 가짜 돌파구 및 비활성 시간 위험과 같은 문제에 주의를 기울여야 한다. 전략은 지속적인 최적화 및 개선으로 실제 거래에서 안정적인 성능을 얻을 수 있다.
/*backtest
start: 2024-02-21 00:00:00
end: 2025-02-18 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=6
strategy("Volume Spike & RSI Scalping (Session Restricted)", overlay=true)
// Inputs
rsi_length = input(14, title="RSI Length")
overSold = input(30, title="RSI Oversold Level")
overBought = input(70, title="RSI Overbought Level")
volume_threshold = input(1.5, title="Volume Spike Multiplier (e.g., 1.5x avg volume)")
risk_reward_ratio = input(2.0, title="Risk-Reward Ratio (1:X)")
atr_length = input(14, title="ATR Length")
// RSI Calculation
vrsi = ta.rsi(close, rsi_length)
// Volume Spike Detection
avg_volume = ta.sma(volume, 20)
volume_spike = volume > avg_volume * volume_threshold
// Entry Signals Based on RSI and Volume
long_condition = volume_spike and vrsi < overSold and close > open // Bullish price action
short_condition = volume_spike and vrsi > overBought and close < open // Bearish price action
// Execute Trades
if (long_condition)
stop_loss = low - ta.atr(atr_length)
take_profit = close + (close - stop_loss) * risk_reward_ratio
strategy.entry("Buy", strategy.long, comment="Buy Signal")
strategy.exit("Take Profit/Stop Loss", "Buy", stop=stop_loss, limit=take_profit)
if (short_condition)
stop_loss = high + ta.atr(atr_length)
take_profit = close - (stop_loss - close) * risk_reward_ratio
strategy.entry("Sell", strategy.short, comment="Sell Signal")
strategy.exit("Take Profit/Stop Loss", "Sell", stop=stop_loss, limit=take_profit)
// Background Highlighting for Signals
bgcolor(long_condition ? color.new(color.green, 85) : na, title="Long Signal Background")
bgcolor(short_condition ? color.new(color.red, 85) : na, title="Short Signal Background")