{"id":65713,"date":"2026-03-15T03:27:03","date_gmt":"2026-03-14T18:27:03","guid":{"rendered":"https:\/\/sys-tre.com\/forexguide\/?p=65713"},"modified":"2026-04-15T00:53:26","modified_gmt":"2026-04-14T15:53:26","slug":"mql4-datetime-functions","status":"publish","type":"post","link":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/","title":{"rendered":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cYear\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\u30fb\u4e94\u5f53\u65e5\u5224\u5b9a"},"content":{"rendered":"<p>MQL4\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002Year()\u30fbMonth()\u30fbDay()\u30fbDayOfWeek()\u30fbHour()\u30fbMinute()\u306b\u3088\u308b\u65e5\u6642\u8981\u7d20\u306e\u53d6\u5f97\u3001TimeCurrent()\u30fbTimeLocal()\u30fbTimeGMT()\u306b\u3088\u308b\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u30fb\u30ed\u30fc\u30ab\u30eb\u6642\u523b\u30fbGMT\u6642\u523b\u306e\u4f7f\u3044\u5206\u3051\u3001TimeToStr()\u30fbStrToTime()\u306b\u3088\u308b\u6587\u5b57\u5217\u5909\u63db\u3001iBarShift()\u306b\u3088\u308b\u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u691c\u7d22\u3001\u4e94\u5f53\u65e5\u5224\u5b9a\u3001\u53d6\u5f15\u30bb\u30c3\u30b7\u30e7\u30f3\u30d5\u30a3\u30eb\u30bf\u30fc\u3001\u590f\u6642\u9593\u5bfe\u5fdc\u307e\u3067\u3001MT4 EA\u958b\u767a\u306b\u5fc5\u8981\u306a\u6642\u9593\u51e6\u7406\u306e\u3059\u3079\u3066\u3092\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"2400\" height=\"1260\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions.jpg\" alt=\"MQL4 \u65e5\u6642\u95a2\u6570 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ab\u30fc\u30c9\" class=\"wp-image-67631\" srcset=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions.jpg 2400w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions-300x158.jpg 300w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions-1024x538.jpg 1024w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions-768x403.jpg 768w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions-1536x806.jpg 1536w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-datetime-functions-2048x1075.jpg 2048w\" sizes=\"(max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n<h2 class=\"wp-block-heading\" id=\"mql4-vs-mql5\">MQL4\u3068MQL5\u306e\u6642\u9593\u95a2\u6570\u306e\u9055\u3044<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u6a5f\u80fd<\/th><th>MQL4<\/th><th>MQL5<\/th><\/tr><\/thead><tbody><tr><td>\u5e74\u306e\u53d6\u5f97<\/td><td>Year()<\/td><td>MqlDateTime\u69cb\u9020\u4f53\u3092\u4f7f\u7528<\/td><\/tr><tr><td>\u6708\u306e\u53d6\u5f97<\/td><td>Month()<\/td><td>MqlDateTime.mon<\/td><\/tr><tr><td>\u66dc\u65e5\u306e\u53d6\u5f97<\/td><td>DayOfWeek()<\/td><td>MqlDateTime.day_of_week<\/td><\/tr><tr><td>\u6642\u523b\u306e\u53d6\u5f97<\/td><td>Hour(), Minute()<\/td><td>MqlDateTime.hour, MqlDateTime.min<\/td><\/tr><tr><td>\u6587\u5b57\u5217\u5909\u63db<\/td><td>TimeToStr()<\/td><td>TimeToString()<\/td><\/tr><tr><td>\u30d0\u30fc\u691c\u7d22<\/td><td>iBarShift()<\/td><td>Bars() + \u30eb\u30fc\u30d7<\/td><\/tr><tr><td>datetime\u578b<\/td><td>4\u30d0\u30a4\u30c8\u6574\u6570\uff081970\u5e74\u57fa\u6e96\uff09<\/td><td>\u540c\u3058\uff088\u30d0\u30a4\u30c8\u3060\u304c\u4e92\u63db\u6027\u3042\u308a\uff09<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<p class=\"is-style-big_icon_point\">MQL4\u3067\u306fYear()\u3001Month()\u3001Hour()\u306a\u3069\u76f4\u611f\u7684\u306a\u95a2\u6570\u3067\u65e5\u6642\u8981\u7d20\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002MQL5\u3067\u306fMqlDateTime\u69cb\u9020\u4f53\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u30e1\u30f3\u30d0\u30fc\u3092\u53c2\u7167\u3059\u308b\u65b9\u5f0f\u306b\u5909\u308f\u308a\u3001\u30b3\u30fc\u30c9\u304c\u3084\u3084\u5197\u9577\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"datetime-type\">datetime\u578b\u306e\u57fa\u672c<\/h2>\n\n<p>MQL4\u306edatetime\u578b\u306f\u30011970\u5e741\u67081\u65e50\u66420\u52060\u79d2\uff08Unix Epoch\uff09\u304b\u3089\u306e\u7d4c\u904e\u79d2\u6570\u3092\u683c\u7d0d\u3059\u308b\u6574\u6570\u578b\u3067\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"datetime\u578b\u306e\u57fa\u672c\"><code>void DatetimeBasics()\n  {\n   \/\/ datetime \u30ea\u30c6\u30e9\u30eb\n   datetime dt1 = D'2024.01.15 09:30:00';\n   datetime dt2 = D'2024.12.31';  \/\/ \u6642\u523b\u7701\u7565=00:00:00\n\n   \/\/ \u73fe\u5728\u6642\u523b\n   datetime serverTime = TimeCurrent();  \/\/ \u30b5\u30fc\u30d0\u30fc\u6642\u523b\n   datetime localTime  = TimeLocal();    \/\/ PC\u306e\u30ed\u30fc\u30ab\u30eb\u6642\u523b\n   datetime gmtTime    = TimeGMT();      \/\/ GMT\/UTC\u6642\u523b\n\n   Print(\"\u30b5\u30fc\u30d0\u30fc\u6642\u523b:\", TimeToStr(serverTime, TIME_DATE|TIME_SECONDS));\n   Print(\"\u30ed\u30fc\u30ab\u30eb\u6642\u523b:\", TimeToStr(localTime, TIME_DATE|TIME_SECONDS));\n   Print(\"GMT\u6642\u523b:\", TimeToStr(gmtTime, TIME_DATE|TIME_SECONDS));\n\n   \/\/ \u65e5\u6642\u306e\u5dee\uff08\u79d2\u5358\u4f4d\uff09\n   int diffSeconds = (int)(dt2 - dt1);\n   int diffDays    = diffSeconds \/ 86400;\n   Print(\"\u65e5\u6570\u5dee:\", diffDays,\"\u65e5\");\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"element-functions\">\u65e5\u6642\u8981\u7d20\u53d6\u5f97\u95a2\u6570<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u623b\u308a\u5024<\/th><th>\u7bc4\u56f2<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>Year()<\/td><td>int<\/td><td>1970-<\/td><td>\u6700\u5f8c\u306e\u30c6\u30a3\u30c3\u30af\u306e\u5e74<\/td><\/tr><tr><td>Month()<\/td><td>int<\/td><td>1-12<\/td><td>\u6708<\/td><\/tr><tr><td>Day()<\/td><td>int<\/td><td>1-31<\/td><td>\u65e5<\/td><\/tr><tr><td>DayOfWeek()<\/td><td>int<\/td><td>0-6<\/td><td>\u66dc\u65e5\uff080=\u65e5\u66dc\uff09<\/td><\/tr><tr><td>DayOfYear()<\/td><td>int<\/td><td>1-366<\/td><td>\u5e74\u521d\u304b\u3089\u306e\u65e5\u6570<\/td><\/tr><tr><td>Hour()<\/td><td>int<\/td><td>0-23<\/td><td>\u6642<\/td><\/tr><tr><td>Minute()<\/td><td>int<\/td><td>0-59<\/td><td>\u5206<\/td><\/tr><tr><td>Seconds()<\/td><td>int<\/td><td>0-59<\/td><td>\u79d2<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\"><span><strong>\u6ce8\u610f<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<p>Year()\u3001Month()\u3001Hour()\u7b49\u306f<strong>\u6700\u5f8c\u306b\u30c6\u30a3\u30c3\u30af\u3092\u53d7\u4fe1\u3057\u305f\u6642\u523b<\/strong>\uff08\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u57fa\u6e96\uff09\u3092\u8fd4\u3057\u307e\u3059\u3002\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u4e2d\u306f\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u6642\u523b\u304c\u8fd4\u308a\u307e\u3059\u3002\u7279\u5b9a\u306edatetime\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f\u3001TimeYear()\u3001TimeMonth()\u3001TimeHour()\u7b49\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n\n<h3 class=\"wp-block-heading\">\u7279\u5b9adatetime\u306e\u8981\u7d20\u53d6\u5f97<\/h3>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>TimeYear(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u5e74<\/td><\/tr><tr><td>TimeMonth(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u6708<\/td><\/tr><tr><td>TimeDay(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u65e5<\/td><\/tr><tr><td>TimeDayOfWeek(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u66dc\u65e5<\/td><\/tr><tr><td>TimeDayOfYear(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u5e74\u521d\u304b\u3089\u306e\u65e5\u6570<\/td><\/tr><tr><td>TimeHour(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u6642<\/td><\/tr><tr><td>TimeMinute(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u5206<\/td><\/tr><tr><td>TimeSeconds(datetime)<\/td><td>\u6307\u5b9adatetime\u306e\u79d2<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d0\u30fc\u306e\u6642\u9593\u60c5\u5831\"><code>void PrintBarInfo(int barIndex)\n  {\n   datetime barTime = Time[barIndex];\n\n   Print(\"\u30d0\u30fc[\", barIndex,\"] \u306e\u6642\u523b:\", TimeToStr(barTime, TIME_DATE|TIME_MINUTES));\n   Print(\"  \u5e74:\", TimeYear(barTime));\n   Print(\"  \u6708:\", TimeMonth(barTime));\n   Print(\"  \u65e5:\", TimeDay(barTime));\n   Print(\"  \u66dc\u65e5:\", TimeDayOfWeek(barTime),\" (0=\u65e5, 1=\u6708, ... 5=\u91d1)\");\n   Print(\"  \u6642:\", TimeHour(barTime));\n   Print(\"  \u5206:\", TimeMinute(barTime));\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"timetostr\">TimeToStr \/ StrToTime\uff1a\u6587\u5b57\u5217\u5909\u63db<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>string TimeToStr(\n   datetime value,    \/\/ \u5909\u63db\u3059\u308bdatetime\n   int      mode = TIME_DATE|TIME_MINUTES  \/\/ \u8868\u793a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n);\n\/\/ mode: TIME_DATE(\u65e5\u4ed8), TIME_MINUTES(\u6642\u5206), TIME_SECONDS(\u6642\u5206\u79d2)\n\ndatetime StrToTime(\n   string value  \/\/\"yyyy.mm.dd hh:mi\" \u5f62\u5f0f\u306e\u6587\u5b57\u5217\n);\n\/\/ \u623b\u308a\u5024: \u5bfe\u5fdc\u3059\u308bdatetime<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u6587\u5b57\u5217\u5909\u63db\u306e\u4f8b\"><code>void TimeStringExamples()\n  {\n   datetime now = TimeCurrent();\n\n   \/\/ \u5404\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n   Print(TimeToStr(now, TIME_DATE));               \/\/\"2024.06.15\"\n   Print(TimeToStr(now, TIME_MINUTES));             \/\/\"14:30\"\n   Print(TimeToStr(now, TIME_SECONDS));             \/\/\"14:30:45\"\n   Print(TimeToStr(now, TIME_DATE|TIME_MINUTES));   \/\/\"2024.06.15 14:30\"\n   Print(TimeToStr(now, TIME_DATE|TIME_SECONDS));   \/\/\"2024.06.15 14:30:45\"\n\n   \/\/ \u6587\u5b57\u5217\u304b\u3089datetime\u306b\u5909\u63db\n   datetime dt = StrToTime(\"2024.06.15 09:30\");\n   Print(\"\u5909\u63db\u7d50\u679c:\", TimeToStr(dt, TIME_DATE|TIME_SECONDS));\n  }<\/code><\/pre><\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\"><span><strong>\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306b\u95a2\u3059\u308b\u4e3b\u8981\u306a\u6ce8\u610f<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<ul>\n<li>MT4\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306f<strong>\u30d6\u30ed\u30fc\u30ab\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308b<\/strong>\uff08GMT+2, GMT+3\u304c\u591a\u3044\uff09<\/li>\n<li>\u65e5\u672c\u6642\u9593\u3092\u8a08\u7b97\u3059\u308b\u306b\u306f<code>(Hour() - GMTOffset + 9 + 24) % 24<\/code>\u3068\u3059\u308b<\/li>\n<li>\u590f\u6642\u9593\u306e\u5207\u308a\u66ff\u3048\u6642\u306fGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u304c1\u6642\u9593\u5909\u308f\u308b\uff08\u5e742\u56de\uff09<\/li>\n<li>\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u3067\u306f\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u304c\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3055\u308c\u308b\u305f\u3081\u3001TimeLocal()\u306f\u4f7f\u3048\u306a\u3044<\/li>\n<li>TimeCurrent()\u306f\u6700\u5f8c\u306e\u30c6\u30a3\u30c3\u30af\u53d7\u4fe1\u6642\u523b\u3002\u5e02\u5834\u304c\u9589\u307e\u308b\u3068\u66f4\u65b0\u3055\u308c\u306a\u304f\u306a\u308b<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\"><div class=\"cap_box_ttl\"><span><strong>\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306b\u95a2\u3059\u308b\u4e3b\u8981\u306a\u6ce8\u610f<\/strong><\/span><\/div><div class=\"cap_box_content\"><ul><li>MT4\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306f<strong>\u30d6\u30ed\u30fc\u30ab\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308b<\/strong>\uff08GMT+2, GMT+3\u304c\u591a\u3044\uff09<\/li><li>\u65e5\u672c\u6642\u9593\u3092\u8a08\u7b97\u3059\u308b\u306b\u306f<code>(Hour() - GMTOffset + 9 + 24) % 24<\/code>\u3068\u3059\u308b<\/li><li>\u590f\u6642\u9593\u306e\u5207\u308a\u66ff\u3048\u6642\u306fGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u304c1\u6642\u9593\u5909\u308f\u308b\uff08\u5e742\u56de\uff09<\/li><li>\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u3067\u306f\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u304c\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3055\u308c\u308b\u305f\u3081\u3001TimeLocal()\u306f\u4f7f\u3048\u306a\u3044<\/li><li>TimeCurrent()\u306f\u6700\u5f8c\u306e\u30c6\u30a3\u30c3\u30af\u53d7\u4fe1\u6642\u523b\u3002\u5e02\u5834\u304c\u9589\u307e\u308b\u3068\u66f4\u65b0\u3055\u308c\u306a\u304f\u306a\u308b<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"ibarshift\">iBarShift\uff1a\u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u691c\u7d22<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>int iBarShift(\n   string   symbol,     \/\/ \u901a\u8ca8\u30da\u30a2\n   int      timeframe,  \/\/ \u6642\u9593\u8ef8\n   datetime time,       \/\/ \u691c\u7d22\u3059\u308b\u6642\u523b\n   bool     exact = false  \/\/ \u5b8c\u5168\u4e00\u81f4\u306e\u307f\u304b\n);\n\/\/ \u623b\u308a\u5024: \u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff08\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f-1\uff09<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"iBarShift\u306e\u4f7f\u7528\u4f8b\"><code>void BarShiftExamples()\n  {\n   \/\/ \u6628\u65e5\u306e\u59cb\u5024\u3092\u53d6\u5f97\n   datetime yesterday = TimeCurrent() - 86400;\n   int barIndex = iBarShift(NULL, PERIOD_D1, yesterday);\n   if(barIndex &gt;= 0)\n      Print(\"\u6628\u65e5\u306e\u59cb\u5024:\", iOpen(NULL, PERIOD_D1, barIndex));\n\n   \/\/ \u7279\u5b9a\u6642\u523b\u306e\u30d0\u30fc\u3092\u691c\u7d22\n   datetime targetTime = StrToTime(\"2024.06.15 10:00\");\n   int bar = iBarShift(NULL, PERIOD_H1, targetTime, true);\n   if(bar &gt;= 0)\n      Print(\"\u6307\u5b9a\u6642\u523b\u306e\u30d0\u30fc:\", bar);\n   else\n      Print(\"\u5b8c\u5168\u4e00\u81f4\u3059\u308b\u30d0\u30fc\u306a\u3057\");\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"gotobi\">\u5b9f\u8df5: \u4e94\u5f53\u65e5\uff08\u30b4\u30c8\u30fc\u65e5\uff09\u5224\u5b9a<\/h2>\n\n<p class=\"is-style-big_icon_point\">\u4e94\u5f53\u65e5\uff08\u30b4\u30c8\u30fc\u65e5\uff09\u306f\u65e5\u672c\u306e\u8f38\u51fa\u4f01\u696d\u304c\u30c9\u30eb\u8cb7\u3044\u9700\u8981\u3092\u51fa\u3059\u65e5\u3068\u3057\u3066\u77e5\u3089\u308c\u3001<strong>\u4ef2\u5024\uff089:55\u524d\u5f8c\uff09\u306b\u5411\u3051\u3066\u30c9\u30eb\u5186\u304c\u4e0a\u6607\u3057\u3084\u3059\u3044<\/strong>\u30a2\u30ce\u30de\u30ea\u30fc\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057100%\u3067\u306f\u306a\u304f\u3001\u91cd\u8981\u6307\u6a19\u3084\u5730\u653f\u5b66\u30ea\u30b9\u30af\u306e\u65e5\u306f\u6a19\u6e96\u3068\u7570\u306a\u308b\u52d5\u304d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n<p>\u4e94\u5f53\u65e5\u3068\u306f\u3001\u6bce\u67085\u65e5\u30fb10\u65e5\u30fb15\u65e5\u30fb20\u65e5\u30fb25\u65e5\u30fb\u6708\u672b\u65e5\u306e\u3053\u3068\u3067\u3001\u8f38\u51fa\u4f01\u696d\u306e\u30c9\u30eb\u58f2\u308a\u9700\u8981\u304b\u3089\u70ba\u66ff\u304c\u52d5\u304d\u3084\u3059\u3044\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u4e94\u5f53\u65e5\u5224\u5b9a\"><code>bool IsGotobi()\n  {\n   int day = Day();\n\n   \/\/ 5\u306e\u500d\u6570\u306e\u65e5\n   if(day % 5 == 0)\n      return true;\n\n   \/\/ \u6708\u672b\u65e5\u306e\u5224\u5b9a\n   int month = Month();\n   int year  = Year();\n   int lastDay;\n\n   if(month == 2)\n      lastDay = (year % 4 == 0 &amp;&amp; (year % 100 != 0 || year % 400 == 0)) ? 29 : 28;\n   else if(month == 4 || month == 6 || month == 9 || month == 11)\n      lastDay = 30;\n   else\n      lastDay = 31;\n\n   if(day == lastDay)\n      return true;\n\n   return false;\n  }\n\n\/\/ \u4e94\u5f53\u65e5\u304c\u571f\u65e5\u306e\u5834\u5408\u3001\u524d\u55b6\u696d\u65e5\u306b\u632f\u66ff\nbool IsGotobiAdjusted()\n  {\n   \/\/ \u91d1\u66dc\u65e5\u304b\u3064\u7fcc\u65e5\/\u7fcc\u3005\u65e5\u304c\u4e94\u5f53\u65e5 \u2192 \u632f\u66ff\n   if(DayOfWeek() == 5)\n     {\n      int nextDay = Day() + 1;\n      int nextNextDay = Day() + 2;\n      if(nextDay % 5 == 0 || nextNextDay % 5 == 0)\n         return true;\n     }\n\n   return IsGotobi() &amp;&amp; DayOfWeek() &gt;= 1 &amp;&amp; DayOfWeek() &lt;= 5;\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"session-filter\">\u5b9f\u8df5: \u53d6\u5f15\u30bb\u30c3\u30b7\u30e7\u30f3\u30d5\u30a3\u30eb\u30bf\u30fc<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30bb\u30c3\u30b7\u30e7\u30f3\u30d5\u30a3\u30eb\u30bf\u30fc\"><code>\/\/ \u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306eGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8a2d\u5b9a\uff08\u30d6\u30ed\u30fc\u30ab\u30fc\u306b\u3088\u308a\u7570\u306a\u308b\uff09\ninput int GMTOffset = 2;  \/\/ GMT+2\uff08\u5927\u534a\u306e\u6d77\u5916\u30d6\u30ed\u30fc\u30ab\u30fc\uff09\n\nenum SESSION_TYPE\n  {\n   SESSION_TOKYO,     \/\/ \u6771\u4eac\uff08GMT 0:00-9:00\uff09\n   SESSION_LONDON,    \/\/ \u30ed\u30f3\u30c9\u30f3\uff08GMT 7:00-16:00\uff09\n   SESSION_NEWYORK,   \/\/ \u30cb\u30e5\u30fc\u30e8\u30fc\u30af\uff08GMT 12:00-21:00\uff09\n   SESSION_OVERLAP    \/\/ \u30ed\u30f3\u30c9\u30f3-NY\u91cd\u8907\uff08GMT 12:00-16:00\uff09\n  };\n\nbool IsInSession(SESSION_TYPE session)\n  {\n   int gmtHour = (Hour() - GMTOffset + 24) % 24;\n\n   switch(session)\n     {\n      case SESSION_TOKYO:\n         return (gmtHour &gt;= 0 &amp;&amp; gmtHour &lt; 9);\n      case SESSION_LONDON:\n         return (gmtHour &gt;= 7 &amp;&amp; gmtHour &lt; 16);\n      case SESSION_NEWYORK:\n         return (gmtHour &gt;= 12 &amp;&amp; gmtHour &lt; 21);\n      case SESSION_OVERLAP:\n         return (gmtHour &gt;= 12 &amp;&amp; gmtHour &lt; 16);\n     }\n   return false;\n  }\n\n\/\/ \u4ef2\u5024\u6642\u9593\u5224\u5b9a\uff08\u65e5\u672c\u6642\u95939:55\u524d\u5f8c\uff09\nbool IsNakaneTime()\n  {\n   int jpHour   = (Hour() - GMTOffset + 9 + 24) % 24;\n   int jpMinute = Minute();\n\n   \/\/ 9:30\u301c10:00\n   if(jpHour == 9 &amp;&amp; jpMinute &gt;= 30)\n      return true;\n   if(jpHour == 10 &amp;&amp; jpMinute == 0)\n      return true;\n\n   return false;\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"dst\">\u5b9f\u8df5: \u590f\u6642\u9593\uff08DST\uff09\u5bfe\u5fdc<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u590f\u6642\u9593\u5bfe\u5fdc\"><code>\/\/ \u7c73\u56fd\u590f\u6642\u9593\uff083\u6708\u7b2c2\u65e5\u66dc\u301c11\u6708\u7b2c1\u65e5\u66dc\uff09\nbool IsUSDST()\n  {\n   int month = Month();\n   int day   = Day();\n   int dow   = DayOfWeek();\n\n   \/\/ 4\u6708\u301c10\u6708\u306f\u78ba\u5b9f\u306b\u590f\u6642\u9593\n   if(month &gt; 3 &amp;&amp; month &lt; 11) return true;\n   \/\/ 1\u6708,2\u6708,12\u6708\u306f\u78ba\u5b9f\u306b\u51ac\u6642\u9593\n   if(month &lt; 3 || month &gt; 11) return false;\n\n   \/\/ 3\u6708: \u7b2c2\u65e5\u66dc\u4ee5\u964d\n   if(month == 3)\n     {\n      int secondSunday = 14 - (TimeDayOfWeek(StrToTime(StringConcatenate(Year(),\".03.01\"))) % 7);\n      if(secondSunday &gt; 14) secondSunday -= 7;\n      return (day &gt;= secondSunday);\n     }\n\n   \/\/ 11\u6708: \u7b2c1\u65e5\u66dc\u307e\u3067\n   if(month == 11)\n     {\n      int firstSunday = 7 - (TimeDayOfWeek(StrToTime(StringConcatenate(Year(),\".11.01\"))) % 7);\n      if(firstSunday &gt; 7) firstSunday -= 7;\n      return (day &lt; firstSunday);\n     }\n\n   return false;\n  }\n\n\/\/ GMT\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u52d5\u7684\u306b\u8a08\u7b97\nint GetGMTOffset()\n  {\n   \/\/ \u5927\u534a\u306e\u6d77\u5916\u30d6\u30ed\u30fc\u30ab\u30fc: \u590f=GMT+3, \u51ac=GMT+2\n   return IsUSDST() ? 3 : 2;\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"newbar\">\u5b9f\u8df5: \u65b0\u30d0\u30fc\u691c\u51fa<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u65b0\u30d0\u30fc\u691c\u51fa\"><code>bool IsNewBar()\n  {\n   static datetime lastBarTime = 0;\n   datetime currentBarTime = Time[0];\n\n   if(currentBarTime != lastBarTime)\n     {\n      lastBarTime = currentBarTime;\n      return true;\n     }\n\n   return false;\n  }\n\n\/\/ \u7279\u5b9a\u306e\u6642\u9593\u8ef8\u306e\u65b0\u30d0\u30fc\u691c\u51fa\nbool IsNewBar_TF(int timeframe)\n  {\n   static datetime lastBarTime = 0;\n   datetime currentBarTime = iTime(NULL, timeframe, 0);\n\n   if(currentBarTime != lastBarTime)\n     {\n      lastBarTime = currentBarTime;\n      return true;\n     }\n\n   return false;\n  }<\/code><\/pre><\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\">\n<div class=\"cap_box_ttl\"><span><strong>\u65b0\u30d0\u30fc\u691c\u51fa\u306e\u6ce8\u610f\u70b9<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<ul>\n<li><strong>static\u5909\u6570<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u95a2\u6570\u547c\u3073\u51fa\u3057\u9593\u3067\u5024\u304c\u4fdd\u6301\u3055\u308c\u308b<\/li>\n<li>\u8907\u6570\u306e\u6642\u9593\u8ef8\u3092\u76e3\u8996\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u305e\u308c\u306b\u5225\u306e\u65b0\u30d0\u30fc\u691c\u51fa\u95a2\u6570\u304c\u5fc5\u8981<\/li>\n<li>\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u306e\u300c\u5168\u30c6\u30a3\u30c3\u30af\u300d\u30e2\u30fc\u30c9\u4ee5\u5916\uff08\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30dd\u30a4\u30f3\u30c8\u7b49\uff09\u3067\u306f\u3001\u30c6\u30a3\u30c3\u30af\u304c\u9593\u5f15\u304b\u308c\u308b\u305f\u3081\u65b0\u30d0\u30fc\u691c\u51fa\u304c\u6b63\u78ba\u3067\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/li>\n<li>\u65e5\u8db3\u306e\u65b0\u30d0\u30fc\u691c\u51fa\u306f\u3001\u6771\u4eac\u6642\u9593\u306e\u65e9\u671d\uff08\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306e0\u6642\uff09\u306b\u767a\u751f\u3059\u308b<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\"><div class=\"cap_box_ttl\"><span><strong>\u65b0\u30d0\u30fc\u691c\u51fa\u306e\u6ce8\u610f\u70b9<\/strong><\/span><\/div><div class=\"cap_box_content\"><ul><li><strong>static\u5909\u6570<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u95a2\u6570\u547c\u3073\u51fa\u3057\u9593\u3067\u5024\u304c\u4fdd\u6301\u3055\u308c\u308b<\/li><li>\u8907\u6570\u306e\u6642\u9593\u8ef8\u3092\u76e3\u8996\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u305e\u308c\u306b\u5225\u306e\u65b0\u30d0\u30fc\u691c\u51fa\u95a2\u6570\u304c\u5fc5\u8981<\/li><li>\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u306e\u300c\u5168\u30c6\u30a3\u30c3\u30af\u300d\u30e2\u30fc\u30c9\u4ee5\u5916\u3067\u306f\u3001\u30c6\u30a3\u30c3\u30af\u304c\u9593\u5f15\u304b\u308c\u308b\u305f\u3081\u65b0\u30d0\u30fc\u691c\u51fa\u304c\u6b63\u78ba\u3067\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/li><li>\u65e5\u8db3\u306e\u65b0\u30d0\u30fc\u691c\u51fa\u306f\u3001\u6771\u4eac\u6642\u9593\u306e\u65e9\u671d\uff08\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306e0\u6642\uff09\u306b\u767a\u751f\u3059\u308b<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"function-table\">\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u4e00\u89a7\uff08MQL5\u5bfe\u5fdc\u8868\uff09<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>MQL4\u95a2\u6570<\/th><th>MQL5\u5bfe\u5fdc<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>Year()<\/td><td>MqlDateTime.year<\/td><td>\u5e74<\/td><\/tr><tr><td>Month()<\/td><td>MqlDateTime.mon<\/td><td>\u6708<\/td><\/tr><tr><td>Day()<\/td><td>MqlDateTime.day<\/td><td>\u65e5<\/td><\/tr><tr><td>DayOfWeek()<\/td><td>MqlDateTime.day_of_week<\/td><td>\u66dc\u65e5<\/td><\/tr><tr><td>Hour()<\/td><td>MqlDateTime.hour<\/td><td>\u6642<\/td><\/tr><tr><td>Minute()<\/td><td>MqlDateTime.min<\/td><td>\u5206<\/td><\/tr><tr><td>Seconds()<\/td><td>MqlDateTime.sec<\/td><td>\u79d2<\/td><\/tr><tr><td>TimeCurrent()<\/td><td>TimeCurrent()<\/td><td>\u30b5\u30fc\u30d0\u30fc\u6642\u523b<\/td><\/tr><tr><td>TimeLocal()<\/td><td>TimeLocal()<\/td><td>\u30ed\u30fc\u30ab\u30eb\u6642\u523b<\/td><\/tr><tr><td>TimeGMT()<\/td><td>TimeGMT()<\/td><td>GMT\u6642\u523b<\/td><\/tr><tr><td>TimeToStr()<\/td><td>TimeToString()<\/td><td>datetime\u2192\u6587\u5b57\u5217<\/td><\/tr><tr><td>StrToTime()<\/td><td>StringToTime()<\/td><td>\u6587\u5b57\u5217\u2192datetime<\/td><\/tr><tr><td>iBarShift()<\/td><td>Bars() + \u30eb\u30fc\u30d7\u3067\u4ee3\u66ff<\/td><td>\u30d0\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u691c\u7d22<\/td><\/tr><tr><td>TimeYear(dt)<\/td><td>TimeToStruct() + MqlDateTime<\/td><td>\u6307\u5b9adatetime\u306e\u5e74<\/td><\/tr><tr><td>TimeMonth(dt)<\/td><td>TimeToStruct() + MqlDateTime<\/td><td>\u6307\u5b9adatetime\u306e\u6708<\/td><\/tr><tr><td>TimeHour(dt)<\/td><td>TimeToStruct() + MqlDateTime<\/td><td>\u6307\u5b9adatetime\u306e\u6642<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"matome\">\u307e\u3068\u3081<\/h2>\n\n<p>MQL4\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u306fEA\u958b\u767a\u3067\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u5236\u5fa1\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u7279\u306b\u4e3b\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n<ul>\n<li><strong>\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306f\u30d6\u30ed\u30fc\u30ab\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308b<\/strong>\uff1aGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8003\u616e\u3057\u3066\u65e5\u672c\u6642\u9593\u3092\u8a08\u7b97\u3059\u308b<\/li>\n<li><strong>\u4e94\u5f53\u65e5\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u30d5\u30a3\u30eb\u30bf\u30fc\u3067\u53d6\u5f15\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b<\/strong>\uff1a\u6642\u9593\u5e2f\u306b\u3088\u308b\u901a\u8ca8\u30da\u30a2\u306e\u52d5\u304d\u306e\u9055\u3044\u3092\u6d3b\u7528<\/li>\n<li><strong>\u65b0\u30d0\u30fc\u691c\u51fa\u306fstatic\u5909\u6570\u3067\u5b9f\u88c5\u3059\u308b<\/strong>\uff1a\u30c6\u30a3\u30c3\u30af\u3054\u3068\u306e\u7121\u99c4\u306a\u51e6\u7406\u3092\u9632\u3050<\/li>\n<li><strong>\u590f\u6642\u9593\u306e\u5207\u308a\u66ff\u3048\u306b\u5bfe\u5fdc\u3059\u308b<\/strong>\uff1a\u5e74\u306b2\u56deGMT\u30aa\u30d5\u30bb\u30c3\u30c8\u304c\u5909\u308f\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044<\/li>\n<\/ul>\n\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001<a href=\"https:\/\/sys-tre.com\/forexguide\/category\/mql-reference\/\">MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u7dcf\u5408\u30ac\u30a4\u30c9<\/a>\u3067\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3084\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u5805\u7262\u306aEA\u958b\u767a\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">MQL4\u65e5\u6642\u95a2\u6570 \u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<div class=\"swell-block-faq\">\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u306e\u65e5\u6642\u95a2\u6570\u306e\u57fa\u672c\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeCurrent()\u3067\u30b5\u30fc\u30d0\u30fc\u73fe\u5728\u6642\u523b\uff08datetime\u578b\uff09\u3001TimeLocal()\u3067\u30ed\u30fc\u30ab\u30eb\u6642\u523b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002TimeToStr(time)\u3067\u6642\u523b\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3001StrToTime(str)\u3067\u6587\u5b57\u5217\u3092datetime\u306b\u5909\u63db\u3057\u307e\u3059\u3002TimeDay()\/TimeHour()\/TimeMinute()\u3067\u65e5\u4ed8\u6210\u5206\u3092\u53d6\u308a\u51fa\u305b\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067datetime\u3092\u5206\u89e3\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeYear()\/TimeMonth()\/TimeDay()\u3067\u5e74\u6708\u65e5\u3001TimeHour()\/TimeMinute()\/TimeSeconds()\u3067\u6642\u5206\u79d2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u307e\u305f\u306fMqlDateTime\u69cb\u9020\u4f53\u3068TimeToStruct()\u3092\u4f7f\u3063\u3066\u5168\u6210\u5206\u3092\u4e00\u5ea6\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u66dc\u65e5\u306fTimeDayOfWeek()\u30670\uff08\u65e5\u66dc\uff09\u301c6\uff08\u571f\u66dc\uff09\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u30ed\u30f3\u30c9\u30f3\u30fbNY\u6642\u9593\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeCurrent()\u3067\u73fe\u5728\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u3092\u53d6\u5f97\u3057\u3001TimeHour()\u3067\u6642\u9593\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u306fGMT\u00b10\u3084GMT+2\u306a\u3069\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u305f\u3081\u3001\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u8003\u616e\u3057\u305f\u6642\u9593\u5224\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002iTime(Symbol(),PERIOD_D1,0)\u3067\u305d\u306e\u65e5\u306e\u958b\u59cb\u6642\u523b\u3082\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u9031\u672b\u30fb\u795d\u65e5\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>TimeDayOfWeek(TimeCurrent())\u30670(\u65e5\u66dc)\u304b6(\u571f\u66dc)\u306a\u3089\u9031\u672b\u3067\u3059\u3002\u795d\u65e5\u306f\u6a19\u6e96\u95a2\u6570\u304c\u306a\u3044\u305f\u3081\u3001\u914d\u5217\u3067\u795d\u65e5\u30ea\u30b9\u30c8\u3092\u7ba1\u7406\u3057\u3066\u7167\u5408\u3059\u308b\u5b9f\u88c5\u304c\u5fc5\u8981\u3067\u3059\u3002DayOfWeek()\uff08\u73fe\u5728\u306e\u30d0\u30fc\u306e\u66dc\u65e5\uff09\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u30bf\u30a4\u30de\u30fc\u51e6\u7406\u3092\u6642\u523b\u6761\u4ef6\u3067\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>OnTimer()\u307e\u305f\u306fOnTick()\u5185\u3067TimeCurrent()\u306e\u6642\u523b\u6210\u5206\uff08TimeHour\/TimeMinute\uff09\u3092\u78ba\u8a8d\u3057\u3066\u51e6\u7406\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u4f8b\uff1aif(TimeHour(TimeCurrent()) >= 9 &#038;&#038; TimeHour(TimeCurrent()) < 18)\u30679-18\u6642\u306e\u307f\u53d6\u5f15\u3059\u308b\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3068MQL5\u306e\u65e5\u6642\u95a2\u6570\u306e\u9055\u3044\u306f\uff1f<\/h3><div class=\"faq_a\"><p>MQL5\u3067\u306fTimeToString()\/StringToTime()\u3068\u95a2\u6570\u540d\u304c\u5909\u308f\u308a\u3001MqlDateTime\u69cb\u9020\u4f53\u3068TimeToStruct()\/StructToTime()\u304c\u6a19\u6e96\u5316\u3055\u308c\u307e\u3057\u305f\u3002GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u8a08\u6e2c\u3082MQL5\u3067\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002MQL4\u306eTimeToStr()\/StrToTime()\u306fMQL4.56\u4ee5\u964d\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p><\/div><\/div>\n<\/div>\n\n<div class=\"p-blogParts post_content\" data-partsID=\"59754\">\n\n  <style>\n   \n    .systrade-horizontal-banner {\n      width: 100%;\n      max-width: 800px;\n      margin: 20px auto;\n      background: linear-gradient(135deg, #F5F5F7, #E8E9EB);\n      border-radius: 12px;\n      overflow: hidden;\n      position: relative;\n      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);\n      font-family: 'Noto Sans JP', sans-serif;\n      box-shadow: \n        0 10px 20px rgba(0, 0, 0, 0.1),\n        0 0 0 1px rgba(0, 0, 0, 0.03) inset;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n      height: auto;\n      min-height: 120px;\n      box-sizing: border-box;\n    }\n\n    .systrade-horizontal-banner::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: \n        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),\n        radial-gradient(circle at 100% 100%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);\n      z-index: 1;\n    }\n\n    .systrade-horizontal-banner::after {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      height: 2px;\n      background: linear-gradient(90deg, \n        transparent,\n        #FF6B00,\n        transparent\n      );\n      animation: borderGlow 3s ease-in-out infinite;\n      z-index: 2;\n    }\n\n    @keyframes borderGlow {\n      0%, 100% { opacity: 0.5; }\n      50% { opacity: 1; }\n    }\n\n    .systrade-horizontal-banner:hover {\n      transform: translateY(-2px);\n      box-shadow: \n        0 12px 25px rgba(0, 0, 0, 0.15),\n        0 0 0 1px rgba(0, 0, 0, 0.05) inset;\n    }\n\n    .systrade-horizontal-anchor {\n      display: flex;\n      width: 100%;\n      text-decoration: none;\n      color: inherit;\n      position: relative;\n      z-index: 2;\n      flex-wrap: wrap;\n    }\n\n    .systrade-horizontal-header {\n      width: 30%;\n      min-width: 150px;\n      position: relative;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      padding: 12px;\n      background: rgba(255, 255, 255, 0.5);\n      border-radius: 10px;\n      border: 1px solid rgba(255, 255, 255, 0.8);\n      overflow: hidden;\n      backdrop-filter: blur(10px);\n      -webkit-backdrop-filter: blur(10px);\n      margin: 10px;\n      height: calc(100% - 20px);\n    }\n\n    .systrade-horizontal-header::before {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 255, 255, 0.4),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: headerGlow 4s ease-in-out infinite;\n    }\n\n    @keyframes headerGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      50% { transform: rotate(45deg) translateX(100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-inner {\n      width: 100%;\n      position: relative;\n      z-index: 2;\n      text-align: center;\n    }\n\n    .systrade-horizontal-image {\n      height: 30px;\n      width: auto;\n      margin: 8px auto;\n      display: block;\n      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));\n    }\n\n    .systrade-horizontal-title {\n      color: #333;\n      font-size: 0.9em;\n      font-weight: 900;\n      white-space: nowrap;\n      background: linear-gradient(90deg, #333, #FF6B00, #333);\n      background-size: 200% auto;\n      -webkit-background-clip: text;\n      -webkit-text-fill-color: transparent;\n      animation: titleFlow 3s linear infinite;\n      padding: 4px 0;\n    }\n\n    @keyframes titleFlow {\n      0% { background-position: 0% center; }\n      100% { background-position: 200% center; }\n    }\n\n    .systrade-horizontal-content {\n      display: flex;\n      flex: 1;\n      flex-direction: column;\n      justify-content: space-between;\n      padding: 12px;\n    }\n\n    .systrade-horizontal-list {\n      display: grid;\n      grid-template-columns: repeat(2, 1fr);\n      gap: 8px;\n      margin-bottom: 10px;\n    }\n\n    .systrade-horizontal-item {\n      background: rgba(255, 255, 255, 0.7);\n      padding: 8px 6px;\n      border-radius: 8px;\n      border: 1px solid rgba(255, 255, 255, 0.9);\n      text-align: center;\n      transition: all 0.3s ease;\n      position: relative;\n      overflow: hidden;\n    }\n\n    .systrade-horizontal-item:hover {\n      transform: translateY(-2px);\n      background: rgba(255, 107, 0, 0.05);\n      border-color: rgba(255, 107, 0, 0.2);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);\n    }\n\n    .systrade-horizontal-item::after {\n      content: '';\n      position: absolute;\n      top: -50%;\n      left: -50%;\n      width: 200%;\n      height: 200%;\n      background: linear-gradient(\n        45deg,\n        transparent,\n        rgba(255, 107, 0, 0.1),\n        transparent\n      );\n      transform: rotate(45deg);\n      animation: itemGlow 3s ease-in-out infinite;\n      opacity: 0;\n    }\n\n    .systrade-horizontal-item:hover::after {\n      opacity: 1;\n    }\n\n    @keyframes itemGlow {\n      0% { transform: rotate(45deg) translateX(-100%); }\n      100% { transform: rotate(45deg) translateX(100%); }\n    }\n\n    .systrade-horizontal-desc {\n      color: #333;\n      font-size: 0.7em;\n      font-weight: 700;\n      line-height: 1.3;\n      position: relative;\n      z-index: 1;\n    }\n\n    .systrade-horizontal-button {\n      background: linear-gradient(90deg, #FF6B00, #FF8534);\n      color: white;\n      padding: 10px;\n      border-radius: 8px;\n      font-weight: 900;\n      font-size: 0.85em;\n      text-align: center;\n      position: relative;\n      overflow: hidden;\n      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n      transition: all 0.3s ease;\n      margin-top: auto;\n    }\n\n    .systrade-horizontal-button::before {\n      content: '';\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      background: linear-gradient(90deg, \n        transparent,\n        rgba(255, 255, 255, 0.2),\n        transparent\n      );\n      transform: translateX(-100%);\n      animation: buttonGlow 3s ease-in-out infinite;\n    }\n\n    @keyframes buttonGlow {\n      0% { transform: translateX(-100%); }\n      50% { transform: translateX(100%); }\n      100% { transform: translateX(100%); }\n    }\n\n    .systrade-horizontal-button:hover {\n      transform: translateY(-2px);\n      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);\n    }\n\n    \/* Responsive breakpoints *\/\n    @media (max-width: 768px) {\n      .systrade-horizontal-banner {\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        min-width: 120px;\n        padding: 8px;\n      }\n      \n      .systrade-horizontal-image {\n        height: 25px;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.8em;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        font-size: 0.8em;\n        padding: 8px;\n      }\n    }\n    \n    @media (max-width: 600px) {\n      .systrade-horizontal-banner {\n        flex-direction: column;\n        min-height: auto;\n      }\n      \n      .systrade-horizontal-header {\n        width: calc(100% - 20px);\n        min-width: auto;\n        margin: 10px;\n      }\n      \n      .systrade-horizontal-content {\n        width: 100%;\n      }\n      \n      .systrade-horizontal-image {\n        height: 30px;\n        margin: 5px auto;\n      }\n      \n      .systrade-horizontal-title {\n        font-size: 0.85em;\n      }\n      \n      .systrade-horizontal-list {\n        grid-template-columns: repeat(2, 1fr);\n        gap: 6px;\n        margin-bottom: 8px;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 6px 4px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.65em;\n      }\n      \n      .systrade-horizontal-button {\n        margin-top: 5px;\n      }\n    }\n\n    @media (max-width: 400px) {\n      .systrade-horizontal-list {\n        grid-template-columns: 1fr;\n      }\n      \n      .systrade-horizontal-item {\n        padding: 8px 6px;\n      }\n      \n      .systrade-horizontal-desc {\n        font-size: 0.7em;\n      }\n    }\n    \n    \/* Print media query *\/\n    @media print {\n      .systrade-horizontal-banner {\n        box-shadow: none;\n        border: 1px solid #ccc;\n      }\n      \n      .systrade-horizontal-banner::before,\n      .systrade-horizontal-banner::after,\n      .systrade-horizontal-header::before,\n      .systrade-horizontal-item::after,\n      .systrade-horizontal-button::before {\n        display: none;\n      }\n      \n      .systrade-horizontal-button {\n        background: #FF6B00;\n        text-shadow: none;\n      }\n    }\n  <\/style>\n\n  <div class=\"systrade-horizontal-banner\">\n    <a href=\"https:\/\/sys-tre.com\/\" class=\"systrade-horizontal-anchor\">\n      <div class=\"systrade-horizontal-header\">\n        <div class=\"systrade-horizontal-inner\">\n          <div class=\"systrade-horizontal-title\">FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u306a\u3089\uff01<\/div>\n          <img decoding=\"async\" src=\"https:\/\/sys-tre.com\/broker\/wp-content\/uploads\/2025\/01\/\u30b7\u30b9\u30c8\u30ec.COM_B-2.png\" alt=\"\u30b7\u30b9\u30c8\u30ec.COM \u516c\u5f0fCTA\u30ed\u30b4\" class=\"systrade-horizontal-image\">\n        <\/div>\n      <\/div>\n\n      <div class=\"systrade-horizontal-content\">\n        <div class=\"systrade-horizontal-list\">\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5b9f\u7e3e\u306e\u3042\u308bEA\u304c\u7121\u6599\u3067\u4f7f\u3048\u308b\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u6709\u6599\u7248\u3067\u53e3\u5ea7\u5236\u9650\u306a\u3057\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u5168\u5546\u54c1\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u516c\u958b\u4e2d\uff01<\/div>\n          <\/div>\n          <div class=\"systrade-horizontal-item\">\n            <div class=\"systrade-horizontal-desc\">\u521d\u5fc3\u8005\u3067\u3082\u5b89\u5fc3\u3057\u3066\u3054\u5229\u7528\u53ef\u80fd\uff01<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"systrade-horizontal-button\">\n          \u4eca\u3059\u3050\u7121\u6599\u3067\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\u3092\u59cb\u3081\u308b\uff01\n        <\/div>\n      <\/div>\n    <\/a>\n  <\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">MQL4\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 \u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MQL4 \u53d6\u5f15\u95a2\u6570\uff1aOrderSend\u30fbOrderClose\u30fb\u30dd\u30b8\u30b7\u30e7\u30f3\u7ba1\u7406<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-indicator-functions\/\">MQL4 \u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u95a2\u6570<\/a>\uff1aiMA\u30fbiRSI\u30fbiCustom<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-account-market-info\/\">MQL4 \u53e3\u5ea7\u30fb\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831<\/a>\uff1a\u30ed\u30c3\u30c8\u8a08\u7b97<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/mql4-event-handlers\/\">MQL4 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9<\/a>\uff1aOnInit\u30fbOnTick<\/li>\n<li>MQL4 \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\uff1a\u30ea\u30c8\u30e9\u30a4\u30d1\u30bf\u30fc\u30f3<\/li>\n<li>MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\uff1a\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/li>\n<li><a href=\"https:\/\/sys-tre.com\/forexguide\/ea-howto\/\">EA\u59cb\u3081\u65b9\u30ac\u30a4\u30c9<\/a>\uff1aMT4\u3078\u306eEA\u8a2d\u5b9a\u624b\u9806<\/li>\n<\/ul>\n\n\n\n\n\n<script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\": [\n    {\"@type\":\"Question\",\"name\":\"MQL4\u306e\u65e5\u6642\u95a2\u6570\u306e\u57fa\u672c\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeCurrent()\u3067\u30b5\u30fc\u30d0\u30fc\u73fe\u5728\u6642\u523b\u3001TimeLocal()\u3067\u30ed\u30fc\u30ab\u30eb\u6642\u523b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002TimeToStr()\u3067\u6587\u5b57\u5217\u5909\u63db\u3001TimeDay()\/TimeHour()\u7b49\u3067\u65e5\u4ed8\u6210\u5206\u3092\u5206\u89e3\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067datetime\u3092\u5206\u89e3\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeYear()\/TimeMonth()\/TimeDay()\u3067\u5e74\u6708\u65e5\u3001TimeHour()\/TimeMinute()\/TimeSeconds()\u3067\u6642\u5206\u79d2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002TimeDayOfWeek()\u3067\u66dc\u65e5\uff080=\u65e5\u66dc\u301c6=\u571f\u66dc\uff09\u3082\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u30ed\u30f3\u30c9\u30f3\u30fbNY\u6642\u9593\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeCurrent()\u3068TimeHour()\u3067\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d6\u30ed\u30fc\u30ab\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u30aa\u30d5\u30bb\u30c3\u30c8\uff08GMT\u00b10\u3001GMT+2\u7b49\uff09\u3092\u8003\u616e\u3057\u305f\u5224\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u9031\u672b\u30fb\u795d\u65e5\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeDayOfWeek(TimeCurrent())\u304c0(\u65e5)\u304b6(\u571f)\u306a\u3089\u9031\u672b\u3067\u3059\u3002\u795d\u65e5\u306f\u914d\u5217\u3067\u30ea\u30b9\u30c8\u3092\u7ba1\u7406\u3057\u3066\u7167\u5408\u3059\u308b\u5b9f\u88c5\u304c\u5fc5\u8981\u3067\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u30bf\u30a4\u30de\u30fc\u51e6\u7406\u3092\u6642\u523b\u6761\u4ef6\u3067\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"TimeHour(TimeCurrent())\u3067\u6642\u9593\u3092\u78ba\u8a8d\u3057\u3066\u51e6\u7406\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u4f8b\uff1a9\u6642\u301c18\u6642\u306e\u307f\u53d6\u5f15\u3059\u308b\u5834\u5408\u306fTimeHour\u304c9\u4ee5\u4e0a18\u672a\u6e80\u3067\u6761\u4ef6\u5206\u5c90\u3057\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3068MQL5\u306e\u65e5\u6642\u95a2\u6570\u306e\u9055\u3044\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MQL5\u3067\u306fTimeToString()\/StringToTime()\u3068\u540d\u524d\u304c\u5909\u308f\u308a\u3001MqlDateTime\u69cb\u9020\u4f53\u304c\u6a19\u6e96\u5316\u3055\u308c\u307e\u3057\u305f\u3002GetMicrosecondCount()\u306b\u3088\u308b\u9ad8\u7cbe\u5ea6\u30bf\u30a4\u30de\u30fc\u3082MQL5\u3067\u8ffd\u52a0\u3055\u308c\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\/mql4-event-handlers\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cOnInit\u30fbOnTick\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\uff08OnInit\u30fbOnTick\u30fbOnTimer\u30fbOnChartEvent\uff09\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\u3002EA\u958b\u767a\u306e\u57fa\u672c\u69cb\u9020\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-chart-operations\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30c1\u30e3\u30fc\u30c8\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u30fb\u8a2d\u5b9a<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30c1\u30e3\u30fc\u30c8\u64cd\u4f5c\u95a2\u6570\uff08WindowHandle\u30fbChartID\u30fb\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30c1\u30e3\u30fc\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u52d5\u7684\u8a2d\u5b9a\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-object-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u6c34\u5e73\u7dda\u30fb\u30e9\u30d9\u30eb\u63cf\u753b<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u95a2\u6570\uff08ObjectCreate\u30fb\u6c34\u5e73\u7dda\u30fb\u30c8\u30ec\u30f3\u30c9\u30e9\u30a4\u30f3\u30fb\u30dc\u30bf\u30f3\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002\u30c1\u30e3\u30fc\u30c8\u63cf\u753b\u306e\u5b9f\u88c5\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\n<address class=\"author author-box\">\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\uff5c200\u7a2e\u985e\u4ee5\u4e0a\u306eEA\u3092\u30d5\u30a9\u30ef\u30fc\u30c9\u8a08\u6e2c\u3059\u308b\u904b\u55b63\u5e74\u306e\u691c\u8a3c\u30e1\u30c7\u30a3\u30a2\u3002MetaTrader (MT4\/MT5) \u3092\u5b9f\u904b\u7528\u3057\u3066\u304d\u305f\u7de8\u96c6\u90e8\u304c\u76e3\u4fee\u30fb\u57f7\u7b46\u3057\u3066\u3044\u307e\u3059\u3002<\/address>\n","protected":false},"excerpt":{"rendered":"<p>MQL4\u306e\u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002Year()\u30fbMonth()\u30fbDay()\u30fbDayOfWeek()\u30fbHour()\u30fbMinute()\u306b\u3088\u308b\u65e5\u6642\u8981\u7d20\u306e\u53d6\u5f97\u3001TimeCurrent()\u30fbTimeLocal()\u30fbTimeGMT()\u306b\u3088\u308b\u30b5\u30fc\u30d0\u30fc\u6642\u523b\u30fb\u30ed\u30fc\u30ab\u30eb\u6642\u523b\u30fbGMT\u6642\u523b\u306e\u4f7f\u3044\u5206\u3051\u3001TimeToStr()&#8230;<\/p>\n","protected":false},"author":686,"featured_media":71194,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[301],"tags":[302],"class_list":["post-65713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mql-reference","tag-mql4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc<\/title>\n<meta name=\"description\" content=\"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\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\" \/>\n<meta property=\"og:description\" content=\"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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Forex Guide\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-14T18:27:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:53:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/systre_COM\" \/>\n<meta name=\"twitter:site\" content=\"@systre_COM\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/\"},\"author\":{\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\"},\"headline\":\"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cYear\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\u30fb\u4e94\u5f53\u65e5\u5224\u5b9a\",\"datePublished\":\"2026-03-14T18:27:03+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/\"},\"wordCount\":280,\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"keywords\":[\"MQL4\"],\"articleSection\":[\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/\",\"name\":\"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"datePublished\":\"2026-03-14T18:27:03+00:00\",\"dateModified\":\"2026-04-14T15:53:26+00:00\",\"description\":\"MQL4\u306e\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\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/forexguide-mqlref-eyecatch.png\",\"width\":2400,\"height\":1260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-datetime-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\",\"item\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/category\\\/mql-reference\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cYear\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\u30fb\u4e94\u5f53\u65e5\u5224\u5b9a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM ForexGuide\uff5cFX\u81ea\u52d5\u58f2\u8cb7\u306b\u95a2\u3059\u308b\u304a\u5f79\u7acb\u3061\u60c5\u5831\u3092\u66f4\u65b0\u4e2d\uff01\",\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"alternateName\":\"\u30b7\u30b9\u30c8\u30ecCOM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"contentUrl\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/\u30b7\u30b9\u30c8\u30ec.COM_\u30ed\u30b4-1.svg\",\"width\":500,\"height\":500,\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/systre_COM\",\"https:\\\/\\\/www.youtube.com\\\/@systre_com\",\"https:\\\/\\\/www.facebook.com\\\/people\\\/%E3%82%B7%E3%82%B9%E3%83%88%E3%83%ACcom\\\/61587699411751\\\/\",\"https:\\\/\\\/www.instagram.com\\\/systre_com\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@sys_tre.com\"],\"description\":\"FX\u81ea\u52d5\u58f2\u8cb7EA\uff08Expert Advisor\uff09200\u672c\u4ee5\u4e0a\u3092\u7121\u6599\u63d0\u4f9b\u3059\u308b\u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3002\u5168EA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u30fb\u30ea\u30a2\u30eb\u53e3\u5ea7\u904b\u7528\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3002MT4\\\/MT5\u5bfe\u5fdc\u3002\",\"foundingDate\":\"2023\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor\",\"MetaTrader\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"\u30b7\u30b9\u30c6\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"contactPoint\":{\"@type\":\"ContactPoint\",\"contactType\":\"customer service\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/contact-us\\\/\",\"availableLanguage\":[\"Japanese\",\"English\"]},\"legalName\":\"Attempia Ltd\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6ee0bfaa0b0a8c1c9af71dab7cf7fce04ac8f81a3d6bc3155344b588e526631?s=96&d=mm&r=g\",\"caption\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\"},\"description\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\u306f\u3001FX\u81ea\u52d5\u58f2\u8cb7\uff08EA\uff09\u3068\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\u3092\u5c02\u9580\u3068\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e1\u30c7\u30a3\u30a2\u300c\u30b7\u30b9\u30c8\u30ec.COM\u300d\u306e\u7de8\u96c6\u30c1\u30fc\u30e0\u3067\u3059\u3002200\u672c\u4ee5\u4e0a\u306eEA\u306e\u30d5\u30a9\u30ef\u30fc\u30c9\u30c6\u30b9\u30c8\u7d50\u679c\u3092\u516c\u958b\u3057\u3001\u5b9f\u969b\u306e\u904b\u7528\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u5ba2\u89b3\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u57f7\u7b46\u30fb\u76e3\u4fee\u306fMetaTrader\uff08MT4\\\/MT5\uff09\u3067\u306e\u5b9f\u904b\u7528\u7d4c\u9a13\u3092\u6301\u3064\u30b9\u30bf\u30c3\u30d5\u304c\u62c5\u5f53\u3002\",\"sameAs\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"https:\\\/\\\/x.com\\\/systre_COM\"],\"jobTitle\":\"FX\u81ea\u52d5\u58f2\u8cb7\u30fb\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790 \u7de8\u96c6\u30c1\u30fc\u30e0\",\"knowsAbout\":[\"FX\u81ea\u52d5\u58f2\u8cb7\",\"Expert Advisor (EA)\",\"\u30c6\u30af\u30cb\u30ab\u30eb\u5206\u6790\",\"MetaTrader 4\",\"MetaTrader 5\",\"MQL4\",\"MQL5\",\"\u30ea\u30b9\u30af\u7ba1\u7406\",\"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30c9\"],\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/about\\\/\",\"worksFor\":{\"@type\":\"Organization\",\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","description":"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","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/","og_locale":"ja_JP","og_type":"article","og_title":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","og_description":"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","og_url":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/","og_site_name":"Forex Guide","article_published_time":"2026-03-14T18:27:03+00:00","article_modified_time":"2026-04-14T15:53:26+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","type":"image\/png"}],"author":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_image":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","twitter_creator":"@https:\/\/twitter.com\/systre_COM","twitter_site":"@systre_COM","twitter_misc":{"\u57f7\u7b46\u8005":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#article","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/"},"author":{"name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1"},"headline":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cYear\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\u30fb\u4e94\u5f53\u65e5\u5224\u5b9a","datePublished":"2026-03-14T18:27:03+00:00","dateModified":"2026-04-14T15:53:26+00:00","mainEntityOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/"},"wordCount":280,"publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","keywords":["MQL4"],"articleSection":["MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/","url":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/","name":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u53d6\u5f15\u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30fc","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#primaryimage"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","datePublished":"2026-03-14T18:27:03+00:00","dateModified":"2026-04-14T15:53:26+00:00","description":"MQL4\u306e\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","breadcrumb":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#primaryimage","url":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","contentUrl":"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png","width":2400,"height":1260},{"@type":"BreadcrumbList","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-datetime-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/sys-tre.com\/forexguide\/"},{"@type":"ListItem","position":2,"name":"MQL\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","item":"https:\/\/sys-tre.com\/forexguide\/category\/mql-reference\/"},{"@type":"ListItem","position":3,"name":"MQL4 \u6642\u9593\u30fb\u65e5\u4ed8\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cYear\u30fbHour\u30fbTimeCurrent\u30fbiBarShift\u30fb\u4e94\u5f53\u65e5\u5224\u5b9a"}]},{"@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\/65713","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=65713"}],"version-history":[{"count":3,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65713\/revisions"}],"predecessor-version":[{"id":67360,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65713\/revisions\/67360"}],"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=65713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/categories?post=65713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/tags?post=65713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}