MQL4 - automated forex trading   /  

Code Base

Code Base  Scripts  simple csv2fxt To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
Prepare for the Championship
Couldn't find the right code? Order it in the Jobs section

This script is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

Name:
simple csv2fxt
Author: stringo (2006.07.21 19:22)
Downloaded: 4335
Download:
 simple_csv2fxt.mq4 (6.7 Kb) View

The script allows conversion CSV tick data into FXT data format. The corresponding HST file can be created at the same time. The file can be imported into the Client Terminal History Center.

The csv file record must be of the following format:
YYYY.MM.DD HH:MI:SS;1.2345

The FXTHeader must be preliminarily downloaded from the Libraries section.

4 comments  To post a new comment, please log in or register

Hi stringo,

I tried this script many times and always get uninit code 0. I get it whether I choose a file in the inputs or not.

If I try to enter a full path in the filename I get "absolute path not allowed" error in the log. Then I tried entering the filename only and pasting the file in virtually every MT4 folder but it did not get recognized, always uninit 0.

Please advise where to put the file or how to enter a path so I don't get this error. I really need to test this tick data for a trailing stop strategy and soon.

Thanks & regards,

Svetoslav



22.02.2010 10:13 genghiz
stringo wrote:
There was a mistake in the initial version of the script. The following line was missing
         ExtLastBarTime=cur_open;
I've uploaded the new version with some cosmetics

I am having problems getting this script to work. It does not produce any files or any errors. can you give any guidance in how to use the script?
17.05.2007 09:42 creditbanc

There was error in the WriteHstHeader function. Fixed and reloaded

13.02.2007 11:44 stringo
There was a mistake in the initial version of the script. The following line was missing
         ExtLastBarTime=cur_open;
I've uploaded the new version with some cosmetics
05.10.2006 18:30 stringo