Move StopLoss to BreakEven
- Utilitys
- Christian Schwirtz
- Version: 1.1
- Aktualisiert: 26 September 2024
- Aktivierungen: 5
Dieses Tool für die MetaTrader 5 Handelsplattform, ermöglicht es, den Stop-Loss von offenen Positionen auf Break-Even (Einstiegspreis) plus eine einstellbare Distanz in Punkten zu setzen. Der Stop-Loss wird nur angepasst, wenn die Position bereits im Gewinn ist.
Hauptfunktionen:-
Button:
- Ein Button wird im Chart angezeigt, der den Text "StopLoss to BreakEven" trägt.
- Die Farbe des Buttons kann angepasst werden, standardmäßig ist sie rot.
- Benutzerinteraktion:
- Beim Klick auf den Button wird für alle offenen Positionen, die im Gewinn sind, der Stop-Loss auf den Einstiegspreis plus eine einstellbare Distanz gesetzt (standardmäßig 10 Punkte).
- Stop-Loss-Anpassung:
- Für Kaufpositionen (Buy) wird der Stop-Loss auf den Einstiegspreis plus die Distanz gesetzt, wenn der aktuelle Preis über dem Einstiegspreis liegt.
- Für Verkaufspositionen (Sell) wird der Stop-Loss auf den Einstiegspreis minus die Distanz gesetzt, wenn der aktuelle Preis unter dem Einstiegspreis liegt.
- Falls keine offenen Positionen vorhanden sind, wird eine Informationsmeldung angezeigt.
- Falls ein Fehler bei der Anpassung des Stop-Loss auftritt, wird ebenfalls eine Fehlermeldung ausgegeben.
- distanceInPoints : Die Distanz (in Punkten) zwischen dem aktuellen Preis und dem neuen Stop-Loss (Standard: 10 Punkte).
- buttonColor : Die Farbe des Buttons kann angepasst werden (Standard: Rot).
Zusammengefasst:
Dieses Tool ermöglicht das einfache Setzen von Stop-Loss auf Break-Even plus eine definierte Distanz für alle offenen Positionen, die sich bereits im Gewinn befinden, durch das Klicken auf den Chart-Button.