
Die Strategie ist ein Kurzlinien-Handelssystem, basierend auf der Spalttheorie und einem selbst adaptierbaren Raster, das die Schwellen der Volatilität kombiniert, um die Handelszeit zu optimieren. Das System passt die Rasterebene dynamisch an, um die Veränderungen der Marktmikrostruktur während der hohen Volatilität zu erfassen, während der niedrigen Volatilität übertrieben wird. Die Strategie integriert mehrere technische Indikatoren, darunter die durchschnittliche reale Bandbreite (ATR), der einfache bewegliche Durchschnitt (SMA) und die Spalt-Breakout, um einen umfassenden Rahmen für Handelsentscheidungen zu schaffen.
Im Mittelpunkt der Strategie steht der Aufbau eines dynamischen Handelsnetzes durch Split-Identifizierung und Aggregation von Volatilität. Die Umsetzung umfasst folgende Schlüsselschritte:
Es handelt sich um ein umfassendes Strategie-System, das Spalttheorie, Grid-Trading und Volatilitätsfilter kombiniert. Durch die kombinierte Verwendung von mehreren technischen Indikatoren wird eine effektive Erfassung der Marktmikrostruktur ermöglicht. Die Vorteile der Strategie liegen in ihrer Anpassungsfähigkeit und Risikokontrolle, wobei jedoch auch auf die Optimierung der Parameter und die Anpassungsfähigkeit der Marktumgebung geachtet werden muss.
/*backtest
start: 2024-02-17 00:00:00
end: 2025-02-15 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=6
strategy("Adaptive Fractal Grid Scalping Strategy", overlay=true)
// Inputs
atrLength = input.int(14, title="ATR Length")
smaLength = input.int(50, title="SMA Length")
gridMultiplierHigh = input.float(2.0, title="Grid Multiplier High")
gridMultiplierLow = input.float(0.5, title="Grid Multiplier Low")
trailStopMultiplier = input.float(0.5, title="Trailing Stop Multiplier")
volatilityThreshold = input.float(1.0, title="Volatility Threshold (ATR)")
// Calculate Fractals
fractalHigh = ta.pivothigh(high, 2, 2)
fractalLow = ta.pivotlow(low, 2, 2)
// Calculate ATR and SMA
atrValue = ta.atr(atrLength)
smaValue = ta.sma(close, smaLength)
// Determine Trend Direction
isBullish = close > smaValue
isBearish = close < smaValue
// Calculate Grid Levels
gridLevelHigh = fractalHigh + atrValue * gridMultiplierHigh
gridLevelLow = fractalLow - atrValue * gridMultiplierLow
// Plot Fractals and Grid Levels
plotshape(not na(fractalHigh), style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
plotshape(not na(fractalLow), style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plot(gridLevelHigh, color=color.red, linewidth=1, title="Grid Level High")
plot(gridLevelLow, color=color.green, linewidth=1, title="Grid Level Low")
// Trade Execution Logic with Volatility Threshold
if (atrValue > volatilityThreshold)
if (isBullish and not na(fractalLow))
strategy.entry("Buy", strategy.long, limit=gridLevelLow)
if (isBearish and not na(fractalHigh))
strategy.entry("Sell", strategy.short, limit=gridLevelHigh)
// Profit-Taking and Stop-Loss
strategy.exit("Take Profit/Stop Loss", "Buy", limit=gridLevelHigh, stop=fractalLow - atrValue * trailStopMultiplier)
strategy.exit("Take Profit/Stop Loss", "Sell", limit=gridLevelLow, stop=fractalHigh + atrValue * trailStopMultiplier)