
この戦略は,複数の技術指標に基づいた1日間の取引システムであり,RSI指標,ランダムな指標 ((Stochastic) と軸ポイント ((Pivot Points) を総合的に使用してトレンド予測と取引決定を行う.このシステムは,市場の超買い超売り状態を多次元で分析し,価格のサポートレジスタンスレベルと組み合わせて,市場の曲がり角を正確に捉えることができます.
戦略は3つの指標で検証されています.
取引シグナルのトリガーは以下の条件を同時に満たす必要があります.
この戦略は,複数の指標の協同分析により,比較的完全な取引意思決定システムを構築している.システムは,動態指標,波動指標,価格レベル分析を統合し,市場の主要な転換点をよりよく把握することができる.一定の遅れのリスクがあるものの,継続的な最適化と改善により,戦略の安定性と信頼性がさらに向上する見込みがある.
/*backtest
start: 2024-02-19 00:00:00
end: 2025-02-16 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Intraday Leading Indicator Strategy", overlay=true)
// Inputs for the indicators
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought")
rsiOversold = input.int(30, title="RSI Oversold")
stochK = input.int(14, title="Stochastic %K Length")
stochD = input.int(3, title="Stochastic %D Smoothing")
stochOverbought = input.int(80, title="Stochastic Overbought")
stochOversold = input.int(20, title="Stochastic Oversold")
pivotTimeframe = input.timeframe("D", title="Pivot Points Timeframe")
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// Stochastic Calculation
k = ta.stoch(close, high, low, stochK)
d = ta.sma(k, stochD)
// Pivot Points Calculation
pivotHigh = request.security(syminfo.tickerid, pivotTimeframe, ta.pivothigh(high, 3, 3))
pivotLow = request.security(syminfo.tickerid, pivotTimeframe, ta.pivotlow(low, 3, 3))
// Entry Conditions
longCondition = rsi < rsiOversold and k < stochOversold and close > nz(pivotLow)
shortCondition = rsi > rsiOverbought and k > stochOverbought and close < nz(pivotHigh)
// Exit Conditions
exitLong = rsi > 50 or k > 50
exitShort = rsi < 50 or k < 50
// Execute Trades
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
if (exitLong)
strategy.close("Long")
if (exitShort)
strategy.close("Short")
// Plot Pivot Levels
plot(pivotHigh, title="Pivot High", color=color.red, linewidth=1, style=plot.style_line)
plot(pivotLow, title="Pivot Low", color=color.green, linewidth=1, style=plot.style_line)