Angles Ema Probability And Win
- Experten
- Muhittin Cuneydioglu
- Version: 2.0
- Aktualisiert: 8 Dezember 2023
- Aktivierungen: 5
MetaTrader 5 Algorithmischer Handelsroboter
Einführung
- Code-Name: ema19.mq5
- Urheberrecht: Urheberrecht 2023, MetaQuotes Ltd.
- Link: MetaQuotes Ltd.
- Version: 1.00
Parameterliste:
- FastEMAPeriod: Periode des schnellen EMA.
- SlowEMAPeriod: Periode des langsamen EMA.
- LotSize: Losgröße für jeden Handel.
- MaxAngleDifference: Maximale erlaubte Winkelabweichung (Grad).
- MaxEmaDifference: Maximale erlaubte EMA-Unterschiede (Grad).
- HoursBetweenTrades: Stunden zwischen den Trades.
- buySignalEnabled: Kaufsignale aktivieren.
- sellSignalEnabled: Verkaufssignale aktivieren.
- CheckInterval: Intervall für TP- und SL-Überprüfungen (Minuten).
- TrailingStopDistance: Trailing Stop-Abstand (Punkte).
- Timeframe: Zeitrahmen für den Handel.
- MaxOpenPositions: Maximale Anzahl offener Positionen.
Strategie
Dieser MQL5-Code implementiert einen algorithmischen Handelsroboter unter Verwendung von schnellen und langsamen exponentiellen gleitenden Durchschnitten (EMA).
Strategiemerkmale
- EMA-Perioden: Trendanalyse unter Verwendung von schnellen und langsamen EMA-Perioden.
- Losgröße: Feste Losgröße pro Handel.
- Maximale Winkel- und EMA-Unterschiede: Maximale Winkel- und EMA-Unterschiede zur Bestimmung von Eintrittsbedingungen.
- Stündliche Lücke: Mindestabstand zwischen zwei Trades.
- Kauf- und Verkaufssignale: Optionen zum Aktivieren von Kauf- und Verkaufssignalen.
- Häufigkeit der Überprüfung von Take Profit und Stop Loss (TP/SL): Häufigkeit der Überprüfung von TP und SL.
- Trailing Stop: Verwendeter Trailing Stop-Abstand in Trades.
Code-Struktur
Initialisierung:
- Deklaration der erforderlichen Bibliotheken.
- Initialisierung der Handelsklasse.
Externe Eingabeparameter:
- Deklaration von benutzerdefinierten Parametern.
Hauptfunktionen:
- OnTick(): Die Hauptfunktion, die bei jedem Tick ausgeführt wird.
- Überprüfen Sie die Handelsberechtigung.
- Berechnen Sie EMA- und Winkelunterschiede.
- Generieren Sie Kauf-/Verkaufssignale und führen Sie Trades aus.
- Führen Sie TP- und SL-Überprüfungen in festgelegten Intervallen durch.
- CheckTakeProfitAndStopLoss(): Funktion für TP- und SL-Überprüfungen.
Zeitfunktionen:
- OnTimer(): Funktion zur Steuerung der Handelsberechtigungen in bestimmten Intervallen.
Fortschrittskontrolle
- Kontrolle für den minimalen Stundenabstand zwischen Handelsberechtigungen.
- TP und SL werden in regelmäßigen Abständen überprüft und aktualisiert.
- Trades sind durch Trailing Stop geschützt.
Ergebnisse und Fortschritte
- Detaillierte Backtests können durchgeführt werden, um die Leistung des Roboters zu analysieren und zu verbessern.
- Der Code steht für das Feedback der Benutzer und Vorschläge zur weiteren Entwicklung offen.
- Strategieparameter können für eine erhöhte Zuverlässigkeit und Rentabilität optimiert werden.
Danksagungen
Wir danken dem Team von MetaQuotes Ltd. für die Bereitstellung der Plattform und Ressourcen. Benutzerfeedback ist willkommen. Kontaktieren Sie uns hier.