{"id":17485,"date":"2025-05-08T10:23:42","date_gmt":"2025-05-08T10:23:42","guid":{"rendered":"https:\/\/socialvps.net\/?p=17485"},"modified":"2025-07-27T01:24:48","modified_gmt":"2025-07-27T01:24:48","slug":"die-grundlagen-von-mql4-wie-man-sein-erstes-forex-ea-erstellt","status":"publish","type":"post","link":"https:\/\/socialvps.net\/de\/die-grundlagen-von-mql4-wie-man-sein-erstes-forex-ea-erstellt\/","title":{"rendered":"Die Grundlagen von MQL4: Wie Sie Ihren ersten Forex EA erstellen"},"content":{"rendered":"<p>SocialVPS \u2014 MetaTrader 4 (MT4) ist eine der beliebtesten Plattformen unter Devisenh\u00e4ndlern, und eine ihrer gr\u00f6\u00dften St\u00e4rken ist die M\u00f6glichkeit, den Handel mit Expert Advisors (EAs) zu automatisieren. Wenn Sie sich schon immer gefragt haben, wie H\u00e4ndler diese automatisierten Handels-Bots erstellen, ist dieser Leitfaden Ihr Ausgangspunkt. In diesem Artikel erl\u00e4utern wir Ihnen die Grundlagen von MQL4 (der Programmiersprache hinter MT4) und zeigen Ihnen, wie Sie Ihren ersten EA erstellen k\u00f6nnen. <a href=\"https:\/\/socialvps.net\/de\/wie-man-einen-forex-handelsroboter-erstellt-schritt-fur-schritt-anleitung\/\" title=\"Wie man einen Forex-Handelsroboter erstellt: Schritt-f\u00fcr-Schritt-Anleitung\">Forex EA<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-mql4-and-why-is-it-important\">Was ist MQL4 und warum ist es wichtig?<\/h2>\n\n\n\n<p>Bevor wir uns in die Codierung st\u00fcrzen, sollten wir verstehen, was MQL4 eigentlich ist.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps-1024x360.webp\" alt=\"MQL4 Anwendungen f\u00fcr Forex EA\" class=\"wp-image-17489\" srcset=\"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps-1024x360.webp 1024w, https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps-300x105.webp 300w, https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps-768x270.webp 768w, https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps-18x6.webp 18w, https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/MQL4-Apps.webp 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>MQL4, oder MetaQuotes Language 4, ist eine hochentwickelte Programmiersprache, die speziell f\u00fcr die Entwicklung von Handelsstrategien auf der MT4-Plattform entwickelt wurde. Mit MQL4 k\u00f6nnen Sie benutzerdefinierte Indikatoren, Skripte und vor allem Expert Advisors erstellen, auch bekannt als Forex-Roboter oder <a href=\"https:\/\/socialvps.net\/de\/ea-scripting-wie-man-forex-handelsalgorithmen-erstellt\/\" title=\"EA-Skripting: So erstellen Sie Forex-Handelsalgorithmen\">Algorithmische Handelsroboter<\/a>.<\/p>\n\n\n\n<p>Warum ist das f\u00fcr Sie wichtig? Weil die Automatisierung Ihrer Strategie es Ihnen erm\u00f6glicht, emotionale Voreingenommenheit zu beseitigen, rund um die Uhr zu handeln und Ideen schneller zu testen, als dies beim manuellen Handel jemals m\u00f6glich w\u00e4re.<\/p>\n\n\n\n<div class=\"wp-block-data443-irp-shortcode irp-shortcode\"><div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/socialvps.net\/de\/ea-scripting-wie-man-forex-handelsalgorithmen-erstellt\/\" target=\"_blank\" rel=\"dofollow\" class=\"s0979bced9cad48ac4c6b080632c92eb7\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">Lesen Sie auch<\/span>&nbsp; <span class=\"postTitle\">EA-Skripting: So erstellen Sie Forex-Handelsalgorithmen<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-forex-ea\">Was ist ein Forex EA?<\/h2>\n\n\n\n<p>Ein Forex EA (Expert Advisor) ist eine in MQL4 geschriebene Software, die Ihre Handelsstrategie automatisiert. Er \u00fcberwacht den Markt, er\u00f6ffnet und schlie\u00dft Gesch\u00e4fte auf der Grundlage der von Ihnen festgelegten Bedingungen und kann Ihnen sogar Warnungen senden. Im Wesentlichen handelt es sich um Ihren pers\u00f6nlichen Handelsassistenten, nur ohne das Gehalt.<\/p>\n\n\n\n<p>Einen Forex-EA zu erstellen ist, als w\u00fcrde man seinem Handelsplan Leben einhauchen. Er folgt den Anweisungen ohne Emotionen, ohne Erm\u00fcdung und ohne Hinterfragung.<\/p>\n\n\n\n<div class=\"wp-block-data443-irp-shortcode irp-shortcode\"><div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/socialvps.net\/de\/was-ist-ein-expert-advisor\/\" target=\"_blank\" rel=\"dofollow\" class=\"s0979bced9cad48ac4c6b080632c92eb7\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">Lesen Sie auch<\/span>&nbsp; <span class=\"postTitle\">Was ist ein Expert Advisor? Automatisiertes Forex-Handelswerkzeug<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tools-youll-need-to-create-your-first-ea\">Tools, die Sie f\u00fcr die Erstellung Ihres ersten EA ben\u00f6tigen<\/h2>\n\n\n\n<p>Lassen Sie uns \u00fcber die grundlegenden Werkzeuge und Einstellungen sprechen, die Sie f\u00fcr den Einstieg ben\u00f6tigen.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MetaTrader 4 Plattform:<\/strong> Download bei Ihrem Makler oder bei der <a href=\"https:\/\/www.metatrader4.com\/en\">offizielle MetaTrader 4-Website<\/a>.<\/li>\n\n\n\n<li><strong>MetaEditor:<\/strong> Wenn Sie MT4 installiert haben, k\u00f6nnen Sie hier Ihren Code schreiben und kompilieren.<\/li>\n\n\n\n<li><strong>Geduld:<\/strong> Programmieren zu lernen, und seien es nur die Grundlagen, braucht Zeit.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-data443-irp-shortcode irp-shortcode\"><div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/socialvps.net\/de\/wie-installiere-ich-ein-expert-advisor-ea-in-metatrader-einfach\/\" target=\"_blank\" rel=\"dofollow\" class=\"s0979bced9cad48ac4c6b080632c92eb7\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">Lesen Sie auch<\/span>&nbsp; <span class=\"postTitle\">So installieren Sie Expert Advisor (EA) in MetaTrader ganz einfach<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"your-first-mql4-forex-ea-step-by-step\">Ihr erster MQL4 Forex EA: Schritt f\u00fcr Schritt<\/h2>\n\n\n\n<p>Jetzt kommt der spa\u00dfige Teil: die Erstellung Ihres allerersten Forex EA. Lassen Sie uns mit einer grundlegenden Handelsstrategie beginnen:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>Kaufen Sie, wenn der gleitende 10-Perioden-Durchschnitt den gleitenden 20-Perioden-Durchschnitt \u00fcbersteigt.<\/em><br><em>Verkaufen Sie, wenn der gleitende Durchschnitt der 10-Periode unter den gleitenden Durchschnitt der 20-Periode f\u00e4llt.<\/em><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-open-metaeditor\">Schritt 1: MetaEditor \u00f6ffnen<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u00d6ffnen Sie Ihre MT4-Plattform.<\/li>\n\n\n\n<li>Klicken Sie auf das MetaEditor-Symbol oder dr\u00fccken Sie <code>F4<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-create-a-new-ea-file\">Schritt 2: Erstellen einer neuen EA-Datei<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Gehen Sie in MetaEditor auf <strong>File \u2192 New \u2192 Expert Advisor (template)<\/strong>.<\/li>\n\n\n\n<li>Nennen Sie es etwas wie <code>EinfachMA_EA<\/code>.<\/li>\n\n\n\n<li>Klicken Sie auf <strong>Next \u2192 Finish<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-write-the-ea-code\">Schritt 3: Schreiben des EA-Codes<\/h3>\n\n\n\n<p>Nachfolgend finden Sie einen vereinfachten EA-Code, den Sie f\u00fcr den Einstieg verwenden k\u00f6nnen:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/+------------------------------------------------------------------+\n\/\/|                                                  SimpleMA_EA.mq4|\n\/\/+------------------------------------------------------------------+\n#property strict\n\ninput int FastMA = 10;\ninput int SlowMA = 20;\ninput double LotSize = 0.1;\n\nint start() {\n    double fastMA = iMA(NULL, 0, FastMA, 0, MODE_SMA, PRICE_CLOSE, 0);\n    double slowMA = iMA(NULL, 0, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 0);\n    double fastMA_prev = iMA(NULL, 0, FastMA, 0, MODE_SMA, PRICE_CLOSE, 1);\n    double slowMA_prev = iMA(NULL, 0, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 1);\n\n    if (fastMA > slowMA &amp;&amp; fastMA_prev &lt;= slowMA_prev) {\n        OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, \"Buy Order\", 0, 0, clrBlue);\n    }\n\n    if (fastMA &lt; slowMA &amp;&amp; fastMA_prev >= slowMA_prev) {\n        OrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, \"Sell Order\", 0, 0, clrRed);\n    }\n\n    return(0);\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/+------------------------------------------------------------------+<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/| SimpleMA_EA.mq4<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/+------------------------------------------------------------------+<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">#property<\/span><span style=\"color: #D4D4D4\"> strict<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">input <\/span><span style=\"color: #569CD6\">int<\/span><span style=\"color: #D4D4D4\"> FastMA = <\/span><span style=\"color: #B5CEA8\">10<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">input <\/span><span style=\"color: #569CD6\">int<\/span><span style=\"color: #D4D4D4\"> SlowMA = <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">input <\/span><span style=\"color: #569CD6\">double<\/span><span style=\"color: #D4D4D4\"> LotSize = <\/span><span style=\"color: #B5CEA8\">0.1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">start<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">double<\/span><span style=\"color: #D4D4D4\"> fastMA = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, FastMA, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, MODE_SMA, PRICE_CLOSE, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">double<\/span><span style=\"color: #D4D4D4\"> slowMA = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, SlowMA, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, MODE_SMA, PRICE_CLOSE, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">double<\/span><span style=\"color: #D4D4D4\"> fastMA_prev = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, FastMA, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, MODE_SMA, PRICE_CLOSE, <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">double<\/span><span style=\"color: #D4D4D4\"> slowMA_prev = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, SlowMA, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, MODE_SMA, PRICE_CLOSE, <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (fastMA &gt; slowMA &amp;&amp; fastMA_prev &lt;= slowMA_prev) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #DCDCAA\">OrderSend<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">Symbol<\/span><span style=\"color: #D4D4D4\">(), OP_BUY, LotSize, Ask, <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">\"Buy Order\"<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, clrBlue);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (fastMA = slowMA_prev) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #DCDCAA\">OrderSend<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">Symbol<\/span><span style=\"color: #D4D4D4\">(), OP_SELL, LotSize, Bid, <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">\"Sell Order\"<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, clrRed);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Dieser Expert Advisor (EA) f\u00fchrt den automatisierten Handel auf MetaTrader 4 mit einer Simple Moving Average (SMA) Crossover-Strategie durch. Wenn der Fast MA \u00fcber dem Slow MA kreuzt, er\u00f6ffnet er einen Kaufauftrag. Wenn der Fast MA unter dem Slow MA kreuzt, wird eine Verkaufsorder er\u00f6ffnet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-compile-and-test\">Schritt 4: Kompilieren und Testen<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Dr\u00fccken Sie die <strong>Compile<\/strong> Schaltfl\u00e4che in MetaEditor.<\/li>\n\n\n\n<li>Gehen Sie zur\u00fcck zu MT4 und ziehen Sie Ihren EA auf einen Chart, um ihn zu testen.<\/li>\n<\/ol>\n\n\n\n<p>Das war's. Sie haben gerade Ihr erstes automatisiertes Handelssystem mit MQL4 erstellt.<\/p>\n\n\n\n<p>Gewiss! Lassen Sie uns dieses MQL4 Expert Advisor Skript aufschl\u00fcsseln <code>SimpleMA_EA.mq4<\/code>Zeile f\u00fcr Zeile, um Ihnen oder jedem Anf\u00e4nger zu helfen, klar zu verstehen, was jeder Teil des Codes tut.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"code-breakdown-and-function-explanations\">Codeaufschl\u00fcsselung und Funktionserl\u00e4uterungen<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>#property strict<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">#<\/span><span style=\"color: #9CDCFE\">property<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">strict<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dies erm\u00f6glicht strengere Fehlerpr\u00fcfungen bei der Kompilierung, um einen sauberen Code zu gew\u00e4hrleisten.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>input int FastMA = 10;\ninput int SlowMA = 20;\ninput double LotSize = 0.1;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">input<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">FastMA<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">10<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">input<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">SlowMA<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">20<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">input<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">double<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">LotSize<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">0.1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Diese sind <strong>input variables<\/strong>, Das bedeutet, dass die Nutzer sie in den EA-Einstellungen leicht \u00e4ndern k\u00f6nnen:\n<ul class=\"wp-block-list\">\n<li><code>FastMA<\/code>: der Zeitraum f\u00fcr die <strong>Fast Moving Average<\/strong>, z.B. 10.<\/li>\n\n\n\n<li><code>SlowMA<\/code>: der Zeitraum f\u00fcr die <strong>Slow Moving Average<\/strong>, z.B. 20.<\/li>\n\n\n\n<li><code>LotSize<\/code>: Wie gro\u00df wird Ihr Handel sein (in diesem Fall 0,1 Lot).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>int start() {<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">start<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Die <code>start()<\/code> Funktion ist die <strong>main loop<\/strong> in MQL4 EAs (verwendet in \u00e4lteren Versionen von MetaTrader 4).<\/li>\n\n\n\n<li>Diese Funktion l\u00e4uft <strong>jedes Mal, wenn ein neuer Tick (Preisaktualisierung)<\/strong> empfangen wird.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>double fastMA = iMA(NULL, 0, FastMA, 0, MODE_SMA, PRICE_CLOSE, 0);\ndouble slowMA = iMA(NULL, 0, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 0);<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">double<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">fastMA<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #4FC1FF\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">FastMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">MODE_SMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">PRICE_CLOSE<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">double<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">slowMA<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #4FC1FF\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">SlowMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">MODE_SMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">PRICE_CLOSE<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Diese Zeilen berechnen die <strong>aktuell<\/strong> Werte der <strong>Fast MA<\/strong> und <strong>Slow MA<\/strong> mit <code>iMA()<\/code>:\n<ul class=\"wp-block-list\">\n<li><code>NULL<\/code>: aktuelles Diagrammsymbol.<\/li>\n\n\n\n<li><code>0<\/code>: aktueller Zeitrahmen.<\/li>\n\n\n\n<li><code>FastMA\/SlowMA<\/code>: Zeitraum f\u00fcr jede MA.<\/li>\n\n\n\n<li><code>0<\/code>Verschiebung (aktuelle Kerze).<\/li>\n\n\n\n<li><code>MODE_SMA<\/code>: verwenden <strong>Simple Moving Average<\/strong>.<\/li>\n\n\n\n<li><code>PRICE_CLOSE<\/code>: basierend auf dem Schlusskurs der Kerze.<\/li>\n\n\n\n<li><code>0<\/code>: aktuelle Kerze.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>double fastMA_prev = iMA(NULL, 0, FastMA, 0, MODE_SMA, PRICE_CLOSE, 1);\ndouble slowMA_prev = iMA(NULL, 0, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 1);<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">double<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">fastMA_prev<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #4FC1FF\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">FastMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">MODE_SMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">PRICE_CLOSE<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">double<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">slowMA_prev<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #DCDCAA\">iMA<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #4FC1FF\">NULL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">SlowMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">MODE_SMA<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #4FC1FF\">PRICE_CLOSE<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Diese Zeilen erhalten die <strong>der vorherigen Kerze<\/strong> MA-Werte (<code>shift = 1<\/code>), so dass wir die aktuelle mit der fr\u00fcheren Crossover-Logik vergleichen k\u00f6nnen.<\/li>\n<\/ul>\n\n\n\t\t<div data-elementor-type=\"container\" data-elementor-id=\"12840\" class=\"elementor elementor-12840\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a59bbdd e-flex e-con-boxed e-con e-child\" data-id=\"a59bbdd\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-b73672e e-con-full e-flex e-con e-child\" data-id=\"b73672e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0844e89 elementor-widget elementor-widget-elementskit-heading\" data-id=\"0844e89\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementskit-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"ekit-wid-con\" ><div class=\"ekit-heading elementskit-section-title-wraper text_left   ekit_heading_tablet-text_left   ekit_heading_mobile-text_center\"><span class=\"elementskit-section-subtitle\">\n\t\t\t\t\t\tLooking to Elevate Your Forex Trading?\n\t\t\t\t\t<\/span><div class=\"ekit-heading--title elementskit-section-title\">Boost Your Trading Performance with Our <span>Forex VPS<\/span><\/div><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6880476 elementor-align-left elementor-tablet-align-left elementor-tablet_extra-align-left elementor-mobile-align-center elementor-widget elementor-widget-button\" data-id=\"6880476\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/socialvps.net\/de\/forex-vps-preise\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Get Started!<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-12a5fce elementor-widget elementor-widget-text-editor\" data-id=\"12a5fce\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>aus <del>8,3 $<\/del> bis 5,7 $\/j\u00e4hrliche Abrechnung<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-b07df3c e-con-full elementor-hidden-laptop elementor-hidden-tablet_extra e-flex e-con e-child\" data-id=\"b07df3c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e0667c7 elementor-widget elementor-widget-image\" data-id=\"e0667c7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"782\" height=\"548\" src=\"https:\/\/socialvps.net\/wp-content\/uploads\/2024\/11\/Server-SocialVPS-Vector-1.webp\" class=\"attachment-full size-full wp-image-12807\" alt=\"SociaVPS bietet das beste Forex-VPS\" srcset=\"https:\/\/socialvps.net\/wp-content\/uploads\/2024\/11\/Server-SocialVPS-Vector-1.webp 782w, https:\/\/socialvps.net\/wp-content\/uploads\/2024\/11\/Server-SocialVPS-Vector-1-300x210.webp 300w, https:\/\/socialvps.net\/wp-content\/uploads\/2024\/11\/Server-SocialVPS-Vector-1-768x538.webp 768w, https:\/\/socialvps.net\/wp-content\/uploads\/2024\/11\/Server-SocialVPS-Vector-1-18x12.webp 18w\" sizes=\"(max-width: 782px) 100vw, 782px\" title=\"SociaVPS bietet das beste Forex-VPS \u2013 SocialVPS\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n\n\n\n<h2 class=\"wp-block-heading\" id=\"trading-logic\">Trading Logik<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"buy-condition\">Bedingung kaufen<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>if (fastMA > slowMA &amp;&amp; fastMA_prev &lt;= slowMA_prev) {\nOrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, \"Buy Order\", 0, 0, clrBlue);\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">fastMA<\/span><span style=\"color: #D4D4D4\"> &gt; <\/span><span style=\"color: #9CDCFE\">slowMA<\/span><span style=\"color: #D4D4D4\"> &amp;&amp; <\/span><span style=\"color: #9CDCFE\">fastMA_prev<\/span><span style=\"color: #D4D4D4\"> &lt;= <\/span><span style=\"color: #9CDCFE\">slowMA_prev<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">OrderSend<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">Symbol<\/span><span style=\"color: #D4D4D4\">(), <\/span><span style=\"color: #4FC1FF\">OP_BUY<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">LotSize<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">Ask<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">\"Buy Order\"<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">clrBlue<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dieser Block pr\u00fcft:\n<ul class=\"wp-block-list\">\n<li>Ist die Fast MA <strong>derzeit oben<\/strong> der Slow MA?<\/li>\n\n\n\n<li>War die Fast MA <strong>unter oder gleich<\/strong> zum Slow MA in der <strong>vorherige Kerze<\/strong>?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Wenn <strong>ja<\/strong>l\u00f6st er eine <strong>Bestellung kaufen<\/strong> mit:\n<ul class=\"wp-block-list\">\n<li><code>Symbol()<\/code>: aktuelles Chartpaar (z.B. EURUSD).<\/li>\n\n\n\n<li><code>OP_BUY<\/code>Art der Bestellung.<\/li>\n\n\n\n<li><code>LotSize<\/code>: Losgr\u00f6\u00dfe.<\/li>\n\n\n\n<li><code>Ask<\/code>: Aktueller Briefkurs (Kaufkurs).<\/li>\n\n\n\n<li><code>2<\/code>: Schlupf.<\/li>\n\n\n\n<li><code>0, 0<\/code>: kein Stop Loss oder Take Profit.<\/li>\n\n\n\n<li><code>\"Buy Order\"<\/code>: Kommentar zur Bestellung.<\/li>\n\n\n\n<li><code>clrBlue<\/code>: Farbe, die in der Tabelle f\u00fcr die Bestellung angegeben ist.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sell-condition\">Verkaufen Zustand<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>if (fastMA &lt; slowMA &amp;&amp; fastMA_prev >= slowMA_prev) {\nOrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, \"Sell Order\", 0, 0, clrRed);\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C586C0\">if<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">fastMA<\/span><span style=\"color: #D4D4D4\"> &lt; <\/span><span style=\"color: #9CDCFE\">slowMA<\/span><span style=\"color: #D4D4D4\"> &amp;&amp; <\/span><span style=\"color: #9CDCFE\">fastMA_prev<\/span><span style=\"color: #D4D4D4\"> &gt;= <\/span><span style=\"color: #9CDCFE\">slowMA_prev<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">OrderSend<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #DCDCAA\">Symbol<\/span><span style=\"color: #D4D4D4\">(), <\/span><span style=\"color: #4FC1FF\">OP_SELL<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">LotSize<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">Bid<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">\"Sell Order\"<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">clrRed<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dieser Block pr\u00fcft:\n<ul class=\"wp-block-list\">\n<li>Ist die Fast MA <strong>jetzt unten<\/strong> der Slow MA?<\/li>\n\n\n\n<li>War die Fast MA <strong>\u00fcber oder gleich<\/strong> zum Slow MA vorher?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Wenn <strong>ja<\/strong>platziert sie eine <strong>Verkaufsauftrag<\/strong> mit <code>OrderSend()<\/code> mit denselben Parametern, aber f\u00fcr <code>OP_SELL<\/code>.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\" data-no-auto-translation=\"\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>return(0);\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Beendet die <code>start()<\/code> Funktion und gibt 0 zur\u00fcck (f\u00fcr die Funktionalit\u00e4t nicht erforderlich, aber Standardsyntax).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next-steps-in-building-better-eas\">Die n\u00e4chsten Schritte zum Aufbau besserer EAs<\/h2>\n\n\n\n<p>Sobald Ihr EA funktioniert, werden Sie ihn wahrscheinlich verbessern wollen. Das k\u00f6nnen Sie:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>hinzuf\u00fcgen <strong>Verluststopp<\/strong> und <strong>Gewinnmitnahme<\/strong> Logik.<\/li>\n\n\n\n<li>Umsetzung <strong>Nachlaufstopps<\/strong>.<\/li>\n\n\n\n<li>Mehr verwenden <strong>Indikatoren<\/strong> oder benutzerdefinierte Filter.<\/li>\n\n\n\n<li>einbeziehen. <strong>Risikomanagement<\/strong> Merkmale.<\/li>\n<\/ul>\n\n\n\n<p>Die M\u00f6glichkeiten sind endlos. Je mehr Sie lernen, desto leistungsf\u00e4higer wird Ihr Forex EA.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-use-a-forex-vps-for-your-expert-advisor\">Warum ein Forex VPS f\u00fcr Ihr Expert Advisor verwenden?<\/h2>\n\n\n\n<p>An dieser Stelle werden Sie vielleicht denken: <em>\"Cool, ich habe meinen EA gemacht. Aber muss ich meinen Computer 24\/7 eingeschaltet lassen?\"<\/em><\/p>\n\n\n\n<p>Die Antwort ist nein, daf\u00fcr ist ein Forex VPS gedacht. Ein Virtual Private Server (VPS) erm\u00f6glicht es Ihrem EA, nonstop auf einem Remote-Server zu laufen, was Ihnen eine stabile Betriebszeit, low latency und einen ununterbrochenen Handel erm\u00f6glicht, was besonders f\u00fcr den automatisierten Handel wichtig ist, <a href=\"https:\/\/socialvps.net\/de\/wie-man-ein-ea-oder-einen-roboter-in-einen-forex-vps-einfugt\/\">Forex-Roboter<\/a> Systeme und algorithmische Strategien.<\/p>\n\n\n\n<p>Die Verwendung eines VPS stellt sicher, dass Ihr EA auch dann noch funktioniert, wenn Ihr Internet ausf\u00e4llt oder Ihr PC abst\u00fcrzt.<br>Wenn Sie es mit der Automatisierung ernst meinen, brauchen Sie ein Forex VPS. Holen Sie sich Ihr eigenes leistungsstarkes Forex VPS von SocialVPS und behalten Sie Ihren EA <a href=\"https:\/\/socialvps.net\/de\/kann-mt4-laufen-reibungslos-auf-8gb-ram-vps-volle-aufschlusselung-innen\/\">reibungsloser Ablauf<\/a> 24\/7.<\/p>\n\n\n\n<div class=\"wp-block-data443-irp-shortcode irp-shortcode\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faqs\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-long-does-it-take-to-learn-mql4\">Wie lange dauert es, MQL4 zu lernen?<\/h3>\n\n\n\n<p>Als Anf\u00e4nger k\u00f6nnen Sie in wenigen Tagen mit dem Schreiben einfacher EAs beginnen. Das Erlernen fortgeschrittener Funktionen kann einige Wochen oder Monate dauern, je nachdem, wie engagiert Sie sind.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-create-a-forex-ea-without-coding\">Kann ich einen Forex EA ohne Kodierung erstellen?<\/h3>\n\n\n\n<p>Ja, es gibt EA-Builder ohne Code, die online verf\u00fcgbar sind, aber sie sind oft begrenzt. Das Erlernen von MQL4 gibt Ihnen die volle Kontrolle und Flexibilit\u00e4t \u00fcber Ihre Strategien.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"is-a-forex-ea-profitable\">Ist ein Forex EA profitabel?<\/h3>\n\n\n\n<p>Ein Forex EA kann profitabel sein, wenn er auf einer soliden Strategie basiert und gut getestet ist. Backtesting und Optimierung sind entscheidend f\u00fcr den langfristigen Erfolg.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-use-the-same-ea-on-different-currency-pairs\">Kann ich denselben EA f\u00fcr verschiedene W\u00e4hrungspaare verwenden?<\/h3>\n\n\n\n<p>Ja, aber m\u00f6glicherweise m\u00fcssen Sie die Einstellungen (wie MA-Perioden oder Losgr\u00f6\u00dfe) an verschiedene Paare oder Zeitrahmen anpassen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-should-i-run-my-forex-ea-on-a-vps\">Warum sollte ich meinen Forex EA auf einem VPS laufen lassen?<\/h3>\n\n\n\n<p>Mit einem VPS bleibt Ihr EA rund um die Uhr online, <a href=\"https:\/\/socialvps.net\/de\/auswirkungen-von-ausfallzeiten-auf-devisenservern-und-wie-man-sie-verhindern-kann\/\" target=\"_blank\" rel=\"noopener noreferrer\">verhindert Ausfallzeiten<\/a>, und verbessert die Ausf\u00fchrungsgeschwindigkeit, die auf schnelllebigen M\u00e4rkten \u00fcber Erfolg oder Misserfolg Ihrer Strategie entscheiden kann.<\/p>","protected":false},"excerpt":{"rendered":"<p>SocialVPS \u2014 MetaTrader 4 (MT4) is one of the most popular platforms among Forex traders, and one of its biggest strengths is the ability to automate trades using Expert Advisors (EAs). If you\u2019ve ever wondered how traders build those automated trading bots, this guide is your starting point. In this article, we\u2019ll break down the [&hellip;]<\/p>","protected":false},"author":6,"featured_media":17487,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[117],"class_list":["post-17485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-robot-forex"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/posts\/17485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/comments?post=17485"}],"version-history":[{"count":0,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/posts\/17485\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/media\/17487"}],"wp:attachment":[{"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/media?parent=17485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/categories?post=17485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/socialvps.net\/de\/wp-json\/wp\/v2\/tags?post=17485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}