거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

YURAZ_CreateCSV_HistoryFile_From_MT5_For_MT4 - MetaTrader 5용 스크립트

게시자:
Yuriy Zaytsev
조회수:
20031
평가:
(46)
게시됨:
2010.12.15 10:32
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

When I used the history quotes data from MetaTrader4 client terminal, I have found that some brokers doesn't have the full history.

The quality of the historical bar data is better, so I have decided to export the historical quotes from MetaTrader 5 and import them in MetaTrader 4.

This script will help you to get the full history for MetaTrader 4.

Script for export historical data from MetaTrader 5 to MetaTrader 4

The script creates .CSV file with historical bar data.

The steps:

  • 1 - Install MetaTrader 5 client terminal http://files.metaquo...t5/mt5setup.exe
  • 2 - Enter the Main Menu->Tools->Options->Max bars in chart, and set MaxBars in chart depending on the historical bars needed:

Script for export historical data from MetaTrader 5 to MetaTrader 4


  • 3 - Load this script and place it to MQL5\Scripts folder
    in WINDOWS7/VISTA copy it to the Roaming folder instead of Program Files folder:
    for example c:\Users\<administrator\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Scripts\

    </administrator
  • 4 - Compile the script and attach it to the charts for each MetaTrader 4 timeframes: M1 M5 M15 M30 H1 H4 D1 W1

Script for export historical data from MetaTrader 5 to MetaTrader 4


Script for export historical data from MetaTrader 5 to MetaTrader 4


  • 5 - Close MetaTrader 5;
  • 6 - Open MetaTrader 4;
  • 7 - Press F2;
  • 8 - Choose currency pair;
  • 9 - Select timeframe;

Script for export historical data from MetaTrader 5 to MetaTrader 4

Let's consider how to dow it for M15 timeframe.
  • 10 - Select the file, created for M15 timeframe;
  • 11 - Press the "Import" button:

Script for export historical data from MetaTrader 5 to MetaTrader 4

  • 12 - Repeat the step №10 for each pair. Repeat Step №11 for each timeframe of the pair:

Script for export historical data from MetaTrader 5 to MetaTrader 4

LET'S CHECK IT!

Before:

Script for export historical data from MetaTrader 5 to MetaTrader 4

After:

Script for export historical data from MetaTrader 5 to MetaTrader 4


YURAZ

yzh@mail.ru

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/232

ChartReinit ChartReinit

Chart reinitialization with recalculation of all chart indicators.

FantailVMA FantailVMA

This indicator is a combination of moving average and ATR indicators.

Graphic Panel Contest Graphic Panel Contest

Graphic Panel Contest submission.

Exp5-VirtualTradePad for mt5 v 4 (Contest version) Exp5-VirtualTradePad for mt5 v 4 (Contest version)

This Expert Advisor will simplify the manual trading. It supports the One-Click trading.