
이 전략은 다중 기술 지표에 기반한 고 주파수 수량 거래 전략이다. 이 전략은 그래프 형태 분석, 트렌드 추적 및 동력 지표를 종합적으로 사용하여 다차원 신호 확인을 통해 거래의 정확성을 향상시킵니다. 이 전략은 1:3의 위험 / 수익 비율을 취하고 있으며, 이러한 보수적 인 자금 관리 방법은 변동 시장에서 안정적인 수익을 유지하는 데 도움이됩니다.
전략의 핵심 논리는 세 가지 주요 기술 지표의 상호 작용에 기반합니다. 첫째, 부드러운 K 선 ((Heiken Ashi) 을 사용하여 시장 소음을 필터링하여 더 명확한 트렌드 방향을 제공합니다. 둘째, 브린 밴드 ((Bollinger Bands) 는 오버 바이 오버 셀 영역을 식별하는 데 사용되며 동적인 지지 압력 수준을 제공합니다. 셋째, 상대적으로 강한 지표 ((RSI) 의 무작위 값은 가격 동력을 확인하여 트렌드의 지속성을 판단하는 데 사용됩니다. 전략은 또한 ATR 지표를 통합하여 스톱 손실과 수익 목표를 동적으로 설정하여 위험 관리를 더 유연하게합니다.
이것은 고전적인 기술 분석 방법을 현대적인 양적 거래 철학과 결합한 전략이다. 다중 지표의 조합 사용으로 안정성을 보장하면서 높은 수익성을 추구한다. 전략의 확장성과 유연성은 다양한 시장 환경에 적합하지만 거래자가 신중하게 위험을 통제하고 매개 변수를 정기적으로 최적화해야 한다.
/*backtest
start: 2024-11-26 00:00:00
end: 2024-12-03 00:00:00
period: 15m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("BTC Scalping Strategy with Risk-Reward 1:3", overlay=true)
// Heiken Ashi Candle Calculation
var float haOpen = na
haClose = (open + high + low + close) / 4
haOpen := na(haOpen[1]) ? (open + close) / 2 : (haOpen[1] + haClose[1]) / 2
haHigh = math.max(high, math.max(haOpen, haClose))
haLow = math.min(low, math.min(haOpen, haClose))
// Plot Heiken Ashi Candles
plotcandle(haOpen, haHigh, haLow, haClose, color=haClose >= haOpen ? color.green : color.red)
// Bollinger Bands Calculation
lengthBB = 20
src = close
mult = 2.0
basis = ta.sma(src, lengthBB)
dev = mult * ta.stdev(src, lengthBB)
upperBB = basis + dev
lowerBB = basis - dev
// Stochastic RSI Calculation (fixed parameters)
kLength = 14
dSmoothing = 3
stochRSI = ta.stoch(close, high, low, kLength)
// Average True Range (ATR) for stop loss and take profit
atrLength = 14
atrValue = ta.atr(atrLength)
// Entry conditions
longCondition = ta.crossover(close, lowerBB) and stochRSI < 20
shortCondition = ta.crossunder(close, upperBB) and stochRSI > 80
// Alerts and trade signals
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Take Profit", "Long", profit=atrValue*3, loss=atrValue)
alert("Buy Signal Triggered", alert.freq_once_per_bar_close)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Take Profit", "Short", profit=atrValue*3, loss=atrValue)
alert("Sell Signal Triggered", alert.freq_once_per_bar_close)