
この戦略は,二重均線システムとRSI指標に基づくトレンド追跡取引システムである.この戦略は,均線交差信号,RSI超買い超売判断,価格突破確認を組み合わせて,複数のフィルタリングの取引意思決定フレームワークを構築する.この戦略は,6サイクルと82サイクルの指数移動平均 ((EMA) を介して中短期トレンドを捕捉し,比較的強い指数 ((RSI) を利用して市場の過熱と過冷状況をフィルタリングし,最終的に価格突破によって取引信号を確認する.
戦略の核心的な論理は,信号フィルタリングの3次元である.
この戦略は,均線システムとRSI指標の巧妙な組み合わせによって,論理的に厳格なトレンド追跡システムを構築しています.戦略の複数のフィルタリング機構は,リスクを効果的に制御していますが,一部の取引機会を逃す可能性もあります.継続的な最適化と改善により,戦略は,異なる市場環境で安定したパフォーマンスを維持することが期待されています.
/*backtest
start: 2024-02-17 00:00:00
end: 2025-02-15 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("EMA RSI Strategy", overlay=true)
// Input Parameters
emaShortLength = input.int(6, title="EMA Short Length")
emaLongLength = input.int(82, title="EMA Long Length")
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.float(70, title="RSI Overbought Level")
rsiOversold = input.float(22, title="RSI Oversold Level")
// Calculations
emaShort = ta.ema(close, emaShortLength)
emaLong = ta.ema(close, emaLongLength)
rsi = ta.rsi(close, rsiLength)
// Conditions
emaBuyCondition = ta.crossover(emaShort, emaLong)
emaSellCondition = ta.crossunder(emaShort, emaLong)
higherHighCondition = close > ta.highest(close[1], 1)
lowerLowCondition = close < ta.lowest(close[1], 1)
rsiNotOverbought = rsi < rsiOverbought
rsiNotOversold = rsi > rsiOversold
// Entry Signals
buySignal = emaBuyCondition and rsiNotOverbought and higherHighCondition
sellSignal = emaSellCondition and rsiNotOversold and lowerLowCondition
// Execute Trades
if (buySignal)
strategy.entry("Buy", strategy.long)
if (sellSignal)
strategy.entry("Sell", strategy.short)
// Plotting
plot(emaShort, color=color.green, title="EMA Short")
plot(emaLong, color=color.red, title="EMA Long")
plot(rsi, title="RSI", color=color.blue, linewidth=1)
hline(rsiOverbought, title="RSI Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, title="RSI Oversold", color=color.green, linestyle=hline.style_dotted)