Fragen von Neueinsteigern zu MQL4 und MQL5, Hilfe und Diskussion über Algorithmen und Codes - Seite 1561
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
Entfernen Sie nicht
Sie müssen das Zeichen ändern, wie ich geschrieben habe.
Das habe ich getan, und es werden wie üblich bis zu fünf Verträge eröffnet.
also habe ich es geändert und es werden wie üblich fünf Verträge geöffnet
Addieren Sie dann, um den gesamten Gewinn für den Zeitraum zu berechnen.
Sie verstehen das wieder falsch. Er sagte, er wolle den Gewinn zählen. Die Funktion versuchte, den Verlust des letzten geschlossenen Auftrags zu berechnen, was nicht korrekt war. So hat er am Ende alle verwirrt.
Posten Sie den OnTick()-Code
die Linie finden
OPENORDER("Buy");
und ersetzen sie durch.
eine Linie finden
OPENORDER("Sell");
und ersetzen durch
Sie haben es wieder falsch verstanden. Er sagte, er wolle den Gewinn berechnen. Die Funktion versuchte, den Verlust des letzten geschlossenen Auftrags zu berechnen, was nicht korrekt war. So hat er am Ende alle verwirrt.
die Linie finden
und ersetzen sie durch.
eine Linie finden
und ersetzen sie durch.
Ich habe es so formuliert, dass es bei zwei Verträgen immer noch unbegrenzt ist.
Sie haben selbst gesagt, dass der Gewinn negativ sein kann, und er wollte den Gesamtgewinn des Handels positiv oder negativ erhalten.
Ein Gewinn wird also nur addiert, wenn er positiv ist. Wenn sie negativ ist, handelt es sich um einen Verlust. Um den Gesamtgewinn zu ermitteln, werden alle Gewinne, auch die negativen, zusammengezählt. Und diese Funktion versucht, den Gewinn der letzten Bestellung zu ermitteln, macht es aber falsch und heißt lastloss. Verstehst du das nicht? Ach, du liebe Zeit... Ich bin erschöpft...
Ich habe es so formuliert, aber es ist immer noch unbegrenzt bei zwei Verträgen.
nicht vorhanden in void OnTick
Addieren Sie dann, um den gesamten Gewinn für den Zeitraum zu berechnen.
Kann auch negativ sein...
Und von welchem Gesamtgewinn sprechen wir, wenn Sie nur einen oder einige wenige passende Aufträge bearbeiten, aber nicht alle?"
Irgendetwas hat sie wirklich verwirrt. Die Bemerkung war in Ordnung, es ging nicht um das Addieren und Subtrahieren negativer Zahlen)
Ich mag auch keine Antworten Seek, es ist da)