1.) Sprich doch deutsch hier?
2.) Kriegst Du keinen Compilefehler hier:
TimeCurrent(tm);
Du meinst wahrscheinlich
datetime tm = TimeCurrent();
3.) Ich würde nie schreiben:
Minute()==Ende_Minute
was wenn länger als eine Minute kein Tick kommt?
Mach lieber so etwas wie:
datetime myEoD = StringToTime("22:58");
(So weit ich mich erinnere wird das dann zu einer Zeit des aktuellen Tages - aber probiers besser mal aus.)
Carl hat schon beschrieben wie es sinnvoller geht , aber falls du es noch nicht gefunden hast hier ein Artikel über Zeit.
https://www.mql5.com/en/articles/599
Um die Lokale PC Zeit zu gewinnen nutze :
datetime TimeOfMyPc=TimeLocal();
Gruß Christian
MQL5 Programming Basics: Time
- 2013.04.26
- Dmitry Fedoseev
- www.mql5.com
The article focuses on standard MQL5 functions for working with time, as well as programming techniques and practically useful functions for working with time that are required when creating Expert Advisors and indicators. Particular attention is paid to the general theory of time measurement. This article should be of interest primarily to novice MQL5 programmers.
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
Hello,
i want to try take all my orders out at a specific time on the day, for this i used normaly this code till now
for explanation, the Hour and minutes will be generated by this code
now, in the backtest area, the EA will start at this time, but it ignors, that it should be only run in once
is there a mistake?
thanks for help
amando