
이 전략은 여러 기술 지표에 기반한 트렌드 추적 및 동력 거래 시스템입니다. 이 전략은 부린 밴드 (Bollinger Bands), 상대적으로 강한 지표 (RSI) 및 에너지 유조 지표 (OBV) 의 세 가지 주요 기술 지표를 결합하여 가격 변동, 동력 및 거래량을 분석하여 시장의 추세와 거래 기회를 식별합니다. 이 전략은 중기 및 장기 포지션 방식을 채택합니다.
이 전략의 핵심 논리는 다음과 같은 세 가지에 기반합니다.
입구 신호는 동시에 충족되어야 합니다: 가격은 브린 반도 중도 궤도보다 높고, RSI는 50보다 크며, OBV는 상승 추세입니다. 출구 신호는: 가격이 부린을 넘어선 다음으로 내려갑니다.
이 전략은 안정적인 트렌드 추적 시스템으로, 여러 기술 지표의 조합 사용으로, 시장의 트렌드 기회를 효과적으로 잡을 수 있습니다. 전략 논리는 명확하고, 변수 설정은 합리적이며, 실용성이 좋습니다. 제안 된 최적화 방향으로, 전략의 안정성과 수익성은 더욱 향상 될 수 있습니다. 실장 적용 시, 특정 시장 특성과 자본 규모에 따라 적절하게 조정하는 것이 좋습니다.
/*backtest
start: 2024-02-18 00:00:00
end: 2025-02-17 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ahmetkaratas4238
//@version=5
strategy("İstanbul Stratejisi", overlay=true)
// Bollinger Bantları Hesaplamaları
bbLength = 20
bbMult = 2.0
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upperBand = basis + dev
lowerBand = basis - dev
// RSI Hesaplamaları
rsiLength = 14
rsi = ta.rsi(close, rsiLength)
rsiThreshold = 50
// OBV Hesaplaması
obv = ta.cum(volume * math.sign(ta.change(close))) // ta.cum yerine ta.cumulative kullanılmalı
obvTrend = ta.ema(obv, 10) > ta.ema(obv[1], 10) // OBV'nin yükseliş trendinde olup olmadığını kontrol eder
// ALIM ŞARTLARI
buyCondition = close > basis and rsi > rsiThreshold and obvTrend
// SATIM ŞARTI
sellCondition = close < lowerBand
// Alım İşlemi Aç
if buyCondition
strategy.entry("Long", strategy.long)
// Satım İşlemi Yap (Pozisyon Kapat)
if sellCondition
strategy.close("Long")
// Bollinger Bantlarını Göster
plot(upperBand, title="Üst Bollinger Bandı", color=color.red)
plot(lowerBand, title="Alt Bollinger Bandı", color=color.green)
plot(basis, title="Orta Bollinger Bandı", color=color.blue)
// Alım ve Satım Sinyallerini İşaretle
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Alım Sinyali")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Satım Sinyali")