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

Converting hst-files into csv files - MetaTrader 4용 스크립트

조회수:
12296
평가:
(20)
게시됨:
2016.03.25 14:10
hst2csv.mq4 (5.66 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors.

Script Operation Principle

  • The input_file_name parameter must be specified with the extension. Extensions other than *.hst are not processed;
  • The input_file_from_history parameter set to 'true' allows to open files from the current history folder (terminal_folder\history\server_name). If it is set to 'false', the file is opened from \\experts\files.

What is the purpose of this script: by the client's request, I once put together a history from the pieces given by the customer, and found out that not all files are read by the terminal at all when importing the data from a hst file. But the data inside is valuable. And this script converted all those non-importable files to csv, and comparing the file sizes - correctly.


Those who have a comma as a decimal point can have the quotes turn into dates when opening a csv in Excel... inevitably. I can not think of any other way than writing a separate function for converting the number to a string with "," as decimal separator. My system has ".", so I left it as is.

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

Auto optimizer Auto optimizer

The library for automated optimization of an EA during its operation.

s_wininet s_wininet

Example of using wininet.dll for downloading a web page.

History analysis on presence of holes and gaps History analysis on presence of holes and gaps

The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them.

awo Holidays awo Holidays

The awo Holidays EA reports the status of the next day: working day, weekend or holiday.