2010年5月31日月曜日

★トレード履歴の表示(00-DispTrade_v102.mq4)解説
Displaying Trading History


00-DispTradeは トレード履歴を表示するインジケーターで、パラメータで指定された最大10トレード、 あるいは以下の形式(1行1トレード)でCSV ファイルに記録された売買履歴をチャート上に表示させることができる。
通貨ペア名, Open日時, Open値, Close日時, Close値

.

ファイルフォーマット

上記CSV ファイルフォーマットの各フィールドの意味は以下の通り。
    通貨ペア
    そのサーバーで使える形式で売買した通貨名を指定する。
    Open日時
    そのトレードの開始日時を指定する。
    Open値
    開始時の値を指定する。Longの場合は+、Shortの場合はーとする。
    Close日時
    そのトレードの終了日時を指定する。
    Close値
    終了時の値を指定する。Open時と逆の符号をつける。(Longトレードの終了の場合は-、Shortの場合は+)

代表的なパラメーター

    serverGMT
    サーバー時刻のGMTからのオフセット時間を指定する。
    ODLなら0、 FXDDなら3、 121なら9など。(夏時間中は-1する)
    dataGMT
    トレード履歴データの時刻のGMTからのオフセット時間を指定する。
    トレード履歴(パラ/ファイル)中の時刻が日本時間なら9、見ているサーバーと同じならserverGMTと同じ値にする。
    spread
    スプレッドを指定する。
    トレードにおいて一律このスプレッド値を仮定する。0ならスプレッドなし、負の値の場合は現在のチャート上の通貨ペアのスプレッド値が使われる。
    tradeFileName
    トレード履歴ファイルを指定する。
    表示される履歴はパラメーターによるもの+トレード履歴ファイルとなる。
    bVertLine
    トレードのOpen/Close時に垂直ラインを表示するかどうか。
    bDispProfit
    Close時にそのトレードの損益を表示するかどうか。
    markOffset/profitOffset
    Close時の損益マーク/損益pips表示の位置調整。
    上下にずらしたい量をpipsで指定する。(ドル円下3桁業者の場合は1円=1000pips)
    tEntryN/pEntryN/tExitN/pExitN
    トレードを指定する。(最大10トレード)
    CSV ファイルと同様に、各トレードのOpen日時/Open値/Close日時/Close値を指定する。

履歴のサンプル

