MT4-Codierungshilfe - Seite 2
Seite 2 von 573 ErsteErste 123 LetzteLetzte
Ergebnis 11 bis 20 von 24

Thema: MT4-Codierungshilfe

  1. #11
    Guten Tag, ich habe einen Indior, den ich versuche, von mq4 in mq5 zu konvertieren. Können Sie bei der Umstellung von MetaTrader 4 auf 5 behilflich sein oder mich an das richtige Forum verweisen? Grüße, Mark

  2. #12
    2 Anlage(n) Codierhilfe! Hallo, kann einer von euch, der sich mit mt4-Codierung auskennt, bitte das angehängte Skript neu codieren, da es nach MT4 (böses LOL) Build 600 nicht mehr funktioniert! Zeichnet Daten/vertikale Linie, aber sie sind irgendwie beschädigt. Dieses Skript soll eine CSV-Datei lesen und eine vertikale Linie auf dem Diagramm zeichnen. Die CSV-Datei sollte im klassischen MT4-Format vorliegen: jjjj.mm.tt hh:mm, Text (jeder Text, der auf einer vertikalen Linie gezeichnet werden soll) Ich habe auch eine .csv-Beispieldatei angehängt. Vielen Dank für Ihre Kooperation, Pips mit Ihnen, Simon
    https://www.tradingintuitive.com/att...1829986053.mq4
    https://www.tradingintuitive.com/cry...rice-feed.html

  3. #13
    1 Anlage(n) Hallo Sir, können Sie mir helfen, mit dieser Anzeige, die ich angehängt habe, tatsächlich zeigt diese Anzeige 4 Dezimalstellen im Datenfenster, ist es möglich, 5 Dezimalstellen abma zu ändern
    https://www.tradingintuitive.com/att...1618343863.mq4

  4. #14
    Zitat Zitat von ;
    Sie könnten eine Schleife schreiben, die zurückgeht und die Zeit für jede Kerze überprüft. TimeHour(Time[x]) gibt die Stunde der bestimmten Kerze zurück und TimeMinute(Time[x]) gibt die Minute der bestimmten Kerze zurück. Wenn Stunde und Minute Ihren Kriterien entsprechen, holen Sie sich entweder den Eröffnungs- oder Schlusskurs für diesen Wert von x, indem Sie Open[x] oder Close[x] verwenden. Hoffe das hilft.
    Danke .
    Ich werde das versuchen.

  5. #15

    Zitat Zitat von ;
    Sie könnten eine Schleife schreiben, die zurückgeht und die Zeit für jede Kerze überprüft. TimeHour(Time[x]) gibt die Stunde der bestimmten Kerze zurück und TimeMinute(Time[x]) gibt die Minute der bestimmten Kerze zurück. Wenn Stunde und Minute Ihren Kriterien entsprechen, holen Sie sich entweder den Eröffnungs- oder Schlusskurs für diesen Wert von x, indem Sie Open[x] oder Close[x] verwenden. Hoffe das hilft.
    Sieht so aus, als ob es das tun könnte, was benötigt wird - werde es versuchen. Vielen Dank! Nein

  6. #16
    In meinem obigen Beispiel geben die Funktionen TimeHour und TimeMinute einen ganzzahligen Wert zurück, mit dem Sie vergleichen können, wann der letzte Trade geschlossen wurde. Wenn der Trade beispielsweise um 21:03 Uhr geschlossen wird, prüfen Sie die Stunde (21) und warten dann, bis die aktuelle Kerzenzeit diesem Wert plus eins entspricht und die Minuten bei 00 stehen. Sinnvoll?
    Zitat Zitat von ;
    MT4 Coding HELP!!!! Pulling my hair out!!! (what little I have) Trying to develop a routine that will determine what the top of the next hour is (in back testing). EXAMPLE: If a trade exits at 21:03 I want to trigger another trade to be entered at the top of the next hour (22:00). The normal DateTime functions are of no value because they go by the CURRENT server time and is useless for back testing. Also tried iTime() but didn't have any luck with it as well. PHP Code: <code><span style=�color: #000000�> <span style=�color: #0000BB�></span><span style=�color: #FF8000�>//iftherearenocurrentordersactive
    </span><span style=�color: #007700�>if(</span><span style=�color: #0000BB�>OrderSelect</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>SELECT_BY_POS</span><span style=�color: #007700�>)==</span><span style=�color: #0000BB�>false</span><span style=�color: #007700�>)
    {
    </span><span style=�color: #FF8000�>//thisisusingtheDateTimefunctions(whichIknowdon'twor k)
    //outputoftheroutinewillbeaSTRINGformatedas�HH:MM�(i .e.22:00)
    </span><span style=�color: #0000BB�>stringa</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>TimeToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>iTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>NULL</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>));
    </span><span style=�color: #0000BB�>stringb</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StringSubstr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>a</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>2</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>intc</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToDouble</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>b</span><span style=�color: #007700�>) </span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>stringd</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>DoubleToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>c</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>stringe</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>d</span><span style=�color: #007700�> </span><span style=�color: #DD0000�>�:00�</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>StartTime</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>e</span><span style=�color: #007700�>);
    }
    </span><span style=�color: #0000BB�></span> </span> </code> Any suggestions would be welcome. Keep in mind this needs to work for BACK TESTING
    Zitat Zitat von ;
    MT4 Coding HELP!!!! Pulling my hair out!!! (what little I have) Trying to develop a routine that will determine what the top of the next hour is (in back testing). EXAMPLE: If a trade exits at 21:03 I want to trigger another trade to be entered at the top of the next hour (22:00). The normal DateTime functions are of no value because they go by the CURRENT server time and is useless for back testing. Also tried iTime() but didn't have any luck with it as well. PHP Code: <code><span style=�color: #000000�> <span style=�color: #0000BB�></span><span style=�color: #FF8000�>//iftherearenocurrentordersactive
    </span><span style=�color: #007700�>if(</span><span style=�color: #0000BB�>OrderSelect</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>SELECT_BY_POS</span><span style=�color: #007700�>)==</span><span style=�color: #0000BB�>false</span><span style=�color: #007700�>)
    {
    </span><span style=�color: #FF8000�>//thisisusingtheDateTimefunctions(whichIknowdon'twor k)
    //outputoftheroutinewillbeaSTRINGformatedas�HH:MM�(i .e.22:00)
    </span><span style=�color: #0000BB�>stringa</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>TimeToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>iTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>NULL</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>));
    </span><span style=�color: #0000BB�>stringb</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StringSubstr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>a</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>2</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>intc</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToDouble</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>b</span><span style=�color: #007700�>) </span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>stringd</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>DoubleToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>c</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>stringe</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>d</span><span style=�color: #007700�> </span><span style=�color: #DD0000�>�:00�</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>StartTime</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>e</span><span style=�color: #007700�>);
    }
    </span><span style=�color: #0000BB�></span> </span> </code> Any suggestions would be welcome. Keep in mind this needs to work for BACK TESTING

  7. #17

    Zitat Zitat von ;
    Hallo, wie würden Sie den Eröffnungs- und Schlusskurs für einen bestimmten Zeitraum erhalten? Gibt es eine Funktion in MT4, die dies tut? Zum Beispiel der Eröffnungskurs bei 1200 GMT und der Schlusskurs bei 1700 GMT. Diese Informationen würden dann verwendet, um die Differenz zwischen dem Eröffnungs- und dem Schlusskurs für diesen Zeitraum zu berechnen. Danke CFII
    Sie könnten eine Schleife schreiben, die zurückgeht und die Zeit für jede Kerze überprüft. TimeHour(Time[x]) gibt die Stunde der bestimmten Kerze zurück und TimeMinute(Time[x]) gibt die Minute der bestimmten Kerze zurück. Wenn Stunde und Minute Ihren Kriterien entsprechen, holen Sie sich entweder den Eröffnungs- oder Schlusskurs für diesen Wert von x, indem Sie Open[x] oder Close[x] verwenden. Hoffe das hilft.

  8. #18

    Zitat Zitat von ;
    MT4 Coding HELP!!!! Pulling my hair out!!! (what little I have) Trying to develop a routine that will determine what the top of the next hour is (in back testing). EXAMPLE: If a trade exits at 21:03 I want to trigger another trade to be entered at the top of the next hour (22:00). The normal DateTime functions are of no value because they go by the CURRENT server time and is useless for back testing. Also tried iTime() but didn't have any luck with it as well. PHP Code: <code><span style=�color: #000000�> <span style=�color: #0000BB�></span><span style=�color: #FF8000�>//iftherearenocurrentordersactive
    </span><span style=�color: #007700�>if(</span><span style=�color: #0000BB�>OrderSelect</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>SELECT_BY_POS</span><span style=�color: #007700�>)==</span><span style=�color: #0000BB�>false</span><span style=�color: #007700�>)
    {
    </span><span style=�color: #FF8000�>//thisisusingtheDateTimefunctions(whichIknowdon'twor k)
    //outputoftheroutinewillbeaSTRINGformatedas�HH:MM�(i .e.22:00)
    </span><span style=�color: #0000BB�>stringa</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>TimeToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>iTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>NULL</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>));
    </span><span style=�color: #0000BB�>stringb</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StringSubstr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>a</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>2</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>intc</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToDouble</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>b</span><span style=�color: #007700�>) </span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>stringd</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>DoubleToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>c</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>stringe</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>d</span><span style=�color: #007700�> </span><span style=�color: #DD0000�>�:00�</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>StartTime</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>e</span><span style=�color: #007700�>);
    }
    </span><span style=�color: #0000BB�></span> </span> </code> Any suggestions would be welcome. Keep in mind this needs to work for BACK TESTING
    Vielleicht möchten Sie für Ihre Frage einen neuen Thread starten, anstatt in einem vorhandenen Thread zu posten, der nichts mit Ihrem Problem zu tun hat. Grüße,

  9. #19
    MT4 Coding HELP!!!! Pulling my hair out!!! (what little I have) Trying to develop a routine that will determine what the top of the next hour is (in back testing). EXAMPLE: If a trade exits at 21:03 I want to trigger another trade to be entered at the top of the next hour (22:00). The normal DateTime functions are of no value because they go by the CURRENT server time and is useless for back testing. Also tried iTime() but didn't have any luck with it as well. PHP Code: <code><span style=�color: #000000�> <span style=�color: #0000BB�></span><span style=�color: #FF8000�>//iftherearenocurrentordersactive
    </span><span style=�color: #007700�>if(</span><span style=�color: #0000BB�>OrderSelect</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>SELECT_BY_POS</span><span style=�color: #007700�>)==</span><span style=�color: #0000BB�>false</span><span style=�color: #007700�>)
    {
    </span><span style=�color: #FF8000�>//thisisusingtheDateTimefunctions(whichIknowdon'twor k)
    //outputoftheroutinewillbeaSTRINGformatedas�HH:MM�(i .e.22:00)
    </span><span style=�color: #0000BB�>stringa</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>TimeToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>iTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>NULL</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>));
    </span><span style=�color: #0000BB�>stringb</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StringSubstr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>a</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>2</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>intc</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToDouble</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>b</span><span style=�color: #007700�>) </span><span style=�color: #0000BB�>1</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>stringd</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>DoubleToStr</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>c</span><span style=�color: #007700�>,</span><span style=�color: #0000BB�>0</span><span style=�color: #007700�>);
    </span><span style=�color: #0000BB�>stringe</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>d</span><span style=�color: #007700�> </span><span style=�color: #DD0000�>�:00�</span><span style=�color: #007700�>;
    </span><span style=�color: #0000BB�>StartTime</span><span style=�color: #007700�>=</span><span style=�color: #0000BB�>StrToTime</span><span style=�color: #007700�>(</span><span style=�color: #0000BB�>e</span><span style=�color: #007700�>);
    }
    </span><span style=�color: #0000BB�></span> </span> </code> Any suggestions would be welcome. Keep in mind this needs to work for BACK TESTING

  10. #20

    Zitat Zitat von ;
    Werfen Sie einen Blick auf ein paar Quellcodes für jeden Ihrer Indioren, und Sie werden die Idee verstehen. Sehen Sie sich auch das Time[]-Array in der mql-Hilfedatei an. Es dauert ein wenig, den Code zu studieren und die Hilfedatei zu überprüfen, aber es lohnt sich und wird Ihnen helfen, ein besserer Programmierer zu werden. Viel Glück Lux
    Wäre es zu viel Mühe, einen bestimmten Innenraum anzugeben, der die Open- und Close-Funktionen verwendet, die ich mir ansehen könnte? Ich habe alle auf meinem MT4 installierten Indoors überprüft und keine gefunden.

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Die tradingintuitive Webseite verwendet Cookies
Wir nutzen Cookies, um Ihnen das Webseitenerlebnis bestmöglich anbieten zu können. Durch weitere Nutzung der Webseite erlauben Sie die Nutzung von Cookies. Für weitere Details und wie Sie ggf. diese Einstellungen verändern können, lesen Sie bitte unsere Datenschutzbestimmung. Lesen Sie mehr