{"id":65666,"date":"2026-03-15T03:27:04","date_gmt":"2026-03-14T18:27:04","guid":{"rendered":"https:\/\/sys-tre.com\/forexguide\/?p=65666"},"modified":"2026-04-15T00:53:27","modified_gmt":"2026-04-14T15:53:27","slug":"mql5-common-functions","status":"publish","type":"post","link":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/","title":{"rendered":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fb\u30a8\u30e9\u30fc\u53d6\u5f97"},"content":{"rendered":"\n<p>MQL5\u5171\u901a\u95a2\u6570\u306fPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fbWebRequest\u306a\u3069EA\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\u5916\u90e8\u901a\u77e5\u307e\u3067\u3001\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5168\u95a2\u6570\u3092\u7db2\u7f85\u3059\u308b\u3002<\/p>\n\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_mql5-common-functions.jpg\" alt=\"MQL5 \u5171\u901a\u95a2\u6570 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ab\u30fc\u30c9\" class=\"wp-image-67617\" srcset=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions.jpg 2400w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions-300x158.jpg 300w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions-1024x538.jpg 1024w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions-768x403.jpg 768w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions-1536x806.jpg 1536w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql5-common-functions-2048x1075.jpg 2048w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"common-overview\">\u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u306e\u57fa\u790e\u77e5\u8b58<\/h2>\n\n\n\n<p>\u5171\u901a\u95a2\u6570\u306fEA\u958b\u767a\u306e\u57fa\u76e4\u3068\u306a\u308b\u6a5f\u80fd\u7fa4\u3067\u3059\u3002\u30ed\u30b0\u51fa\u529b\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u3001\u578b\u5909\u63db\u3001\u5916\u90e8\u901a\u4fe1\u306a\u3069\u3001\u3042\u3089\u3086\u308bEA\u3067\u4f7f\u7528\u3059\u308b\u6b20\u304b\u305b\u306a\u3044\u95a2\u6570\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MQL4\u3068MQL5\u306e\u5171\u901a\u95a2\u6570\u306e\u9055\u3044<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>MQL4<\/th><th>MQL5<\/th><\/tr><\/thead><tbody><tr><td>Print<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>PrintFormat<\/td><td>\u5bfe\u5fdc\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><td>\u5bfe\u5fdc\uff08printf\u76f8\u5f53\uff09<\/td><\/tr><tr><td>Alert<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>Comment<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc\uff08\u540c\u3058\uff09<\/td><\/tr><tr><td>MessageBox<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>SendNotification<\/td><td>\u5bfe\u5fdc\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>WebRequest<\/td><td>\u5bfe\u5fdc\uff08\u5236\u9650\u3042\u308a\uff09<\/td><td>\u5bfe\u5fdc\uff082\u3064\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\uff09<\/td><\/tr><tr><td>GetMicrosecondCount<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc\uff08\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\uff09<\/td><\/tr><tr><td>EnumToString<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>DebugBreak<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>ExpertRemove<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"print-printformat\">Print \/ PrintFormat \u2014 \u30ed\u30b0\u51fa\u529b<\/h2>\n\n\n\n<p>EA\u958b\u767a\u3067\u6700\u3082\u983b\u7e41\u306b\u4f7f\u7528\u3059\u308b\u95a2\u6570\u3067\u3059\u3002\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30bf\u30d6\uff08\u30ed\u30b0\uff09\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Print \/ PrintFormat \u30b7\u30b0\u30cd\u30c1\u30e3\"><code>void Print(\n   ...  \/\/ \u4efb\u610f\u306e\u6570\u306e\u5f15\u6570\uff08\u81ea\u52d5\u7684\u306b\u6587\u5b57\u5217\u306b\u5909\u63db\u3055\u308c\u308b\uff09\n);\n\nvoid PrintFormat(\n   string  format_string,  \/\/ \u66f8\u5f0f\u6587\u5b57\u5217\uff08printf\u5f62\u5f0f\uff09\n   ...                     \/\/ \u5f15\u6570\n);\n\/\/ PrintFormat()\u306fStringFormat()\u306e\u7d50\u679c\u3092Print()\u3059\u308b\u306e\u3068\u540c\u7b49\n\n\/\/ \u57fa\u672c\u7684\u306aPrint\nPrint(\"Hello MQL5\");\nPrint(\"Bid=\", SymbolInfoDouble(_Symbol, SYMBOL_BID));\nPrint(\"\u8907\u6570\u306e\u5024:\", 123,\"\", 45.67,\"\", true,\"\", TimeCurrent());\n\n\/\/ PrintFormat\u3067\u66f8\u5f0f\u4ed8\u304d\u51fa\u529b\nPrintFormat(\"Symbol=%s Bid=%.5f Ask=%.5f Spread=%d\",\n            _Symbol,\n            SymbolInfoDouble(_Symbol, SYMBOL_BID),\n            SymbolInfoDouble(_Symbol, SYMBOL_ASK),\n            (int)SymbolInfoInteger(_Symbol, SYMBOL_SPREAD));\n\n\/\/ \u66f8\u5f0f\u6307\u5b9a\u5b50\u306e\u4e00\u89a7\n\/\/ %s  = \u6587\u5b57\u5217\n\/\/ %d  = \u6574\u6570\uff0810\u9032\u6570\uff09\n\/\/ %u  = \u7b26\u53f7\u306a\u3057\u6574\u6570\n\/\/ %f  = \u6d6e\u52d5\u5c0f\u6570\u70b9\n\/\/ %.Nf = \u5c0f\u6570\u70b9\u4ee5\u4e0bN\u6841\n\/\/ %e  = \u6307\u6570\u8868\u8a18\n\/\/ %I64d = long\u578b\u6574\u6570\n\/\/ %I64u = ulong\u578b\u6574\u6570\n\/\/ %%  = %\u6587\u5b57\u305d\u306e\u3082\u306e<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u5b9f\u8df5\u7684\u306a\u30ed\u30b0\u51fa\u529b\u30d1\u30bf\u30fc\u30f3\"><code>\/\/ \u30d1\u30bf\u30fc\u30f31: \u53d6\u5f15\u30ed\u30b0\nvoid LogTrade(string action, ulong ticket, double price, double lot)\n  {\n   PrintFormat(\"[TRADE] %s Ticket=%I64u Symbol=%s Price=%.5f Lot=%.2f\",\n               action, ticket, _Symbol, price, lot);\n  }\n\n\/\/ \u30d1\u30bf\u30fc\u30f32: \u30a8\u30e9\u30fc\u30ed\u30b0\nvoid LogError(string context, int errorCode)\n  {\n   PrintFormat(\"[ERROR] %s: code=%d (%s)\",\n               context, errorCode,\n               errorCode == 0 ?\"No error\" : IntegerToString(errorCode));\n  }\n\n\/\/ \u30d1\u30bf\u30fc\u30f33: \u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\uff08\u6761\u4ef6\u4ed8\u304d\uff09\ninput bool DebugMode = false;\n\nvoid LogDebug(string message)\n  {\n   if(DebugMode)\n      PrintFormat(\"[DEBUG] %s | %s\", TimeToString(TimeCurrent(), TIME_SECONDS), message);\n  }\n\n\/\/ \u30d1\u30bf\u30fc\u30f34: \u69cb\u9020\u4f53\u306e\u51fa\u529b\nvoid LogPosition(ulong ticket)\n  {\n   if(!PositionSelectByTicket(ticket)) return;\n\n   PrintFormat(\"=== Position #%I64u ===\", ticket);\n   PrintFormat(\"  Symbol:  %s\", PositionGetString(POSITION_SYMBOL));\n   PrintFormat(\"  Type:    %s\", PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY ?\"Buy\" :\"Sell\");\n   PrintFormat(\"  Volume:  %.2f\", PositionGetDouble(POSITION_VOLUME));\n   PrintFormat(\"  Open:    %.5f\", PositionGetDouble(POSITION_PRICE_OPEN));\n   PrintFormat(\"  Current: %.5f\", PositionGetDouble(POSITION_PRICE_CURRENT));\n   PrintFormat(\"  SL:      %.5f\", PositionGetDouble(POSITION_SL));\n   PrintFormat(\"  TP:      %.5f\", PositionGetDouble(POSITION_TP));\n   PrintFormat(\"  Profit:  %.2f\", PositionGetDouble(POSITION_PROFIT));\n   PrintFormat(\"  Swap:    %.2f\", PositionGetDouble(POSITION_SWAP));\n  }<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-big_icon_caution\">OnTick()\u5185\u3067\u6bce\u30c6\u30a3\u30c3\u30afPrint()\u3092\u547c\u3076\u3068\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304c\u6025\u901f\u306b\u80a5\u5927\u5316\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u3082\u5f71\u97ff\u3057\u307e\u3059\u3002\u672c\u756a\u904b\u7528\u3067\u306f<strong>\u4e3b\u8981\u306a\u30a4\u30d9\u30f3\u30c8\u6642\u306e\u307f<\/strong>\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30ed\u30b0\u306f<code>input bool DebugMode<\/code>\u3067\u5207\u308a\u66ff\u3048\u53ef\u80fd\u306b\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"alert\">Alert \u2014 \u30a2\u30e9\u30fc\u30c8\u30c0\u30a4\u30a2\u30ed\u30b0<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Alert \u30b7\u30b0\u30cd\u30c1\u30e3\u3068\u4f7f\u7528\u4f8b\"><code>void Alert(\n   ...  \/\/ \u4efb\u610f\u306e\u6570\u306e\u5f15\u6570\n);\n\n\/\/ \u97f3\u58f0\u4ed8\u304d\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u901a\u77e5\uff08\u30e6\u30fc\u30b6\u30fc\u306b\u5373\u5ea7\u306b\u6c17\u4ed8\u304b\u305b\u305f\u3044\u5834\u5408\uff09\nAlert(\"\u91cd\u8981:\", _Symbol,\" \u3067\u30b9\u30c8\u30c3\u30d7\u30ed\u30b9\u306b\u5230\u9054\u3057\u307e\u3057\u305f\");\nAlert(\"\u6ce8\u6587\u7d04\u5b9a: Buy\", 0.1,\" lots @\", 1.12345);\n\n\/\/ Alert\u9023\u6253\u3092\u9632\u6b62\u3059\u308b\u30d1\u30bf\u30fc\u30f3\ndatetime lastAlertTime = 0;\nvoid SafeAlert(string message, int cooldownSeconds = 300)\n  {\n   if(TimeCurrent() - lastAlertTime < cooldownSeconds) return;\n   lastAlertTime = TimeCurrent();\n   Alert(message);\n  }<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-icon_info\"><code>Alert()<\/code>\u306f\u30a2\u30e9\u30fc\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3057\u3001\u97f3\u3092\u9cf4\u3089\u3057\u307e\u3059\u3002\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff08\u7121\u8996\u3055\u308c\u307e\u3059\uff09\u3002\u983b\u7e41\u306b\u547c\u3076\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u3092\u59a8\u3052\u308b\u305f\u3081\u3001\u7279\u5b9a\u30a4\u30d9\u30f3\u30c8\uff08\u53d6\u5f15\u6210\u7acb\u30fb\u5927\u304d\u306a\u640d\u5931\u7b49\uff09\u306e\u307f\u306b\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"comment\">Comment \u2014 \u30c1\u30e3\u30fc\u30c8\u30b3\u30e1\u30f3\u30c8\u8868\u793a<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Comment \u30b7\u30b0\u30cd\u30c1\u30e3\u3068\u4f7f\u7528\u4f8b\"><code>void Comment(\n   ...  \/\/ \u4efb\u610f\u306e\u6570\u306e\u5f15\u6570\n);\n\n\/\/ \u30c1\u30e3\u30fc\u30c8\u5de6\u4e0a\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u60c5\u5831\u3092\u8868\u793a\nvoid OnTick()\n  {\n   double bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);\n   double ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);\n   int spread = (int)SymbolInfoInteger(_Symbol, SYMBOL_SPREAD);\n\n   Comment(\"=== MyEA v2.0 ===n\",\"Symbol:\", _Symbol,\"n\",\"Bid:\", DoubleToString(bid, _Digits),\"n\",\"Ask:\", DoubleToString(ask, _Digits),\"n\",\"Spread:\", spread,\" ptn\",\"Time:\", TimeToString(TimeCurrent(), TIME_SECONDS)\n   );\n  }\n\n\/\/ \u30b3\u30e1\u30f3\u30c8\u3092\u30af\u30ea\u30a2\nvoid OnDeinit(const int reason)\n  {\n   Comment(\"\");  \/\/ \u7a7a\u6587\u5b57\u5217\u3067\u30af\u30ea\u30a2\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"messagebox\">MessageBox \u2014 \u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"MessageBox \u30b7\u30b0\u30cd\u30c1\u30e3\u3068\u4f7f\u7528\u4f8b\"><code>int MessageBox(\n   string  text,             \/\/ \u672c\u6587\n   string  caption = NULL,   \/\/ \u30bf\u30a4\u30c8\u30eb\n   int     flags = 0         \/\/ \u30d5\u30e9\u30b0\uff08\u30dc\u30bf\u30f3\u306e\u7a2e\u985e\uff09\n);\n\/\/ \u623b\u308a\u5024: IDYES, IDNO, IDOK, IDCANCEL, IDABORT, IDRETRY, IDIGNORE\n\n\/\/ \u30d5\u30e9\u30b0\u4f8b\n\/\/ MB_OK           - OK\u30dc\u30bf\u30f3\u306e\u307f\n\/\/ MB_OKCANCEL     - OK\/\u30ad\u30e3\u30f3\u30bb\u30eb\n\/\/ MB_YESNO        - \u306f\u3044\/\u3044\u3044\u3048\n\/\/ MB_YESNOCANCEL  - \u306f\u3044\/\u3044\u3044\u3048\/\u30ad\u30e3\u30f3\u30bb\u30eb\n\/\/ MB_ICONWARNING  - \u8b66\u544a\u30a2\u30a4\u30b3\u30f3\n\/\/ MB_ICONERROR    - \u30a8\u30e9\u30fc\u30a2\u30a4\u30b3\u30f3\n\/\/ MB_ICONQUESTION - \u8cea\u554f\u30a2\u30a4\u30b3\u30f3\n\n\/\/ \u78ba\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0\nint result = MessageBox(\"\u5168\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u6c7a\u6e08\u3057\u307e\u3059\u304b\uff1f\",\"\u78ba\u8a8d\", MB_YESNO | MB_ICONQUESTION);\nif(result == IDYES)\n  {\n   Print(\"\u30e6\u30fc\u30b6\u30fc\u304c\u6c7a\u6e08\u3092\u627f\u8a8d\u3057\u307e\u3057\u305f\");\n   \/\/ \u5168\u6c7a\u6e08\u51e6\u7406...\n  }\n\n\/\/ \u8b66\u544a\u30c0\u30a4\u30a2\u30ed\u30b0\nMessageBox(\"\u8a3c\u62e0\u91d1\u304c\u4e0d\u8db3\u3057\u3066\u3044\u307e\u3059\u3002\u30ed\u30c3\u30c8\u30b5\u30a4\u30ba\u3092\u6e1b\u3089\u3057\u3066\u304f\u3060\u3055\u3044\u3002\",\"\u8b66\u544a\", MB_OK | MB_ICONWARNING);<\/code><\/pre><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\" data-has-icon=\"1\">\n<svg height=\"1em\" width=\"1em\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" viewBox=\"0 0 48 48\"><path d=\"M47 37.9 27.5 4.1c-.7-1.3-2-2-3.5-2s-2.7.7-3.5 2L1 37.9c-.7 1.3-.7 2.7 0 4 .7 1.3 2 2 3.5 2h39.1c1.4 0 2.7-.7 3.5-2 .6-1.3.6-2.7-.1-4zM21.5 17.5c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v10c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-10zM24 38c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z\"><\/path><\/svg>\n<span><strong>\u91cd\u8981<\/strong><\/span>\n<\/div>\n<div class=\"cap_box_content\">\n\n<p><code>MessageBox()<\/code>\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u5fdc\u7b54\u3059\u308b\u307e\u3067EA\u306e\u51e6\u7406\u3092<strong>\u30d6\u30ed\u30c3\u30af<\/strong>\u3057\u307e\u3059\u3002OnTick()\u5185\u3067\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u9593\u30c6\u30a3\u30c3\u30af\u306e\u51e6\u7406\u304c\u505c\u6b62\u3057\u307e\u3059\u3002\u7dca\u6025\u306e\u78ba\u8a8d\u4ee5\u5916\u3067\u306fOnTimer()\u3084OnChartEvent()\u5185\u3067\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sleep\">Sleep \u2014 \u51e6\u7406\u306e\u4e00\u6642\u505c\u6b62<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"Sleep \u30b7\u30b0\u30cd\u30c1\u30e3\u3068\u4f7f\u7528\u4f8b\"><code>void Sleep(\n   int  milliseconds  \/\/ \u505c\u6b62\u6642\u9593\uff08\u30df\u30ea\u79d2\uff09\n);\n\n\/\/ \u6ce8\u6587\u30ea\u30c8\u30e9\u30a4\u30d1\u30bf\u30fc\u30f3\nbool PlaceOrderWithRetry(int retries = 3)\n  {\n   for(int i = 0; i < retries; i++)\n     {\n      \/\/ ... \u6ce8\u6587\u51e6\u7406 ...\n      MqlTradeResult result;\n      MqlTradeRequest request;\n      \/\/ ... request\u8a2d\u5b9a ...\n\n      if(OrderSend(request, result))\n        {\n         if(result.retcode == TRADE_RETCODE_DONE)\n            return true;\n        }\n\n      int error = GetLastError();\n      PrintFormat(\"\u6ce8\u6587\u30ea\u30c8\u30e9\u30a4 %d\/%d: error=%d\", i + 1, retries, error);\n\n      \/\/ \u30ea\u30af\u30aa\u30fc\u30c8\u7b49\u306e\u4e00\u6642\u7684\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306f\u30ea\u30c8\u30e9\u30a4\n      if(result.retcode == TRADE_RETCODE_REQUOTE || result.retcode == TRADE_RETCODE_TIMEOUT)\n         Sleep(500);  \/\/ 500ms\u5f85\u6a5f\n      else\n         break;  \/\/ \u6c38\u7d9a\u7684\u30a8\u30e9\u30fc\u306f\u5373\u5ea7\u306b\u4e2d\u6b62\n     }\n   return false;\n  }\n\n\/\/ CopyBuffer\u5f85\u6a5f\u30d1\u30bf\u30fc\u30f3\nbool WaitForIndicator(int handle, int bufferNum, int count, double &#038;buffer[])\n  {\n   ArraySetAsSeries(buffer, true);\n   for(int i = 0; i < 10; i++)  \/\/ \u6700\u592710\u56de\u30ea\u30c8\u30e9\u30a4\n     {\n      if(CopyBuffer(handle, bufferNum, 0, count, buffer) >= count)\n         return true;\n      Sleep(100);  \/\/ 100ms\u5f85\u6a5f\n     }\n   return false;\n  }<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-big_icon_caution\"><code>Sleep()<\/code>\u306fEA\u306e\u51e6\u7406\u3092\u5b8c\u5168\u306b\u505c\u6b62\u3057\u307e\u3059\u3002OnTick()\u5185\u3067\u9577\u6642\u9593\u306eSleep\u3092\u4f7f\u3046\u3068\u3001\u30c6\u30a3\u30c3\u30af\u3092\u53d6\u308a\u3053\u307c\u3057\u307e\u3059\u3002<strong>\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u81ea\u7531\u306b\u4f7f\u3048\u307e\u3059\u304c\u3001EA\/\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3067\u306f\u77ed\u6642\u9593\uff08100\u301c500ms\uff09\u306b\u9650\u5b9a<\/strong>\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306eSleep()\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"expertremove\">ExpertRemove \u2014 EA\u306e\u81ea\u5df1\u505c\u6b62<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"ExpertRemove\"><code>void ExpertRemove();\n\/\/ EA\u3092\u30c1\u30e3\u30fc\u30c8\u304b\u3089\u524a\u9664\u3059\u308b\uff08OnDeinit\u304c\u547c\u3070\u308c\u308b\uff09\n\n\/\/ \u4f7f\u7528\u4f8b: \u81f4\u547d\u7684\u30a8\u30e9\u30fc\u6642\u306bEA\u3092\u505c\u6b62\nvoid OnTick()\n  {\n   \/\/ \u53e3\u5ea7\u6b8b\u9ad8\u30c1\u30a7\u30c3\u30af\n   if(AccountInfoDouble(ACCOUNT_BALANCE) < 1000)\n     {\n      Alert(\"\u53e3\u5ea7\u6b8b\u9ad8\u304c\u6700\u4f4e\u984d\u3092\u4e0b\u56de\u308a\u307e\u3057\u305f\u3002EA\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\");\n      ExpertRemove();\n      return;  \/\/ ExpertRemove\u5f8c\u3082\u73fe\u5728\u306eOnTick()\u306f\u6700\u5f8c\u307e\u3067\u5b9f\u884c\u3055\u308c\u308b\n     }\n\n   \/\/ \u6700\u5927\u30c9\u30ed\u30fc\u30c0\u30a6\u30f3\u30c1\u30a7\u30c3\u30af\n   double equity = AccountInfoDouble(ACCOUNT_EQUITY);\n   double balance = AccountInfoDouble(ACCOUNT_BALANCE);\n   double drawdownPct = (balance - equity) \/ balance * 100;\n\n   if(drawdownPct > 20)  \/\/ 20%\u8d85\u306e\u30c9\u30ed\u30fc\u30c0\u30a6\u30f3\n     {\n      Alert(\"\u30c9\u30ed\u30fc\u30c0\u30a6\u30f3\u304c20%\u3092\u8d85\u3048\u307e\u3057\u305f\u3002EA\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\");\n      ExpertRemove();\n     }\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"getlasterror\">GetLastError \/ ResetLastError \u2014 \u30a8\u30e9\u30fc\u51e6\u7406<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"GetLastError \/ ResetLastError\"><code>int GetLastError();       \/\/ \u6700\u5f8c\u306e\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\nvoid ResetLastError();    \/\/ \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\n\n\/\/ \u57fa\u672c\u7684\u306a\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\nvoid OnTick()\n  {\n   ResetLastError();  \/\/ \u4e8b\u524d\u306b\u30ea\u30bb\u30c3\u30c8\n\n   double buffer[];\n   ArraySetAsSeries(buffer, true);\n   int copied = CopyBuffer(maHandle, 0, 0, 10, buffer);\n\n   if(copied < 10)\n     {\n      int err = GetLastError();\n      PrintFormat(\"CopyBuffer\u5931\u6557: copied=%d error=%d\", copied, err);\n      return;\n     }\n  }\n\n\/\/ \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u4eba\u9593\u304c\u8aad\u3081\u308b\u6587\u5b57\u5217\u306b\u5909\u63db\nstring ErrorDescription(int errorCode)\n  {\n   switch(errorCode)\n     {\n      case 0:     return\"No error\";\n      case 4001:  return\"Unexpected internal error\";\n      case 4002:  return\"Wrong internal parameter\";\n      case 4003:  return\"Invalid parameter when calling function\";\n      case 4004:  return\"Not enough memory\";\n      case 4007:  return\"Not enough memory for array resize\";\n      case 4051:  return\"Invalid function parameter value\";\n      case 4052:  return\"Internal string error\";\n      case 4053:  return\"Array error\";\n      case 4101:  return\"Wrong chart ID\";\n      case 4103:  return\"Cannot open chart\";\n      case 4104:  return\"Chart not responding\";\n      case 4201:  return\"Cannot open file\";\n      case 4202:  return\"Wrong file name\";\n      case 4203:  return\"Too many files opened\";\n      case 10004: return\"Requote\";\n      case 10006: return\"Request rejected\";\n      case 10007: return\"Request canceled by trader\";\n      case 10008: return\"Order placed\";\n      case 10009: return\"Request completed\";\n      case 10010: return\"Only part of request completed\";\n      case 10013: return\"Invalid request\";\n      case 10014: return\"Invalid volume\";\n      case 10015: return\"Invalid price\";\n      case 10016: return\"Invalid stops\";\n      case 10018: return\"Market closed\";\n      case 10019: return\"Not enough money\";\n      case 10021: return\"No price changes\";\n      case 10025: return\"Too many requests\";\n      default:    return StringFormat(\"Unknown error (%d)\", errorCode);\n     }\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"gettickcount\">GetTickCount \/ GetMicrosecondCount \u2014 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c\"><code>uint GetTickCount();          \/\/ \u30df\u30ea\u79d2\u5358\u4f4d\u306e\u30ab\u30a6\u30f3\u30bf\uff08\u7d0449\u65e5\u3067\u4e00\u5468\uff09\nulong GetMicrosecondCount();  \/\/ \u30de\u30a4\u30af\u30ed\u79d2\u5358\u4f4d\u306e\u30ab\u30a6\u30f3\u30bf\uff08\u9ad8\u7cbe\u5ea6\uff09\n\n\/\/ \u30df\u30ea\u79d2\u7cbe\u5ea6\u306e\u51e6\u7406\u6642\u9593\u8a08\u6e2c\nvoid MeasurePerformance()\n  {\n   uint start = GetTickCount();\n\n   \/\/ \u8a08\u6e2c\u3057\u305f\u3044\u51e6\u7406\n   MqlRates rates[];\n   ArraySetAsSeries(rates, true);\n   CopyRates(_Symbol, PERIOD_M1, 0, 10000, rates);\n\n   uint elapsed = GetTickCount() - start;\n   PrintFormat(\"\u51e6\u7406\u6642\u9593: %u ms\", elapsed);\n  }\n\n\/\/ \u30de\u30a4\u30af\u30ed\u79d2\u7cbe\u5ea6\u306e\u8a08\u6e2c\uff08\u9ad8\u7cbe\u5ea6\uff09\nvoid PreciseMeasure()\n  {\n   ulong start = GetMicrosecondCount();\n\n   \/\/ \u8a08\u6e2c\u3057\u305f\u3044\u51e6\u7406\n   for(int i = 0; i < 1000; i++)\n     {\n      double val = MathSqrt(MathPow(i, 2.5));\n     }\n\n   ulong elapsed = GetMicrosecondCount() - start;\n   PrintFormat(\"\u51e6\u7406\u6642\u9593: %I64u \u03bcs (%.3f ms)\", elapsed, elapsed \/ 1000.0);\n  }\n\n\/\/ OnTick()\u306e\u51e6\u7406\u6642\u9593\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\nvoid OnTick()\n  {\n   ulong tickStart = GetMicrosecondCount();\n\n   \/\/ ... EA\u51e6\u7406 ...\n\n   ulong tickTime = GetMicrosecondCount() - tickStart;\n   if(tickTime > 10000)  \/\/ 10ms\u8d85\u306e\u5834\u5408\u306f\u8b66\u544a\n      PrintFormat(\"OnTick()\u304c\u9045\u3044: %I64u \u03bcs (%.1f ms)\", tickTime, tickTime \/ 1000.0);\n  }<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-big_icon_point\"><code>GetMicrosecondCount()<\/code>\u306fMQL5\u306e\u307f\u306e\u6a5f\u80fd\u3067\u3001\u30de\u30a4\u30af\u30ed\u79d2\uff081\/1,000,000\u79d2\uff09\u7cbe\u5ea6\u306e\u8a08\u6e2c\u304c\u53ef\u80fd\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3084\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u7279\u5b9a\u306b\u975e\u5e38\u306b\u6709\u7528\u3067\u3059\u3002<code>GetTickCount()<\/code>\u306fMQL4\u3067\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"type-conversion\">\u578b\u5909\u63db\u95a2\u6570<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u578b\u5909\u63db\u95a2\u6570\u4e00\u89a7\"><code>\/\/ double \u2192 string\nstring DoubleToString(double value, int digits = 8);\nDoubleToString(1.23456, 3);      \/\/\"1.235\"\nDoubleToString(150.0, _Digits);  \/\/\"150.000\"\n\n\/\/ int\/long \u2192 string\nstring IntegerToString(long number, int str_len = 0, ushort fill_char = ' ');\nIntegerToString(42);              \/\/\"42\"\nIntegerToString(42, 5, '0');      \/\/\"00042\"\uff08\u30bc\u30ed\u57cb\u3081\uff09\n\n\/\/ string \u2192 double\ndouble StringToDouble(string value);\nStringToDouble(\"1.23456\");        \/\/ 1.23456\nStringToDouble(\"abc\");            \/\/ 0.0\uff08\u5909\u63db\u5931\u6557\uff09\n\n\/\/ string \u2192 int\/long\nlong StringToInteger(string value);\nStringToInteger(\"12345\");          \/\/ 12345\nStringToInteger(\"0xFF\");           \/\/ 0\uff08\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b16\u9032\u5bfe\u5fdc\u306e\u8a18\u8f09\u306a\u3057\uff09\n\n\/\/ char \u2192 string\nstring CharToString(uchar char_code);\nCharToString(65);                  \/\/\"A\"\n\n\/\/ short \u2192 string\nstring ShortToString(ushort symbol_code);\nShortToString(0x30A2);            \/\/\"\u30a2\"\uff08\u30ab\u30bf\u30ab\u30ca\uff09\n\n\/\/ color \u2192 string \/ string \u2192 color\nstring ColorToString(color value, bool color_name = false);\nColorToString(clrRed);             \/\/\"255,0,0\"\nColorToString(clrRed, true);       \/\/\"Red\"\n\ncolor StringToColor(string value);\nStringToColor(\"255,0,0\");          \/\/ clrRed\nStringToColor(\"Red\");              \/\/ clrRed\n\n\/\/ enum \u2192 string\uff08MQL5\u306e\u307f\uff09\n\/\/ EnumToString\u306f\u4efb\u610f\u306e\u5217\u6319\u578b\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\ntemplate\nstring EnumToString(T value);\nEnumToString(PERIOD_H1);           \/\/\"PERIOD_H1\"\nEnumToString(POSITION_TYPE_BUY);   \/\/\"POSITION_TYPE_BUY\"<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u578b\u5909\u63db\u306e\u5b9f\u8df5\u30d1\u30bf\u30fc\u30f3\"><code>\/\/ \u4fa1\u683c\u306e\u8868\u793a\u7528\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\nstring FormatPrice(double price)\n  {\n   return DoubleToString(price, _Digits);\n  }\n\n\/\/ pips\u8868\u793a\uff08\u5c0f\u6570\u70b91\u6841\uff09\nstring FormatPips(double points)\n  {\n   double pips = points \/ (_Digits == 3 || _Digits == 5 ? 10 : 1);\n   return DoubleToString(pips, 1) +\" pips\";\n  }\n\n\/\/ \u91d1\u984d\u8868\u793a\uff08\u901a\u8ca8\u8a18\u53f7\u4ed8\u304d\uff09\nstring FormatMoney(double amount)\n  {\n   string currency = AccountInfoString(ACCOUNT_CURRENCY);\n   if(currency ==\"JPY\")\n      return IntegerToString((long)MathRound(amount)) +\"\u5186\";\n   else\n      return DoubleToString(amount, 2) +\"\" + currency;\n  }\n\n\/\/ \u6642\u9593\u306e\u30ab\u30b9\u30bf\u30e0\u8868\u793a\nstring FormatDuration(int seconds)\n  {\n   int hours = seconds \/ 3600;\n   int mins  = (seconds % 3600) \/ 60;\n   int secs  = seconds % 60;\n\n   if(hours > 0)\n      return StringFormat(\"%dh %02dm %02ds\", hours, mins, secs);\n   else if(mins > 0)\n      return StringFormat(\"%dm %02ds\", mins, secs);\n   else\n      return StringFormat(\"%ds\", secs);\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"uninitializereason\">UninitializeReason \/ IsStopped \u2014 EA\u72b6\u614b\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"EA\u72b6\u614b\u306e\u78ba\u8a8d\"><code>int UninitializeReason();  \/\/ EA\u7d42\u4e86\u306e\u7406\u7531\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\nbool IsStopped();          \/\/ EA\u304c\u505c\u6b62\u8981\u6c42\u3092\u53d7\u3051\u3066\u3044\u308b\u304b\n\n\/\/ OnDeinit\u3067\u306e\u7d42\u4e86\u7406\u7531\u306e\u53d6\u5f97\nvoid OnDeinit(const int reason)\n  {\n   string reasonStr;\n   switch(reason)\n     {\n      case REASON_PROGRAM:     reasonStr =\"ExpertRemove()\u547c\u3073\u51fa\u3057\"; break;\n      case REASON_REMOVE:      reasonStr =\"\u30c1\u30e3\u30fc\u30c8\u304b\u3089EA\u3092\u524a\u9664\"; break;\n      case REASON_RECOMPILE:   reasonStr =\"\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\"; break;\n      case REASON_CHARTCHANGE: reasonStr =\"\u30b7\u30f3\u30dc\u30eb\u307e\u305f\u306f\u6642\u9593\u8db3\u306e\u5909\u66f4\"; break;\n      case REASON_CHARTCLOSE:  reasonStr =\"\u30c1\u30e3\u30fc\u30c8\u306e\u7d42\u4e86\"; break;\n      case REASON_PARAMETERS:  reasonStr =\"\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5909\u66f4\"; break;\n      case REASON_ACCOUNT:     reasonStr =\"\u53e3\u5ea7\u306e\u5909\u66f4\"; break;\n      case REASON_TEMPLATE:    reasonStr =\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u9069\u7528\"; break;\n      case REASON_INITFAILED:  reasonStr =\"OnInit()\u306e\u5931\u6557\"; break;\n      case REASON_CLOSE:       reasonStr =\"\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u7d42\u4e86\"; break;\n      default:                 reasonStr =\"\u4e0d\u660e\"; break;\n     }\n   PrintFormat(\"EA\u7d42\u4e86: reason=%d (%s)\", reason, reasonStr);\n  }\n\n\/\/ \u9577\u3044\u51e6\u7406\u4e2d\u306e\u505c\u6b62\u30c1\u30a7\u30c3\u30af\nvoid LongProcess()\n  {\n   for(int i = 0; i < 100000; i++)\n     {\n      if(IsStopped())\n        {\n         Print(\"\u505c\u6b62\u8981\u6c42\u3092\u53d7\u4fe1\u3002\u51e6\u7406\u3092\u4e2d\u65ad\u3057\u307e\u3059\u3002\");\n         return;\n        }\n      \/\/ ... \u91cd\u3044\u51e6\u7406 ...\n     }\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sendnotification\">SendNotification \/ SendMail \/ SendFTP \u2014 \u5916\u90e8\u901a\u77e5<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u5916\u90e8\u901a\u77e5\"><code>\/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\uff08\u30b9\u30de\u30db\u306eMT5\u30a2\u30d7\u30ea\u306b\u9001\u4fe1\uff09\nbool SendNotification(\n   string  text  \/\/ \u901a\u77e5\u30c6\u30ad\u30b9\u30c8\uff08\u6700\u5927255\u6587\u5b57\uff09\n);\n\n\/\/ \u30e1\u30fc\u30eb\u9001\u4fe1\nbool SendMail(\n   string  subject,  \/\/ \u4ef6\u540d\n   string  body      \/\/ \u672c\u6587\n);\n\n\/\/ FTP\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\nbool SendFTP(\n   string  filename,        \/\/ \u30d5\u30a1\u30a4\u30eb\u540d\n   string  ftp_path = NULL  \/\/ FTP\u30d1\u30b9\n);\n\n\/\/ \u53d6\u5f15\u901a\u77e5\u306e\u9001\u4fe1\nvoid NotifyTrade(string action, double price, double lot, double profit = 0)\n  {\n   \/\/ \u30d7\u30c3\u30b7\u30e5\u901a\u77e5\n   string msg = StringFormat(\"[%s] %s %s %.2f lots @ %.5f\",\n                             TimeToString(TimeCurrent(), TIME_MINUTES),\n                             action, _Symbol, lot, price);\n   if(profit != 0)\n      msg += StringFormat(\" P\/L=%.2f\", profit);\n\n   if(!SendNotification(msg))\n      PrintFormat(\"\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u5931\u6557: %d\", GetLastError());\n\n   \/\/ \u30e1\u30fc\u30eb\u901a\u77e5\n   string subject = StringFormat(\"EA Trade: %s %s\", action, _Symbol);\n   string body = StringFormat(\"EA Trading Alertn\"\"================n\"\"Action: %sn\"\"Symbol: %sn\"\"Lot: %.2fn\"\"Price: %.5fn\"\"Time: %sn\",\n      action, _Symbol, lot, price,\n      TimeToString(TimeCurrent(), TIME_DATE | TIME_SECONDS));\n\n   if(profit != 0)\n      body += StringFormat(\"Profit: %.2fn\", profit);\n\n   SendMail(subject, body);\n  }<\/code><\/pre><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\" data-has-icon=\"1\">\n<svg height=\"1em\" width=\"1em\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" viewBox=\"0 0 48 48\"><path d=\"M47 37.9 27.5 4.1c-.7-1.3-2-2-3.5-2s-2.7.7-3.5 2L1 37.9c-.7 1.3-.7 2.7 0 4 .7 1.3 2 2 3.5 2h39.1c1.4 0 2.7-.7 3.5-2 .6-1.3.6-2.7-.1-4zM21.5 17.5c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v10c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-10zM24 38c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z\"><\/path><\/svg>\n<span><strong>\u91cd\u8981<\/strong><\/span>\n<\/div>\n<div class=\"cap_box_content\">\n\n<p><code>SendNotification()<\/code>\u3092\u4f7f\u3046\u306b\u306f\u3001MT5\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3067<strong>MetaQuotes ID<\/strong>\u3092\u53d6\u5f97\u3057\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u8a2d\u5b9a\u3067\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code>SendMail()<\/code>\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u300c\u30e1\u30fc\u30eb\u300d\u30bf\u30d6\u3067SMTP\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u3044\u305a\u308c\u3082\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"webrequest\">WebRequest \u2014 Web API\u9023\u643a<\/h2>\n\n\n\n<p>\u5916\u90e8\u306eWeb API\u3068\u901a\u4fe1\u3059\u308b\u95a2\u6570\u3067\u3059\u3002EA\u958b\u767a\u3067\u306f\u3001\u5916\u90e8\u30b7\u30b0\u30ca\u30eb\u306e\u53d6\u5f97\u3001Webhook\u901a\u77e5\u3001\u30c7\u30fc\u30bf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306a\u3069\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"WebRequest \u30b7\u30b0\u30cd\u30c1\u30e3\"><code>\/\/ \u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c91: \u30d8\u30c3\u30c0\u30fc\u3092\u6587\u5b57\u5217\u3067\u6307\u5b9a\nint WebRequest(\n   const string  method,       \/\/\"GET\" or\"POST\"\n   const string  url,          \/\/ URL\n   const string  headers,      \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\n   int           timeout,      \/\/ \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\uff08\u30df\u30ea\u79d2\uff09\n   const char    &data[],      \/\/ \u9001\u4fe1\u30c7\u30fc\u30bf\n   char          &result[],    \/\/ \u5fdc\u7b54\u30c7\u30fc\u30bf\n   string        &result_headers  \/\/ \u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\n);\n\n\/\/ \u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c92: Cookie\u5bfe\u5fdc\nint WebRequest(\n   const string  method,\n   const string  url,\n   const string  cookie,\n   const string  referer,\n   int           timeout,\n   const char    &data[],\n   char          &result[],\n   string        &result_headers\n);\n\/\/ \u623b\u308a\u5024: HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\uff08200=\u6210\u529f\u3001-1=\u30a8\u30e9\u30fc\uff09<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"WebRequest \u5b9f\u8df5\u4f8b\"><code>\/\/ \u30d1\u30bf\u30fc\u30f31: Webhook\u901a\u77e5\uff08Discord\/Slack\u7b49\uff09\nbool SendWebhook(string webhookUrl, string message)\n  {\n   string headers =\"Content-Type: application\/jsonrn\";\n   string json =\"{\"content\":\"\" + message +\"\"}\";\n\n   uchar data[];\n   StringToCharArray(json, data, 0, WHOLE_ARRAY, CP_UTF8);\n   \/\/ \u672b\u5c3e\u306eNULL\u6587\u5b57\u3092\u9664\u53bb\n   ArrayResize(data, ArraySize(data) - 1);\n\n   uchar result[];\n   string resultHeaders;\n\n   ResetLastError();\n   int httpCode = WebRequest(\"POST\", webhookUrl, headers, 5000, data, result, resultHeaders);\n\n   if(httpCode == -1)\n     {\n      PrintFormat(\"WebRequest\u5931\u6557: error=%d\", GetLastError());\n      Print(\"URL\u304c\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\");\n      return false;\n     }\n\n   PrintFormat(\"Webhook\u9001\u4fe1: HTTP %d\", httpCode);\n   return (httpCode >= 200 && httpCode < 300);\n  }\n\n\/\/ \u30d1\u30bf\u30fc\u30f32: REST API \u304b\u3089\u30c7\u30fc\u30bf\u53d6\u5f97\nstring HttpGet(string url, int timeout = 5000)\n  {\n   uchar data[];\n   uchar result[];\n   string resultHeaders;\n\n   int httpCode = WebRequest(\"GET\", url,\"\", timeout, data, result, resultHeaders);\n\n   if(httpCode == -1)\n     {\n      PrintFormat(\"HTTP GET\u5931\u6557: %d\", GetLastError());\n      return\"\";\n     }\n\n   return CharArrayToString(result, 0, WHOLE_ARRAY, CP_UTF8);\n  }\n\n\/\/ \u30d1\u30bf\u30fc\u30f33: \u53d6\u5f15\u7d50\u679c\u3092API\u306b\u9001\u4fe1\nvoid ReportTradeToAPI(string apiUrl, string apiKey,\n                      string action, double price, double lot, double profit)\n  {\n   string headers =\"Content-Type: application\/jsonrn\"\n                  +\"Authorization: Bearer\" + apiKey +\"rn\";\n\n   string json = StringFormat(\"{\"action\":\"%s\",\"symbol\":\"%s\",\"price\":%.5f,\"\"\"lot\":%.2f,\"profit\":%.2f,\"time\":\"%s\"}\",\n      action, _Symbol, price, lot, profit,\n      TimeToString(TimeCurrent(), TIME_DATE | TIME_SECONDS));\n\n   uchar data[];\n   StringToCharArray(json, data, 0, WHOLE_ARRAY, CP_UTF8);\n   ArrayResize(data, ArraySize(data) - 1);\n\n   uchar result[];\n   string resultHeaders;\n\n   int httpCode = WebRequest(\"POST\", apiUrl, headers, 10000, data, result, resultHeaders);\n   PrintFormat(\"API Report: HTTP %d\", httpCode);\n  }<\/code><\/pre><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\" data-has-icon=\"1\">\n<svg height=\"1em\" width=\"1em\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" viewBox=\"0 0 48 48\"><path d=\"M47 37.9 27.5 4.1c-.7-1.3-2-2-3.5-2s-2.7.7-3.5 2L1 37.9c-.7 1.3-.7 2.7 0 4 .7 1.3 2 2 3.5 2h39.1c1.4 0 2.7-.7 3.5-2 .6-1.3.6-2.7-.1-4zM21.5 17.5c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v10c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-10zM24 38c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z\"><\/path><\/svg>\n<span><strong>\u91cd\u8981<\/strong><\/span>\n<\/div>\n<div class=\"cap_box_content\">\n\n<p><code>WebRequest()<\/code>\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u300c\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30a2\u30c9\u30d0\u30a4\u30b6\u300d\u3067<strong>\u5bfe\u8c61URL\u3092\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0<\/strong>\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u304b\u3089\u3001\u30ea\u30b9\u30c8\u306b\u306a\u3044URL\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u5168\u3066\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001OnTick()\u5185\u3067\u306eWebRequest\u306f\u30c6\u30a3\u30c3\u30af\u51e6\u7406\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308b\u305f\u3081\u3001OnTimer()\u3067\u306e\u975e\u540c\u671f\u7684\u306a\u4f7f\u7528\u304c\u63a8\u5968\u3067\u3059\u3002<\/p>\n\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"debugbreak\">DebugBreak \u2014 \u30c7\u30d0\u30c3\u30b0\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"DebugBreak\"><code>void DebugBreak();\n\/\/ MetaEditor\u306e\u30c7\u30d0\u30c3\u30ac\u30fc\u4f7f\u7528\u6642\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\n\/\/ \u30c7\u30d0\u30c3\u30ac\u30fc\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u7121\u8996\u3055\u308c\u308b\n\n\/\/ \u6761\u4ef6\u4ed8\u304d\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\nvoid OnTick()\n  {\n   double rsi[];\n   ArraySetAsSeries(rsi, true);\n   if(CopyBuffer(rsiHandle, 0, 0, 1, rsi) < 1) return;\n\n   \/\/ RSI\u304c\u6975\u7aef\u306a\u5024\u306e\u6642\u306b\u30c7\u30d0\u30c3\u30ac\u30fc\u3067\u505c\u6b62\n   if(rsi[0] > 90 || rsi[0] < 10)\n      DebugBreak();  \/\/ \u30c7\u30d0\u30c3\u30ac\u30fc\u3067\u5909\u6570\u3092\u78ba\u8a8d\u53ef\u80fd\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"terminalclose\">TerminalClose \u2014 \u30bf\u30fc\u30df\u30ca\u30eb\u306e\u7d42\u4e86<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"TerminalClose\"><code>bool TerminalClose(int ret_code);  \/\/ \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7d42\u4e86\u3055\u305b\u308b\n\n\/\/ \u7dca\u6025\u505c\u6b62\uff08\u30de\u30fc\u30b8\u30f3\u30b3\u30fc\u30eb\u5bfe\u7b56\u7b49\uff09\nvoid EmergencyShutdown()\n  {\n   \/\/ \u307e\u305a\u5168\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u6c7a\u6e08\n   \/\/ ... \u6c7a\u6e08\u51e6\u7406 ...\n\n   Alert(\"\u7dca\u6025\u505c\u6b62: \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7d42\u4e86\u3057\u307e\u3059\");\n   TerminalClose(0);  \/\/ \u7d42\u4e86\u30b3\u30fc\u30c90\u3067\u6b63\u5e38\u7d42\u4e86\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"practical-patterns\">\u5b9f\u8df5\u30d1\u30bf\u30fc\u30f3\uff1aEA\u958b\u767a\u3067\u306e\u6d3b\u7528<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30bf\u30fc\u30f31\uff1a\u5305\u62ec\u7684\u306a\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u5305\u62ec\u7684\u306a\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0\"><code>enum ENUM_LOG_LEVEL { LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL };\n\ninput ENUM_LOG_LEVEL  InpLogLevel  = LOG_INFO;\ninput bool            InpLogToFile = true;\ninput bool            InpNotify    = true;\n\nclass CLogger\n  {\nprivate:\n   ENUM_LOG_LEVEL    m_level;\n   bool              m_toFile;\n   bool              m_notify;\n   int               m_fileHandle;\n   string            m_eaName;\n\n   string LevelStr(ENUM_LOG_LEVEL level)\n     {\n      switch(level)\n        {\n         case LOG_TRACE: return\"TRACE\";\n         case LOG_DEBUG: return\"DEBUG\";\n         case LOG_INFO:  return\"INFO\";\n         case LOG_WARN:  return\"WARN\";\n         case LOG_ERROR: return\"ERROR\";\n         case LOG_FATAL: return\"FATAL\";\n         default:        return\"?????\";\n        }\n     }\n\npublic:\n                     CLogger(string eaName, ENUM_LOG_LEVEL level,\n                             bool toFile, bool notify)\n                     : m_eaName(eaName), m_level(level),\n                       m_toFile(toFile), m_notify(notify), m_fileHandle(INVALID_HANDLE)\n     {\n      if(m_toFile)\n        {\n         MqlDateTime dt;\n         TimeCurrent(dt);\n         string filename = StringFormat(\"%s_%04d%02d%02d.log\",\n                                        m_eaName, dt.year, dt.mon, dt.day);\n         m_fileHandle = FileOpen(filename,\n                                 FILE_WRITE | FILE_READ | FILE_TXT |\n                                 FILE_SHARE_READ | FILE_ANSI);\n         if(m_fileHandle != INVALID_HANDLE)\n            FileSeek(m_fileHandle, 0, SEEK_END);\n        }\n     }\n\n                    ~CLogger()\n     {\n      if(m_fileHandle != INVALID_HANDLE)\n         FileClose(m_fileHandle);\n     }\n\n   void              Log(ENUM_LOG_LEVEL level, string message)\n     {\n      if(level < m_level) return;\n\n      string line = StringFormat(\"[%s] [%s] [%s] %s\",\n                                 TimeToString(TimeCurrent(), TIME_SECONDS),\n                                 LevelStr(level), _Symbol, message);\n\n      Print(line);\n\n      if(m_toFile &#038;&#038; m_fileHandle != INVALID_HANDLE)\n        {\n         FileWriteString(m_fileHandle, line +\"n\");\n         if(level >= LOG_WARN) FileFlush(m_fileHandle);\n        }\n\n      if(m_notify && level >= LOG_ERROR)\n         SendNotification(line);\n     }\n\n   void Trace(string msg) { Log(LOG_TRACE, msg); }\n   void Debug(string msg) { Log(LOG_DEBUG, msg); }\n   void Info(string msg)  { Log(LOG_INFO, msg); }\n   void Warn(string msg)  { Log(LOG_WARN, msg); }\n   void Error(string msg) { Log(LOG_ERROR, msg); }\n   void Fatal(string msg) { Log(LOG_FATAL, msg); Alert(msg); }\n  };\n\n\/\/ \u4f7f\u7528\u4f8b\nCLogger *logger;\n\nint OnInit()\n  {\n   logger = new CLogger(\"MyEA_v2\", InpLogLevel, InpLogToFile, InpNotify);\n   logger.Info(\"EA started on\" + _Symbol);\n   return INIT_SUCCEEDED;\n  }\n\nvoid OnTick()\n  {\n   logger.Debug(StringFormat(\"Bid=%.5f Spread=%d\",\n                SymbolInfoDouble(_Symbol, SYMBOL_BID),\n                (int)SymbolInfoInteger(_Symbol, SYMBOL_SPREAD)));\n  }\n\nvoid OnDeinit(const int reason)\n  {\n   logger.Info(StringFormat(\"EA stopped: reason=%d\", reason));\n   delete logger;\n  }<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30bf\u30fc\u30f32\uff1a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9\u30fc<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9\u30fc\"><code>class CProfiler\n  {\nprivate:\n   string            m_names[];\n   ulong             m_starts[];\n   ulong             m_totals[];\n   int               m_counts[];\n   int               m_size;\n\n   int FindOrCreate(string name)\n     {\n      for(int i = 0; i < m_size; i++)\n         if(m_names[i] == name) return i;\n\n      m_size++;\n      ArrayResize(m_names, m_size);\n      ArrayResize(m_starts, m_size);\n      ArrayResize(m_totals, m_size);\n      ArrayResize(m_counts, m_size);\n      m_names[m_size-1] = name;\n      m_totals[m_size-1] = 0;\n      m_counts[m_size-1] = 0;\n      return m_size - 1;\n     }\n\npublic:\n                     CProfiler() : m_size(0) {}\n\n   void              Start(string name)\n     {\n      int idx = FindOrCreate(name);\n      m_starts[idx] = GetMicrosecondCount();\n     }\n\n   void              Stop(string name)\n     {\n      int idx = FindOrCreate(name);\n      m_totals[idx] += GetMicrosecondCount() - m_starts[idx];\n      m_counts[idx]++;\n     }\n\n   void              Report()\n     {\n      Print(\"=== Performance Report ===\");\n      for(int i = 0; i < m_size; i++)\n        {\n         double avgUs = m_counts[i] > 0 ? (double)m_totals[i] \/ m_counts[i] : 0;\n         PrintFormat(\"  %-20s: total=%.1f ms  avg=%.1f us  calls=%d\",\n                     m_names[i], m_totals[i] \/ 1000.0, avgUs, m_counts[i]);\n        }\n     }\n  };\n\nCProfiler profiler;\n\nvoid OnTick()\n  {\n   profiler.Start(\"OnTick_Total\");\n\n   profiler.Start(\"CopyBuffer\");\n   double ma[];\n   ArraySetAsSeries(ma, true);\n   CopyBuffer(maHandle, 0, 0, 100, ma);\n   profiler.Stop(\"CopyBuffer\");\n\n   profiler.Start(\"Logic\");\n   \/\/ ... \u30ed\u30b8\u30c3\u30af\u51e6\u7406 ...\n   profiler.Stop(\"Logic\");\n\n   profiler.Stop(\"OnTick_Total\");\n  }\n\nvoid OnDeinit(const int reason)\n  {\n   profiler.Report();\n  }<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"common-functions-reference\">\u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u4e00\u89a7\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u6a5f\u80fd<\/th><th>MQL4<\/th><th>MQL5<\/th><\/tr><\/thead><tbody><tr><td>Print<\/td><td>\u30ed\u30b0\u51fa\u529b<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>PrintFormat<\/td><td>\u66f8\u5f0f\u4ed8\u304d\u30ed\u30b0\u51fa\u529b<\/td><td>\u5bfe\u5fdc\uff08600+\uff09<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>Alert<\/td><td>\u30a2\u30e9\u30fc\u30c8\u30c0\u30a4\u30a2\u30ed\u30b0<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>Comment<\/td><td>\u30c1\u30e3\u30fc\u30c8\u30b3\u30e1\u30f3\u30c8<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>MessageBox<\/td><td>\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>Sleep<\/td><td>\u51e6\u7406\u306e\u4e00\u6642\u505c\u6b62<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>ExpertRemove<\/td><td>EA\u306e\u81ea\u5df1\u505c\u6b62<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>GetLastError<\/td><td>\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u53d6\u5f97<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>ResetLastError<\/td><td>\u30a8\u30e9\u30fc\u30ea\u30bb\u30c3\u30c8<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>GetTickCount<\/td><td>\u30df\u30ea\u79d2\u30ab\u30a6\u30f3\u30bf<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>GetMicrosecondCount<\/td><td>\u30de\u30a4\u30af\u30ed\u79d2\u30ab\u30a6\u30f3\u30bf<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>DoubleToString<\/td><td>double\u2192\u6587\u5b57\u5217<\/td><td>DoubleToStr<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>IntegerToString<\/td><td>\u6574\u6570\u2192\u6587\u5b57\u5217<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>StringToDouble<\/td><td>\u6587\u5b57\u5217\u2192double<\/td><td>StrToDouble<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>StringToInteger<\/td><td>\u6587\u5b57\u5217\u2192\u6574\u6570<\/td><td>StrToInteger<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>EnumToString<\/td><td>\u5217\u6319\u5024\u2192\u6587\u5b57\u5217<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>ColorToString<\/td><td>\u8272\u2192\u6587\u5b57\u5217<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>StringToColor<\/td><td>\u6587\u5b57\u5217\u2192\u8272<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>SendNotification<\/td><td>\u30d7\u30c3\u30b7\u30e5\u901a\u77e5<\/td><td>\u5bfe\u5fdc\uff08600+\uff09<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>SendMail<\/td><td>\u30e1\u30fc\u30eb\u9001\u4fe1<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>WebRequest<\/td><td>HTTP\u901a\u4fe1<\/td><td>\u5bfe\u5fdc\uff08\u5236\u9650\u3042\u308a\uff09<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>DebugBreak<\/td><td>\u30c7\u30d0\u30c3\u30ac\u30fc\u505c\u6b62<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>IsStopped<\/td><td>\u505c\u6b62\u8981\u6c42\u78ba\u8a8d<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>UninitializeReason<\/td><td>\u7d42\u4e86\u7406\u7531\u53d6\u5f97<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><tr><td>TerminalClose<\/td><td>\u30bf\u30fc\u30df\u30ca\u30eb\u7d42\u4e86<\/td><td>\u5bfe\u5fdc<\/td><td>\u5bfe\u5fdc<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n\n\n<ul class=\"wp-block-list is-style-check_list\">\n\n<li><strong>PrintFormat<\/strong>\u3067\u7d71\u4e00\u3055\u308c\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30ed\u30b0\u3092\u51fa\u529b\u3057\u3001\u30c7\u30d0\u30c3\u30b0\u52b9\u7387\u3092\u5411\u4e0a<\/li>\n\n\n<li><strong>GetLastError<\/strong>+<strong>ResetLastError<\/strong>\u306e\u30da\u30a2\u3067\u30a8\u30e9\u30fc\u3092\u78ba\u5b9f\u306b\u30ad\u30e3\u30c3\u30c1<\/li>\n\n\n<li><strong>GetMicrosecondCount<\/strong>\u3067\u30de\u30a4\u30af\u30ed\u79d2\u7cbe\u5ea6\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c\u304c\u53ef\u80fd<\/li>\n\n\n<li><strong>WebRequest<\/strong>\u3067\u5916\u90e8API\u9023\u643a\uff08URL\u8a31\u53ef\u30ea\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u5fd8\u308c\u305a\u306b\uff09<\/li>\n\n\n<li><strong>SendNotification<\/strong>\u3067\u30b9\u30de\u30db\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u53d6\u5f15\u901a\u77e5\u3092\u9001\u4fe1<\/li>\n\n<\/ul>\n\n\n\n<p>\u30d7\u30ed\u304c\u958b\u767a\u3057\u305fEA\u3092\u304a\u63a2\u3057\u306e\u65b9\u306f \u2192 <a href=\"https:\/\/sys-tre.com\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b7\u30b9\u30c8\u30ec.COM EA\u4e00\u89a7<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>MQL5\u306e\u5171\u901a\u95a2\u6570\u306fEA\u958b\u767a\u306e\u57fa\u76e4\u3067\u3059\u3002Print\/PrintFormat\u3067\u30ed\u30b0\u3092\u6574\u5099\u3057\u3001GetLastError+ResetLastError\u306e\u30da\u30a2\u3067\u30a8\u30e9\u30fc\u3092\u78ba\u5b9f\u306b\u51e6\u7406\u3057\u307e\u3057\u3087\u3046\u3002\u578b\u5909\u63db\u306fDoubleToString\/StringToDouble\u3067\u7d71\u4e00\u3059\u308b\u306e\u304c\u4fdd\u5b88\u3057\u3084\u3059\u3044\u3002WebRequest\u3084SendNotification\u3092\u4f7f\u3048\u3070\u5916\u90e8\u9023\u643a\u3082\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002MQL4\u304b\u3089\u306e\u79fb\u884c\u306f\u95a2\u6570\u540d\u304c\u307b\u307c\u5171\u901a\u306a\u306e\u3067\u3001\u66f8\u5f0f\u306e\u9055\u3044\u306b\u6ce8\u610f\u3057\u306a\u304c\u3089\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MQL5\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\">MQL5\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\u3002MQL4\u3068\u306e\u9055\u3044\u3068\u3057\u3066PrintFormat()\u304c\u8ffd\u52a0\u3055\u308c\u3001\u66f8\u5f0f\u6307\u5b9a\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3057\u305f\u3002GetLastError()\/ResetLastError()\u306e\u30da\u30a2\u3067\u30a8\u30e9\u30fc\u51e6\u7406\u3082\u5f37\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL5\u306e\u578b\u5909\u63db\u95a2\u6570\u306f\u3069\u3046\u4f7f\u3044\u307e\u3059\u304b\uff1f<\/h3><div class=\"faq_a\"><p>\u6570\u5024\u2192\u6587\u5b57\u5217\u306fDoubleToString()\/IntegerToString()\u3001\u6587\u5b57\u5217\u2192\u6570\u5024\u306fStringToDouble()\/StringToInteger()\u3092\u4f7f\u3044\u307e\u3059\u3002MQL4\u306eDoubleToStr()\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002NormalizeDouble()\u3082\u5065\u5728\u3067\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u3092\u63c3\u3048\u308b\u306e\u306b\u5fc5\u9808\u3067\u3059\u3002\u30ad\u30e3\u30b9\u30c8(int)\/(double)\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">GetLastError()\u306f\u3069\u3046\u4f7f\u3048\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3><div class=\"faq_a\"><p>\u53d6\u5f15\u95a2\u6570\u306a\u3069\u5931\u6557\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u51e6\u7406\u306e\u76f4\u5f8c\u306b\u547c\u3073\u51fa\u3057\u307e\u3059\u3002ResetLastError()\u3067\u4e8b\u524d\u306b\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u304b\u3089\u51e6\u7406\u3057\u3001\u5931\u6557\u6642\u306bGetLastError()\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u306e\u304c\u6b63\u3057\u3044\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u306fErrorDescription()\u3067\u6587\u5b57\u5217\u306b\u5909\u63db\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\u4e3b\u306a\u9055\u3044\u306f\uff1f<\/h3><div class=\"faq_a\"><p>\u95a2\u6570\u540d\u306e\u5927\u534a\u306f\u5171\u901a\u3067\u3059\u3002MQL5\u3067\u306fPrintFormat()\u306e\u8ffd\u52a0\u3001GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u3001WebRequest\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u8ffd\u52a0\u304c\u76ee\u7acb\u3064\u5909\u66f4\u70b9\u3067\u3059\u3002MQL4\u306eDoubleToStr()\u306fDoubleToString()\u306b\u7d71\u5408\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">\u30c7\u30d0\u30c3\u30b0\u306b\u4fbf\u5229\u306aMQL5\u95a2\u6570\u306f\uff1f<\/h3><div class=\"faq_a\"><p>PrintFormat()\u3067\u69cb\u9020\u5316\u30ed\u30b0\u3001Comment()\u3067\u30c1\u30e3\u30fc\u30c8\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u8868\u793a\u3001DebugBreak()\u3067\u30c7\u30d0\u30c3\u30ac\u505c\u6b62\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002__FUNCTION__\u3084__LINE__\u30de\u30af\u30ed\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u30a8\u30e9\u30fc\u767a\u751f\u7b87\u6240\u3092\u7d20\u65e9\u304f\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002GetMicrosecondCount()\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8a08\u6e2c\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">WebRequest\u306f\u3069\u3046\u8a2d\u5b9a\u3059\u308c\u3070\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/h3><div class=\"faq_a\"><p>MT5\u306e\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30a2\u30c9\u30d0\u30a4\u30b6\u30fc\u3067\u300cWebRequest\u3092\u8a31\u53ef\u3059\u308bURL\u30ea\u30b9\u30c8\u300d\u306b\u63a5\u7d9a\u5148URL\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8ffd\u52a0\u3057\u306a\u3044\u3068ERR_FUNCTION_NOT_ALLOWED(4014)\u304c\u8fd4\u308a\u307e\u3059\u3002HTTP\/HTTPS\u3069\u3061\u3089\u3082\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001POST\u30ea\u30af\u30a8\u30b9\u30c8\u3082\u9001\u4fe1\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n<\/div>\n\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\">MQL5\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 \u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-trade-functions\/\">MQL5 \u53d6\u5f15\u95a2\u6570<\/a> \u2014 CTrade\u30fbOrderSend<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-indicator-functions\/\">MQL5 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570<\/a> \u2014 iMA\u30fbCopyBuffer<\/li>\n<li>MQL5 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831 \u2014 \u8a3c\u62e0\u91d1\u8a08\u7b97<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-event-handlers\/\">MQL5 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9<\/a> \u2014 OnTrade\u30fbOnTimer<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql5-error-guide\/\">MQL5 \u30a8\u30e9\u30fc\u30ac\u30a4\u30c9<\/a> \u2014 \u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/li>\n<li>MQL5 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570 \u2014 MqlDateTime<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/ea-howto\/\">EA\u59cb\u3081\u65b9\u30ac\u30a4\u30c9<\/a> \u2014 MT5\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\":\"MQL5\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\u3002PrintFormat()\u306e\u8ffd\u52a0\u3067MQL4\u3088\u308a\u66f8\u5f0f\u6307\u5b9a\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3057\u305f\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL5\u306e\u578b\u5909\u63db\u95a2\u6570\u306f\u3069\u3046\u4f7f\u3044\u307e\u3059\u304b\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"\u6570\u5024\u2192\u6587\u5b57\u5217\u306fDoubleToString()\/IntegerToString()\u3001\u6587\u5b57\u5217\u2192\u6570\u5024\u306fStringToDouble()\/StringToInteger()\u3092\u4f7f\u3044\u307e\u3059\u3002NormalizeDouble()\u3067\u5c0f\u6570\u6841\u6570\u306e\u7d71\u4e00\u3082\u5fc5\u9808\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"GetLastError()\u306f\u3069\u3046\u4f7f\u3048\u3070\u3044\u3044\u3067\u3059\u304b\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\u3068MQL5\u306e\u5171\u901a\u95a2\u6570\u306e\u4e3b\u306a\u9055\u3044\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"\u95a2\u6570\u540d\u306e\u5927\u534a\u306f\u5171\u901a\u3067\u3059\u3002MQL5\u3067\u306fPrintFormat()\u8ffd\u52a0\u3001GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u3001WebRequest\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u8ffd\u52a0\u304c\u4e3b\u306a\u5909\u66f4\u70b9\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"\u30c7\u30d0\u30c3\u30b0\u306b\u4fbf\u5229\u306aMQL5\u95a2\u6570\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"PrintFormat()\u3067\u69cb\u9020\u5316\u30ed\u30b0\u3001Comment()\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u8868\u793a\u3001DebugBreak()\u3067\u30c7\u30d0\u30c3\u30ac\u505c\u6b62\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002__FUNCTION__\u3084__LINE__\u30de\u30af\u30ed\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u30a8\u30e9\u30fc\u767a\u751f\u7b87\u6240\u3092\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"WebRequest\u306f\u3069\u3046\u8a2d\u5b9a\u3059\u308c\u3070\u4f7f\u3048\u307e\u3059\u304b\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MT5\u306e\u30c4\u30fc\u30eb\u2192\u30aa\u30d7\u30b7\u30e7\u30f3\u2192\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30a2\u30c9\u30d0\u30a4\u30b6\u30fc\u3067URL\u3092\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u3057\u306a\u3044\u3068ERR_FUNCTION_NOT_ALLOWED(4014)\u304c\u8fd4\u308a\u307e\u3059\u3002HTTP\/HTTPS\u3069\u3061\u3089\u3082\u5bfe\u5fdc\u3057\u3066\u3044\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\/mql5-error-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL5 \u30a8\u30e9\u30fc\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u30b3\u30fc\u30c9\u4e00\u89a7\u30fb\u539f\u56e0\u30fb\u30c7\u30d0\u30c3\u30b0<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL5\u306e\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u4e00\u89a7\u30fbGetLastError()\u306e\u4f7f\u3044\u65b9\u30fb\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u89e3\u6c7a\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-trade-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u53d6\u5f15\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cOrderSend\u30fb\u30dd\u30b8\u30b7\u30e7\u30f3\u7ba1\u7406<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u53d6\u5f15\u95a2\u6570\uff08OrderSend\u30fbOrderClose\u30fbOrderModify\uff09\u3068\u30dd\u30b8\u30b7\u30e7\u30f3\u7ba1\u7406\u30eb\u30fc\u30d7\u306e\u66f8\u304d\u65b9\u3092\u89e3\u8aac\u3002EA\u958b\u767a\u306e\u6838\u5fc3\u90e8\u5206\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-datetime-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff08Year\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\uff09\u306e\u4f7f\u3044\u65b9\u3068\u4e94\u5341\u65e5\u5224\u5b9a\u306e\u5b9f\u88c5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\u306e\u4f5c\u308a\u65b9\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>MQL5\u5171\u901a\u95a2\u6570\u306fPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fbWebRequest\u306a\u3069EA\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\u5916\u90e8\u901a\u77e5\u307e\u3067\u3001\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u5168\u95a2\u6570\u3092\u7db2\u7f85\u3059\u308b\u3002 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u306e\u57fa\u790e\u77e5\u8b58 \u5171\u901a [&hellip;]<\/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":[303],"class_list":["post-65666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mql-reference","tag-mql5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db<\/title>\n<meta name=\"description\" content=\"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\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\/mql5-common-functions\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db\" \/>\n<meta property=\"og:description\" content=\"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Forex Guide\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-14T18:27:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:53:27+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=\"11\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/\"},\"author\":{\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\"},\"headline\":\"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fb\u30a8\u30e9\u30fc\u53d6\u5f97\",\"datePublished\":\"2026-03-14T18:27:04+00:00\",\"dateModified\":\"2026-04-14T15:53:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/\"},\"wordCount\":210,\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"keywords\":[\"MQL5\"],\"articleSection\":[\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/\",\"name\":\"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"datePublished\":\"2026-03-14T18:27:04+00:00\",\"dateModified\":\"2026-04-14T15:53:27+00:00\",\"description\":\"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-common-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql5-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\\\/mql5-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\":\"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fb\u30a8\u30e9\u30fc\u53d6\u5f97\"}]},{\"@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":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db","description":"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\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\/mql5-common-functions\/","og_locale":"ja_JP","og_type":"article","og_title":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db","og_description":"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/","og_site_name":"Forex Guide","article_published_time":"2026-03-14T18:27:04+00:00","article_modified_time":"2026-04-14T15:53:27+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":"11\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/#article","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/"},"author":{"name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1"},"headline":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fb\u30a8\u30e9\u30fc\u53d6\u5f97","datePublished":"2026-03-14T18:27:04+00:00","dateModified":"2026-04-14T15:53:27+00:00","mainEntityOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/"},"wordCount":210,"publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","keywords":["MQL5"],"articleSection":["MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/","url":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/","name":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fb\u578b\u5909\u63db","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/#primaryimage"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","datePublished":"2026-03-14T18:27:04+00:00","dateModified":"2026-04-14T15:53:27+00:00","description":"MQL5\u306e\u5171\u901a\u95a2\u6570\uff08Print\u30fbAlert\u30fbComment\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002MQL4\u3068\u306e\u9055\u3044\u3084\u30c7\u30d0\u30c3\u30b0\u6d3b\u7528\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sys-tre.com\/forexguide\/mql5-common-functions\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/mql5-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\/mql5-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":"MQL5 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570 \u5b8c\u5168\u30ac\u30a4\u30c9\uff5cPrint\u30fbAlert\u30fbSleep\u30fb\u578b\u5909\u63db\u30fb\u30a8\u30e9\u30fc\u53d6\u5f97"}]},{"@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\/65666","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=65666"}],"version-history":[{"count":3,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65666\/revisions"}],"predecessor-version":[{"id":67382,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65666\/revisions\/67382"}],"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=65666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/categories?post=65666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/tags?post=65666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}