
この戦略は,複数の技術指標を組み合わせたトレンド追跡システムで,主にスーパートレンド指標に基づくトレンド方向判断を行い,ADX (平均トレンド指数) のトレンド強度確認とRSI (相対的に強い指数) の波動区間の判断を組み合わせて,入場時間を最適化します.戦略は,一方向の多方向化モデルを採用し,複数の指標のクロス検証によって取引の正確性と信頼性を向上します.
戦略の核心論理は以下の3つの重要な要素に基づいています.
入場条件は同時に満たす必要があります:
ローンの条件: Supertrendの方向が上方に向かったとき,[[supertrendDirection == 1) が平仓を実行する。
この戦略は,複数の技術指標の組み合わせを用いて,比較的完ぺきなトレンド追跡取引システムを構築している.戦略の核心的な優位性は,異なる指標のクロス検証によって取引信号の信頼性を高めることにあるが,同時に,信号の遅れとパラメータの最適化の課題にも直面している.提案された最適化の方向性によって,戦略は,既存の優位性の維持に基づいて,その適応性と安定性をさらに向上させる見込みがある.全体的に,これは,良好な基礎の枠組みを持つ戦略であり,継続的な最適化と改善によって,より包括的で安定した取引システムに発展する見込みがある.
/*backtest
start: 2025-02-13 00:00:00
end: 2025-02-20 00:00:00
period: 5m
basePeriod: 5m
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=6
strategy("Supertrend + ADX Strategy", overlay=true)
// Parameter für ADX und Supertrend
diLength = input.int(14, title="DI Length")
adxSmoothing = input.int(14, title="ADX Smoothing")
adxThreshold = input.float(14)
supertrendFactor = input.float(3.0, title="Supertrend Factor")
supertrendPeriod = input.int(14, title="Supertrend Period")
// Berechnung von +DI, -DI und ADX
[diplus, diminus, adx] = ta.dmi(diLength, adxSmoothing)
// RSI-Berechnung
rsiLength = input.int(14, title="RSI Length")
rsi = ta.rsi(close, rsiLength)
// Supertrend-Berechnung
[supertrendValue, supertrendDirection] = ta.supertrend(supertrendFactor, supertrendPeriod)
// Long-Einstiegsbedingung
longCondition = supertrendDirection == -1 and adx > adxThreshold and (rsi < 40 or rsi > 60)
// Long-Ausstiegsbedingung (wenn Supertrend grün wird)
exitCondition = supertrendDirection == 1
// Visualisierung der Einstiegssignale (Pfeile)
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="Buy Signal")
plotshape(series=exitCondition, location=location.abovebar, color=color.red, style=shape.triangledown, title="Sell Signal")
// Supertrend-Plot im Chart
plot(supertrendValue, color=supertrendDirection == -1 ? color.yellow : color.red, linewidth=2, title="Supertrend Line")
// Alerts für Einstieg/Ausstieg
alertcondition(longCondition, title="Long Signal", message="Supertrend + ADX: Long Entry")
alertcondition(exitCondition, title="Exit Signal", message="Supertrend turned Green: Exit")
// Strategieausführung
if longCondition and supertrendDirection == -1
strategy.entry("Long", strategy.long)
if exitCondition
strategy.close("Long")