Interessanterweise wird hier versucht einen Indikator sowohl im 'indicator_chart_window', als auch im 'indicator_separate_window' zu definieren.
Das ist leider nicht möglich. Also entweder 'indicator_chart_window', oder 'indicator_separate_window'.
Die statische Definition von Plottbuffern ist im MQL5 sowieso ein Krampf.
Ist zwar schon älter dieser Fred, bin aber erst jetzt 'drübergestolpert'.
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
Hallo zusammen, ich programmiere schon einige Zeit, allerdings nur ea s / bisher keine Indikatoren.... die Logik ist doch etwas anders dort. Ich freue mich daher über eure Hilfe. Bei obigem code bekomme ich noch viele Fehlermeldungen
Ich möchte einen Indikator der mir einfach nur eine 1 ausgibt, wenn ein bestimmter Preis in einem bestimmten Zeitraum wieder erreicht wird, ansonsten eine 0.
Beispiel: Open um 8.00h (oderClose um 8.00h). Hat der Kurs diesen Preis am Nachmittag ab 13Uhr des gleichen Tages bis um 7 Uhr des übernächsten Tages wieder erreicht? ja=1 nein=0
Und das dann für jedes Open um 8h. Im Histogramm sollte dann unter dem Open die 1 oder die 0 stehen. Für das letzte Open wäre dann natürlich zunächst noch die 0 weil die zeit für das wiedersehen ja noch nicht begonnen/geendet hat.
Ich hab mich mal an der Programmierung des MACDs und einem anderen Indikator orientiert, komme aber nicht wirklich weiter. Für erfahrene Indikator-Programmierer dürfte das ein Klacks sein, schätze ich.