From 72731b2eaed80edd7bfb50d18d5e2b9c3f028e62 Mon Sep 17 00:00:00 2001 From: Telgos Date: Sun, 3 Aug 2025 10:29:51 +0200 Subject: [PATCH] croc_vibes.pine aktualisiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fehler in der MSI-Erkennung behoben; Longmarken werden nicht mehr benötigt; Kleiner Anpassungen und Optimierungen --- croc_vibes.pine | 56 +++++++------------------------------------------ 1 file changed, 7 insertions(+), 49 deletions(-) diff --git a/croc_vibes.pine b/croc_vibes.pine index 65e7abf..5d97939 100644 --- a/croc_vibes.pine +++ b/croc_vibes.pine @@ -1,30 +1,9 @@ // This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ - -// ┌────────────────────────────────────────────────────────────────────────────────────────┐ -// │ │ -// │ ██████╗ ██╗ ██╗ ██╗ ██████╗ ███████╗ ██████╗ │ -// │ ██╔════╝ ██║ ██║ ██║ ██╔══██╗ ██╔════╝ ██╔════╝ │ -// │ ██║ ██║ ██║ ██║ ██████╔╝ █████╗ ╚█████╗ │ -// │ ██║ ╚██╗ ██╔╝ ██║ ██╔══██╗ ██╔══╝ ╚════██╗ │ -// │ ╚██████╗ ╚████╔╝ ██║ ██████╔╝ ███████╗ ██████╔╝ │ -// │ ╚═════╝ ╚═══╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ │ -// │ V3.3 │ -// │ by Telgos │ -// │ │ -// ├────────────────────────────────────────────────────────────────────────────────────────┤ -// │ │ -// │ Danke für die Grundlagen: │ -// │ ray_duke, husky, Audidriver13, mailworm │ -// │ │ -// ├────────────────────────────────────────────────────────────────────────────────────────┤ -// │ │ -// │ Besonderen Dank an amper04, der eine funktionsfähige Basis │ -// │ zur Verfügung gestellt hat. │ -// │ │ -// └────────────────────────────────────────────────────────────────────────────────────────┘ +// CrocVibes by Telgos +// Danke für die Grundlagen und Basisversion: amper04, ray_duke, husky, Audidriver13│ //@version=5 -indicator("CVibes V3.3 by Telgos", overlay=true) +indicator("Croc Vibes V3.4 by Telgos", overlay=true) // === Inputs === // --- Gruppe: Chart-Signale --- @@ -60,10 +39,10 @@ kerze_r = input.source(title="Kerzenfarbe (3) Rot", defval=close, group="Lochstr // --- Gruppe: MSI --- src1 = input.source(close, "Day OverBought 1", group="MSI") src2 = input.source(close, "Week OverBought 2", group="MSI") -src3 = input.source(close, "Week OverBought 5", group="MSI") +src3 = input.source(close, "Week OverBought 4", group="MSI") +MSI_einer_gruen = src1 < 0 or src2 <0 or src3 < 0 // --- Gruppe: Allgemeine Einstellungen --- -show_trade_markers = input.bool(true, title="Long-Einstieg Marken anzeigen", group="Allgemeine Einstellungen") show_blue_dot_labels = input.bool(true, title="Blaue Punkte Labels anzeigen", group="Allgemeine Einstellungen") signal_close = input.source(title="Schließungspreis", defval=close, group="Allgemeine Einstellungen") swing_lookback = input.int(5, title="Swing-Lookback", minval=1, group="Allgemeine Einstellungen") @@ -90,7 +69,7 @@ stephan_zusatzbedingung_erfuellt = (cloud_punkt_long > 0) or (bb_kombi_long > 0) or (aw_rocket_long > 0) or (bgrl_signal > 0) -stephan_setup = (src1 < 0) and (src2 < 0) and (src3 < 0) and (wolke_g > 0) and (trend_s > 0) and (setter_r > 0) and stephan_zusatzbedingung_erfuellt +stephan_setup = MSI_einer_gruen and (wolke_g > 0) and (trend_s > 0) and (setter_r > 0) and stephan_zusatzbedingung_erfuellt // === Ulti Rally (V2-kompatibel) === Kerze_in_wolke_gr = signal_close - wolke_Line_rot @@ -140,30 +119,9 @@ if wolke_r > 0 and blauer_punkt_long < low and not punkt_erfuellt and show_blue_ if wolke_r > 0 and blauer_punkt_long > high and show_blue_dot_labels label.new(bar_index, high + atr * label_offset_mult, text="Hoch verpasst", style=label.style_label_down, color=color.blue, textcolor=color.white, size=size.small) -// === Marken rechts neben letzter Kerze === -tick = syminfo.mintick -entry_price = high + tick -sl_kerze = low - tick -sl_wolke = wolke_Line_rot -sl_swing = ta.lowest(low, swing_lookback) -stop_loss = math.min(math.min(sl_kerze, sl_wolke), sl_swing) -tp_distance = entry_price - stop_loss -take_profit = entry_price + tp_distance - -if barstate.islast and show_trade_markers - line.new(x1=bar_index + 6, y1=entry_price, x2=bar_index + 6, y2=entry_price, color=color.blue, width=2) - label.new(x=bar_index + 7, y=entry_price, text=str.tostring(entry_price, format.mintick), style=label.style_label_left, color=color.blue, textcolor=color.white, size=size.small) - - line.new(x1=bar_index + 6, y1=stop_loss, x2=bar_index + 6, y2=stop_loss, color=color.purple, width=2) - label.new(x=bar_index + 7, y=stop_loss, text=str.tostring(stop_loss, format.mintick), style=label.style_label_left, color=color.purple, textcolor=color.white, size=size.small) - - line.new(x1=bar_index + 6, y1=take_profit, x2=bar_index + 6, y2=take_profit, color=color.green, width=2) - label.new(x=bar_index + 7, y=take_profit, text=str.tostring(take_profit, format.mintick), style=label.style_label_left, color=color.green, textcolor=color.white, size=size.small) - // === Shapes für Screener/Backtest === plotshape(isPearlLong, title="Pearl Long", location=location.abovebar, color=color.new(color.purple, 100), style=shape.labelup, size=size.tiny) plotshape(isPearlShort, title="Pearl Short", location=location.belowbar, color=color.new(color.purple, 100), style=shape.labeldown, size=size.tiny) plotshape(ulti_rally, title="Ulti Rally", location=location.abovebar, color=color.new(color.aqua, 100), style=shape.diamond, size=size.tiny) plotshape(stephan_setup, title="Stephan Setup", location=location.abovebar, color=color.new(color.teal, 100), style=shape.labelup, size=size.tiny) -plotshape(is_bgrl, title="BGRL", location=location.abovebar, color=color.new(color.black, 100), style=shape.triangleup, size=size.tiny) -plotshape(punkt_erfuellt, title="Blauer Punkt erfüllt", location=location.belowbar, color=color.new(color.blue, 100), style=shape.circle, size=size.tiny) \ No newline at end of file +plotshape(is_bgrl, title="BGRL", location=location.abovebar, color=color.new(color.black, 100), style=shape.triangleup, size=size.tiny) \ No newline at end of file