- Wir können hier Deutsch sprechen :)
- Dein bisschen Code ist zu wenig.
- amando hat hier veröffentlicht, wie man offenen Positionen auswählt die Werte abruft (unten).
- Ich würde beim Eröffnen einer Position einen zukünftigen Zeitpunkt festlegen (TimeCurrent() + n* PeriodSeconds()) und dann danach aktiv werden.
- Übrigens die Liste aller Funktionen (Schlüsselwortsuche mit Ctrl+F) ist hier: https://www.mql5.com/de/docs/function_indices
![Order - Deals - Position - Histroy Order - Deals - Position - Histroy](https://c.mql5.com/36/54/order-deals-position-histroy__1.jpg)
Order - Deals - Position - Histroy
- www.mql5.com
Get all your Deal, Positions and order Information to .csv Files. Ready for Excel import
![MQL5 - Sprache von Handelsstrategien, eingebaut ins Kundenterminal MetaTrader 5](https://c.mql5.com/i/registerlandings/logo-2.png)
Sie verpassen Handelsmöglichkeiten:
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Registrierung
Einloggen
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
Wenn Sie kein Benutzerkonto haben, registrieren Sie sich
I want to force a minimum trade period of 1 bar. For this I did not set TP in orders but only after 1 period has passed.
To find a solution for a minimum trade period has been challenging. Finally I found this:
Setting new TP and SL works but I experience this problem. If TP in 2nd period is overmet, position is not closed but the trade waits till the - in this case - lower TP is met. The problem is that TP are set with `=´ only.A `>=´cannot be set when defining a TP.
How can I force the trade to close in 2nd bar where the TP is set immediatedly (at opening) even when TP is already overmet?
Maybe there is a better way to combine minimum trade period and take all profit in 2nd trade bar even if set TP is lower than profit at open course. Any hint is welcome.