Das neue DAX Prognose Forum WKN: 846900 ISIN: DE0008469008 Forum: Indizes User: Jens2020
Diese Werbung richtet sich nur an Personen mit Wohn-/Geschäftssitz in Deutschland. Der jeweilige Basisprospekt, etwaige Nachträge, die Endgültigen Bedingungen sowie das maßgebliche Basisinformationsblatt sind auf www.dzbank-wertpapiere.de veröffentlicht. Beachten Sie auch die weiteren Hinweise zu dieser Werbung.
//@version=5 strategy("EMA Ribbon with Trailing Stop & Trend Confirmation", overlay=true) // Eingabewerte für die Perioden der EMAs length1 = input.int(20, title="EMA-1 Period", minval=1) length2 = input.int(25, title="EMA-2 Period", minval=1) length3 = input.int(30, title="EMA-3 Period", minval=1) length4 = input.int(35, title="EMA-4 Period", minval=1) length5 = input.int(40, title="EMA-5 Period", minval=1) length6 = input.int(45, title="EMA-6 Period", minval=1) length7 = input.int(50, title="EMA-7 Period", minval=1) length8 = input.int(55, title="EMA-8 Period", minval=1) // Eingabequelle und Periodenfilter src = input.source(close, title="Source") dropCandles = input.int(1, minval=0, title="Drop First N Candles") // Preisberechnung mit Filter price = na(src[dropCandles]) ? na : src // Berechnung der EMAs ema1 = ta.ema(price, length1) ema2 = ta.ema(price, length2) ema3 = ta.ema(price, length3) ema4 = ta.ema(price, length4) ema5 = ta.ema(price, length5) ema6 = ta.ema(price, length6) ema7 = ta.ema(price, length7) ema8 = ta.ema(price, length8) // EMAs plotten plot(ema1, title="EMA-1", color=color.yellow, linewidth=2) plot(ema2, title="EMA-2", color=color.orange, linewidth=2) plot(ema3, title="EMA-3", color=color.red, linewidth=2) plot(ema4, title="EMA-4", color=color.green, linewidth=2) plot(ema5, title="EMA-5", color=color.purple, linewidth=2) plot(ema6, title="EMA-6", color=color.blue, linewidth=2) plot(ema7, title="EMA-7", color=color.gray, linewidth=2) plot(ema8, title="EMA-8", color=color.black, linewidth=2) // Handelslogik: Long und Short longCondition = ta.crossover(ema1, ema8) and ta.rsi(close, 14) > 50 // EMA crossover + RSI > 50 (Bestätigung) shortCondition = ta.crossunder(ema1, ema8) and ta.rsi(close, 14) < 50 // EMA crossunder + RSI < 50 (Bestätigung) // Stop-Loss und Take-Profit basierend auf ATR atrLength = input.int(14, title="ATR Period", minval=1) atrValue = ta.atr(atrLength) // Risiko-Management: Stop-Loss und Take-Profit riskAmount = input.float(1.0, title="Risk Amount (%)", minval=0.1, maxval=100) crv = input.float(3.0, title="CRV (Chance-Risiko-Verhältnis)", minval=1) // Berechnung des Stop-Loss und Take-Profit capital = strategy.equity risk = (capital * (riskAmount / 100)) stopLossPoints = atrValue * 1.5 // Stop-Loss in Punkten, basierend auf ATR takeProfitPoints = stopLossPoints * crv // Take-Profit auf Basis des CRV // Trailing Stop: Wenn der Preis sich in die richtige Richtung bewegt trailOffset = atrValue * 1.5 // Trailing Stop-Offset auf Basis von ATR trailPrice = close - trailOffset // Long-Position eröffnen und mit Stop-Loss und Take-Profit ausstatten if (longCondition) strategy.entry("Long", strategy.long) strategy.exit("Take Profit/Stop Loss", from_entry="Long", stop=close - stopLossPoints, limit=close + takeProfitPoints, trail_offset=trailOffset, trail_price=trailPrice) // Short-Position eröffnen und mit Stop-Loss und Take-Profit ausstatten if (shortCondition) strategy.entry("Short", strategy.short) strategy.exit("Take Profit/Stop Loss", from_entry="Short", stop=close + stopLossPoints, limit=close - takeProfitPoints, trail_offset=trailOffset, trail_price=trailPrice) // Plotten der Handels-Signale plotshape(longCondition, title="Long Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="Long") plotshape(shortCondition, title="Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Short")
//@version=5 strategy("EMA Ribbon with Trailing Stop & Trend Confirmation", overlay=true) // Eingabewerte für die Perioden der EMAs length1 = input.int(20, title="EMA-1 Period", minval=1) length2 = input.int(25, title="EMA-2 Period", minval=1) length3 = input.int(30, title="EMA-3 Period", minval=1) length4 = input.int(35, title="EMA-4 Period", minval=1) length5 = input.int(40, title="EMA-5 Period", minval=1) length6 = input.int(45, title="EMA-6 Period", minval=1) length7 = input.int(50, title="EMA-7 Period", minval=1) length8 = input.int(55, title="EMA-8 Period", minval=1) // Eingabequelle und Periodenfilter src = input.source(close, title="Source") dropCandles = input.int(1, minval=0, title="Drop First N Candles") // Preisberechnung mit Filter price = na(src[dropCandles]) ? na : src // Berechnung der EMAs ema1 = ta.ema(price, length1) ema2 = ta.ema(price, length2) ema3 = ta.ema(price, length3) ema4 = ta.ema(price, length4) ema5 = ta.ema(price, length5) ema6 = ta.ema(price, length6) ema7 = ta.ema(price, length7) ema8 = ta.ema(price, length8) // EMAs plotten plot(ema1, title="EMA-1", color=color.yellow, linewidth=2) plot(ema2, title="EMA-2", color=color.orange, linewidth=2) plot(ema3, title="EMA-3", color=color.red, linewidth=2) plot(ema4, title="EMA-4", color=color.green, linewidth=2) plot(ema5, title="EMA-5", color=color.purple, linewidth=2) plot(ema6, title="EMA-6", color=color.blue, linewidth=2) plot(ema7, title="EMA-7", color=color.gray, linewidth=2) plot(ema8, title="EMA-8", color=color.black, linewidth=2) // Handelslogik: Long und Short longCondition = ta.crossover(ema1, ema8) and ta.rsi(close, 14) > 50 // EMA crossover + RSI > 50 (Bestätigung) shortCondition = ta.crossunder(ema1, ema8) and ta.rsi(close, 14) < 50 // EMA crossunder + RSI < 50 (Bestätigung) // Stop-Loss und Take-Profit basierend auf ATR atrLength = input.int(14, title="ATR Period", minval=1) atrValue = ta.atr(atrLength) // Risiko-Management: Stop-Loss und Take-Profit riskAmount = input.float(1.0, title="Risk Amount (%)", minval=0.1, maxval=100) crv = input.float(3.0, title="CRV (Chance-Risiko-Verhältnis)", minval=1) // Berechnung des Stop-Loss und Take-Profit capital = strategy.equity risk = (capital * (riskAmount / 100)) stopLossPoints = atrValue * 1.5 // Stop-Loss in Punkten, basierend auf ATR takeProfitPoints = stopLossPoints * crv // Take-Profit auf Basis des CRV // Trailing Stop: Wenn der Preis sich in die richtige Richtung bewegt trailOffset = atrValue * 1.5 // Trailing Stop-Offset auf Basis von ATR trailPrice = close - trailOffset // Long-Position eröffnen und mit Stop-Loss und Take-Profit ausstatten if (longCondition) strategy.entry("Long", strategy.long) strategy.exit("Take Profit/Stop Loss", from_entry="Long", stop=close - stopLossPoints, limit=close + takeProfitPoints, trail_offset=trailOffset, trail_price=trailPrice) // Short-Position eröffnen und mit Stop-Loss und Take-Profit ausstatten if (shortCondition) strategy.entry("Short", strategy.short) strategy.exit("Take Profit/Stop Loss", from_entry="Short", stop=close + stopLossPoints, limit=close - takeProfitPoints, trail_offset=trailOffset, trail_price=trailPrice) // Plotten der Handels-Signale plotshape(longCondition, title="Long Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="Long") plotshape(shortCondition, title="Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Short")
Mehr zu diesem Wert
|
|
Thema | ||
|---|---|---|---|
| 1 | VW Hauptdiskussion | +0,10 % | |
| 2 | Trading- und Aktien-Chat | ||
| 3 | PlasCred Circular Innovations | ±0,00 % | |
| 4 | DAX / Germany 40 Hauptdiskussion | +0,06 % | |
| 5 | Inno | -0,24 % | |
| 6 | NVIDIA Hauptdiskussion | ±0,00 % | |
| 7 | BTC/USD Hauptdiskussion | +0,17 % | |
| 8 | Stellantis | +0,17 % | |
| 9 | Vulcan Energy Ressources - NEU | ±0,00 % | |
| 10 | NIKE Hauptdiskussion | ±0,00 % | Alle Diskussionen |
|
|
Thema | ||
|---|---|---|---|
| 1 | VW Hauptdiskussion | +0,10 % | |
| 2 | PlasCred Circular Innovations | ±0,00 % | |
| 3 | Inno | -0,24 % | |
| 4 | NVIDIA Hauptdiskussion | ±0,00 % | |
| 5 | Vulcan Energy Ressources - NEU | ±0,00 % | |
| 6 | Stellantis | +0,17 % | |
| 7 | NIKE Hauptdiskussion | ±0,00 % | |
| 8 | VONOVIA Hauptdiskussion | +0,12 % | |
| 9 | Quantum Crypto Security | ±0,00 % | |
| 10 | Gamestop💎🙌 | +0,45 % | Alle Diskussionen |