Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2009, 04:10 AM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
Binary Tick Writer

Greetings,
WHAT:
This ea will write binary files that can be accessed by other applications in real time. Plus you can easily access the end of the file. Change it to suit yourself. I will continue to improve it over time.

WHY: * Export data to another application for analysis or trading.
* Build price based bars eg Renko, Range, P&F ect in real time.

HELP: * I can steer you in the right direction or help/write an app to format the data into something you want if required.

Format:
Date: Integer - yyyymmdd (System Local - I set my local time to EEST (Athens) so that I have no Sat or Sunday)
Time: Integer - time in secs since midnight - system local
Bid: Integer;
Ask Integer;

I do not use doubles for the prices as I always find ints easier to work with and occupies half the disk space. Convert to doubles if you need/want to. I suggest just for display. These files will grow endlessly of course so check them now and then. I am only a beginner at MT4 programming so if you want to fix all my errors then please do. I have had it running for more than a month with no problems. Also console executables for conversion to/from ascii. These have to be run nonstop during trading hours of course.

UPDATE:
Here is a new version. TickWriterBin_01
SymbolList: Default = "AUDUSD,EURCHF,EURGBP,EURJPY,EURUSD,GBPJPY,GBPUSD, USDCAD,USDCHF,USDJPY";
Symbols should be separated by a comma. Although if you mess up and leave a space in it will not matter. Just edit that line in the file and recompile
to suit your own preferences.
SleepFor Default = 500: Which is 1/2 second.
AllowDuplicates Defaut = False: This will not write duplicate ticks if the bid and ask are the same as the previous.
IsRounded: Default = True: This will round 5 digit prices to 4 digits. If the Ceil(price) < prev and Floor(price) > prev. Thus no ghost prices. 4 Digit users should set it to False.
ShowList Defalt = True: Show the symbol list on the screen?
extern bool DEBUG = False; // Just prints some debugging information for the rounding.

The reason for rounding to 4 digits is that these files grow to be monsters otherwise. Suit yourself.
I have not tested it very much please advise me of any bugs. The old version was a dog. Delete it.

The bin.rar file contains the console applications asctofxh.exe and fxhtoasc.exe to covert to and from binary and ascii use -h to see help

Cheers
Attached Files
File Type: mq4 TickWriterBin_01.mq4 (13.3 KB, 34 views)
File Type: rar bin.rar (315.9 KB, 41 views)

Last edited by painless; 09-03-2009 at 05:00 AM. Reason: New Version
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-22-2009, 07:56 AM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
Here are the conversion exe

asctofxh.exe and fxhtoasc.exe to covert to and from binary and ascii
console applications use -h to see help

Last edited by painless; 09-03-2009 at 04:58 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-30-2009, 11:16 PM
Senior Member
 
Join Date: Sep 2007
Posts: 121
Ms_Mel is on a distinguished road
Can you explain what application this could be used for? For example, could it be used with an Excel spreadsheet and actually insert the values cell after cell? If so, I have been looking for something like this for literally YEARS.

Thanks,

Ms_Mel
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-31-2009, 06:42 PM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
using data

Hello,
This data is in binary format, not text. This means it is not readable. If you try to open one in a text editor you will see what I mean. Then create a human readable file by using the fxhtoasc.exe that I have provided. Now you can read the data and have a think about what it is you want to do and if this looks useful for you. You can convert it into anything you want with simple programs and you can export it into other trading platforms for trading and backtesting etc. This can also be done in real timel. There is nothing that you cannot do. If you cannot do it yourself then it should not be a problem to find someone to help you for free or otherwise. I am a bit busy but I can help out for minor things.

The MT4 ea is terrible. It is a quick patch. It will not log its connection state nor do comprehensive error checks. All these I have yet to fix. I started a few today just to clean it up and I will post a better version sometime. However it has worked non stop for me. If you give me some idea of what it is you want to do in the spreadsheet then I may be able to suggest a more appropriate solution that can make use of this data. A spreadsheet will turn into a monster with the amount of data that gets churned out.
cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 09-02-2009, 08:45 AM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
new version

see first post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-19-2009, 03:36 AM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
Mr Moderator please move

Mr Moderator please move to "To Tools & Utilities"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 11-16-2009, 08:57 PM
Junior Member
 
Join Date: May 2009
Posts: 22
kiasom is on a distinguished road
Thankyou, painless.
I'm impressed with your approach!
I'm myself trying to construct and backtest a renko EA.
Would it be possible to ask you to share a datafile with historic tick data? I just need for backtesting purposes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 11-17-2009, 05:43 AM
Member
 
Join Date: Mar 2009
Posts: 38
painless is on a distinguished road
Data File

pm me if you want one. Mine are already too large too post here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXT Writer Indicator fxadvisory Metatrader 4 10 03-09-2009 01:43 PM
What's the best way to check if the tick is the first tick of the new bar? blooms Metatrader 4 2 10-31-2006 07:10 AM
Please write an expert, will pay $50 for the writer mattu13048 Expert Advisors - Metatrader 4 3 08-30-2006 09:58 AM
Problem using Variables Tick-by-Tick unltdsoul Metatrader 4 2 07-04-2006 04:36 AM
Using tick data? 100% MQ? Willis11of12 Metatrader 4 5 03-28-2006 03:20 PM


All times are GMT. The time now is 09:58 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.