以下はトレード履歴のサンプルである。
ファイルはMT4をインストールしたフォルダの下にある、~/experts/files/ フォルダの下に置く。
GBPJPY, 2010-05-25 18:03:16, -127.97000, 2010-05-26 03:47:53, 129.70000
GBPJPY, 2010-05-25 18:05:30, -127.99000, 2010-05-26 03:47:53, 129.70000
USDJPY, 2010-05-25 19:52:04, -89.36000, 2010-05-26 03:47:49, 90.17000
AUDJPY, 2010-05-25 18:29:37, -72.79000, 2010-05-26 03:47:32, 73.90000
AUDJPY, 2010-05-26 00:18:26, -73.16000, 2010-05-26 03:47:17, 73.85000
AUDJPY, 2010-05-25 23:05:57, -73.23000, 2010-05-25 23:40:14, 72.90000
AUDJPY, 2010-05-25 19:31:24, -72.31000, 2010-05-25 22:56:46, 73.00000
AUDJPY, 2010-05-25 17:58:43, -72.60000, 2010-05-25 19:02:41, 72.20000
USDJPY, 2010-05-25 18:24:16, -89.84000, 2010-05-25 19:01:18, 89.60000
GBPJPY, 2010-05-25 11:07:37, -129.29000, 2010-05-25 18:01:46, 128.05000
USDJPY, 2010-05-25 12:37:56, -90.04000, 2010-05-25 17:58:26, 89.69000
USDJPY, 2010-05-25 14:27:47, -89.88000, 2010-05-25 17:58:21, 89.70000
GBPJPY, 2010-05-25 12:40:34, -129.15000, 2010-05-25 16:41:02, 128.00000
AUDJPY, 2010-05-25 13:40:57, -73.90000, 2010-05-25 15:54:52, 72.70000
USDJPY, 2010-05-25 10:54:47, -90.25000, 2010-05-25 14:26:47, 89.89000
GBPJPY, 2010-05-25 10:43:46, -129.57000, 2010-05-25 12:39:22, 129.14000
GBPJPY, 2010-05-24 11:12:15, 130.52000, 2010-05-25 01:52:00, -130.70000
AUDJPY, 2010-05-24 08:33:32, 74.97000, 2010-05-24 23:23:15, -75.17000
USDJPY, 2010-05-24 08:30:59, 90.32000, 2010-05-24 23:23:06, -90.48000
USDJPY, 2010-05-24 08:29:29, 90.29000, 2010-05-24 21:45:06, -90.40000
GBPJPY, 2010-05-24 13:57:04, 130.68000, 2010-05-24 20:28:49, -129.45000
GBPJPY, 2010-05-24 10:59:47, 130.33000, 2010-05-24 13:28:11, -130.71000
GBPJPY, 2010-05-24 10:10:48, 129.65000, 2010-05-24 11:08:50, -130.51000
AUDJPY, 2010-05-24 08:46:37, 74.78000, 2010-05-24 10:04:25, -73.79000
GBPJPY, 2010-05-22 01:37:46, 129.99000, 2010-05-24 06:15:53, -130.73000
USDJPY, 2010-05-22 01:52:04, 89.79000, 2010-05-24 05:59:33, -90.30000
GBPJPY, 2010-05-22 00:15:31, -129.73000, 2010-05-22 00:45:18, 130.71000
GBPJPY, 2010-05-21 23:52:47, -129.52000, 2010-05-22 00:41:59, 130.59000
GBPJPY, 2010-05-21 23:11:47, -129.77000, 2010-05-21 23:25:12, 129.35000
GBPJPY, 2010-05-21 22:55:39, -129.58000, 2010-05-21 23:05:46, 130.09000
GBPJPY, 2010-05-21 22:50:42, 129.55000, 2010-05-21 22:51:49, -129.66000
GBPJPY, 2010-05-21 22:40:45, 128.82000, 2010-05-21 22:48:10, -128.98000
USDJPY, 2010-05-21 21:50:31, -89.46000, 2010-05-21 22:33:21, 89.35000
GBPJPY, 2010-05-21 21:28:39, -127.97000, 2010-05-21 22:32:03, 128.42000
USDJPY, 2010-05-21 20:09:41, -89.47000, 2010-05-21 22:07:25, 89.31000
GBPJPY, 2010-05-21 21:08:42, -128.84000, 2010-05-21 21:25:01, 128.44000
USDJPY, 2010-05-21 15:14:53, -90.11000, 2010-05-21 20:30:24, 89.39000
USDJPY, 2010-05-21 15:38:22, -90.15000, 2010-05-21 20:09:12, 89.64000
GBPJPY, 2010-05-21 14:40:35, -130.40000, 2010-05-21 16:33:54, 129.59000
AUDJPY, 2010-05-21 12:22:10, 74.81000, 2010-05-21 14:40:54, -75.08000
AUDJPY, 2010-05-21 11:17:04, 74.37000, 2010-05-21 12:17:28, -74.55000
USDJPY, 2010-05-21 00:39:37, 90.20000, 2010-05-21 12:17:27, -90.23000
GBPJPY, 2010-05-21 03:40:44, 130.37000, 2010-05-21 04:56:38, -128.99000
USDJPY, 2010-05-21 00:50:05, 90.10000, 2010-05-21 03:49:19, -90.23000
GBPJPY, 2010-05-21 02:31:37, 130.00000, 2010-05-21 03:36:17, -130.21000
GBPJPY, 2010-05-21 02:40:49, 129.82000, 2010-05-21 03:25:54, -130.03000
AUDJPY, 2010-05-21 02:40:07, 74.22000, 2010-05-21 03:24:46, -74.84000
GBPJPY, 2010-05-21 00:29:38, 128.99000, 2010-05-21 02:33:24, -129.57000
AUDJPY, 2010-05-21 00:07:09, 73.83000, 2010-05-21 02:31:49, -74.60000
GBPJPY, 2010-05-21 00:35:45, 129.37000, 2010-05-21 02:31:21, -129.80000
USDJPY, 2010-05-21 00:20:40, 89.66000, 2010-05-21 00:25:36, -89.82000
USDJPY, 2010-05-20 23:27:27, -89.11000, 2010-05-21 00:06:28, 89.83000
USDJPY, 2010-05-20 23:58:14, -89.58000, 2010-05-21 00:05:42, 89.82000
AUDJPY, 2010-05-20 23:37:46, -73.15000, 2010-05-21 00:04:47, 73.55000
GBPJPY, 2010-05-20 23:15:05, -127.39000, 2010-05-21 00:04:21, 128.36000
AUDJPY, 2010-05-20 23:10:57, -73.81000, 2010-05-20 23:30:23, 72.90000
AUDJPY, 2010-05-20 23:15:57, -73.09000, 2010-05-20 23:28:49, 72.88000
USDJPY, 2010-05-20 23:10:38, -89.73000, 2010-05-20 23:28:36, 89.26000
USDJPY, 2010-05-20 23:15:08, -89.33000, 2010-05-20 23:27:02, 89.04000
AUDJPY, 2010-05-20 20:32:18, -74.96000, 2010-05-20 23:15:44, 73.20000
USDJPY, 2010-05-20 22:42:03, -90.15000, 2010-05-20 23:14:57, 89.41000
GBPJPY, 2010-05-20 23:12:40, -128.24000, 2010-05-20 23:14:45, 127.79000
GBPJPY, 2010-05-20 22:43:06, -128.82000, 2010-05-20 23:12:09, 128.20000
USDJPY, 2010-05-20 21:11:53, -90.80000, 2010-05-20 23:10:24, 89.74000
GBPJPY, 2010-05-20 22:24:06, -129.57000, 2010-05-20 23:10:00, 128.49000
GBPJPY, 2010-05-19 19:57:22, -129.78000, 2010-05-20 22:42:52, 128.90000
USDJPY, 2010-05-20 19:52:52, -91.16000, 2010-05-20 22:41:54, 90.20000
USDCHF, 2010-05-20 21:11:38, -1.14930, 2010-05-20 21:43:58, 1.14890
USDJPY, 2010-05-19 07:22:12, -92.10000, 2010-05-20 21:02:12, 90.83000
AUDJPY, 2010-05-20 15:16:42, -75.39000, 2010-05-20 21:01:35, 75.08000
GBPJPY, 2010-05-19 19:45:56, -130.04000, 2010-05-20 20:30:51, 129.83000
AUDJPY, 2010-05-20 19:39:38, -75.50000, 2010-05-20 19:45:40, 75.41000
USDJPY, 2010-05-20 19:18:25, -91.37000, 2010-05-20 19:37:27, 91.20000
EURUSD, 2010-05-20 17:45:54, -1.24050, 2010-05-20 19:02:56, 1.23550
USDJPY, 2010-05-20 01:15:46, -91.24000, 2010-05-20 17:36:49, 91.20000
AUDJPY, 2010-05-20 14:37:09, -75.60000, 2010-05-20 15:15:59, 75.40000
AUDJPY, 2010-05-19 20:17:05, -76.98000, 2010-05-20 14:36:39, 75.85000
USDJPY, 2010-05-19 21:28:55, -91.62000, 2010-05-19 23:20:35, 91.20000
GBPJPY, 2010-05-17 11:27:18, -131.37000, 2010-05-19 19:22:14, 130.14000
GBPJPY, 2010-05-17 11:29:09, -131.47000, 2010-05-19 17:47:32, 130.34000
AUDJPY, 2010-05-19 10:51:35, -78.35000, 2010-05-19 17:45:24, 77.54000
AUDJPY, 2010-05-19 10:44:21, -78.48000, 2010-05-19 17:26:38, 78.00000
AUDJPY, 2010-05-17 11:27:48, -80.45000, 2010-05-19 09:38:21, 78.90000
AUDJPY, 2010-05-17 11:28:48, -80.36000, 2010-05-19 08:57:13, 79.00000
GBPJPY, 2010-05-17 09:18:11, -133.11000, 2010-05-17 11:28:28, 131.34000
GBPJPY, 2010-05-17 09:12:03, -133.36000, 2010-05-17 11:26:53, 131.49000
AUDJPY, 2010-05-13 16:16:31, 84.42000, 2010-05-13 17:41:46, -83.92000
GBPJPY, 2010-05-13 16:11:20, 139.42000, 2010-05-13 16:51:04, -138.49000
GBPJPY, 2010-05-13 16:15:06, 139.50000, 2010-05-13 16:44:01, -138.90000
AUDJPY, 2010-05-12 13:51:32, -82.33000, 2010-05-12 23:10:37, 83.39000
USDJPY, 2010-05-12 13:51:13, -92.47000, 2010-05-12 23:10:37, 93.04000
AUDJPY, 2010-05-12 01:15:42, 83.66000, 2010-05-12 13:34:04, -82.49000
GBPJPY, 2010-05-12 01:32:11, 139.21000, 2010-05-12 13:33:57, -137.56000
GBPJPY, 2010-05-12 01:55:02, 139.54000, 2010-05-12 13:33:55, -137.55000
AUDJPY, 2010-05-12 01:59:21, 83.89000, 2010-05-12 13:33:50, -82.51000
USDJPY, 2010-05-12 02:09:30, 93.13000, 2010-05-12 13:33:44, -92.57000
GBPJPY, 2010-05-12 00:45:55, 138.98000, 2010-05-12 01:50:56, -139.45000
AUDJPY, 2010-05-12 01:02:52, 83.53000, 2010-05-12 01:50:12, -83.96000
GBPJPY, 2010-05-12 00:43:19, 138.93000, 2010-05-12 01:18:22, -139.33000
USDJPY, 2010-05-11 22:18:32, -92.69000, 2010-05-12 01:12:47, 92.95000
EURUSD, 2010-05-11 20:18:20, -1.26710, 2010-05-12 01:12:33, 1.27170
GBPJPY, 2010-05-11 20:02:19, -136.12000, 2010-05-12 00:02:23, 138.31000
GBPJPY, 2010-05-11 23:38:10, -137.16000, 2010-05-12 00:01:53, 138.20000
GBPJPY, 2010-05-11 20:02:35, -136.15000, 2010-05-11 23:22:51, 137.91000
AUDJPY, 2010-05-11 20:03:32, -82.53000, 2010-05-11 23:22:42, 83.42000
GBPJPY, 2010-05-11 08:22:29, -137.85000, 2010-05-11 10:17:16, 138.33000
AUDJPY, 2010-05-10 16:43:33, 84.69000, 2010-05-11 08:11:18, -83.81000
AUDJPY, 2010-05-11 04:52:02, 84.10000, 2010-05-11 08:11:11, -83.84000
GBPJPY, 2010-05-11 01:15:28, 138.82000, 2010-05-11 01:27:54, -138.83000
GBPJPY, 2010-05-11 01:09:51, -138.86000, 2010-05-11 01:13:47, 138.75000
GBPJPY, 2010-05-10 20:03:15, 139.98000, 2010-05-11 01:09:03, -138.90000
GBPJPY, 2010-05-11 01:03:14, 139.50000, 2010-05-11 01:08:59, -138.89000
GBPJPY, 2010-05-10 16:43:58, 139.03000, 2010-05-11 00:16:18, -140.15000
EURUSD, 2010-05-10 23:18:54, -1.28370, 2010-05-11 00:02:15, 1.28690
GBPJPY, 2010-05-10 16:50:03, 139.36000, 2010-05-10 19:58:35, -139.93000
USDJPY, 2010-05-10 09:59:43, -92.33000, 2010-05-10 16:41:04, 93.21000
GBPCHF, 2010-05-10 10:01:37, -1.63730, 2010-05-10 15:35:21, 1.63440
AUDJPY, 2010-05-07 13:44:02, -82.01000, 2010-05-07 14:10:26, 81.49000
GBPJPY, 2010-05-07 13:42:45, -136.69000, 2010-05-07 13:44:22, 136.37000
USDJPY, 2010-05-07 11:54:00, 92.54000, 2010-05-07 13:39:43, -92.26000
AUDJPY, 2010-05-07 11:14:40, 81.69000, 2010-05-07 13:08:04, -82.63000
GBPJPY, 2010-05-07 12:14:49, 136.59000, 2010-05-07 13:07:47, -137.94000
AUDJPY, 2010-05-07 11:39:48, 82.11000, 2010-05-07 13:03:12, -82.63000
USDJPY, 2010-05-07 12:21:35, 92.33000, 2010-05-07 13:02:55, -92.65000
USDJPY, 2010-05-07 10:56:05, 91.76000, 2010-05-07 11:50:30, -92.46000
EURUSD, 2010-05-07 11:22:40, 1.26840, 2010-05-07 11:44:31, -1.27110
EURUSD, 2010-05-07 10:10:19, -1.26370, 2010-05-07 10:51:13, 1.26230
AUDJPY, 2010-05-07 10:29:42, 81.41000, 2010-05-07 10:44:22, -81.10000
USDJPY, 2010-05-07 09:41:14, 91.26000, 2010-05-07 09:50:24, -91.40000
GBPJPY, 2010-05-07 08:00:48, 135.15000, 2010-05-07 08:40:42, -135.92000
USDJPY, 2010-05-07 07:15:12, 90.48000, 2010-05-07 08:40:34, -91.22000
USDJPY, 2010-05-07 06:29:17, 90.85000, 2010-05-07 08:40:04, -91.16000
EURUSD, 2010-05-07 06:10:55, -1.26460, 2010-05-07 06:39:59, 1.26240
EURUSD, 2010-05-07 04:28:47, -1.25750, 2010-05-07 06:06:59, 1.26510
USDJPY, 2010-05-07 03:42:46, -90.20000, 2010-05-07 03:45:39, 89.11000
EURUSD, 2010-05-07 01:35:28, -1.27220, 2010-05-07 03:01:39, 1.26750
AUDJPY, 2010-05-07 00:47:52, -82.72000, 2010-05-07 01:04:54, 82.58000
AUDJPY, 2010-05-06 23:56:49, -83.83000, 2010-05-07 00:45:21, 83.03000
USDJPY, 2010-05-06 23:35:59, -93.49000, 2010-05-07 00:13:44, 93.14000
GBPJPY, 2010-05-06 23:43:45, -140.00000, 2010-05-06 23:47:28, 139.87000
GBPJPY, 2010-05-06 23:39:15, 140.38000, 2010-05-06 23:41:43, -140.08000
AUDJPY, 2010-05-06 22:48:16, -84.68000, 2010-05-06 23:31:33, 84.08000
USDJPY, 2010-05-06 04:45:06, -93.66000, 2010-05-06 23:31:10, 93.47000
AUDJPY, 2010-05-06 22:08:47, -84.35000, 2010-05-06 23:26:45, 84.10000
USDJPY, 2010-05-06 03:47:23, -93.61000, 2010-05-06 23:00:49, 93.45000
AUDJPY, 2010-05-06 20:27:36, -84.92000, 2010-05-06 21:23:00, 84.66000
GBPJPY, 2010-05-06 20:31:31, 141.51000, 2010-05-06 21:05:36, -141.76000
GBPJPY, 2010-05-06 15:28:59, -141.33000, 2010-05-06 19:56:12, 141.49000
AUDJPY, 2010-05-06 03:44:00, -84.88000, 2010-05-06 15:19:06, 84.70000
AUDJPY, 2010-05-06 06:08:41, -84.94000, 2010-05-06 15:17:33, 84.74000
GBPJPY, 2010-05-06 09:56:29, -141.72000, 2010-05-06 15:10:23, 141.51000
GBPJPY, 2010-05-06 09:22:31, 141.66000, 2010-05-06 09:31:59, -141.85000
EURUSD, 2010-05-05 22:10:54, -1.28130, 2010-05-06 06:00:25, 1.28080
USDJPY, 2010-05-06 03:21:50, -93.87000, 2010-05-06 03:39:59, 93.64000
AUDJPY, 2010-05-05 22:51:55, -85.06000, 2010-05-06 03:29:02, 84.95000
AUDJPY, 2010-05-05 23:41:33, -85.56000, 2010-05-06 03:28:02, 85.04000
USDJPY, 2010-05-04 00:03:01, -94.46000, 2010-05-06 03:14:26, 93.84000
USDJPY, 2010-05-05 22:45:53, -94.20000, 2010-05-06 03:11:22, 93.95000
GBPJPY, 2010-05-05 21:56:16, -142.95000, 2010-05-05 22:11:47, 142.79000
GBPJPY, 2010-05-03 18:10:45, -143.09000, 2010-05-05 21:36:09, 142.99000
GBPJPY, 2010-05-05 21:08:15, -143.58000, 2010-05-05 21:31:54, 143.19000
AUDJPY, 2010-05-05 15:07:12, -86.20000, 2010-05-05 16:35:49, 86.04000
AUDJPY, 2010-05-05 00:07:26, -85.95000, 2010-05-05 04:41:47, 85.78000
AUDJPY, 2010-05-05 00:53:05, -86.19000, 2010-05-05 03:19:08, 85.88000
GBPJPY, 2010-05-04 23:32:35, -142.88000, 2010-05-04 23:34:46, 142.76000
AUDJPY, 2010-05-04 22:10:49, -86.29000, 2010-05-04 22:37:39, 86.14000
EURUSD, 2010-05-04 21:16:36, -1.30840, 2010-05-04 22:11:53, 1.30610
GBPJPY, 2010-05-03 23:55:38, -143.94000, 2010-05-04 17:34:28, 143.74000
AUDJPY, 2010-05-04 02:20:13, -87.68000, 2010-05-04 14:33:54, 87.45000
EURUSD, 2010-05-04 00:22:01, 1.31820, 2010-05-04 01:59:58, -1.31990
AUDJPY, 2010-05-03 22:21:03, -87.53000, 2010-05-03 23:52:39, 87.21000

4 件のコメント:

  1. Thanks for this wonderful information
    http://www.bcse.co.in

    返信削除
  2. 数年前から使っていた今までは不自由なく使えていたのですが
    つい最近になって表示されなくなりました。
    どうも読み込みに失敗しているように思えました。

    試してみたことは以下の通りです
    ・他のPCでも試してみましたが失敗
    ・違う業者のMT4で試してみたところやはり失敗
    ・再度00-DispTradeをインストールし、いれてみても失敗
    ・csvファイルの内容見直し
    ・csvファイル名をリネームし試してみましたが失敗。

    ずっと同じPC、MT4で使えていましたのが突然表示されなくなったので
    何が原因かわからない状態です。
    ご教授お願い出来ませんでしょうか、宜しくお願いしますm(_ _)m

    返信削除
    返信
    1. 私も同じく表示されません。

      もし解決したなら、教えてください

      削除
  3. 亀レスですが、急に使えなくなったのは、シンボル名の不一致でしょう。
    業者によって、ドル円はUSDJPYではなく、USDJPYFXFとか、いろいろありますし。

    返信削除