Historical Data Downloader free

by jimmyruann in category Other at 17/06/2020
Description

This is one of the method to mass download all major forex pair's historical data. 

You don't need to download all historical data, why?

  • It takes a long time.
  • It's completely unnesscery because you probably trading 10 pairs max. (maybe, i dont know)
  • Heavy load on your broker's server.

How to use this bot:

  • Install this bot and open up "Automate".
  • Add any instance to "Data Downloader".
  • Click on "Backtesting setting" -> Data -> Tick data or 1 Minute data from server.
  • Set the time period at the slider.
  • Click the Play button next to the timeframe.
  • Now, wait.

After finish downloading, i recommand making a backup copy of all the historical data. The data are stored in a folder call "BacktestingCache" at the installation folder. (%appdata%/<Yourbroker> cTrader/BacktestingCache)

Exporting to CSV, search for clickalgo csv.

** CPU and Memory intensive **

Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgo
´╗┐using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class DataDownloader : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            string[] all_symbol = 
            {
                "AUDCAD",
                "AUDCHF",
                "AUDJPY",
                "AUDNZD",
                "AUDSGD",
                "AUDUSD",
                "CADCHF",
                "CADJPY",
                "CHFJPY",
                "CHFSGD",
                "EURAUD",
                "EURCAD",
                "EURCHF",
                "EURGBP",
                "EURJPY",
                "EURNZD",
                "EURSGD",
                "EURUSD",
                "GBPAUD",
                "GBPCAD",
                "GBPCHF",
                "GBPJPY",
                "GBPNZD",
                "GBPSGD",
                "GBPUSD",
                "NZDCAD",
                "NZDCHF",
                "NZDJPY",
                "NZDUSD",
                "SGDJPY",
                "USDCAD",
                "USDCHF",
                "USDJPY",
                "USDSGD"
            };


            Symbols.GetSymbols(all_symbol);

            throw new Exception("Finish");
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}
Comments