
この戦略は,相対的に強い指数 ((RSI),125日間の最高値の突破と取引量のフィルターを組み合わせた多次元取引システムである.この戦略は,RSIの超買超売領域の交差,125日間の高値の突破と取引量の顕著な増加を監視することによって潜在的な取引機会を識別する.この多重確認メカニズムは,取引信号の信頼性を高めるのに役立ちます.
戦略は,取引信号を確認するために3つのフィルタリングメカニズムを使用します.
この3つの条件が同時に満たされている場合にのみ,戦略は対応する取引操作を実行する.
この戦略は,RSI,125日高点と取引量フィルターを組み合わせて,比較的完ぺきな取引システムを構築している.戦略の複数の確認機構は,偽信号のリスクを効果的に軽減し,各構成要素には明確な市場論理の支持がある.合理的なパラメータの最適化とリスク管理により,この戦略は,実際の取引で安定したパフォーマンスを期待している.
/*backtest
start: 2024-02-22 00:00:00
end: 2025-02-19 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=6
strategy("RSI Strategy with 125-Day High and Volume Filter", overlay=true)
// Input variables
length = input(14, title="RSI Length")
overSold = input(30, title="Oversold Level")
overBought = input(70, title="Overbought Level")
price = close
// RSI Calculation
vrsi = ta.rsi(price, length)
// Conditions for RSI crossover
co = ta.crossover(vrsi, overSold)
cu = ta.crossunder(vrsi, overBought)
// 125-day high calculation
high_125 = ta.highest(high, 125)
// Crossing conditions for 125-day high
cross_above_high_125 = ta.crossover(price, high_125)
cross_below_high_125 = ta.crossunder(price, high_125)
// Volume condition: Check if current volume is at least 2 times the previous volume
volume_increased = volume > 2 * volume[1]
// Entry logic for RSI and 125-day high with volume filter
if (not na(vrsi))
if (co and volume_increased)
strategy.entry("RsiLE", strategy.long, comment="RsiLE")
if (cu and volume_increased)
strategy.entry("RsiSE", strategy.short, comment="RsiSE")
// Entry logic for 125-day high crossing with volume filter
if (cross_above_high_125 and volume_increased)
strategy.entry("BuyHigh125", strategy.long, comment="BuyHigh125")
if (cross_below_high_125 and volume_increased)
strategy.entry("SellHigh125", strategy.short, comment="SellHigh125")
// Plot the 125-day high for visualization
plot(high_125, title="125-Day High", color=color.orange, linewidth=2, style=plot.style_line)