{"id":65722,"date":"2026-03-15T03:27:03","date_gmt":"2026-03-14T18:27:03","guid":{"rendered":"https:\/\/sys-tre.com\/forexguide\/?p=65722"},"modified":"2026-04-15T00:53:26","modified_gmt":"2026-04-14T15:53:26","slug":"mql4-common-functions","status":"publish","type":"post","link":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/","title":{"rendered":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cAlert\u30fbComment\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db"},"content":{"rendered":"<p>MQL4\u5171\u901a\u95a2\u6570\u306fAlert\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db\u306a\u3069MT4 EA\u958b\u767a\u306e\u57fa\u76e4\u3068\u306a\u308b\u95a2\u6570\u7fa4\u3060\u3002\u30ed\u30b0\u51fa\u529b\u304b\u3089\u30a8\u30e9\u30fc\u51e6\u7406\u30fb\u901a\u77e5\u307e\u3067\u3001\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5168\u95a2\u6570\u3092\u7db2\u7f85\u3059\u308b\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"2400\" height=\"1260\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions.jpg\" alt=\"MQL4 \u5171\u901a\u95a2\u6570 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ab\u30fc\u30c9\" class=\"wp-image-67621\" srcset=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions.jpg 2400w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions-300x158.jpg 300w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions-1024x538.jpg 1024w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions-768x403.jpg 768w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions-1536x806.jpg 1536w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-common-functions-2048x1075.jpg 2048w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-heading\" id=\"mql4-vs-mql5\">MQL4\u3068MQL5\u306e\u5171\u901a\u95a2\u6570\u306e\u9055\u3044<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u6a5f\u80fd<\/th><th>MQL4<\/th><th>MQL5<\/th><\/tr><\/thead><tbody><tr><td>\u30a2\u30e9\u30fc\u30c8<\/td><td>Alert()<\/td><td>Alert()<\/td><\/tr><tr><td>\u30c1\u30e3\u30fc\u30c8\u30b3\u30e1\u30f3\u30c8<\/td><td>Comment()<\/td><td>Comment()<\/td><\/tr><tr><td>\u30ed\u30b0\u51fa\u529b<\/td><td>Print()<\/td><td>Print()<\/td><\/tr><tr><td>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u51fa\u529b<\/td><td>PrintFormat()\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><td>PrintFormat()<\/td><\/tr><tr><td>\u30e1\u30fc\u30eb\u9001\u4fe1<\/td><td>SendMail()<\/td><td>SendMail()<\/td><\/tr><tr><td>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5<\/td><td>SendNotification()<\/td><td>SendNotification()<\/td><\/tr><tr><td>\u30b5\u30a6\u30f3\u30c9<\/td><td>PlaySound()<\/td><td>PlaySound()<\/td><\/tr><tr><td>\u578b\u5909\u63db\uff08double\uff09<\/td><td>DoubleToStr()<\/td><td>DoubleToString()<\/td><\/tr><tr><td>\u578b\u5909\u63db\uff08str\u2192num\uff09<\/td><td>StrToDouble(), StrToInteger()<\/td><td>StringToDouble(), StringToInteger()<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"output\">\u51fa\u529b\u95a2\u6570<\/h2>\n\n<h3 class=\"wp-block-heading\">Print \/ PrintFormat<\/h3>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Print\u7cfb\u95a2\u6570\"><code>void OutputExamples()\n  {\n   \/\/ Print \u2014 \u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30bf\u30d6\u306b\u51fa\u529b\n   Print(\"\u30e1\u30c3\u30bb\u30fc\u30b8:\", Symbol(),\" Price=\", Ask);\n\n   \/\/ \u8907\u6570\u5f15\u6570\u3092\u9023\u7d50\u3057\u3066\u51fa\u529b\n   Print(\"Balance=\", AccountBalance(),\" Equity=\", AccountEquity(),\" Margin=\", AccountMargin());\n\n   \/\/ PrintFormat \u2014 printf\u5f62\u5f0f\uff08\u30d3\u30eb\u30c9600+\uff09\n   PrintFormat(\"Ticket: %d, Price: %.5f, Lots: %.2f\",\n               12345, Ask, 0.1);\n\n   PrintFormat(\"[%s] %s %s %.2f @ %.5f\",\n               TimeToStr(TimeCurrent(), TIME_MINUTES),\n               Symbol(),\"BUY\", 0.1, Ask);\n  }<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">Comment<\/h3>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Comment\u306b\u3088\u308b\u30c1\u30e3\u30fc\u30c8\u8868\u793a\"><code>void UpdateComment()\n  {\n   string text =\"\";\n   text +=\"=== EA Status ===n\";\n   text +=\"Time:\" + TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) +\"n\";\n   text +=\"Balance:\" + DoubleToStr(AccountBalance(), 2) +\"n\";\n   text +=\"Equity:\" + DoubleToStr(AccountEquity(), 2) +\"n\";\n   text +=\"Spread:\" + IntegerToString((int)MarketInfo(Symbol(), MODE_SPREAD)) +\" ptsn\";\n   text +=\"Positions:\" + IntegerToString(OrdersTotal()) +\"n\";\n\n   Comment(text);  \/\/ \u30c1\u30e3\u30fc\u30c8\u306e\u5de6\u4e0a\u306b\u8868\u793a\n\n   \/\/ \u30af\u30ea\u30a2\u3059\u308b\u5834\u5408\n   \/\/ Comment(\"\");\n  }<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">Alert<\/h3>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Alert\u306e\u4f7f\u7528\u4f8b\"><code>void CheckAlertCondition()\n  {\n   static datetime lastAlert = 0;\n\n   \/\/ 1\u6642\u9593\u306b1\u56de\u3060\u3051\u30a2\u30e9\u30fc\u30c8\n   if(TimeCurrent() - lastAlert &lt; 3600)\n      return;\n\n   double dd = (AccountBalance() - AccountEquity()) \/ AccountBalance() * 100;\n\n   if(dd &gt; 10)  \/\/ \u30c9\u30ed\u30fc\u30c0\u30a6\u30f310%\u8d85\n     {\n      Alert(\"\u8b66\u544a: \u30c9\u30ed\u30fc\u30c0\u30a6\u30f3\", DoubleToStr(dd, 1),\"% -\",\n            Symbol(),\" Balance=\", AccountBalance());\n      lastAlert = TimeCurrent();\n     }\n  }<\/code><\/pre><\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\"><span><strong>\u51fa\u529b\u95a2\u6570\u306e\u4f7f\u3044\u5206\u3051<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<ul>\n<li><strong>Print()<\/strong>: \u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30bf\u30d6\u306b\u51fa\u529b\u3002<strong>\u30c7\u30d0\u30c3\u30b0\u306b\u6700\u9069<\/strong>\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff\u306f\u5c0f\u3055\u3044<\/li>\n<li><strong>Comment()<\/strong>: \u30c1\u30e3\u30fc\u30c8\u306e\u5de6\u4e0a\u306b\u8868\u793a\u3002<strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b\u6700\u9069<\/strong>\u3002\u6700\u59271\u884c\u3042\u305f\u308a\u7d04250\u6587\u5b57<\/li>\n<li><strong>Alert()<\/strong>: <strong>\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\uff0b\u30b5\u30a6\u30f3\u30c9<\/strong>\u3002\u4e3b\u8981\u306a\u901a\u77e5\u306e\u307f\u306b\u4f7f\u7528\u3002OnTick\u5185\u3067\u591a\u7528\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u52a3\u5316<\/li>\n<li><strong>PrintFormat()<\/strong>: printf\u5f62\u5f0f\u3002\u8907\u96d1\u306a\u30ed\u30b0\u51fa\u529b\u306b\u4fbf\u5229\uff08\u30d3\u30eb\u30c9600+\uff09<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\"><div class=\"cap_box_ttl\"><span><strong>\u51fa\u529b\u95a2\u6570\u306e\u4f7f\u3044\u5206\u3051<\/strong><\/span><\/div><div class=\"cap_box_content\"><ul><li><strong>Print()<\/strong>: \u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30bf\u30d6\u306b\u51fa\u529b\u3002<strong>\u30c7\u30d0\u30c3\u30b0\u306b\u6700\u9069<\/strong>\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff\u306f\u5c0f\u3055\u3044<\/li><li><strong>Comment()<\/strong>: \u30c1\u30e3\u30fc\u30c8\u306e\u5de6\u4e0a\u306b\u8868\u793a\u3002<strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b\u6700\u9069<\/strong><\/li><li><strong>Alert()<\/strong>: <strong>\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\uff0b\u30b5\u30a6\u30f3\u30c9<\/strong>\u3002\u4e3b\u8981\u306a\u901a\u77e5\u306e\u307f\u306b\u4f7f\u7528<\/li><li><strong>PrintFormat()<\/strong>: printf\u5f62\u5f0f\u3002\u8907\u96d1\u306a\u30ed\u30b0\u51fa\u529b\u306b\u4fbf\u5229\uff08\u30d3\u30eb\u30c9600+\uff09<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"notification\">\u901a\u77e5\u95a2\u6570<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u901a\u77e5\u95a2\u6570\"><code>\/\/ \u30e1\u30fc\u30eb\u9001\u4fe1\uff08\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192E\u30e1\u30fc\u30eb\u3067\u8a2d\u5b9a\u304c\u5fc5\u8981\uff09\nvoid SendTradeEmail(string action, int ticket, double lots, double price)\n  {\n   string subject = StringFormat(\"[%s] %s %s\", action, Symbol(), TimeToStr(TimeCurrent()));\n   string body = StringFormat(\"Action: %snSymbol: %snTicket: %dnLots: %.2fnPrice: %.5fnBalance: %.2f\",\n      action, Symbol(), ticket, lots, price, AccountBalance()\n   );\n\n   if(!SendMail(subject, body))\n      Print(\"\u30e1\u30fc\u30eb\u9001\u4fe1\u5931\u6557:\", GetLastError());\n  }\n\n\/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\uff08\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u901a\u77e5\u3067\u8a2d\u5b9a\u304c\u5fc5\u8981\uff09\nvoid SendPushNotification(string message)\n  {\n   if(!SendNotification(message))\n      Print(\"\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u5931\u6557:\", GetLastError());\n  }\n\n\/\/ \u30b5\u30a6\u30f3\u30c9\u518d\u751f\nvoid PlayTradeSound(bool isEntry)\n  {\n   if(isEntry)\n      PlaySound(\"alert.wav\");\n   else\n      PlaySound(\"ok.wav\");\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"sleep-tick\">Sleep \/ GetTickCount<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Sleep \/ GetTickCount\"><code>\/\/ Sleep \u2014 \u30df\u30ea\u79d2\u5358\u4f4d\u306e\u5f85\u6a5f\n\/\/ \u203b OnTick()\u5185\u3067\u306e\u4f7f\u7528\u306f\u63a8\u5968\u3055\u308c\u306a\u3044\uff08\u30c6\u30a3\u30c3\u30af\u51e6\u7406\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b\uff09\nvoid WaitAndRetry()\n  {\n   Sleep(1000);  \/\/ 1\u79d2\u5f85\u6a5f\n   RefreshRates();\n  }\n\n\/\/ GetTickCount \u2014 \u30df\u30ea\u79d2\u7cbe\u5ea6\u306e\u30bf\u30a4\u30de\u30fc\nvoid MeasureExecutionTime()\n  {\n   uint startTime = GetTickCount();\n\n   \/\/ \u8a08\u6e2c\u3057\u305f\u3044\u51e6\u7406\n   for(int i = 0; i &lt; 1000; i++)\n      double ma = iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, i);\n\n   uint elapsed = GetTickCount() - startTime;\n   Print(\"\u51e6\u7406\u6642\u9593:\", elapsed,\"ms\");\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"state-check\">EA\u72b6\u614b\u30c1\u30a7\u30c3\u30af\u95a2\u6570<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u623b\u308a\u5024<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>IsStopped()<\/td><td>bool<\/td><td>EA\u505c\u6b62\u304c\u8981\u6c42\u3055\u308c\u3066\u3044\u308b\u304b<\/td><\/tr><tr><td>IsTradeAllowed()<\/td><td>bool<\/td><td>\u81ea\u52d5\u58f2\u8cb7\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u304b<\/td><\/tr><tr><td>IsConnected()<\/td><td>bool<\/td><td>\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u304b<\/td><\/tr><tr><td>IsDemo()<\/td><td>bool<\/td><td>\u30c7\u30e2\u53e3\u5ea7\u304b<\/td><\/tr><tr><td>IsTesting()<\/td><td>bool<\/td><td>\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u304b<\/td><\/tr><tr><td>IsOptimization()<\/td><td>bool<\/td><td>\u6700\u9069\u5316\u4e2d\u304b<\/td><\/tr><tr><td>IsVisualMode()<\/td><td>bool<\/td><td>\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u304b<\/td><\/tr><tr><td>IsExpertEnabled()<\/td><td>bool<\/td><td>EA\u5b9f\u884c\u304c\u6709\u52b9\u304b<\/td><\/tr><tr><td>IsTradeContextBusy()<\/td><td>bool<\/td><td>\u53d6\u5f15\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u30d3\u30b8\u30fc\u304b<\/td><\/tr><tr><td>IsLibrary()<\/td><td>bool<\/td><td>\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u5b9f\u884c\u4e2d\u304b<\/td><\/tr><tr><td>UninitializeReason()<\/td><td>int<\/td><td>\u7d42\u4e86\u7406\u7531\u30b3\u30fc\u30c9<\/td><\/tr><tr><td>TerminalInfoInteger()<\/td><td>long<\/td><td>\u30bf\u30fc\u30df\u30ca\u30eb\u60c5\u5831\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"EA\u72b6\u614b\u30c1\u30a7\u30c3\u30af\"><code>bool CheckEAReady()\n  {\n   if(IsStopped())\n     {\n      Print(\"EA\u505c\u6b62\u304c\u8981\u6c42\u3055\u308c\u307e\u3057\u305f\");\n      return false;\n     }\n\n   if(!IsTradeAllowed())\n     {\n      Print(\"\u81ea\u52d5\u58f2\u8cb7\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\");\n      return false;\n     }\n\n   if(!IsConnected())\n     {\n      Print(\"\u30b5\u30fc\u30d0\u30fc\u672a\u63a5\u7d9a\");\n      return false;\n     }\n\n   if(IsTradeContextBusy())\n     {\n      Print(\"\u53d6\u5f15\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30d3\u30b8\u30fc\");\n      return false;\n     }\n\n   return true;\n  }\n\n\/\/ \u30c6\u30b9\u30c8\u74b0\u5883\u306e\u5224\u5b9a\nvoid DetectEnvironment()\n  {\n   if(IsTesting())\n     {\n      if(IsOptimization())\n         Print(\"\u6700\u9069\u5316\u30e2\u30fc\u30c9\");\n      else if(IsVisualMode())\n         Print(\"\u30d3\u30b8\u30e5\u30a2\u30eb\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\");\n      else\n         Print(\"\u901a\u5e38\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\");\n     }\n   else\n     {\n      if(IsDemo())\n         Print(\"\u30c7\u30e2\u53e3\u5ea7\u3067\u30e9\u30a4\u30d6\u7a3c\u50cd\");\n      else\n         Print(\"\u672c\u756a\u53e3\u5ea7\u3067\u30e9\u30a4\u30d6\u7a3c\u50cd\");\n     }\n  }<\/code><\/pre><\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\"><span><strong>\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306e\u6ce8\u610f<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<ul>\n<li><strong>IsTesting()\u4e2d\u306fSendMail\/SendNotification\/Alert\/PlaySound<\/strong>\u304c\u5b9f\u884c\u3055\u308c\u3066\u3082\u5b9f\u969b\u306b\u306f\u9001\u4fe1\u3055\u308c\u306a\u3044\uff08\u30b5\u30a4\u30ec\u30f3\u30c8\uff09<\/li>\n<li><strong>Sleep()<\/strong>\u306f\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u7121\u8996\u3055\u308c\u308b\uff080\u30df\u30ea\u79d2\u3067\u5373\u5ea7\u306b\u5b8c\u4e86\uff09<\/li>\n<li><strong>IsVisualMode()<\/strong>\u304ctrue\u306e\u5834\u5408\u306e\u307f\u3001Comment()\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u63cf\u753b\u304c\u8868\u793a\u3055\u308c\u308b<\/li>\n<li>\u6700\u9069\u5316\u4e2d\uff08IsOptimization()\uff09\u306fPrint()\u3059\u3089\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\"><div class=\"cap_box_ttl\"><span><strong>\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u306e\u6ce8\u610f<\/strong><\/span><\/div><div class=\"cap_box_content\"><ul><li><strong>IsTesting()\u4e2d\u306fSendMail\/SendNotification\/Alert\/PlaySound<\/strong>\u304c\u5b9f\u884c\u3055\u308c\u3066\u3082\u5b9f\u969b\u306b\u306f\u9001\u4fe1\u3055\u308c\u306a\u3044\uff08\u30b5\u30a4\u30ec\u30f3\u30c8\uff09<\/li><li><strong>Sleep()<\/strong>\u306f\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u7121\u8996\u3055\u308c\u308b\uff080\u30df\u30ea\u79d2\u3067\u5373\u5ea7\u306b\u5b8c\u4e86\uff09<\/li><li><strong>IsVisualMode()<\/strong>\u304ctrue\u306e\u5834\u5408\u306e\u307f\u3001Comment()\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u63cf\u753b\u304c\u8868\u793a\u3055\u308c\u308b<\/li><li>\u6700\u9069\u5316\u4e2d\uff08IsOptimization()\uff09\u306fPrint()\u3059\u3089\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"conversion\">\u578b\u5909\u63db\u95a2\u6570<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u5909\u63db<\/th><th>\u4f8b<\/th><\/tr><\/thead><tbody><tr><td>NormalizeDouble(v, d)<\/td><td>double \u2192 \u6b63\u898f\u5316double<\/td><td>NormalizeDouble(1.23456, 3) = 1.235<\/td><\/tr><tr><td>DoubleToStr(v, d)<\/td><td>double \u2192 string<\/td><td>DoubleToStr(1.5, 2) =&#8221;1.50&#8243;<\/td><\/tr><tr><td>IntegerToString(v)<\/td><td>int \u2192 string<\/td><td>IntegerToString(42) =&#8221;42&#8243;<\/td><\/tr><tr><td>StrToDouble(s)<\/td><td>string \u2192 double<\/td><td>StrToDouble(&#8220;1.5&#8221;) = 1.5<\/td><\/tr><tr><td>StrToInteger(s)<\/td><td>string \u2192 int<\/td><td>StrToInteger(&#8220;42&#8221;) = 42<\/td><\/tr><tr><td>TimeToStr(t, mode)<\/td><td>datetime \u2192 string<\/td><td>TimeToStr(now) =&#8221;2024.06.15 14:30&#8243;<\/td><\/tr><tr><td>StrToTime(s)<\/td><td>string \u2192 datetime<\/td><td>StrToTime(&#8220;2024.06.15&#8221;) = datetime<\/td><\/tr><tr><td>ColorToString(c)<\/td><td>color \u2192 string<\/td><td>ColorToString(clrRed) =&#8221;255,0,0&#8243;<\/td><\/tr><tr><td>StringToColor(s)<\/td><td>string \u2192 color<\/td><td>StringToColor(&#8220;255,0,0&#8221;) = clrRed<\/td><\/tr><tr><td>CharToStr(c)<\/td><td>int \u2192 string<\/td><td>CharToStr(65) =&#8221;A&#8221;<\/td><\/tr><tr><td>StringGetChar(s, p)<\/td><td>string \u2192 int<\/td><td>StringGetChar(&#8220;A&#8221;, 0) = 65<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<p class=\"is-style-big_icon_point\"><strong>RefreshRates()<\/strong>\u306fMQL4\u7279\u6709\u306e\u91cd\u8981\u95a2\u6570\u3067\u3059\u3002MQL5\u3067\u306f\u4e0d\u8981\u3067\u3059\u304c\u3001MQL4\u3067\u306fSleep()\u5f8c\u3084\u30ea\u30c8\u30e9\u30a4\u524d\u306b\u547c\u3070\u306a\u3044\u3068\u53e4\u3044\u4fa1\u683c\u3067OrderSend\u3057\u3066\u3057\u307e\u3044ERR_REQUOTE(138)\u304c\u767a\u751f\u3057\u307e\u3059\u3002OrderSend\u306e\u30ea\u30c8\u30e9\u30a4\u30eb\u30fc\u30d7\u306b\u306f\u5fc5\u305aRefreshRates()\u3092\u5165\u308c\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<p class=\"is-style-big_icon_point\"><strong>RefreshRates()<\/strong>\u306fMQL4\u7279\u6709\u306e\u91cd\u8981\u95a2\u6570\u3067\u3059\u3002MQL5\u3067\u306f\u4e0d\u8981\u3067\u3059\u304c\u3001MQL4\u3067\u306fSleep()\u5f8c\u3084\u30ea\u30c8\u30e9\u30a4\u524d\u306b\u547c\u3070\u306a\u3044\u3068\u53e4\u3044\u4fa1\u683c\u3067OrderSend\u3057\u3066\u3057\u307e\u3044ERR_REQUOTE(138)\u304c\u767a\u751f\u3057\u307e\u3059\u3002OrderSend\u306e\u30ea\u30c8\u30e9\u30a4\u30eb\u30fc\u30d7\u306b\u306f\u5fc5\u305aRefreshRates()\u3092\u5165\u308c\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"other\">\u305d\u306e\u4ed6\u306e\u5171\u901a\u95a2\u6570<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>ExpertRemove()<\/td><td>EA\u3092\u81ea\u52d5\u7684\u306b\u30c1\u30e3\u30fc\u30c8\u304b\u3089\u524a\u9664<\/td><\/tr><tr><td>TerminalClose(reason)<\/td><td>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7d42\u4e86<\/td><\/tr><tr><td>MessageBox(text, caption, flags)<\/td><td>\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u8868\u793a\uff08\u30e9\u30a4\u30d6\u306e\u307f\uff09<\/td><\/tr><tr><td>RefreshRates()<\/td><td>\u6700\u65b0\u30ec\u30fc\u30c8\u3092\u518d\u53d6\u5f97<\/td><\/tr><tr><td>MarketInfo()<\/td><td>\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u53d6\u5f97<\/td><\/tr><tr><td>GetTickCount()<\/td><td>\u30df\u30ea\u79d2\u30bf\u30a4\u30de\u30fc<\/td><\/tr><tr><td>MathRand()<\/td><td>\u4e71\u6570\u751f\u6210<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"practical\">\u5b9f\u8df5: \u7dcf\u5408\u7684\u306a\u901a\u77e5\u30b7\u30b9\u30c6\u30e0<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u901a\u77e5\u30ec\u30d9\u30eb\u30b7\u30b9\u30c6\u30e0\"><code>enum NOTIFY_LEVEL\n  {\n   NOTIFY_LOG,      \/\/ Print\u306e\u307f\n   NOTIFY_ALERT,    \/\/ Alert + Print\n   NOTIFY_PUSH,     \/\/ Push\u901a\u77e5 + Print\n   NOTIFY_ALL       \/\/ \u5168\u901a\u77e5\n  };\n\ninput NOTIFY_LEVEL NotifyLevel = NOTIFY_ALERT;\n\nvoid Notify(string message, NOTIFY_LEVEL level = NOTIFY_LOG)\n  {\n   \/\/ \u5e38\u306bPrint\n   Print(\"[\", Symbol(),\"]\", message);\n\n   if(IsTesting()) return;  \/\/ \u30c6\u30b9\u30c8\u4e2d\u306f\u901a\u77e5\u3057\u306a\u3044\n\n   if(level &gt;= NOTIFY_ALERT &amp;&amp; NotifyLevel &gt;= NOTIFY_ALERT)\n      Alert(message);\n\n   if(level &gt;= NOTIFY_PUSH &amp;&amp; NotifyLevel &gt;= NOTIFY_PUSH)\n      SendNotification(Symbol() +\":\" + message);\n\n   if(NotifyLevel &gt;= NOTIFY_ALL)\n     {\n      string subject =\"[EA]\" + Symbol();\n      SendMail(subject, message);\n     }\n  }\n\n\/\/ \u4f7f\u7528\u4f8b\nvoid OnTradeEvent(string action, int ticket)\n  {\n   string msg = StringFormat(\"%s ticket=%d lots=%.2f profit=%.2f\",\n                              action, ticket, OrderLots(), OrderProfit());\n   Notify(msg, NOTIFY_ALERT);\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"function-table\">\u5171\u901a\u95a2\u6570\u4e00\u89a7\uff08MQL5\u5bfe\u5fdc\u8868\uff09<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>MQL4\u95a2\u6570<\/th><th>MQL5\u5bfe\u5fdc<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>Alert()<\/td><td>Alert()<\/td><td>\u30a2\u30e9\u30fc\u30c8\u30c0\u30a4\u30a2\u30ed\u30b0<\/td><\/tr><tr><td>Comment()<\/td><td>Comment()<\/td><td>\u30c1\u30e3\u30fc\u30c8\u30b3\u30e1\u30f3\u30c8<\/td><\/tr><tr><td>Print()<\/td><td>Print()<\/td><td>\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30ed\u30b0\u51fa\u529b<\/td><\/tr><tr><td>PrintFormat()<\/td><td>PrintFormat()<\/td><td>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u51fa\u529b<\/td><\/tr><tr><td>SendMail()<\/td><td>SendMail()<\/td><td>\u30e1\u30fc\u30eb\u9001\u4fe1<\/td><\/tr><tr><td>SendNotification()<\/td><td>SendNotification()<\/td><td>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5<\/td><\/tr><tr><td>PlaySound()<\/td><td>PlaySound()<\/td><td>\u30b5\u30a6\u30f3\u30c9\u518d\u751f<\/td><\/tr><tr><td>Sleep()<\/td><td>Sleep()<\/td><td>\u30df\u30ea\u79d2\u5f85\u6a5f<\/td><\/tr><tr><td>GetTickCount()<\/td><td>GetTickCount()<\/td><td>\u30df\u30ea\u79d2\u30bf\u30a4\u30de\u30fc<\/td><\/tr><tr><td>IsTesting()<\/td><td>MQLInfoInteger(MQL_TESTER)<\/td><td>\u30c6\u30b9\u30c8\u4e2d\u5224\u5b9a<\/td><\/tr><tr><td>IsOptimization()<\/td><td>MQLInfoInteger(MQL_OPTIMIZATION)<\/td><td>\u6700\u9069\u5316\u4e2d\u5224\u5b9a<\/td><\/tr><tr><td>IsTradeAllowed()<\/td><td>MQLInfoInteger(MQL_TRADE_ALLOWED)<\/td><td>\u53d6\u5f15\u8a31\u53ef\u5224\u5b9a<\/td><\/tr><tr><td>IsConnected()<\/td><td>TerminalInfoInteger(TERMINAL_CONNECTED)<\/td><td>\u63a5\u7d9a\u72b6\u614b\u5224\u5b9a<\/td><\/tr><tr><td>IsDemo()<\/td><td>AccountInfoInteger(ACCOUNT_TRADE_MODE)==DEMO<\/td><td>\u30c7\u30e2\u53e3\u5ea7\u5224\u5b9a<\/td><\/tr><tr><td>RefreshRates()<\/td><td>\u4e0d\u8981\uff08\u81ea\u52d5\u66f4\u65b0\uff09<\/td><td>\u30ec\u30fc\u30c8\u518d\u53d6\u5f97<\/td><\/tr><tr><td>ExpertRemove()<\/td><td>ExpertRemove()<\/td><td>EA\u81ea\u52d5\u524a\u9664<\/td><\/tr><tr><td>DoubleToStr()<\/td><td>DoubleToString()<\/td><td>double\u2192\u6587\u5b57\u5217<\/td><\/tr><tr><td>StrToDouble()<\/td><td>StringToDouble()<\/td><td>\u6587\u5b57\u5217\u2192double<\/td><\/tr><tr><td>StrToInteger()<\/td><td>StringToInteger()<\/td><td>\u6587\u5b57\u5217\u2192int<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"matome\">\u307e\u3068\u3081<\/h2>\n\n<p>MQL4\u306e\u5171\u901a\u95a2\u6570\u306fEA\u958b\u767a\u306e\u57fa\u76e4\u3068\u306a\u308b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n<ul>\n<li><strong>Print()\u3067\u30c7\u30d0\u30c3\u30b0\u3001Comment()\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u8868\u793a<\/strong> \u2014 \u958b\u767a\u4e2d\u306fPrint()\u3001\u672c\u756a\u3067\u306fComment()\u3092\u4f7f\u3044\u5206\u3051\u308b<\/li>\n<li><strong>IsTesting()\u3067\u30c6\u30b9\u30c8\/\u672c\u756a\u3092\u5206\u5c90<\/strong> \u2014 \u901a\u77e5\u3084Sleep()\u306f\u30c6\u30b9\u30c8\u4e2d\u306b\u30b9\u30ad\u30c3\u30d7\u3059\u308b<\/li>\n<li><strong>RefreshRates()\u306f\u30ea\u30c8\u30e9\u30a4\u524d\u306b\u5fc5\u305a\u547c\u3076<\/strong> \u2014 MQL5\u3067\u306f\u4e0d\u8981\u3060\u304cMQL4\u3067\u306f\u5fc5\u9808<\/li>\n<li><strong>DoubleToStr()\u2192DoubleToString()\u306e\u540d\u79f0\u5909\u66f4<\/strong>\u306b\u6ce8\u610f\uff08MQL5\u79fb\u690d\u6642\uff09<\/li>\n<\/ul>\n\n<p>\u516813\u30ab\u30c6\u30b4\u30ea\u306e\u5b66\u7fd2\u306f\u3001<a href=\"https:\/\/sys-tre.com\/forexguide\/category\/mql-reference\/\">MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u7dcf\u5408\u30ac\u30a4\u30c9<\/a>\u3092\u8d77\u70b9\u306b\u9032\u3081\u307e\u3057\u3087\u3046\u3002MQL4\u306e\u57fa\u672c\u3092\u62bc\u3055\u3048\u305f\u3089\u3001\u5b9f\u969b\u306eEA\u958b\u767a\u306b\u53d6\u308a\u7d44\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">MQL4\u5171\u901a\u95a2\u6570 \u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<div class=\"swell-block-faq\">\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u306e\u5171\u901a\u95a2\u6570\u306b\u306f\u3069\u3093\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3><div class=\"faq_a\"><p>Print()\u3067\u30ed\u30b0\u51fa\u529b\u3001Alert()\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u901a\u77e5\u3001Comment()\u3067\u30c1\u30e3\u30fc\u30c8\u8868\u793a\u3001Sleep()\u3067\u5f85\u6a5f\u304c\u57fa\u672c\u3067\u3059\u3002GetLastError()\/ResetLastError()\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u884c\u3044\u3001TimeCurrent()\u3067\u73fe\u5728\u6642\u523b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>ResetLastError()\u3067\u30a8\u30e9\u30fc\u3092\u30ea\u30bb\u30c3\u30c8\u2192\u51e6\u7406\u5b9f\u884c\u2192GetLastError()\u3067\u30b3\u30fc\u30c9\u53d6\u5f97\u304c\u6b63\u3057\u3044\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002ErrorDescription()\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002\u53d6\u5f15\u95a2\u6570\u306e\u5931\u6557\u5f8c\u306f\u5fc5\u305aGetLastError()\u3067\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u306e\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\uff1f<\/h3><div class=\"faq_a\"><p>\u6570\u5024\u2192\u6587\u5b57\u5217\u306fDoubleToStr()\/IntegerToString()\u3001\u6587\u5b57\u5217\u2192\u6570\u5024\u306fStrToDouble()\/StrToInteger()\u3092\u4f7f\u3044\u307e\u3059\u3002NormalizeDouble()\u3067\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u3092\u63c3\u3048\u308b\u51e6\u7406\u306f\u5fc5\u9808\u3067\u3059\u3002MQL5\u3067\u306fDoubleToString()\u3068\u95a2\u6570\u540d\u304c\u5909\u308f\u308a\u307e\u3057\u305f\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u30c7\u30d0\u30c3\u30b0\u306b\u5f79\u7acb\u3064\u95a2\u6570\u306f\uff1f<\/h3><div class=\"faq_a\"><p>Print()\u3067\u5b9f\u884c\u30ed\u30b0\u3092\u8a18\u9332\u3057\u3001Comment()\u3067\u30c1\u30e3\u30fc\u30c8\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002Alert()\u306f\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3067\u5373\u6642\u901a\u77e5\u3067\u304d\u3001\u7279\u5b9a\u30a4\u30d9\u30f3\u30c8\u306e\u691c\u77e5\u306b\u4f7f\u3048\u307e\u3059\u3002__FUNCTION__\u3084__LINE__\u30de\u30af\u30ed\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u30a8\u30e9\u30fc\u7b87\u6240\u3092\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3068MQL5\u306e\u5171\u901a\u95a2\u6570\u306e\u9055\u3044\u306f\uff1f<\/h3><div class=\"faq_a\"><p>\u57fa\u672c\u7684\u306a\u95a2\u6570\u540d\u306f\u307b\u307c\u540c\u3058\u3067\u3059\u3002MQL5\u3067\u306fPrintFormat()\u306e\u8ffd\u52a0\u3001DoubleToStr()\u2192DoubleToString()\u3078\u306e\u7d71\u4e00\u3001GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u304c\u4e3b\u306a\u5909\u66f4\u70b9\u3067\u3059\u3002MQL4\u304b\u3089\u306e\u79fb\u884c\u306f\u95a2\u6570\u540d\u306e\u672b\u5c3e\u306e\u5909\u66f4\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067SendNotification()\u3092\u4f7f\u3046\u8a2d\u5b9a\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>MetaTrader\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001MT4\u306e\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u901a\u77e5\u3067MetaQuotes ID\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002SendNotification(&#8220;\u30e1\u30c3\u30bb\u30fc\u30b8&#8221;)\u3067\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u308c\u307e\u3059\u3002\u9001\u4fe1\u5931\u6557\u6642\u306fGetLastError()\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p><\/div><\/div>\n<\/div>\n\n<div class=\"p-blogParts post_content\" data-partsID=\"59754\">\n\n  <style>\n   \n    .systrade-horizontal-banner {\n      width: 100%;\n      max-width: 800px;\n      margin: 20px auto;\n      background: linear-gradient(135deg, #F5F5F7, #E8E9EB);\n      border-radius: 12px;\n      overflow: hidden;\n      position: relative;\n      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);\n      font-family: 'Noto Sans JP', sans-serif;\n      box-shadow: \n        0 10px 20px rgba(0, 0, 0, 0.1),\n        0 0 0 1px rgba(0, 0, 0, 0.03) inset;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n      height: auto;\n      min-height: 120px;\n      box-sizing: border-box;\n    }\n\n    .systrade-horizontal-banner::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: \n        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),\n        radial-gradient(circle at 100% 100%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);\n      z-index: 1;\n    }\n\n    .systrade-horizontal-banner::after {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      height: 2px;\n      background: linear-gradient(90deg, \n        transparent,\n        #FF6B00,\n        transparent\n      );\n      animation: borderGlow 3s ease-in-out infinite;\n      z-index: 2;\n    }\n\n    @keyframes borderGlow {\n      0%, 100% { opacity: 0.5; }\n      50% { opacity: 1; }\n    }\n\n    .systrade-horizontal-banner:hover {\n      transform: translateY(-2px);\n      box-shadow: \n        0 12px 25px rgba(0, 0, 0, 0.15),\n        0 0 0 1px rgba(0, 0, 0, 0.05) inset;\n    }\n\n    .systrade-horizontal-anchor {\n      display: flex;\n      width: 100%;\n      text-decoration: none;\n      color: inherit;\n      position: relative;\n      z-index: 2;\n      flex-wrap: wrap;\n    }\n\n    .systrade-horizontal-header {\n      width: 30%;\n      min-width: 150px;\n      position: relative;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      padding: 12px;\n      background: rgba(255, 255, 255, 0.5);\n      border-radius: 10px;\n      border: 1px solid rgba(255, 255, 255, 0.8);\n      overflow: hidden;\n      backdrop-filter: blur(10px);\n      -webkit-backdrop-filter: blur(10px);\n      margin: 10px;\n      height: calc(100% - 20px);\n    }\n\n    .systrade-horizontal-header::before {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 255, 255, 0.4),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: headerGlow 4s ease-in-out infinite;\n    }\n\n    @keyframes headerGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      50% { transform: rotate(45deg) translateX(100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-inner {\n      width: 100%;\n      position: relative;\n      z-index: 2;\n      text-align: center;\n    }\n\n    .systrade-horizontal-image {\n      height: 30px;\n      width: auto;\n      margin: 8px auto;\n      display: block;\n      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));\n    }\n\n    .systrade-horizontal-title {\n      color: #333;\n      font-size: 0.9em;\n      font-weight: 900;\n      white-space: nowrap;\n      background: linear-gradient(90deg, #333, #FF6B00, #333);\n      background-size: 200% auto;\n      -webkit-background-clip: text;\n      -webkit-text-fill-color: transparent;\n      animation: titleFlow 3s linear infinite;\n      padding: 4px 0;\n    }\n\n    @keyframes titleFlow {\n      0% { background-position: 0% center; }\n      100% { background-position: 200% center; }\n    }\n\n    .systrade-horizontal-content {\n      display: flex;\n      flex: 1;\n      flex-direction: column;\n      justify-content: space-between;\n      padding: 12px;\n    }\n\n    .systrade-horizontal-list {\n      display: grid;\n      grid-template-columns: repeat(2, 1fr);\n      gap: 8px;\n      margin-bottom: 10px;\n    }\n\n    .systrade-horizontal-item {\n      background: rgba(255, 255, 255, 0.7);\n      padding: 8px 6px;\n      border-radius: 8px;\n      border: 1px solid rgba(255, 255, 255, 0.9);\n      text-align: center;\n      transition: all 0.3s ease;\n      position: relative;\n      overflow: hidden;\n    }\n\n    .systrade-horizontal-item:hover {\n      transform: translateY(-2px);\n      background: rgba(255, 107, 0, 0.05);\n      border-color: rgba(255, 107, 0, 0.2);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);\n    }\n\n    .systrade-horizontal-item::after {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 107, 0, 0.1),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: itemGlow 3s ease-in-out infinite;\n      opacity: 0;\n    }\n\n    .systrade-horizontal-item:hover::after {\n      opacity: 1;\n    }\n\n    @keyframes itemGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-desc {\n      color: #333;\n      font-size: 0.7em;\n      font-weight: 700;\n      line-height: 1.3;\n      position: relative;\n      z-index: 1;\n    }\n\n    .systrade-horizontal-button {\n      background: linear-gradient(90deg, #FF6B00, #FF8534);\n      color: white;\n      padding: 10px;\n      border-radius: 8px;\n      font-weight: 900;\n      font-size: 0.85em;\n      text-align: center;\n      position: relative;\n      overflow: hidden;\n      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n      transition: all 0.3s ease;\n      margin-top: auto;\n    }\n\n    .systrade-horizontal-button::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: linear-gradient(90deg, \n        transparent,\n        rgba(255, 255, 255, 0.2),\n        transparent\n      );\n      transform: translateX(-100%);\n      animation: buttonGlow 3s ease-in-out infinite;\n    }\n\n    @keyframes buttonGlow {\n      0% { transform: translateX(-100%); }\n      50% { transform: translateX(100%); }\n      100% { transform: translateX(100%); }\n    }\n\n    .systrade-horizontal-button:hover {\n      transform: translateY(-2px);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);\n    }\n\n    \/* Responsive breakpoints *\/\n    @media (max-width: 768px) {\n      .systrade-horizontal-banner {\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        min-width: 120px;\n        padding: 8px;\n      }\n      \n      .systrade-horizontal-image {\n        height: 25px;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.8em;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        font-size: 0.8em;\n        padding: 8px;\n      }\n    }\n    \n    @media (max-width: 600px) {\n      .systrade-horizontal-banner {\n        flex-direction: column;\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        width: calc(100% - 20px);\n        min-width: auto;\n        margin: 10px;\n      }\n      \n      .systrade-horizontal-content {\n        width: 100%;\n      }\n      \n      .systrade-horizontal-image {\n        height: 30px;\n        margin: 5px auto;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.85em;\n      }\n      \n      .systrade-horizontal-list {\n        grid-template-columns: repeat(2, 1fr);\n        gap: 6px;\n        margin-bottom: 8px;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 6px 4px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        margin-top: 5px;\n      }\n    }\n\n    @media (max-width: 400px) {\n      .systrade-horizontal-list {\n        grid-template-columns: 1fr;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 8px 6px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.7em;\n      }\n    }\n    \n    \/* Print media query *\/\n    @media print {\n      .systrade-horizontal-banner {\n        box-shadow: none;\n        border: 1px solid #ccc;\n      }\n      \n      .systrade-horizontal-banner::before,\n      .systrade-horizontal-banner::after,\n      .systrade-horizontal-header::before,\n      .systrade-horizontal-item::after,\n      .systrade-horizontal-button::before {\n        display: none;\n      }\n      \n      .systrade-horizontal-button {\n        background: #FF6B00;\n        text-shadow: none;\n      }\n    }\n  <\/style>\n\n  <div class=\"systrade-horizontal-banner\">\n    <a href=\"https:\/\/sys-tre.com\/\" class=\"systrade-horizontal-anchor\">\n      <div class=\"systrade-horizontal-header\">\n        <div class=\"systrade-horizontal-inner\">\n          <div class=\"systrade-horizontal-title\">FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u306a\u3089\uff01<\/div>\n          <img decoding=\"async\" src=\"https:\/\/sys-tre.com\/broker\/wp-content\/uploads\/2025\/01\/\u30b7\u30b9\u30c8\u30ec.COM_B-2.png\" alt=\"\u30b7\u30b9\u30c8\u30ec.COM \u516c\u5f0fCTA\u30ed\u30b4\" class=\"systrade-horizontal-image\">\n        <\/div>\n      <\/div>\n\n      <div class=\"systrade-horizontal-content\">\n        <div class=\"systrade-horizontal-list\">\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5b9f\u7e3e\u306e\u3042\u308bEA\u304c\u7121\u6599\u3067\u4f7f\u3048\u308b\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u6709\u6599\u7248\u3067\u53e3\u5ea7\u5236\u9650\u306a\u3057\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5168\u5546\u54c1\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u516c\u958b\u4e2d\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u521d\u5fc3\u8005\u3067\u3082\u5b89\u5fc3\u3057\u3066\u3054\u5229\u7528\u53ef\u80fd\uff01<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"systrade-horizontal-button\">\n          \u4eca\u3059\u3050\u7121\u6599\u3067\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\u3092\u59cb\u3081\u308b\uff01\n        <\/div>\n      <\/div>\n    <\/a>\n  <\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">MQL4\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 \u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MQL4 \u53d6\u5f15\u95a2\u6570 \u2014 OrderSend\u30fbOrderClose\u30fb\u30dd\u30b8\u30b7\u30e7\u30f3\u7ba1\u7406<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-indicator-functions\/\">MQL4 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570<\/a> \u2014 iMA\u30fbiRSI\u30fbiCustom<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-account-market-info\/\">MQL4 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831<\/a> \u2014 \u30ed\u30c3\u30c8\u8a08\u7b97<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-event-handlers\/\">MQL4 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9<\/a> \u2014 OnInit\u30fbOnTick<\/li>\n<li>MQL4 \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9 \u2014 \u30ea\u30c8\u30e9\u30a4\u30d1\u30bf\u30fc\u30f3<\/li>\n<li>MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u2014 \u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/ea-howto\/\">EA\u59cb\u3081\u65b9\u30ac\u30a4\u30c9<\/a> \u2014 MT4\u3078\u306eEA\u8a2d\u5b9a\u624b\u9806<\/li>\n<\/ul>\n\n\n\n\n\n<script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\": [\n    {\"@type\":\"Question\",\"name\":\"MQL4\u306e\u5171\u901a\u95a2\u6570\u306b\u306f\u3069\u3093\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"Print()\u3067\u30ed\u30b0\u51fa\u529b\u3001Alert()\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u901a\u77e5\u3001Comment()\u3067\u30c1\u30e3\u30fc\u30c8\u8868\u793a\u3001Sleep()\u3067\u5f85\u6a5f\u304c\u57fa\u672c\u3067\u3059\u3002GetLastError()\/ResetLastError()\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"ResetLastError()\u3067\u30ea\u30bb\u30c3\u30c8\u2192\u51e6\u7406\u5b9f\u884c\u2192GetLastError()\u3067\u30b3\u30fc\u30c9\u53d6\u5f97\u304c\u6b63\u3057\u3044\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002ErrorDescription()\u3067\u30b3\u30fc\u30c9\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u306e\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"\u6570\u5024\u2192\u6587\u5b57\u5217\u306fDoubleToStr()\/IntegerToString()\u3001\u6587\u5b57\u5217\u2192\u6570\u5024\u306fStrToDouble()\/StrToInteger()\u3067\u3059\u3002NormalizeDouble()\u3067\u5c0f\u6570\u70b9\u6841\u6570\u306e\u7d71\u4e00\u3082\u5fc5\u9808\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u30c7\u30d0\u30c3\u30b0\u306b\u5f79\u7acb\u3064\u95a2\u6570\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"Print()\u3067\u30ed\u30b0\u8a18\u9332\u3001Comment()\u3067\u30c1\u30e3\u30fc\u30c8\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u8868\u793a\u3001Alert()\u3067\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u901a\u77e5\u304c\u57fa\u672c\u3067\u3059\u3002__FUNCTION__\u3084__LINE__\u30de\u30af\u30ed\u3067\u30a8\u30e9\u30fc\u7b87\u6240\u3092\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3068MQL5\u306e\u5171\u901a\u95a2\u6570\u306e\u9055\u3044\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"\u57fa\u672c\u95a2\u6570\u540d\u306f\u307b\u307c\u540c\u3058\u3067\u3059\u3002MQL5\u3067\u306fPrintFormat()\u8ffd\u52a0\u3001DoubleToStr()\u2192DoubleToString()\u7d71\u4e00\u3001GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u304c\u4e3b\u306a\u5909\u66f4\u70b9\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067SendNotification()\u3092\u4f7f\u3046\u8a2d\u5b9a\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MetaTrader\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001MT4\u306e\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u901a\u77e5\u3067MetaQuotes ID\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002SendNotification()\u3067\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u3092\u9001\u308c\u307e\u3059\u3002\"}}\n]}\n<\/script>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-indicator-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5ciMA\u30fbiRSI\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570\uff08iMA\u30fbiRSI\u30fbiBands\u30fbiMACD\u30fbiCustom\uff09\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\u3002\u30c6\u30af\u30cb\u30ab\u30eb\u6307\u6a19\u5024\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-account-market-info\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u30ed\u30c3\u30c8\u8a08\u7b97<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u53e3\u5ea7\u60c5\u5831\u95a2\u6570\uff08AccountBalance\u30fbAccountEquity\uff09\u3068MarketInfo()\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30ea\u30b9\u30af\u7ba1\u7406\u3068\u30ed\u30c3\u30c8\u8a08\u7b97\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-event-handlers\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cOnInit\u30fbOnTick\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\uff08OnInit\u30fbOnTick\u30fbOnTimer\u30fbOnChartEvent\uff09\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\u3002EA\u958b\u767a\u306e\u57fa\u672c\u69cb\u9020\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-account-market-info\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u30ac\u30a4\u30c9\uff5c\u8a3c\u62e0\u91d1\u8a08\u7b97<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u53e3\u5ea7\u60c5\u5831\uff08AccountInfoDouble\uff09\u3068\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\uff08SymbolInfoDouble\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30ed\u30c3\u30c8\u8a08\u7b97\u3068\u8a3c\u62e0\u91d1\u7ba1\u7406\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql5-datetime-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ac\u30a4\u30c9\uff5cMqlDateTime\u30fb\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08TimeCurrent\u30fbMqlDateTime\u30fb\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<address class=\"author author-box\">\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\uff5c200\u7a2e\u985e\u4ee5\u4e0a\u306eEA\u3092\u30d5\u30a9\u30ef\u30fc\u30c9\u8a08\u6e2c\u3059\u308b\u904b\u55b63\u5e74\u306e\u691c\u8a3c\u30e1\u30c7\u30a3\u30a2\u3002MetaTrader (MT4\/MT5) \u3092\u5b9f\u904b\u7528\u3057\u3066\u304d\u305f\u7de8\u96c6\u90e8\u304c\u76e3\u4fee\u30fb\u57f7\u7b46\u3057\u3066\u3044\u307e\u3059\u3002<\/address>\n","protected":false},"excerpt":{"rendered":"<p>MQL4\u306e\u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002Alert()\u30fbComment()\u30fbPrint()\u30fbPrintFormat()\u306b\u3088\u308b\u51fa\u529b\u95a2\u6570\u3001Sleep()\u306b\u3088\u308b\u5f85\u6a5f\u3001GetTickCount()\u306b\u3088\u308b\u30df\u30ea\u79d2\u8a08\u6e2c\u3001SendMail()\u30fbSendNotification()\u30fbPlaySound()\u306b\u3088\u308b\u901a\u77e5\u3001I&#8230;<\/p>\n","protected":false},"author":686,"featured_media":71194,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[301],"tags":[302],"class_list":["post-65722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mql-reference","tag-mql4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9<\/title>\n<meta name=\"description\" content=\"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9\" \/>\n<meta property=\"og:description\" content=\"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Forex Guide\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-14T18:27:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:53:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/systre_COM\" \/>\n<meta name=\"twitter:site\" content=\"@systre_COM\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/\"},\"author\":{\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\"},\"headline\":\"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cAlert\u30fbComment\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db\",\"datePublished\":\"2026-03-14T18:27:03+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/\"},\"wordCount\":341,\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"keywords\":[\"MQL4\"],\"articleSection\":[\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/\",\"name\":\"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"datePublished\":\"2026-03-14T18:27:03+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"description\":\"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"width\":2400,\"height\":1260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-common-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/category\\\/mql-reference\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cAlert\u30fbComment\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM ForexGuide\uff5cFX\u81ea\u52d5\u58f2\u8cb7\u306b\u95a2\u3059\u308b\u304a\u5f79\u7acb\u3061\u60c5\u5831\u3092\u66f4\u65b0\u4e2d\uff01\",\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"width\":500,\"height\":500,\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/systre_COM\",\"https:\\\/\\\/www.youtube.com\\\/@systre_com\",\"https:\\\/\\\/www.facebook.com\\\/people\\\/%E3%82%B7%E3%82%B9%E3%83%88%E3%83%ACcom\\\/61587699411751\\\/\",\"https:\\\/\\\/www.instagram.com\\\/systre_com\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@sys_tre.com\"],\"description\":\"FX\u81ea\u52d5\u58f2\u8cb7EA\uff08Expert Advisor\uff09200\u672c\u4ee5\u4e0a\u3092\u7121\u6599\u63d0\u4f9b\u3059\u308b\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3002\u5168EA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u30fb\u30ea\u30a2\u30eb\u53e3\u5ea7\u904b\u7528\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3002MT4\\\/MT5\u5bfe\u5fdc\u3002\",\"foundingDate\":\"2023\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor\",\"MetaTrader\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"contactPoint\":{\"@type\":\"ContactPoint\",\"contactType\":\"customer service\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/contact-us\\\/\",\"availableLanguage\":[\"Japanese\",\"English\"]},\"legalName\":\"Attempia Ltd\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\"},\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\u306f\u3001FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u5c02\u9580\u3068\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e1\u30c7\u30a3\u30a2\u300c\u30b7\u30b9\u30c8\u30ec.COM\u300d\u306e\u7de8\u96c6\u30c1\u30fc\u30e0\u3067\u3059\u3002200\u672c\u4ee5\u4e0a\u306eEA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u516c\u958b\u3057\u3001\u5b9f\u969b\u306e\u904b\u7528\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u5ba2\u89b3\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u57f7\u7b46\u30fb\u76e3\u4fee\u306fMetaTrader\uff08MT4\\\/MT5\uff09\u3067\u306e\u5b9f\u904b\u7528\u7d4c\u9a13\u3092\u6301\u3064\u30b9\u30bf\u30c3\u30d5\u304c\u62c5\u5f53\u3002\",\"sameAs\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"https:\\\/\\\/x.com\\\/systre_COM\"],\"jobTitle\":\"FX\u81ea\u52d5\u58f2\u8cb7\u30fb\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790 \u7de8\u96c6\u30c1\u30fc\u30e0\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor (EA)\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"MetaTrader 4\",\"MetaTrader 5\",\"MQL4\",\"MQL5\",\"\u30ea\u30b9\u30af\u7ba1\u7406\",\"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"worksFor\":{\"@type\":\"Organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9","description":"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/","og_locale":"ja_JP","og_type":"article","og_title":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9","og_description":"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/","og_site_name":"Forex Guide","article_published_time":"2026-03-14T18:27:03+00:00","article_modified_time":"2026-04-14T15:53:26+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","type":"image\/png"}],"author":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_image":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","twitter_creator":"@https:\/\/twitter.com\/systre_COM","twitter_site":"@systre_COM","twitter_misc":{"\u57f7\u7b46\u8005":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#article","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/"},"author":{"name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1"},"headline":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cAlert\u30fbComment\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db","datePublished":"2026-03-14T18:27:03+00:00","dateModified":"2026-04-14T15:53:26+00:00","mainEntityOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/"},"wordCount":341,"publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","keywords":["MQL4"],"articleSection":["MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/","url":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/","name":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#primaryimage"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","datePublished":"2026-03-14T18:27:03+00:00","dateModified":"2026-04-14T15:53:26+00:00","description":"MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#primaryimage","url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","contentUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","width":2400,"height":1260},{"@type":"BreadcrumbList","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/sys-tre.com\/forexguide\/"},{"@type":"ListItem","position":2,"name":"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","item":"https:\/\/sys-tre.com\/forexguide\/category\/mql-reference\/"},{"@type":"ListItem","position":3,"name":"MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cAlert\u30fbComment\u30fbPrint\u30fbSleep\u30fb\u578b\u5909\u63db"}]},{"@type":"WebSite","@id":"https:\/\/sys-tre.com\/forexguide\/#website","url":"https:\/\/sys-tre.com\/forexguide\/","name":"\u30b7\u30b9\u30c8\u30ec.COM","description":"\u30b7\u30b9\u30c8\u30ec.COM ForexGuide\uff5cFX\u81ea\u52d5\u58f2\u8cb7\u306b\u95a2\u3059\u308b\u304a\u5f79\u7acb\u3061\u60c5\u5831\u3092\u66f4\u65b0\u4e2d\uff01","publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"alternateName":"\u30b7\u30b9\u30c8\u30ecCOM","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sys-tre.com\/forexguide\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/sys-tre.com\/forexguide\/#organization","name":"\u30b7\u30b9\u30c8\u30ec.COM","alternateName":"\u30b7\u30b9\u30c8\u30ecCOM","url":"https:\/\/sys-tre.com\/forexguide\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/logo\/image\/","url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2023\/05\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg","contentUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2023\/05\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg","width":500,"height":500,"caption":"\u30b7\u30b9\u30c8\u30ec.COM"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/systre_COM","https:\/\/www.youtube.com\/@systre_com","https:\/\/www.facebook.com\/people\/%E3%82%B7%E3%82%B9%E3%83%88%E3%83%ACcom\/61587699411751\/","https:\/\/www.instagram.com\/systre_com\/","https:\/\/www.tiktok.com\/@sys_tre.com"],"description":"FX\u81ea\u52d5\u58f2\u8cb7EA\uff08Expert Advisor\uff09200\u672c\u4ee5\u4e0a\u3092\u7121\u6599\u63d0\u4f9b\u3059\u308b\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3002\u5168EA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u30fb\u30ea\u30a2\u30eb\u53e3\u5ea7\u904b\u7528\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3002MT4\/MT5\u5bfe\u5fdc\u3002","foundingDate":"2023","knowsAbout":["FX\u81ea\u52d5\u58f2\u8cb7","Expert Advisor","MetaTrader","\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790","\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9"],"contactPoint":{"@type":"ContactPoint","contactType":"customer service","url":"https:\/\/sys-tre.com\/contact-us\/","availableLanguage":["Japanese","English"]},"legalName":"Attempia Ltd"},{"@type":"Person","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1","name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g","caption":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8"},"description":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\u306f\u3001FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u5c02\u9580\u3068\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e1\u30c7\u30a3\u30a2\u300c\u30b7\u30b9\u30c8\u30ec.COM\u300d\u306e\u7de8\u96c6\u30c1\u30fc\u30e0\u3067\u3059\u3002200\u672c\u4ee5\u4e0a\u306eEA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u516c\u958b\u3057\u3001\u5b9f\u969b\u306e\u904b\u7528\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u5ba2\u89b3\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u57f7\u7b46\u30fb\u76e3\u4fee\u306fMetaTrader\uff08MT4\/MT5\uff09\u3067\u306e\u5b9f\u904b\u7528\u7d4c\u9a13\u3092\u6301\u3064\u30b9\u30bf\u30c3\u30d5\u304c\u62c5\u5f53\u3002","sameAs":["https:\/\/sys-tre.com\/forexguide\/about\/","https:\/\/x.com\/systre_COM"],"jobTitle":"FX\u81ea\u52d5\u58f2\u8cb7\u30fb\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790 \u7de8\u96c6\u30c1\u30fc\u30e0","knowsAbout":["FX\u81ea\u52d5\u58f2\u8cb7","Expert Advisor (EA)","\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790","MetaTrader 4","MetaTrader 5","MQL4","MQL5","\u30ea\u30b9\u30af\u7ba1\u7406","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30c9"],"url":"https:\/\/sys-tre.com\/forexguide\/about\/","worksFor":{"@type":"Organization","name":"\u30b7\u30b9\u30c8\u30ec.COM","url":"https:\/\/sys-tre.com\/"}}]}},"_links":{"self":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/users\/686"}],"replies":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/comments?post=65722"}],"version-history":[{"count":3,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65722\/revisions"}],"predecessor-version":[{"id":67369,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65722\/revisions\/67369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/media\/71194"}],"wp:attachment":[{"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/media?parent=65722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/categories?post=65722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/tags?post=65722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}