
この戦略は,複数の技術分析指標を組み合わせた混合取引システムである.これは,主に平均線システム (EMA) に基づいて市場のトレンドを判断し,同時にサポート抵抗 (SR) レベルを入場信号として組み合わせ,実際の波動幅 (ATR) を使用してリスク制御を行う.この戦略は,ダイナミックな止損設定を採用し,市場の変動に応じて自律的に止損位置を調整することができる.
この戦略は、次のコアコンポーネントに基づいて実行されます。
信号フィルタリングの最適化
ポジション管理の最適化
ストップ・ロスト・最適化
この戦略は,複数の成熟した技術分析方法を組み合わせて,完全な取引システムを構築している.その核心的な優位性は,システムの自己適応性とリスク管理能力にある.継続的な最適化と改善により,戦略は,異なる市場環境で安定したパフォーマンスを維持すると見込まれている.実用化する前に,トレーダーに十分な歴史データテストとパラメータ最適化を行うことを推奨している.
/*backtest
start: 2024-02-18 00:00:00
end: 2025-02-16 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=6
strategy("Multi-Strategy Trader v1 by SUNNY GUHA +91 9836021040 / www.oiesu.com", overlay=true)
// Basic Inputs
supResLookback = input.int(9, "Support/Resistance Lookback")
atrPeriod = input.int(14, "ATR Period")
stopMultiplier = input.float(10.0, "Stop Loss ATR Multiplier")
// Technical Indicators
atr = ta.atr(atrPeriod)
highestHigh = ta.highest(high, supResLookback)
lowestLow = ta.lowest(low, supResLookback)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
// Basic Strategy Rules
isTrending = math.abs(ema20 - ema50) > atr
longSignal = close > highestHigh[1] or (isTrending and ema20 > ema50 and close > ema20)
shortSignal = close < lowestLow[1] or (isTrending and ema20 < ema50 and close < ema20)
// Entry Logic
if longSignal and strategy.position_size <= 0
strategy.entry("Long", strategy.long)
if shortSignal and strategy.position_size >= 0
strategy.entry("Short", strategy.short)
// Stop Loss Logic
longStopPrice = close - (atr * stopMultiplier)
shortStopPrice = close + (atr * stopMultiplier)
// Exit Logic
if strategy.position_size > 0
strategy.exit("Long Exit", "Long", stop=longStopPrice)
if strategy.position_size < 0
strategy.exit("Short Exit", "Short", stop=shortStopPrice)
// Basic Plotting
plot(ema20, "EMA 20", color.blue)
plot(ema50, "EMA 50", color.red)