
Die Strategie ist ein technisch-analytisches Handelssystem, das Gaussian Channel und Stochastic RSI kombiniert. Gaussian Channel bietet eine Auf- und Abwärtskanal durch die Multiplikation von Index Moving Averages (EMA) und Standard Differenz und bietet dynamische Unterstützung und Widerstandspunkte für die Preisschwankungen. Random RSI bestätigt das potenzielle Umkehrsignal durch eine Gleitbearbeitung des RSI-Wertes und erzeugt %K und %D-Linien.
Die Kernlogik der Strategie basiert auf den folgenden Schlüsselelementen:
Durch die Kombination von Gauss-Kanal und Random RSI erstellt die Strategie ein Trading-System mit Trend-Tracking- und Reverse-Capture-Fähigkeiten. Die Strategie wurde mit mehreren Dimensionen der technischen Analyse konzipiert und verfügt über eine gute theoretische Grundlage und praktische Durchführbarkeit. Durch eine vernünftige Parameteroptimierung und Risikomanagement wird die Strategie eine stabile Leistung in allen Arten von Marktumgebungen erzielen.
/*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 )