Regular visitors will have noticed ever increasing amounts of spam on the Trading Gurus Community Forum. On November 24th 2012 we implemented some changes:

1. New users will be moderated 2. Registered users who have a post count of zero will not be able to view attachments or download code. 3. Registered users who have a post count of zero will not be able to create a new thread

As an additional countermeasure we anticipate introducing a modest paywall in the near future.

If this is your first visit here our apologies for the inconvenience.

Existing users may wish to contribute their ideas to this thread.

Results 1 to 1 of 1

Thread: Exporting Historical Bar Data From MetaTrader 5

  1. #1
    Administrator Jim's Avatar
    Join Date
    Apr 2010
    Location
    South West England
    Posts
    491

    Exporting Historical Bar Data From MetaTrader 5

    Historical data in MetaTrader 5 suffers from many of the same drawbacks that you might already have come across in MetaTrader 4, but it does have a couple of big advantages. Currently at least it doesn't have any of the big gaps that are to be found in data downloaded into the MT4 History Centre. Also doing that downloading is transparent to the user, it's all done automatically in the background.

    Here's an MQL5 script that will download historical data from MetaQuotes' servers and export it into CSV files in a variety of different formats, suitable for importing into MetaTrader 4, Excel or AlgoTrader:

    ExportBars.zip

    It's not really going to be a whole lot of use to you if you're into backtesting scalping or news trading systems, but if you're more of an automated swing or position trader it might well come in handy.
    Last edited by Jim; 07-06-2012 at 09:21 PM. Reason: Updated .ZIP archive
    Reality is merely an illusion, albeit a very persistent one - Albert Einstein

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •