
この戦略は,複数の技術指標に基づいたトレンド追跡および動力の取引システムである.これは,ブリン帯 ((Bollinger Bands),相対的に強い指標 ((RSI) とエネルギー潮指標 ((OBV) の3つの主要な技術指標を組み合わせて,価格の変動,動力,取引量の分析によって市場の傾向と取引の機会を識別する.戦略は,市場が明らかに上昇傾向を示し,強力な動力が上昇するときに多く入場し,価格がブリン帯を下回る時に平仓に出場する.
この戦略の核心的な論理は以下の3つの側面に基づいています.
入場信号は同時に満たされる必要があります:価格はブリン帯中線より高く,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")