
この戦略は,ガウスチャネル (Gaussian Channel) とランダムな相対的に弱い指標 (Stochastic RSI) を組み合わせた技術分析取引システムである.ガウスチャネルは,指数移動平均 (EMA) と標準差の相乗によって上下チャネルを形成し,価格変動にダイナミックなサポートと抵抗点を提供する.ランダムなRSIは,RSI値を平滑処理して,%Kと%Dラインを生成し,潜在的な逆転信号を確認する.この戦略は,任意の時間周期に適用され,トレーダーに体系化された取引方法を提供します.
戦略の中核となるロジックは、次の主要な要素に基づいています。
この戦略は,ガウス通路とランダムなRSIを組み合わせて,トレンド追跡と逆転捕捉の能力を兼ね備えた取引システムを構築している.戦略の設計は,複数の技術分析の次元を考慮し,優れた理論的基礎と実用性を有している.合理的なパラメータ最適化とリスク管理により,この戦略は,さまざまな市場環境で安定したパフォーマンスを期待している.しかし,ユーザーは,戦略の優位性の限界を十分に理解し,実際の取引環境に応じて対象に調整する必要があります.
/*backtest
start: 2024-02-18 00:00:00
end: 2025-02-16 08:00:00
period: 3h
basePeriod: 3h
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/
// © fgkkaraca
//@version=5
strategy("Alienseeker GC and RSI Strategy", overlay=true, commission_type=strategy.commission.percent, commission_value=0.1, slippage=0, default_qty_type=strategy.percent_of_equity, default_qty_value=200, process_orders_on_close=true)
// Gaussian Channel Inputs
lengthGC = input.int(20, "Gaussian Channel Length", minval=1)
multiplier = input.float(2.0, "Standard Deviation Multiplier", minval=0.1)
// Calculate Gaussian Channel
basis = ta.ema(close, lengthGC)
deviation = multiplier * ta.stdev(close, lengthGC)
upperChannel = basis + deviation
lowerChannel = basis - deviation
// Plot Gaussian Channel
plot(basis, "Basis", color=color.blue)
plot(upperChannel, "Upper Channel", color=color.green)
plot(lowerChannel, "Lower Channel", color=color.red)
// Stochastic RSI Inputs
rsiLength = input.int(14, "RSI Length", minval=1)
stochLength = input.int(14, "Stochastic Length", minval=1)
smoothK = input.int(3, "Smooth K", minval=1)
smoothD = input.int(3, "Smooth D", minval=1)
// Calculate RSI
rsi = ta.rsi(close, rsiLength)
// Calculate Stochastic RSI
lowestRSI = ta.lowest(rsi, stochLength)
highestRSI = ta.highest(rsi, stochLength)
stochRSI = (rsi - lowestRSI) / (highestRSI - lowestRSI) * 100
k = ta.sma(stochRSI, smoothK)
d = ta.sma(k, smoothD)
// Trading Conditions
stochUp = k > d
priceAboveUpper = ta.crossover(close, upperChannel)
priceBelowUpper = ta.crossunder(close, lowerChannel)
// Date Range Filter
startDate = input(timestamp("2018-01-01"), "Start Date")
endDate = input(timestamp("2069-01-01"), "End Date")
timeInRange = true
// Strategy Execution
if timeInRange
strategy.entry("Long", strategy.long, when=priceBelowUpper and stochUp)
strategy.close("Long", when=priceAboveUpper )