{"id":65720,"date":"2026-03-15T03:27:03","date_gmt":"2026-03-14T18:27:03","guid":{"rendered":"https:\/\/sys-tre.com\/forexguide\/?p=65720"},"modified":"2026-04-14T11:54:50","modified_gmt":"2026-04-14T02:54:50","slug":"mql4-file-operations","status":"publish","type":"post","link":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/","title":{"rendered":"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cFileOpen\u30fbFileWrite\u30fbCSV\u30fb\u30d0\u30a4\u30ca\u30ea\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d"},"content":{"rendered":"<p>MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002FileOpen()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u3001FileClose()\u306b\u3088\u308b\u30af\u30ed\u30fc\u30ba\u3001FileWrite()\/FileWriteString()\u306b\u3088\u308b\u66f8\u304d\u8fbc\u307f\u3001FileReadString()\/FileReadNumber()\u306b\u3088\u308b\u8aad\u307f\u8fbc\u307f\u3001FileDelete()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u3001CSV\/\u30c6\u30ad\u30b9\u30c8\/\u30d0\u30a4\u30ca\u30ea\u306e\u5404\u30e2\u30fc\u30c9\u3001FileIsExist()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u5b58\u5728\u78ba\u8a8d\u3001\u30c8\u30ec\u30fc\u30c9\u30ed\u30b0\u306e\u4fdd\u5b58\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u307e\u3067\u3001MT4 EA\u958b\u767a\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\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-file-operations.jpg\" alt=\"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30ab\u30fc\u30c9\" class=\"wp-image-67622\" srcset=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations.jpg 2400w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations-300x158.jpg 300w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations-1024x538.jpg 1024w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations-768x403.jpg 768w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations-1536x806.jpg 1536w, https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/03\/mql_mql4-file-operations-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\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\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>\u57fa\u672c\u95a2\u6570<\/td><td>\u307b\u307c\u540c\u3058<\/td><td>\u307b\u307c\u540c\u3058<\/td><\/tr><tr><td>\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9<\/td><td>MQL4\/Files\/\u30d5\u30a9\u30eb\u30c0<\/td><td>MQL5\/Files\/\u30d5\u30a9\u30eb\u30c0<\/td><\/tr><tr><td>\u5171\u901a\u30d5\u30a9\u30eb\u30c0<\/td><td>FILE_COMMON \u30d5\u30e9\u30b0<\/td><td>FILE_COMMON \u30d5\u30e9\u30b0<\/td><\/tr><tr><td>Unicode<\/td><td>FILE_ANSI \/ FILE_UNICODE<\/td><td>\u540c\u3058<\/td><\/tr><tr><td>\u30d5\u30a9\u30eb\u30c0\u64cd\u4f5c<\/td><td>FolderCreate\/Delete\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><td>FolderCreate\/Delete\/Clean<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<p class=\"is-style-big_icon_point\">MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u3001<strong>MQL4\/Files\/<\/strong>\u30d5\u30a9\u30eb\u30c0\uff08\u307e\u305f\u306f\u30c6\u30b9\u30bf\u30fc\u4f7f\u7528\u6642\u306ftester\/files\/\uff09\u5185\u3067\u306e\u307f\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306e\u5916\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"fileopen\">FileOpen\uff1a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>int FileOpen(\n   string file_name,    \/\/ \u30d5\u30a1\u30a4\u30eb\u540d\uff08Files\/\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u76f8\u5bfe\u30d1\u30b9\uff09\n   int    open_flags,   \/\/ \u30aa\u30fc\u30d7\u30f3\u30d5\u30e9\u30b0\u306e\u7d44\u307f\u5408\u308f\u305b\n   short  delimiter = 't',  \/\/ CSV\u306e\u533a\u5207\u308a\u6587\u5b57\n   uint   codepage = CP_ACP   \/\/ \u30b3\u30fc\u30c9\u30da\u30fc\u30b8\n);\n\/\/ \u623b\u308a\u5024: \u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\uff08\u5931\u6557\u6642\u306fINVALID_HANDLE\uff09<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u30aa\u30fc\u30d7\u30f3\u30d5\u30e9\u30b0<\/h3>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u30d5\u30e9\u30b0<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>FILE_READ<\/td><td>\u8aad\u307f\u8fbc\u307f\u7528<\/td><\/tr><tr><td>FILE_WRITE<\/td><td>\u66f8\u304d\u8fbc\u307f\u7528<\/td><\/tr><tr><td>FILE_BIN<\/td><td>\u30d0\u30a4\u30ca\u30ea\u30e2\u30fc\u30c9<\/td><\/tr><tr><td>FILE_CSV<\/td><td>CSV\u30e2\u30fc\u30c9\uff08\u533a\u5207\u308a\u6587\u5b57\u5bfe\u5fdc\uff09<\/td><\/tr><tr><td>FILE_TXT<\/td><td>\u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9<\/td><\/tr><tr><td>FILE_ANSI<\/td><td>ANSI\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/td><\/tr><tr><td>FILE_UNICODE<\/td><td>Unicode\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/td><\/tr><tr><td>FILE_COMMON<\/td><td>\u5171\u901a\u30d5\u30a9\u30eb\u30c0\u3092\u4f7f\u7528<\/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>\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306e\u5236\u7d04<\/strong><\/span><\/div>\n<div class=\"cap_box_content\">\n<ul>\n<li>\u901a\u5e38: <code>MQL4\/Files\/<\/code> \u30d5\u30a9\u30eb\u30c0\u5185\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u80fd<\/li>\n<li>\u30c6\u30b9\u30bf\u30fc: <code>tester\/files\/<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b<\/li>\n<li>FILE_COMMON: \u30bf\u30fc\u30df\u30ca\u30eb\u5171\u901a\u30d5\u30a9\u30eb\u30c0\uff08<code>AppData\/Roaming\/MetaQuotes\/Terminal\/Common\/Files\/<\/code>\uff09<\/li>\n<li>\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u306e\u4f5c\u6210: <code>FolderCreate(\"subfolder\")<\/code>\uff08\u30d3\u30eb\u30c9600+\uff09<\/li>\n<li>\u7d76\u5bfe\u30d1\u30b9\u306f\u6307\u5b9a\u3067\u304d\u306a\u3044\uff08\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u5236\u7d04\uff09<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<div class=\"swell-block-capbox cap_box is-style-shadow\"><div class=\"cap_box_ttl\"><span><strong>\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306e\u5236\u7d04<\/strong><\/span><\/div><div class=\"cap_box_content\"><ul><li>\u901a\u5e38: <code>MQL4\/Files\/<\/code> \u30d5\u30a9\u30eb\u30c0\u5185\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u80fd<\/li><li>\u30c6\u30b9\u30bf\u30fc: <code>tester\/files\/<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b<\/li><li>FILE_COMMON: \u30bf\u30fc\u30df\u30ca\u30eb\u5171\u901a\u30d5\u30a9\u30eb\u30c0\uff08<code>AppData\/Roaming\/MetaQuotes\/Terminal\/Common\/Files\/<\/code>\uff09<\/li><li>\u7d76\u5bfe\u30d1\u30b9\u306f\u6307\u5b9a\u3067\u304d\u306a\u3044\uff08\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u5236\u7d04\uff09<\/li><\/ul><\/div><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"csv-write\">CSV\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"CSV\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u8fbc\u307f\"><code>void WriteTradeLog(int ticket, string action, double lots, double price)\n  {\n   string filename =\"TradeLog_\" + Symbol() +\".csv\";\n\n   int handle = FileOpen(filename, FILE_READ|FILE_WRITE|FILE_CSV, ',');\n\n   if(handle == INVALID_HANDLE)\n     {\n      Print(\"\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u5931\u6557:\", GetLastError());\n      return;\n     }\n\n   \/\/ \u30d5\u30a1\u30a4\u30eb\u672b\u5c3e\u306b\u79fb\u52d5\n   FileSeek(handle, 0, SEEK_END);\n\n   \/\/ \u30d5\u30a1\u30a4\u30eb\u304c\u7a7a\u306a\u3089\u30d8\u30c3\u30c0\u30fc\u3092\u66f8\u304f\n   if(FileTell(handle) == 0)\n      FileWrite(handle,\"DateTime\",\"Action\",\"Symbol\",\"Ticket\",\"Lots\",\"Price\",\"Balance\",\"Equity\");\n\n   \/\/ \u30c7\u30fc\u30bf\u884c\u3092\u66f8\u304d\u8fbc\u307f\n   FileWrite(handle,\n      TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS),\n      action,\n      Symbol(),\n      ticket,\n      DoubleToStr(lots, 2),\n      DoubleToStr(price, Digits),\n      DoubleToStr(AccountBalance(), 2),\n      DoubleToStr(AccountEquity(), 2)\n   );\n\n   FileClose(handle);\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"csv-read\">CSV\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"CSV\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\"><code>void ReadTradeLog()\n  {\n   string filename =\"TradeLog_\" + Symbol() +\".csv\";\n\n   int handle = FileOpen(filename, FILE_READ|FILE_CSV, ',');\n\n   if(handle == INVALID_HANDLE)\n     {\n      Print(\"\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\");\n      return;\n     }\n\n   \/\/ \u30d8\u30c3\u30c0\u30fc\u884c\u3092\u30b9\u30ad\u30c3\u30d7\n   string header = FileReadString(handle);\n\n   int lineCount = 0;\n   while(!FileIsEnding(handle))\n     {\n      string dateTime = FileReadString(handle);\n      string action   = FileReadString(handle);\n      string symbol   = FileReadString(handle);\n      int    ticket   = (int)FileReadNumber(handle);\n      double lots     = FileReadNumber(handle);\n      double price    = FileReadNumber(handle);\n      double balance  = FileReadNumber(handle);\n      double equity   = FileReadNumber(handle);\n\n      if(StringLen(dateTime) &gt; 0)\n        {\n         Print(dateTime,\"\", action,\"\", symbol,\" ticket=\", ticket,\" lots=\", lots);\n         lineCount++;\n        }\n     }\n\n   FileClose(handle);\n   Print(\"\u8aad\u307f\u8fbc\u307f\u5b8c\u4e86:\", lineCount,\"\u884c\");\n  }<\/code><\/pre><\/div>\n\n<p class=\"is-style-big_icon_point\">FILE_READ|FILE_WRITE\u3092\u540c\u6642\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001<strong>\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u8aad\u307f\u66f8\u304d<\/strong>\u3067\u304d\u307e\u3059\u3002FILE_WRITE\u306e\u307f\u3060\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u7a7a\u306b\u306a\u308a\u307e\u3059\u3002\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305aFILE_READ|FILE_WRITE\u3067\u958b\u3044\u3066\u304b\u3089FileSeek(handle, 0, SEEK_END)\u3067\u30d5\u30a1\u30a4\u30eb\u672b\u5c3e\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<p class=\"is-style-big_icon_point\">FILE_READ|FILE_WRITE\u3092\u540c\u6642\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001<strong>\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u8aad\u307f\u66f8\u304d<\/strong>\u3067\u304d\u307e\u3059\u3002FILE_WRITE\u306e\u307f\u3060\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u7a7a\u306b\u306a\u308a\u307e\u3059\u3002\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305aFILE_READ|FILE_WRITE\u3067\u958b\u3044\u3066\u304b\u3089FileSeek(handle, 0, SEEK_END)\u3067\u30d5\u30a1\u30a4\u30eb\u672b\u5c3e\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"text-file\">\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\"><code>\/\/ \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u8fbc\u307f\nvoid WriteTextLog(string message)\n  {\n   string filename =\"EA_Log.txt\";\n   int handle = FileOpen(filename, FILE_READ|FILE_WRITE|FILE_TXT|FILE_ANSI);\n\n   if(handle == INVALID_HANDLE) return;\n\n   FileSeek(handle, 0, SEEK_END);\n   FileWriteString(handle,\n      TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) +\"\" + message +\"n\");\n   FileClose(handle);\n  }\n\n\/\/ \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u6587\u8aad\u307f\u8fbc\u307f\nstring ReadTextFile(string filename)\n  {\n   int handle = FileOpen(filename, FILE_READ|FILE_TXT|FILE_ANSI);\n\n   if(handle == INVALID_HANDLE)\n      return\"\";\n\n   int size = (int)FileSize(handle);\n   string content = FileReadString(handle, size);\n\n   FileClose(handle);\n   return content;\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"binary-file\">\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\"><code>\/\/ \u69cb\u9020\u4f53\u3092\u30d0\u30a4\u30ca\u30ea\u3067\u4fdd\u5b58\nstruct TradeRecord\n  {\n   int      ticket;\n   int      type;\n   double   lots;\n   double   openPrice;\n   datetime openTime;\n  };\n\nvoid SaveTradeRecords(TradeRecord &amp;records[], int count)\n  {\n   int handle = FileOpen(\"trades.bin\", FILE_WRITE|FILE_BIN);\n   if(handle == INVALID_HANDLE) return;\n\n   \/\/ \u30ec\u30b3\u30fc\u30c9\u6570\u3092\u6700\u521d\u306b\u4fdd\u5b58\n   FileWriteInteger(handle, count);\n\n   for(int i = 0; i &lt; count; i++)\n     {\n      FileWriteInteger(handle, records[i].ticket);\n      FileWriteInteger(handle, records[i].type);\n      FileWriteDouble(handle, records[i].lots);\n      FileWriteDouble(handle, records[i].openPrice);\n      FileWriteInteger(handle, (int)records[i].openTime);\n     }\n\n   FileClose(handle);\n  }\n\nint LoadTradeRecords(TradeRecord &amp;records[])\n  {\n   int handle = FileOpen(\"trades.bin\", FILE_READ|FILE_BIN);\n   if(handle == INVALID_HANDLE) return 0;\n\n   int count = FileReadInteger(handle);\n   ArrayResize(records, count);\n\n   for(int i = 0; i &lt; count; i++)\n     {\n      records[i].ticket    = FileReadInteger(handle);\n      records[i].type      = FileReadInteger(handle);\n      records[i].lots      = FileReadDouble(handle);\n      records[i].openPrice = FileReadDouble(handle);\n      records[i].openTime  = (datetime)FileReadInteger(handle);\n     }\n\n   FileClose(handle);\n   return count;\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"file-utility\">\u30d5\u30a1\u30a4\u30eb\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u95a2\u6570<\/h2>\n\n<figure class=\"wp-block-table is-style-stripes\">\n<table class=\"has-fixed-layout\"><thead><tr><th>\u95a2\u6570<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>FileIsExist(filename)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u306e\u5b58\u5728\u78ba\u8a8d<\/td><\/tr><tr><td>FileDelete(filename)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u306e\u524a\u9664<\/td><\/tr><tr><td>FileMove(src, dst, flag)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\/\u30ea\u30cd\u30fc\u30e0<\/td><\/tr><tr><td>FileCopy(src, flag, dst, flag)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc<\/td><\/tr><tr><td>FileSize(handle)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\uff08\u30d0\u30a4\u30c8\uff09<\/td><\/tr><tr><td>FileTell(handle)<\/td><td>\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30eb\u4f4d\u7f6e<\/td><\/tr><tr><td>FileSeek(handle, offset, origin)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u4f4d\u7f6e\u306e\u79fb\u52d5<\/td><\/tr><tr><td>FileFlush(handle)<\/td><td>\u30d0\u30c3\u30d5\u30a1\u306e\u30d5\u30e9\u30c3\u30b7\u30e5<\/td><\/tr><tr><td>FileIsEnding(handle)<\/td><td>\u30d5\u30a1\u30a4\u30eb\u672b\u5c3e\u304b\u3069\u3046\u304b<\/td><\/tr><tr><td>FileIsLineEnding(handle)<\/td><td>\u884c\u672b\u304b\u3069\u3046\u304b<\/td><\/tr><tr><td>FolderCreate(path)<\/td><td>\u30d5\u30a9\u30eb\u30c0\u306e\u4f5c\u6210\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><\/tr><tr><td>FolderDelete(path)<\/td><td>\u30d5\u30a9\u30eb\u30c0\u306e\u524a\u9664\uff08\u30d3\u30eb\u30c9600+\uff09<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"\u30d5\u30a1\u30a4\u30eb\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\"><code>void FileUtilityExample()\n  {\n   string filename =\"test.txt\";\n\n   \/\/ \u5b58\u5728\u78ba\u8a8d\n   if(FileIsExist(filename))\n      Print(\"\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u307e\u3059\");\n   else\n      Print(\"\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u307e\u305b\u3093\");\n\n   \/\/ \u30d5\u30a1\u30a4\u30eb\u524a\u9664\n   if(FileIsExist(\"old_log.txt\"))\n      FileDelete(\"old_log.txt\");\n\n   \/\/ \u30d5\u30a9\u30eb\u30c0\u4f5c\u6210\uff08\u30d3\u30eb\u30c9600+\uff09\n   FolderCreate(\"Logs\");\n   FolderCreate(\"Logs2024\");\n\n   \/\/ \u5171\u901a\u30d5\u30a9\u30eb\u30c0\u3078\u306e\u66f8\u304d\u8fbc\u307f\uff08\u8907\u6570EA\u3067\u5171\u6709\uff09\n   int handle = FileOpen(\"shared_data.txt\",\n                          FILE_WRITE|FILE_TXT|FILE_COMMON);\n   if(handle != INVALID_HANDLE)\n     {\n      FileWriteString(handle,\"\u5171\u6709\u30c7\u30fc\u30bf\");\n      FileClose(handle);\n     }\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"practical\">\u5b9f\u8df5: \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d<\/h2>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\" data-file=\"INI\u5f62\u5f0f\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\"><code>\/\/ key=value\u5f62\u5f0f\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\nstring ReadSetting(string filename, string key, string defaultValue =\"\")\n  {\n   int handle = FileOpen(filename, FILE_READ|FILE_TXT|FILE_ANSI);\n   if(handle == INVALID_HANDLE)\n      return defaultValue;\n\n   string result = defaultValue;\n\n   while(!FileIsEnding(handle))\n     {\n      string line = FileReadString(handle);\n      int eqPos = StringFind(line,\"=\");\n\n      if(eqPos &gt; 0)\n        {\n         string k = StringSubstr(line, 0, eqPos);\n         string v = StringSubstr(line, eqPos + 1);\n         StringTrimLeft(k); StringTrimRight(k);\n         StringTrimLeft(v); StringTrimRight(v);\n\n         if(k == key)\n           {\n            result = v;\n            break;\n           }\n        }\n     }\n\n   FileClose(handle);\n   return result;\n  }\n\n\/\/ \u4f7f\u7528\u4f8b\nvoid LoadSettings()\n  {\n   double riskPercent = StrToDouble(ReadSetting(\"ea_config.ini\",\"RiskPercent\",\"2.0\"));\n   int    maxPositions = StrToInteger(ReadSetting(\"ea_config.ini\",\"MaxPositions\",\"3\"));\n   string allowedPairs = ReadSetting(\"ea_config.ini\",\"AllowedPairs\",\"USDJPY,GBPJPY\");\n\n   Print(\"Risk:\", riskPercent,\"% MaxPos:\", maxPositions,\" Pairs:\", allowedPairs);\n  }<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"function-table\">\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\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>FileOpen()<\/td><td>FileOpen()<\/td><td>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/td><\/tr><tr><td>FileClose()<\/td><td>FileClose()<\/td><td>\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b<\/td><\/tr><tr><td>FileWrite()<\/td><td>FileWrite()<\/td><td>CSV\u30d5\u30a3\u30fc\u30eb\u30c9\u66f8\u304d\u8fbc\u307f<\/td><\/tr><tr><td>FileWriteString()<\/td><td>FileWriteString()<\/td><td>\u6587\u5b57\u5217\u66f8\u304d\u8fbc\u307f<\/td><\/tr><tr><td>FileWriteInteger()<\/td><td>FileWriteInteger()<\/td><td>\u6574\u6570\u66f8\u304d\u8fbc\u307f<\/td><\/tr><tr><td>FileWriteDouble()<\/td><td>FileWriteDouble()<\/td><td>\u6d6e\u52d5\u5c0f\u6570\u70b9\u66f8\u304d\u8fbc\u307f<\/td><\/tr><tr><td>FileReadString()<\/td><td>FileReadString()<\/td><td>\u6587\u5b57\u5217\u8aad\u307f\u8fbc\u307f<\/td><\/tr><tr><td>FileReadNumber()<\/td><td>FileReadNumber()<\/td><td>\u6570\u5024\u8aad\u307f\u8fbc\u307f<\/td><\/tr><tr><td>FileReadInteger()<\/td><td>FileReadInteger()<\/td><td>\u6574\u6570\u8aad\u307f\u8fbc\u307f<\/td><\/tr><tr><td>FileReadDouble()<\/td><td>FileReadDouble()<\/td><td>\u6d6e\u52d5\u5c0f\u6570\u70b9\u8aad\u307f\u8fbc\u307f<\/td><\/tr><tr><td>FileDelete()<\/td><td>FileDelete()<\/td><td>\u30d5\u30a1\u30a4\u30eb\u524a\u9664<\/td><\/tr><tr><td>FileIsExist()<\/td><td>FileIsExist()<\/td><td>\u5b58\u5728\u78ba\u8a8d<\/td><\/tr><tr><td>FileSize()<\/td><td>FileSize()<\/td><td>\u30b5\u30a4\u30ba\u53d6\u5f97<\/td><\/tr><tr><td>FileSeek()<\/td><td>FileSeek()<\/td><td>\u4f4d\u7f6e\u79fb\u52d5<\/td><\/tr><tr><td>FileTell()<\/td><td>FileTell()<\/td><td>\u73fe\u5728\u4f4d\u7f6e\u53d6\u5f97<\/td><\/tr><\/tbody><\/table>\n<\/figure>\n\n<h2 class=\"wp-block-heading\" id=\"matome\">\u307e\u3068\u3081<\/h2>\n\n<p>MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\u306fMQL5\u3068\u307b\u307c\u540c\u3058\u3067\u3001\u79fb\u690d\u6027\u304c\u9ad8\u3044\u30ab\u30c6\u30b4\u30ea\u3067\u3059\u3002\u5b9f\u969b\u306b\u8a66\u3057\u305f\u3068\u3053\u308d\u3001FileOpen()\u5f8c\u306eFileClose()\u3092\u5fd8\u308c\u308b\u3068\u5b9f\u884c\u4e2d\u306b\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u304c\u67af\u6e07\u3057\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n<ul>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306fMQL4\/Files\/\u30d5\u30a9\u30eb\u30c0\u5185\u3067\u306e\u307f\u64cd\u4f5c\u53ef\u80fd<\/strong>\uff1a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9<\/li>\n<li><strong>FileOpen()\u5f8c\u306f\u5fc5\u305aFileClose()\u3059\u308b<\/strong>\uff1a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u30ea\u30fc\u30af\u3092\u9632\u3050<\/li>\n<li><strong>FILE_COMMON\u3067\u8907\u6570EA\u9593\u306e\u30c7\u30fc\u30bf\u5171\u6709<\/strong>\u304c\u53ef\u80fd<\/li>\n<li><strong>CSV\u30e2\u30fc\u30c9\u306fFileWrite()\u3001\u30c6\u30ad\u30b9\u30c8\u30e2\u30fc\u30c9\u306fFileWriteString()<\/strong>\u3092\u4f7f\u3044\u5206\u3051\u308b<\/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\u4ed6\u306e\u30ab\u30c6\u30b4\u30ea\u3082\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<p>EA\u672c\u756a\u904b\u7528\u3067\u306f\u640d\u5931\u30ea\u30b9\u30af\u304c\u4f34\u3044\u307e\u3059\u3002\u5341\u5206\u306a\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u3068\u52d5\u4f5c\u78ba\u8a8d\u3092\u7d4c\u3066\u304b\u3089\u672c\u756a\u53e3\u5ea7\u3067\u7a3c\u50cd\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">MQL4\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c \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\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306e\u57fa\u672c\u306f\uff1f<\/h3><div class=\"faq_a\"><p>FileOpen()\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001FileWrite()\/FileWriteString()\u3067\u66f8\u304d\u8fbc\u307f\u3001FileClose()\u3067\u9589\u3058\u308b\u6d41\u308c\u304c\u57fa\u672c\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306fMQL4\/Files\u30d5\u30a9\u30eb\u30c0\uff08\u30c7\u30fc\u30bf\u30d5\u30a9\u30eb\u30c0\u5185\uff09\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002OnDeinit()\u3067\u306eFileClose()\u547c\u3073\u51fa\u3057\u3092\u5fd8\u308c\u305a\u306b\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067CSV\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>FileOpen(name, FILE_CSV|FILE_WRITE, &#8220;,&#8221;)\u3067CSV\u30e2\u30fc\u30c9\u3067\u958b\u304d\u3001FileWrite(handle, col1, col2)\u30671\u884c\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002FILE_ANSI\u3092\u8ffd\u52a0\u3059\u308b\u3068ANSI\u30a8\u30f3\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\u8ffd\u8a18\u306fFILE_READ|FILE_WRITE\u3067FileSeek()\u3057\u3066\u304b\u3089\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u4fdd\u5b58\u5834\u6240\u306f\u3069\u3053\u3067\u3059\u304b\uff1f<\/h3><div class=\"faq_a\"><p>MQL4\/Files\u30d5\u30a9\u30eb\u30c0\uff08MT4\u30c7\u30fc\u30bf\u30d5\u30a9\u30eb\u30c0\u5185\uff09\u304c\u6a19\u6e96\u4fdd\u5b58\u5148\u3067\u3059\u3002TerminalPath()\u3067MT4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002FILE_COMMON\u30d5\u30e9\u30b0\uff08MQL4.56\u4ee5\u964d\uff09\u3067\u5171\u901a\u30d5\u30a9\u30eb\u30c0\u3078\u306e\u4fdd\u5b58\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>FileIsExist(filename)\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u5b58\u5728\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002FileOpen()\u3067\u958b\u3051\u305f\u304b\uff08\u623b\u308a\u5024\u304c-1\u3067\u306a\u3044\u304b\uff09\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u5931\u6557\u6642\u306fGetLastError()\u3067\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3001\u30cf\u30f3\u30c9\u30eb\u3092INVALID_HANDLE\u3068\u6bd4\u8f03\u3057\u3066\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3067EA\u306e\u30c8\u30ec\u30fc\u30c9\u30ed\u30b0\u3092\u8a18\u9332\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/h3><div class=\"faq_a\"><p>FileOpen()\u3067FILE_WRITE|FILE_TXT\u30e2\u30fc\u30c9\u3067\u958b\u304d\u3001FileWriteString()\u3067\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u4ed8\u304d\u30ed\u30b0\u884c\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002TimeToStr(TimeCurrent())\u3067\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u983b\u7e41\u306a\u66f8\u304d\u8fbc\u307f\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001\u30d0\u30c3\u30d5\u30a1\u30ea\u30f3\u30b0\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/div><\/div>\n\n\n\n<div class=\"swell-block-faq__item\"><h3 class=\"faq_q\">MQL4\u3068MQL5\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306e\u9055\u3044\u306f\uff1f<\/h3><div class=\"faq_a\"><p>\u57fa\u672c\u7684\u306aAPI\u306f\u540c\u3058\u3067\u3059\u304c\u3001MQL5\u3067\u306fFileFindFirst()\/FileFindNext()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002FILE_COMMON\u30d5\u30e9\u30b0\u306fMQL5\u3067\u3088\u308a\u5b8c\u5168\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002MQL4\u3067\u306fFILE_ANSI\u3068FILE_UNICODE\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\u6307\u5b9a\u304c\u91cd\u8981\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\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306e\u57fa\u672c\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"FileOpen()\u3067\u958b\u304d\u3001FileWrite()\/FileWriteString()\u3067\u66f8\u304d\u8fbc\u307f\u3001FileClose()\u3067\u9589\u3058\u308b\u6d41\u308c\u304c\u57fa\u672c\u3067\u3059\u3002MQL4\/Files\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067CSV\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"FileOpen(name,FILE_CSV|FILE_WRITE,\\\",\\\")\u3067CSV\u30e2\u30fc\u30c9\u3067\u958b\u304d\u3001FileWrite(handle,col1,col2)\u3067\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u8ffd\u8a18\u306fFILE_READ|FILE_WRITE\u3067FileSeek()\u5f8c\u306b\u884c\u3044\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u4fdd\u5b58\u5834\u6240\u306f\u3069\u3053\u3067\u3059\u304b\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"MQL4\/Files\u30d5\u30a9\u30eb\u30c0\uff08MT4\u30c7\u30fc\u30bf\u30d5\u30a9\u30eb\u30c0\u5185\uff09\u304c\u6a19\u6e96\u3067\u3059\u3002TerminalPath()\u3067MT4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30b9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"FileIsExist(filename)\u3067\u5b58\u5728\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002FileOpen()\u306e\u623b\u308a\u5024\u304c-1\u304b\u3069\u3046\u304b\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3067EA\u306e\u30c8\u30ec\u30fc\u30c9\u30ed\u30b0\u3092\u8a18\u9332\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"FILE_WRITE|FILE_TXT\u3067\u958b\u304d\u3001FileWriteString()\u3067\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u4ed8\u304d\u30ed\u30b0\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002TimeToStr(TimeCurrent())\u3067\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u751f\u6210\u3057\u307e\u3059\u3002\"}},\n    {\"@type\":\"Question\",\"name\":\"MQL4\u3068MQL5\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306e\u9055\u3044\u306f\uff1f\",\"acceptedAnswer\": {\"@type\":\"Answer\",\"text\":\"\u57fa\u672cAPI\u306f\u540c\u3058\u3067\u3059\u304c\u3001MQL5\u3067\u306fFileFindFirst()\/FileFindNext()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002MQL4\u3067\u306f\u30a8\u30f3\u30b3\u30fc\u30c9\u6307\u5b9a(FILE_ANSI\/UNICODE)\u304c\u91cd\u8981\u3067\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-math-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u6570\u5b66\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cNormalizeDouble\u5b8c\u5168\u89e3\u8aac<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u6570\u5b66\u95a2\u6570\uff08MathAbs\u30fbMathRound\u30fbNormalizeDouble\u30fb\u4e71\u6570\uff09\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002FX\u306e\u4fa1\u683c\u8a08\u7b97\u306b\u5fc5\u9808\u306e\u6b63\u898f\u5316\u51e6\u7406\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -external\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/sys-tre.com\/forexguide\/wp-content\/uploads\/2026\/06\/forexguide-mqlref-eyecatch.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/sys-tre.com\/forexguide\/mql4-common-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\">MQL4 \u5171\u901a\u95a2\u6570\u30fb\u5909\u63db\u95a2\u6570\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5c\u5b8c\u5168\u30ac\u30a4\u30c9<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">MQL4\u306e\u5171\u901a\u95a2\u6570\uff08Alert\u30fbComment\u30fbPrint\u30fbSleep\uff09\u3068\u578b\u5909\u63db\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3002EA\u30c7\u30d0\u30c3\u30b0\u3084\u901a\u77e5\u6a5f\u80fd\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/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\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\u3092\u4f53\u7cfb\u7684\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002FileOpen()\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u3001FileClose()\u306b\u3088\u308b\u30af\u30ed\u30fc\u30ba\u3001FileWrite()\/FileWriteString()\u306b\u3088\u308b\u66f8\u304d\u8fbc\u307f\u3001FileReadString()\/FileReadNumber()\u306b\u3088\u308b\u8aad\u307f\u8fbc\u307f\u3001FileDelete()\u306b&#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-65720","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 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9<\/title>\n<meta name=\"description\" content=\"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\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-file-operations\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9\" \/>\n<meta property=\"og:description\" content=\"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/\" \/>\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-14T02:54:50+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-file-operations\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/\"},\"author\":{\"name\":\"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#\\\/schema\\\/person\\\/6d4b91f175c62b272d48ff74ffe237c1\"},\"headline\":\"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cFileOpen\u30fbFileWrite\u30fbCSV\u30fb\u30d0\u30a4\u30ca\u30ea\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d\",\"datePublished\":\"2026-03-14T18:27:03+00:00\",\"dateModified\":\"2026-04-14T02:54:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/\"},\"wordCount\":272,\"publisher\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/#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-file-operations\\\/\",\"url\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/\",\"name\":\"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/#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-14T02:54:50+00:00\",\"description\":\"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sys-tre.com\\\/forexguide\\\/mql4-file-operations\\\/#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-file-operations\\\/#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 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cFileOpen\u30fbFileWrite\u30fbCSV\u30fb\u30d0\u30a4\u30ca\u30ea\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d\"}]},{\"@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 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9","description":"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\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-file-operations\/","og_locale":"ja_JP","og_type":"article","og_title":"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9","og_description":"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/","og_site_name":"Forex Guide","article_published_time":"2026-03-14T18:27:03+00:00","article_modified_time":"2026-04-14T02:54:50+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-file-operations\/#article","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/"},"author":{"name":"\u30b7\u30b9\u30c8\u30ec.COM\u7de8\u96c6\u90e8","@id":"https:\/\/sys-tre.com\/forexguide\/#\/schema\/person\/6d4b91f175c62b272d48ff74ffe237c1"},"headline":"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cFileOpen\u30fbFileWrite\u30fbCSV\u30fb\u30d0\u30a4\u30ca\u30ea\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d","datePublished":"2026-03-14T18:27:03+00:00","dateModified":"2026-04-14T02:54:50+00:00","mainEntityOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/"},"wordCount":272,"publisher":{"@id":"https:\/\/sys-tre.com\/forexguide\/#organization"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/#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-file-operations\/","url":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/","name":"MQL4 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cCSV\u8aad\u307f\u66f8\u304d\u5b8c\u5168\u30ac\u30a4\u30c9","isPartOf":{"@id":"https:\/\/sys-tre.com\/forexguide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/#primaryimage"},"image":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/#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-14T02:54:50+00:00","description":"MQL4\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u95a2\u6570\uff08FileOpen\u30fbFileWrite\u30fbFileRead\uff09\u3067CSV\u30fb\u30d0\u30a4\u30ca\u30ea\u306e\u8aad\u307f\u66f8\u304d\u65b9\u6cd5\u3092\u89e3\u8aac\u3002\u53d6\u5f15\u30ed\u30b0\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u88c5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sys-tre.com\/forexguide\/mql4-file-operations\/#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-file-operations\/#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 \u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff5cFileOpen\u30fbFileWrite\u30fbCSV\u30fb\u30d0\u30a4\u30ca\u30ea\u30fb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u66f8\u304d"}]},{"@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\/65720","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=65720"}],"version-history":[{"count":3,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65720\/revisions"}],"predecessor-version":[{"id":67367,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/posts\/65720\/revisions\/67367"}],"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=65720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/categories?post=65720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-tre.com\/forexguide\/wp-json\/wp\/v2\/tags?post=65720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}