智能交易
在MetaTrader市场购买MetaTrader 4的'Direct export to matlab mt4' 交易工具
人气:498  销量:0  评价:0
起批 1-30000件 30001件以上
价格 ¥3988.00 ¥10.00
物流 :3988.00  
库存 888888件
品牌 顺水的鱼外汇EA
  • 商品详情
  • 评价详情(0)
  • 交易记录(0)
  • 概述
  • 评论
  • 评论

Direct export to matlab mt4

Use this script to export the price history to MATLAB mat files from any chart. Optionally, a CSV file can be created. This script allows easily creating and verifying your trading strategy in MATLAB, for example, statistical arbitrage or pairs trading strategies.


Input parameters

  • startDT: start export from this date and time. Can be '1970.01.01 00:00:00' to start from the first available date and time.
  • endDT: the last date and time in the file. Can be '1970.01.01 00:00:00' to export until the most recent available date and time.
  • tryDownloadHistory: try to download history if there is no corresponding history in the terminal.
  • writeCSV: create CSV file as well.

Then simply open the created mat file in MATLAB. Variable name created in MATLAB corresponds to exported symbol name and timeframe. If there are special symbols in the instrument name, then they are replaced with "_".

The resulting variable has a matrix structure, where the columns are values of the corresponding parameters below:

Matlab serial date number(datenum), Open, High, Low, Close, Tick volume, Spread, Real volume.

To simplify access to corresponding time series scalar, index variables are created: itime, iopen, ihigh, ilow, iclose, itick_volume, ireal_volume. For example, they can be used to plot the chart of Close price relative to time in MATLAB (assuming EURUSD_M1 is the corresponding variable):

plot(datetime(EURUSD_M1(:, itime),'ConvertFrom','datenum')), EURUSD_M1(:, iclose));

The format of CSV file is: Date, Time, Open, High, Low, Close, Tick volume, Spread, Real volume.

ta itemprop="image" content="https://c.mql5.com/31/180/direct-export-to-matlab-mt4-screen-5472.jpg" />
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
加入购物车
立即购买