{"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":"mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9","status":"publish","type":"post","link":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/","title":{"rendered":"MQL4\u306e\u57fa\u790e\uff1a\u521d\u3081\u3066\u306eFX EA\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"<p class=\"wp-block-paragraph\">SocialVPS \u2014 MetaTrader 4\uff08MT4\uff09\u306f\u3001FX\u30c8\u30ec\u30fc\u30c0\u30fc\u306e\u9593\u3067\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e1\u3064\u3067\u3042\u308a\u3001\u305d\u306e\u6700\u5927\u306e\u5f37\u307f\u306e1\u3064\u306f\u3001Expert Advisors\uff08EA\uff09\u3092\u4f7f\u7528\u3057\u3066\u53d6\u5f15\u3092\u81ea\u52d5\u5316\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002\u30c8\u30ec\u30fc\u30c0\u30fc\u304c\u3069\u306e\u3088\u3046\u306b\u81ea\u52d5\u58f2\u8cb7\u30dc\u30c3\u30c8\u3092\u69cb\u7bc9\u3057\u3066\u3044\u308b\u306e\u304b\u4e0d\u601d\u8b70\u306b\u601d\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u65b9\u306f\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001MQL4\uff08MT4\u306e\u80cc\u5f8c\u306b\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\uff09\u306e\u57fa\u672c\u3092\u5206\u89e3\u3057\u3001\u6700\u521d\u306eEA\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 <a href=\"https:\/\/socialvps.net\/ja\/%e5%a4%96%e5%9b%bd%e7%82%ba%e6%9b%bf%e5%8f%96%e5%bc%95%e3%83%ad%e3%83%9c%e3%83%83%e3%83%88%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9%e3%82%b9%e3%83%86%e3%83%83%e3%83%97%e3%83%90%e3%82%a4%e3%82%b9%e3%83%86\/\" title=\"FX\u53d6\u5f15\u30ed\u30dc\u30c3\u30c8\u306e\u4f5c\u308a\u65b9\uff1a\u30b9\u30c6\u30c3\u30d7\u30fb\u30d0\u30a4\u30fb\u30b9\u30c6\u30c3\u30d7\u30fb\u30ac\u30a4\u30c9\">\u30d5\u30a9\u30ec\u30c3\u30af\u30b9EA<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-mql4-and-why-is-it-important\">MQL4\u3068\u306f\u4f55\u304b\u3001\u306a\u305c\u91cd\u8981\u306a\u306e\u304b\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u5165\u308b\u524d\u306b\u3001MQL4\u3068\u306f\u4f55\u304b\u3092\u7406\u89e3\u3057\u3088\u3046\u3002<\/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=\"FXEA\u7528MQL4\u30a2\u30d7\u30ea\" 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 class=\"wp-block-paragraph\">MQL4\u3001\u307e\u305f\u306fMetaQuotes Language 4\u306f\u3001MT4\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u4e0a\u3067\u53d6\u5f15\u6226\u7565\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u7279\u5225\u306b\u8a2d\u8a08\u3055\u308c\u305f\u9ad8\u6c34\u6e96\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002MQL4\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u305d\u3057\u3066\u6700\u3082\u91cd\u8981\u306aExpert Advisors\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 <a href=\"https:\/\/socialvps.net\/ja\/ea%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0-fx%e5%8f%96%e5%bc%95%e3%82%a2%e3%83%ab%e3%82%b4%e3%83%aa%e3%82%ba%e3%83%a0%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95\/\" title=\"EA\u30b9\u30af\u30ea\u30d7\u30c8\uff1aFX\u53d6\u5f15\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u4f5c\u6210\u65b9\u6cd5\">\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u53d6\u5f15\u30dc\u30c3\u30c8<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u305c\u3053\u308c\u304c\u91cd\u8981\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u306a\u305c\u306a\u3089\u3001\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u611f\u60c5\u7684\u306a\u30d0\u30a4\u30a2\u30b9\u3092\u53d6\u308a\u9664\u304d\u300124\u6642\u9593365\u65e5\u53d6\u5f15\u3057\u3001\u624b\u52d5\u53d6\u5f15\u3067\u306f\u4e0d\u53ef\u80fd\u306a\u307b\u3069\u8fc5\u901f\u306b\u30a2\u30a4\u30c7\u30a2\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002<\/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\/ja\/ea%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0-fx%e5%8f%96%e5%bc%95%e3%82%a2%e3%83%ab%e3%82%b4%e3%83%aa%e3%82%ba%e3%83%a0%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95\/\" target=\"_blank\" rel=\"dofollow\" class=\"sea01179e375f36fa95dbce90161cfb25\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">\u8aad\u3093\u3067\u307f\u308b<\/span>&nbsp; <span class=\"postTitle\">EA\u30b9\u30af\u30ea\u30d7\u30c8\uff1aFX\u53d6\u5f15\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u4f5c\u6210\u65b9\u6cd5<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-forex-ea\">Forex EA\u3068\u306f\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Forex EA (Expert Advisor)\u306fMQL4\u3067\u66f8\u304b\u308c\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3001\u53d6\u5f15\u6226\u7565\u3092\u81ea\u52d5\u5316\u3057\u307e\u3059\u3002EA\u306f\u30de\u30fc\u30b1\u30c3\u30c8\u3092\u30e2\u30cb\u30bf\u30fc\u3057\u3001\u3042\u306a\u305f\u304c\u5b9a\u7fa9\u3057\u305f\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u53d6\u5f15\u3092\u958b\u59cb\u30fb\u7d42\u4e86\u3057\u3001\u30a2\u30e9\u30fc\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u3001\u7d66\u4e0e\u3092\u9664\u3044\u305f\u500b\u4eba\u7684\u306a\u30c8\u30ec\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u306e\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">FX\u306eEA\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u3001\u3042\u306a\u305f\u306e\u53d6\u5f15\u30d7\u30e9\u30f3\u306b\u547d\u3092\u5439\u304d\u8fbc\u3080\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u611f\u60c5\u3082\u75b2\u52b4\u3082\u63a8\u6e2c\u3082\u306a\u304f\u3001\u6307\u793a\u901a\u308a\u306b\u52d5\u304d\u307e\u3059\u3002<\/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\/ja\/%e3%82%a8%e3%82%ad%e3%82%b9%e3%83%91%e3%83%bc%e3%83%88%e3%83%bb%e3%82%a2%e3%83%89%e3%83%90%e3%82%a4%e3%82%b6%e3%83%bc%e3%81%a8%e3%81%af\/\" target=\"_blank\" rel=\"dofollow\" class=\"sea01179e375f36fa95dbce90161cfb25\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">\u8aad\u3093\u3067\u307f\u308b<\/span>&nbsp; <span class=\"postTitle\">\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30a2\u30c9\u30d0\u30a4\u30b6\u30fc\u3068\u306f\uff1fFX\u81ea\u52d5\u58f2\u8cb7\u30c4\u30fc\u30eb<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tools-youll-need-to-create-your-first-ea\">\u6700\u521d\u306eEA\u4f5c\u6210\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u7684\u306a\u30c4\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3088\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MetaTrader 4 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0<\/strong> \u30d6\u30ed\u30fc\u30ab\u30fc\u307e\u305f\u306f <a href=\"https:\/\/www.metatrader4.com\/en\">MetaTrader 4\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>.<\/li>\n\n\n\n<li><strong>\u30e1\u30bf\u30a8\u30c7\u30a3\u30bf\u30fc<\/strong> MT4\u3068\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u3053\u3053\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5fcd\u8010\uff1a<\/strong> \u30b3\u30fc\u30c9\u3092\u5b66\u3076\u306b\u306f\u3001\u305f\u3068\u3048\u57fa\u672c\u7684\u306a\u3053\u3068\u3067\u3042\u3063\u3066\u3082\u6642\u9593\u304c\u304b\u304b\u308b\u3002<\/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\/ja\/%e3%83%a1%e3%82%bf%e3%83%88%e3%83%ac%e3%83%bc%e3%83%80%e3%83%bc%e3%81%a7%e3%82%a8%e3%82%ad%e3%82%b9%e3%83%91%e3%83%bc%e3%83%88%e3%82%a2%e3%83%89%e3%83%90%e3%82%a4%e3%82%b6%e3%83%bcea%e3%82%92%e7%b0%a1\/\" target=\"_blank\" rel=\"dofollow\" class=\"sea01179e375f36fa95dbce90161cfb25\"><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\">\u8aad\u3093\u3067\u307f\u308b<\/span>&nbsp; <span class=\"postTitle\">\u30e1\u30bf\u30c8\u30ec\u30fc\u30c0\u30fc\u306bExpert Advisor\uff08EA\uff09\u3092\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/span><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"your-first-mql4-forex-ea-step-by-step\">\u521d\u3081\u3066\u306eMQL4 Forex EA: \u30b9\u30c6\u30c3\u30d7\u30fb\u30d0\u30a4\u30fb\u30b9\u30c6\u30c3\u30d7<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3066\u3001\u3053\u3053\u304b\u3089\u304c\u697d\u3057\u3044\u3068\u3053\u308d\u3067\u3059\u3002\u57fa\u672c\u7684\u306a\u53d6\u5f15\u6226\u7565\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>10\u671f\u9593\u79fb\u52d5\u5e73\u5747\u7dda\u304c20\u671f\u9593\u79fb\u52d5\u5e73\u5747\u7dda\u3092\u4e0a\u56de\u3063\u305f\u3089\u8cb7\u3044\u3002<\/em><br><em>10\u671f\u9593\u79fb\u52d5\u5e73\u5747\u7dda\u304c20\u671f\u9593\u79fb\u52d5\u5e73\u5747\u7dda\u3092\u4e0b\u56de\u3063\u305f\u3089\u58f2\u308a\u3002<\/em><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-open-metaeditor\">\u30b9\u30c6\u30c3\u30d71: MetaEditor\u3092\u958b\u304f<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>MT4\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>MetaEditor\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u304b <code>F4<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-create-a-new-ea-file\">\u30b9\u30c6\u30c3\u30d72\uff1a\u65b0\u898fEA\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>MetaEditor\u3067 <strong>File \u2192 New \u2192 Expert Advisor (template)<\/strong>.<\/li>\n\n\n\n<li>\u6b21\u306e\u3088\u3046\u306a\u540d\u524d\u3092\u4ed8\u3051\u308b\u3002 <code>\u30b7\u30f3\u30d7\u30ebMA_EA<\/code>.<\/li>\n\n\n\n<li>\u30af\u30ea\u30c3\u30af <strong>Next \u2192 Finish<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-write-the-ea-code\">\u30b9\u30c6\u30c3\u30d73\uff1aEA\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306f\u3001\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u7c21\u7565\u5316\u3055\u308c\u305fEA\u30b3\u30fc\u30c9\u3067\u3059\uff1a<\/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\">\/\/| \u30b7\u30f3\u30d7\u30ebMA_EA.mq4|\u3002<\/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,, 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,, 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\u3001 <\/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 class=\"wp-block-paragraph\">\u3053\u306eExpert Advisor\uff08EA\uff09\u306f\u3001\u5358\u7d14\u79fb\u52d5\u5e73\u5747\uff08SMA\uff09\u30af\u30ed\u30b9\u30aa\u30fc\u30d0\u30fc\u6226\u7565\u3092\u4f7f\u7528\u3057\u3066\u3001MetaTrader 4\u4e0a\u3067\u81ea\u52d5\u58f2\u8cb7\u3092\u884c\u3044\u307e\u3059\u3002Fast MA\u304cSlow MA\u3092\u4e0a\u56de\u308b\u3068\u3001\u8cb7\u3044\u6ce8\u6587\u3092\u767a\u6ce8\u3057\u307e\u3059\u3002Fast MA\u304cSlow MA\u3092\u4e0b\u56de\u308b\u3068\u3001\u58f2\u308a\u6ce8\u6587\u3092\u767a\u6ce8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-compile-and-test\">\u30b9\u30c6\u30c3\u30d74\uff1a\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u30c6\u30b9\u30c8<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u3092\u6253\u3064\u3002 <strong>Compile<\/strong> \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<\/li>\n\n\n\n<li>MT4\u306b\u623b\u308a\u3001EA\u3092\u30c1\u30e3\u30fc\u30c8\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067\u7d42\u308f\u308a\u3067\u3059\u3002\u3053\u308c\u3067MQL4\u3092\u4f7f\u3063\u3066\u6700\u521d\u306e\u81ea\u52d5\u58f2\u8cb7\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u6210\u3057\u305f\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u78ba\u304b\u306b\uff01\u3053\u306eMQL4 Expert Advisor\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5206\u89e3\u3057\u3066\u307f\u3088\u3046\u3002 <code>\u30b7\u30f3\u30d7\u30ebMA_EA.mq4<\/code>\u3042\u306a\u305f\u3084\u521d\u5fc3\u8005\u304c\u3001\u30b3\u30fc\u30c9\u306e\u5404\u90e8\u5206\u304c\u4f55\u3092\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u660e\u78ba\u306b\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u4e00\u884c\u4e00\u884c\u4e01\u5be7\u306b\u8aac\u660e\u3059\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"code-breakdown-and-function-explanations\">\u30b3\u30fc\u30c9\u5206\u89e3\u3068\u6a5f\u80fd\u8aac\u660e<\/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>\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u304c\u3088\u308a\u53b3\u3057\u304f\u306a\u308a\u3001\u3088\u308a\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3002<\/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>\u3053\u308c\u3089\u306f <strong>input variables<\/strong>\u3064\u307e\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306fEA\u306e\u8a2d\u5b9a\u3067\u7c21\u5358\u306b\u5909\u66f4\u3067\u304d\u308b\uff1a\n<ul class=\"wp-block-list\">\n<li><code>FastMA<\/code>: \u306e\u671f\u9593\u3067\u3042\u308b\u3002 <strong>Fast Moving Average<\/strong>\u4f8b\u3048\u3070\u300110.<\/li>\n\n\n\n<li><code>SlowMA<\/code>: \u306e\u671f\u9593\u3067\u3042\u308b\u3002 <strong>Slow Moving Average<\/strong>\u4f8b\u3048\u3070\u300120.<\/li>\n\n\n\n<li><code>LotSize<\/code>: \u3042\u306a\u305f\u306e\u30c8\u30ec\u30fc\u30c9\u306e\u5927\u304d\u3055\uff08\u3053\u306e\u5834\u5408\u306f0.1\u30ed\u30c3\u30c8\uff09\u3002<\/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>\u306b\u3064\u3044\u3066 <code>start()<\/code> \u95a2\u6570\u306f <strong>main loop<\/strong> MQL4 EA\uff08\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306eMetaTrader 4\u3067\u4f7f\u7528\uff09\u3067\u4f7f\u7528\u3002<\/li>\n\n\n\n<li>\u3053\u306e\u95a2\u6570\u306f <strong>\u65b0\u3057\u3044\u30c6\u30a3\u30c3\u30af\uff08\u4fa1\u683c\u66f4\u65b0\uff09\u304c\u3042\u308b\u305f\u3073\u306b<\/strong> \u3092\u53d7\u4fe1\u3057\u305f\u3002<\/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>\u3053\u308c\u3089\u306e\u30e9\u30a4\u30f3\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8a08\u7b97\u3059\u308b\u3002 <strong>\u73fe\u5728<\/strong> \u306e\u5024\u3067\u3042\u308b\u3002 <strong>Fast MA<\/strong> \u305d\u3057\u3066 <strong>Slow MA<\/strong> \u4f7f\u7528\u3057\u3066 <code>iMA()<\/code>:\n<ul class=\"wp-block-list\">\n<li><code>NULL<\/code>: \u73fe\u5728\u306e\u30c1\u30e3\u30fc\u30c8\u30b7\u30f3\u30dc\u30eb\u3002<\/li>\n\n\n\n<li><code>0<\/code>: \u73fe\u5728\u306e\u30bf\u30a4\u30e0\u30d5\u30ec\u30fc\u30e0<\/li>\n\n\n\n<li><code>FastMA\/SlowMA<\/code>: \u5404MA\u306e\u671f\u9593\u3002<\/li>\n\n\n\n<li><code>0<\/code>: \u30b7\u30d5\u30c8\uff08\u73fe\u5728\u306e\u30ad\u30e3\u30f3\u30c9\u30eb\uff09\u3002<\/li>\n\n\n\n<li><code>MODE_SMA<\/code>: \u4f7f\u7528 <strong>Simple Moving Average<\/strong>.<\/li>\n\n\n\n<li><code>PRICE_CLOSE<\/code>: \u30ed\u30fc\u30bd\u30af\u8db3\u306e\u7d42\u5024\u3092\u57fa\u6e96\u3068\u3059\u308b\u3002<\/li>\n\n\n\n<li><code>0<\/code>: \u73fe\u5728\u306e\u30ad\u30e3\u30f3\u30c9\u30eb<\/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>\u3053\u308c\u3089\u306e\u30e9\u30a4\u30f3\u306f <strong>\u524d\u306e\u30ad\u30e3\u30f3\u30c9\u30eb<\/strong> MA\u5024(<code>shift = 1<\/code>\u305d\u306e\u305f\u3081\u3001\u30af\u30ed\u30b9\u30aa\u30fc\u30d0\u30fc\u30fb\u30ed\u30b8\u30c3\u30af\u306b\u3064\u3044\u3066\u3001\u73fe\u5728\u3068\u4ee5\u524d\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/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\/ja\/forex-vps%e3%81%ae%e4%be%a1%e6%a0%bc\/\">\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>\u304b\u3089 <del>8.3\u30c9\u30eb<\/del> \u5e74\u9593\u8acb\u6c42\u984d5.7\u30c9\u30eb\u307e\u3067<\/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\u306f\u6700\u9ad8\u306eFX VPS\u3092\u63d0\u4f9b\u3057\u307e\u3059\" 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\u306f\u6700\u9ad8\u306eFX VPS\u3092\u63d0\u4f9b\u3057\u307e\u3059 - 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\u30ed\u30b8\u30c3\u30af<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"buy-condition\">\u8cfc\u5165\u6761\u4ef6<\/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>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff1a\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30a1\u30b9\u30c8MA <strong>\u73fe\u5728<\/strong> \u30b9\u30ed\u30fcMA\uff1f<\/li>\n\n\n\n<li>\u30d5\u30a1\u30b9\u30c8MA\u3068\u306f\u4f55\u3060\u3063\u305f\u306e\u304b\uff1f <strong>\u4ee5\u4e0b<\/strong> \u3092\u30b9\u30ed\u30fcMA\u306b\u5909\u66f4\u3057\u305f\u3002 <strong>\u524d\u30ad\u30e3\u30f3\u30c9\u30eb<\/strong>?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u3082\u3057 <strong>\u306f\u3044<\/strong>\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u3002 <strong>\u8cb7\u3044\u6ce8\u6587<\/strong> \u3068\uff1a\n<ul class=\"wp-block-list\">\n<li><code>Symbol()<\/code>: \u73fe\u5728\u306e\u30c1\u30e3\u30fc\u30c8\u30da\u30a2\uff08\u4f8b\uff1aEURUSD\uff09\u3002<\/li>\n\n\n\n<li><code>OP_BUY<\/code>: \u30aa\u30fc\u30c0\u30fc\u30bf\u30a4\u30d7\u3002<\/li>\n\n\n\n<li><code>LotSize<\/code>: \u30ed\u30c3\u30c8\u91cf<\/li>\n\n\n\n<li><code>Ask<\/code>: \u73fe\u5728\u306e\u58f2\u5024\uff08\u8cb7\u5024\uff09\u3002<\/li>\n\n\n\n<li><code>2<\/code>: \u30b9\u30ea\u30c3\u30d7\u3002<\/li>\n\n\n\n<li><code>0, 0<\/code>: \u30b9\u30c8\u30c3\u30d7\u30ed\u30b9\u3084\u30c6\u30a4\u30af\u30d7\u30ed\u30d5\u30a3\u30c3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li><code>\"Buy Order\"<\/code>: \u30aa\u30fc\u30c0\u30fc\u30b3\u30e1\u30f3\u30c8<\/li>\n\n\n\n<li><code>clrBlue<\/code>: \u30aa\u30fc\u30c0\u30fc\u30c1\u30e3\u30fc\u30c8\u306b\u793a\u3055\u308c\u305f\u8272\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sell-condition\">\u8ca9\u58f2\u6761\u4ef6<\/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>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff1a\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30a1\u30b9\u30c8MA <strong>\u4ee5\u4e0b<\/strong> \u30b9\u30ed\u30fcMA\uff1f<\/li>\n\n\n\n<li>\u30d5\u30a1\u30b9\u30c8MA\u3068\u306f\u4f55\u3060\u3063\u305f\u306e\u304b\uff1f <strong>\u4ee5\u4e0a<\/strong> \u4ee5\u524d\u306f\u30b9\u30ed\u30fcMA\u306b\uff1f<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u3082\u3057 <strong>\u306f\u3044<\/strong>\u3092\u7f6e\u304f\u3002 <strong>\u58f2\u308a\u6ce8\u6587<\/strong> \u4f7f\u7528\u3057\u3066 <code>OrderSend()<\/code> \u540c\u3058\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067 <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>\u7d42\u4e86 <code>start()<\/code> \u95a2\u6570\u30670\u3092\u8fd4\u3059\uff08\u6a5f\u80fd\u7684\u306b\u306f\u5fc5\u8981\u306a\u3044\u304c\u3001\u6a19\u6e96\u7684\u306a\u69cb\u6587\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next-steps-in-building-better-eas\">\u3088\u308a\u826f\u3044EA\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">EA\u304c\u6a5f\u80fd\u3057\u305f\u3089\u3001\u304a\u305d\u3089\u304f\u305d\u308c\u3092\u6539\u826f\u3057\u305f\u304f\u306a\u308b\u306f\u305a\u3060\u3002\u305d\u308c\u306f\u53ef\u80fd\u3067\u3059\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8ffd\u52a0 <strong>\u30b9\u30c8\u30c3\u30d7\u30fb\u30ed\u30b9<\/strong> \u305d\u3057\u3066 <strong>\u5229\u76ca\u3092\u5f97\u308b<\/strong> \u30ed\u30b8\u30c3\u30af\u306e\u554f\u984c\u3060\u3002<\/li>\n\n\n\n<li>\u5b9f\u65bd\u3059\u308b <strong>\u30c8\u30ec\u30fc\u30ea\u30f3\u30b0\u30b9\u30c8\u30c3\u30d7<\/strong>.<\/li>\n\n\n\n<li>\u3082\u3063\u3068\u4f7f\u3046 <strong>\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc<\/strong> \u307e\u305f\u306f\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30eb\u30bf\u30fc\u3002<\/li>\n\n\n\n<li>\u542b\u3080 <strong>\u30ea\u30b9\u30af\u7ba1\u7406<\/strong> \u304c\u7279\u5fb4\u3060\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u80fd\u6027\u306f\u7121\u9650\u3067\u3059\u3002\u5b66\u3079\u3070\u5b66\u3076\u307b\u3069\u3001\u3042\u306a\u305f\u306eFX EA\u306f\u3088\u308a\u5f37\u529b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-use-a-forex-vps-for-your-expert-advisor\">\u306a\u305cFX\u306eExpert Advisor\u306bVPS\u3092\u4f7f\u3046\u306e\u304b\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6642\u70b9\u3067\u3001\u3042\u306a\u305f\u306f\u3053\u3046\u601d\u3046\u304b\u3082\u3057\u308c\u306a\u3044\uff1a <em>\u300cEA\u3092\u4f5c\u3063\u305f\u3002\u3067\u3082\u300124\u6642\u9593365\u65e5\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u96fb\u6e90\u3092\u5165\u308c\u3063\u3071\u306a\u3057\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\"<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b54\u3048\u306f\u30ce\u30fc\u3067\u3059\u3001\u305d\u306e\u305f\u3081\u306bForex VPS\u304c\u3042\u308a\u307e\u3059\u3002Virtual Private Server(VPS)\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067EA\u3092\u30ce\u30f3\u30b9\u30c8\u30c3\u30d7\u3067\u7a3c\u50cd\u3055\u305b\u3001\u5b89\u5b9a\u3057\u305f\u30a2\u30c3\u30d7\u30bf\u30a4\u30e0\u3001low latency\u3001\u4e2d\u65ad\u306e\u306a\u3044\u53d6\u5f15\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3001 <a href=\"https:\/\/socialvps.net\/ja\/fx%e3%81%aevps%e3%81%abea%e3%82%84%e3%83%ad%e3%83%9c%e3%83%83%e3%83%88%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e6%96%b9%e6%b3%95\/\">\u30ed\u30dc\u30c3\u30c8FX<\/a> \u30b7\u30b9\u30c6\u30e0\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u6226\u7565\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">VPS\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304c\u30c0\u30a6\u30f3\u3057\u305f\u308a\u3001PC\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a\u3057\u3066\u3082\u3001EA\u304c\u6a5f\u80fd\u3057\u7d9a\u3051\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<br>\u81ea\u52d5\u5316\u3092\u771f\u5263\u306b\u304a\u8003\u3048\u306a\u3089\u3001Forex VPS\u304c\u5fc5\u8981\u3067\u3059\u3002SocialVPS\u304b\u3089\u9ad8\u6027\u80fd\u306aForex VPS\u3092\u5165\u624b\u3057\u3001EA\u3092\u7dad\u6301\u3057\u307e\u3057\u3087\u3046\u3002 <a href=\"https:\/\/socialvps.net\/ja\/mt4-%e3%81%af-8gb-ram-vps-%e3%81%a7%e3%82%b9%e3%83%a0%e3%83%bc%e3%82%ba%e3%81%ab%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%be%e3%81%99%e3%81%8b%ef%bc%9f\/\">\u9806\u8abf<\/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\">MQL4\u306e\u7fd2\u5f97\u306b\u306f\u3069\u306e\u304f\u3089\u3044\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u5fc3\u8005\u306e\u65b9\u306f\u3001\u6570\u65e5\u3067\u7c21\u5358\u306aEA\u3092\u66f8\u304d\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3088\u308a\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u7fd2\u5f97\u3059\u308b\u306b\u306f\u3001\u3042\u306a\u305f\u306e\u71b1\u5fc3\u3055\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u6570\u9031\u9593\u304b\u3089\u6570\u30f6\u6708\u304b\u304b\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-create-a-forex-ea-without-coding\">\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306a\u3057\u3067FX EA\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u78ba\u304b\u306b\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30ce\u30fc\u30b3\u30fc\u30c9EA\u30d3\u30eb\u30c0\u30fc\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u3089\u306f\u3057\u3070\u3057\u3070\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002MQL4\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u3092\u5b8c\u5168\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3057\u3001\u67d4\u8edf\u6027\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"is-a-forex-ea-profitable\">FX\u306eEA\u306f\u5132\u304b\u308b\u306e\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Forex EA\u306f\u3001\u5065\u5168\u306a\u6226\u7565\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\u3001\u5341\u5206\u306b\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u5229\u76ca\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9577\u671f\u7684\u306a\u6210\u529f\u306b\u306f\u3001\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u3068\u6700\u9069\u5316\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-use-the-same-ea-on-different-currency-pairs\">\u7570\u306a\u308b\u901a\u8ca8\u30da\u30a2\u3067\u540c\u3058EA\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u306f\u3044\u3001\u3057\u304b\u3057\u3001\u7570\u306a\u308b\u30da\u30a2\u3084\u30bf\u30a4\u30e0\u30d5\u30ec\u30fc\u30e0\u306b\u5408\u3046\u3088\u3046\u306b\u8a2d\u5b9a\uff08MA\u671f\u9593\u3084\u30ed\u30c3\u30c8\u30b5\u30a4\u30ba\u306a\u3069\uff09\u3092\u5fae\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-should-i-run-my-forex-ea-on-a-vps\">\u306a\u305cFX EA\u3092VPS\u3067\u52d5\u304b\u3059\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">VPS\u306f\u3001EA\u309224\u6642\u9593365\u65e5\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u4fdd\u3061\u307e\u3059\u3001 <a href=\"https:\/\/socialvps.net\/ja\/fx%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%80%e3%82%a6%e3%83%b3%e3%82%bf%e3%82%a4%e3%83%a0%e3%81%ae%e5%bd%b1%e9%9f%bf%e3%81%a8%e3%81%9d%e3%81%ae%e9%98%b2%e6%ad%a2\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u3092\u9632\u3050<\/a>\u3001\u307e\u305f\u3001\u5b9f\u884c\u901f\u5ea6\u3082\u5411\u4e0a\u3059\u308b\u3002\u3053\u308c\u306f\u3001\u52d5\u304d\u306e\u901f\u3044\u5e02\u5834\u306b\u304a\u3044\u3066\u3001\u6226\u7565\u306e\u6210\u5426\u3092\u5de6\u53f3\u3057\u304b\u306d\u306a\u3044\u3002<\/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 basics of MQL4 (the programming language behind MT4) and walk you through how to create your very first Forex EA. What Is MQL4 and Why Is It Important? Before we dive into coding, let\u2019s understand what MQL4 actually is. MQL4, or MetaQuotes Language 4, is a high-level programming language specifically designed for developing trading strategies [&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":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Writer SocialVPS\"\/>\n\t<meta name=\"msvalidate.01\" content=\"E4365D2CC45B722A3FF6BD10B07C1C13\" \/>\n\t<meta name=\"yandex-verification\" content=\"ab19199c5bd79eec\" \/>\n\t<meta name=\"keywords\" content=\"how to create forex ea,basics mql4\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"SocialVPS\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"The Basics of MQL4 : How to Create Your First Forex EA\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-05-08T10:23:42+07:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-07-27T01:24:48+07:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/socialvpsforex\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/socialvpsforex\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@svps_since2013\" \/>\n\t\t<meta name=\"twitter:title\" content=\"The Basics of MQL4 : How to Create Your First Forex EA\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@svps_since2013\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#blogposting\",\"name\":\"The Basics of MQL4 : How to Create Your First Forex EA\",\"headline\":\"The Basics of MQL4 : How to Create Your First Forex EA\",\"author\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/author\\\/writer-socialvps\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/socialvps.net\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg\",\"width\":1200,\"height\":628},\"datePublished\":\"2025-05-08T10:23:42+00:00\",\"dateModified\":\"2025-07-27T01:24:48+00:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#webpage\"},\"articleSection\":\"Tutorial, Robot Forex\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\\\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\\\/#listItem\",\"name\":\"Tutorial\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\\\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\\\/#listItem\",\"position\":2,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\\\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#listItem\",\"name\":\"The Basics of MQL4 : How to Create Your First Forex EA\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#listItem\",\"position\":3,\"name\":\"The Basics of MQL4 : How to Create Your First Forex EA\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\\\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\\\/#listItem\",\"name\":\"Tutorial\"}}]},{\"@type\":\"FAQPage\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#aioseo-faq-page-maf80u0z\",\"name\":\"The Basics of MQL4 : How to Create Your First Forex EA\",\"description\":\"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\\\/5 with this beginner\\u2019s guide.\",\"url\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"How long does it take to learn MQL4?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"For beginners, you can start writing simple EAs in just a few days. Learning more advanced features can take a few weeks or months depending on your dedication.\"}},{\"@type\":\"Question\",\"name\":\"Can I create a Forex EA without coding?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, there are no-code EA builders available online, but they are often limited. Learning MQL4 gives you full control and flexibility over your strategies.\"}},{\"@type\":\"Question\",\"name\":\"Is a Forex EA profitable?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A Forex EA can be profitable if it\\u2019s based on a sound strategy and well-tested. Backtesting and optimization are crucial to long-term success.\"}},{\"@type\":\"Question\",\"name\":\"Can I use the same EA on different currency pairs?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, but you may need to tweak the settings (like MA periods or lot size) to fit different pairs or timeframes.\"}},{\"@type\":\"Question\",\"name\":\"Why should I run my Forex EA on a VPS?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A VPS keeps your EA online 24\\\/7, prevents downtime, and improves execution speed\\u2014which can make or break your strategy in fast-moving markets.\"}}],\"inLanguage\":\"ja\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#breadcrumblist\"}},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#organization\",\"name\":\"SocialVPS\",\"description\":\"SocialVPS established since 2013, we always guarantee the quality of server uptime 99.9%, 24-hour CS support, and provide world-class service at the lowest price in its class. We are also committed to meeting the needs of our customers, with an expert and professional support team.\",\"url\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/\",\"email\":\"support@socialvps.net\",\"telephone\":\"+12345644878\",\"foundingDate\":\"2013-01-15\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":1,\"maxValue\":20},\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/socialvps.net\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Logo-SVPS-baru-juga.svg\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#organizationLogo\",\"width\":200,\"height\":50},\"image\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/socialvpsforex\",\"https:\\\/\\\/x.com\\\/svps_since2013\",\"https:\\\/\\\/www.instagram.com\\\/socialvps_official\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@SocialVPS-net\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/socialvpsofficial\\\/\"],\"address\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#postaladdress\",\"@type\":\"PostalAddress\",\"streetAddress\":\"Jl. KH. Muchtar Tabrani\",\"postalCode\":\"17134\",\"addressLocality\":\"Bekasi\",\"addressRegion\":\"Jawa Barat\",\"addressCountry\":\"ID\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/author\\\/writer-socialvps\\\/#author\",\"url\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/author\\\/writer-socialvps\\\/\",\"name\":\"Writer SocialVPS\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/socialvps.net\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Writer-SocialVPS.webp\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/socialvpsforex\",\"https:\\\/\\\/x.com\\\/svps_since2013\",\"https:\\\/\\\/www.instagram.com\\\/socialvps_official\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@SocialVPS-net\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/socialvpsofficial\\\/\"],\"description\":\"A content writer at SocialVPS who focuses on creating informative and educational articles related to Forex VPS services, trading guides, and VPS usage tips to help traders improve their trading performance.\",\"jobTitle\":\"SEO Specialist\",\"knowsLanguage\":[\"English\",\"Indonesia\"]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#website\",\"url\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/\",\"name\":\"SocialVPS\",\"alternateName\":\"Social VPS\",\"description\":\"The Best Forex VPS Hosting for Trading\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/socialvps.net\\\/ja\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>The Basics of MQL4 : How to Create Your First Forex EA<\/title>\n\n","aioseo_head_json":{"title":"MQL4\u306e\u57fa\u790e\uff1a\u521d\u3081\u3066\u306eFX EA\u306e\u4f5c\u308a\u65b9","description":"MQL4\u306e\u57fa\u672c\u3092\u5b66\u3073\u3001\u72ec\u81ea\u306eFX ea\uff08\u30ed\u30dc\u30c3\u30c8\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30d3\u30ae\u30ca\u30fc\u30ba\u30ac\u30a4\u30c9\u3067MetaTrader 4\/5\u7528\u306e\u81ea\u52d5\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u3092\u4f5c\u308a\u59cb\u3081\u307e\u3057\u3087\u3046\u3002","canonical_url":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"how to create forex ea,basics mql4","webmasterTools":{"msvalidate.01":"E4365D2CC45B722A3FF6BD10B07C1C13","yandex-verification":"ab19199c5bd79eec","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#blogposting","name":"The Basics of MQL4 : How to Create Your First Forex EA","headline":"The Basics of MQL4 : How to Create Your First Forex EA","author":{"@id":"https:\/\/socialvps.net\/ja\/author\/writer-socialvps\/#author"},"publisher":{"@id":"https:\/\/socialvps.net\/ja\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg","width":1200,"height":628},"datePublished":"2025-05-08T10:23:42+00:00","dateModified":"2025-07-27T01:24:48+00:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#webpage"},"isPartOf":{"@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#webpage"},"articleSection":"Tutorial, Robot Forex"},{"@type":"BreadcrumbList","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/#listItem","position":1,"name":"Home","item":"https:\/\/socialvps.net\/ja\/","nextItem":{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#listItem","name":"Tutorial"}},{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#listItem","position":2,"name":"Tutorial","item":"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","nextItem":{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#listItem","name":"The Basics of MQL4 : How to Create Your First Forex EA"},"previousItem":{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#listItem","position":3,"name":"The Basics of MQL4 : How to Create Your First Forex EA","previousItem":{"@type":"ListItem","@id":"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#listItem","name":"Tutorial"}}]},{"@type":"FAQPage","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#aioseo-faq-page-maf80u0z","name":"The Basics of MQL4 : How to Create Your First Forex EA","description":"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.","url":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/","mainEntity":[{"@type":"Question","name":"How long does it take to learn MQL4?","acceptedAnswer":{"@type":"Answer","text":"For beginners, you can start writing simple EAs in just a few days. Learning more advanced features can take a few weeks or months depending on your dedication."}},{"@type":"Question","name":"Can I create a Forex EA without coding?","acceptedAnswer":{"@type":"Answer","text":"Yes, there are no-code EA builders available online, but they are often limited. Learning MQL4 gives you full control and flexibility over your strategies."}},{"@type":"Question","name":"Is a Forex EA profitable?","acceptedAnswer":{"@type":"Answer","text":"A Forex EA can be profitable if it\u2019s based on a sound strategy and well-tested. Backtesting and optimization are crucial to long-term success."}},{"@type":"Question","name":"Can I use the same EA on different currency pairs?","acceptedAnswer":{"@type":"Answer","text":"Yes, but you may need to tweak the settings (like MA periods or lot size) to fit different pairs or timeframes."}},{"@type":"Question","name":"Why should I run my Forex EA on a VPS?","acceptedAnswer":{"@type":"Answer","text":"A VPS keeps your EA online 24\/7, prevents downtime, and improves execution speed\u2014which can make or break your strategy in fast-moving markets."}},{"@type":"Question","name":"How long does it take to learn MQL4?","acceptedAnswer":{"@type":"Answer","text":"For beginners, you can start writing simple EAs in just a few days. Learning more advanced features can take a few weeks or months depending on your dedication."}},{"@type":"Question","name":"Can I create a Forex EA without coding?","acceptedAnswer":{"@type":"Answer","text":"Yes, there are no-code EA builders available online, but they are often limited. Learning MQL4 gives you full control and flexibility over your strategies."}},{"@type":"Question","name":"Is a Forex EA profitable?","acceptedAnswer":{"@type":"Answer","text":"A Forex EA can be profitable if it\u2019s based on a sound strategy and well-tested. Backtesting and optimization are crucial to long-term success."}},{"@type":"Question","name":"Can I use the same EA on different currency pairs?","acceptedAnswer":{"@type":"Answer","text":"Yes, but you may need to tweak the settings (like MA periods or lot size) to fit different pairs or timeframes."}},{"@type":"Question","name":"Why should I run my Forex EA on a VPS?","acceptedAnswer":{"@type":"Answer","text":"A VPS keeps your EA online 24\/7, prevents downtime, and improves execution speed\u2014which can make or break your strategy in fast-moving markets."}}],"inLanguage":"ja","breadcrumb":{"@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#breadcrumblist"}},{"@type":"Organization","@id":"https:\/\/socialvps.net\/ja\/#organization","name":"SocialVPS","description":"SocialVPS established since 2013, we always guarantee the quality of server uptime 99.9%, 24-hour CS support, and provide world-class service at the lowest price in its class. We are also committed to meeting the needs of our customers, with an expert and professional support team.","url":"https:\/\/socialvps.net\/ja\/","email":"support@socialvps.net","telephone":"+12345644878","foundingDate":"2013-01-15","numberOfEmployees":{"@type":"QuantitativeValue","minValue":1,"maxValue":20},"logo":{"@type":"ImageObject","url":"https:\/\/socialvps.net\/wp-content\/uploads\/2022\/08\/Logo-SVPS-baru-juga.svg","@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#organizationLogo","width":200,"height":50},"image":{"@id":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/socialvpsforex","https:\/\/x.com\/svps_since2013","https:\/\/www.instagram.com\/socialvps_official\/","https:\/\/www.youtube.com\/@SocialVPS-net","https:\/\/www.linkedin.com\/company\/socialvpsofficial\/"],"address":{"@id":"https:\/\/socialvps.net\/ja\/#postaladdress","@type":"PostalAddress","streetAddress":"Jl. KH. Muchtar Tabrani","postalCode":"17134","addressLocality":"Bekasi","addressRegion":"Jawa Barat","addressCountry":"ID"}},{"@type":"Person","@id":"https:\/\/socialvps.net\/ja\/author\/writer-socialvps\/#author","url":"https:\/\/socialvps.net\/ja\/author\/writer-socialvps\/","name":"Writer SocialVPS","image":{"@type":"ImageObject","url":"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/06\/Writer-SocialVPS.webp"},"sameAs":["https:\/\/www.facebook.com\/socialvpsforex","https:\/\/x.com\/svps_since2013","https:\/\/www.instagram.com\/socialvps_official\/","https:\/\/www.youtube.com\/@SocialVPS-net","https:\/\/www.linkedin.com\/company\/socialvpsofficial\/"],"description":"A content writer at SocialVPS who focuses on creating informative and educational articles related to Forex VPS services, trading guides, and VPS usage tips to help traders improve their trading performance.","jobTitle":"SEO Specialist","knowsLanguage":["English","Indonesia"]},{"@type":"WebSite","@id":"https:\/\/socialvps.net\/ja\/#website","url":"https:\/\/socialvps.net\/ja\/","name":"SocialVPS","alternateName":"Social VPS","description":"The Best Forex VPS Hosting for Trading","inLanguage":"ja","publisher":{"@id":"https:\/\/socialvps.net\/ja\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"SocialVPS","og:type":"article","og:title":"The Basics of MQL4 : How to Create Your First Forex EA","og:description":"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.","og:url":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/","og:image":"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg","og:image:secure_url":"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg","og:image:width":1200,"og:image:height":628,"article:published_time":"2025-05-08T10:23:42+07:00","article:modified_time":"2025-07-27T01:24:48+07:00","article:publisher":"https:\/\/www.facebook.com\/socialvpsforex","article:author":"https:\/\/www.facebook.com\/socialvpsforex","twitter:card":"summary_large_image","twitter:site":"@svps_since2013","twitter:title":"The Basics of MQL4 : How to Create Your First Forex EA","twitter:description":"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.","twitter:creator":"@svps_since2013","twitter:image":"https:\/\/socialvps.net\/wp-content\/uploads\/2025\/05\/The-Basics-of-MQL4-How-to-Create-Your-First-Forex-EA.jpg"},"aioseo_meta_data":{"post_id":"17485","title":"#post_title","description":"MQL4\u306e\u57fa\u672c\u3092\u5b66\u3073\u3001\u72ec\u81ea\u306eFX ea\uff08\u30ed\u30dc\u30c3\u30c8\uff09\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30d3\u30ae\u30ca\u30fc\u30ba\u30ac\u30a4\u30c9\u3067MetaTrader 4\/5\u7528\u306e\u81ea\u52d5\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u3092\u4f5c\u308a\u59cb\u3081\u307e\u3057\u3087\u3046\u3002","keywords":[{"label":"how to create forex ea","value":"how to create forex ea"},{"label":"basics mql4","value":"basics mql4"}],"keyphrases":{"focus":{"keyphrase":"forex ea","score":91,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":2},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"score":9,"maxScore":9,"error":0},"keywordDensity":{"type":"best","score":9,"maxScore":9,"error":0}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[{"id":"#aioseo-faq-page-maf80u0z","slug":"faq-page","graphName":"FAQPage","label":"FAQ","properties":{"name":"#post_title","description":"Learn the basics of MQL4 and how to create your own Forex ea (robot). Start building automated strategies for MetaTrader 4\/5 with this beginner\u2019s guide.","questions":[{"question":"How long does it take to learn MQL4?","answer":"For beginners, you can start writing simple EAs in just a few days. Learning more advanced features can take a few weeks or months depending on your dedication."},{"question":"Can I create a Forex EA without coding?","answer":"Yes, there are no-code EA builders available online, but they are often limited. Learning MQL4 gives you full control and flexibility over your strategies."},{"question":"Is a Forex EA profitable?","answer":"A Forex EA can be profitable if it\u2019s based on a sound strategy and well-tested. Backtesting and optimization are crucial to long-term success."},{"question":"Can I use the same EA on different currency pairs?","answer":"Yes, but you may need to tweak the settings (like MA periods or lot size) to fit different pairs or timeframes."},{"question":"Why should I run my Forex EA on a VPS?","answer":"A VPS keeps your EA online 24\/7, prevents downtime, and improves execution speed\u2014which can make or break your strategy in fast-moving markets."}]},"value":"faq-page"}]},"schema_type":"default","schema_type_options":null,"pillar_content":true,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2025-08-14 19:41:44","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":"0","open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2025-05-08 09:10:48","updated":"2026-06-13 02:19:44"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/socialvps.net\/ja\/\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\/<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\" title=\"Tutorial\">Tutorial<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\/<\/span><span class=\"aioseo-breadcrumb\">\n\tThe Basics of MQL4 : How to Create Your First Forex EA\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/socialvps.net\/ja\/"},{"label":"Tutorial","link":"https:\/\/socialvps.net\/ja\/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc\/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},{"label":"The Basics of MQL4 : How to Create Your First Forex EA","link":"https:\/\/socialvps.net\/ja\/mql4%e3%81%ae%e5%9f%ba%e6%9c%ac-%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%aefx-ea%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9\/"}],"_links":{"self":[{"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/posts\/17485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/comments?post=17485"}],"version-history":[{"count":0,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/posts\/17485\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/media\/17487"}],"wp:attachment":[{"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/media?parent=17485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/categories?post=17485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/socialvps.net\/ja\/wp-json\/wp\/v2\/tags?post=17485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}