csv converter quandl to mt4 (calendar version)

csv converter quandl to mt4 (calendar version)
Download ALL MT4 experts (879)
YouTube Video Thumbnail



Similar MetaTrader Tools

csv converter quandl to mt4 (calendar version)

Info

The csv converter quandl to mt4 (calendar version) is a Expert Advisor for MetaTrader 4 that this script is designed to download futures contract quotes for a specific delivery month from the quandl website and convert them into a format suitable for metatrader4. with this data, you can forecast calendar spreads in commodity markets using the ind seasonal trade indicator.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use csv converter quandl to mt4 (calendar version)

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

this script is designed to download futures contract quotes for a specific delivery month from the quandl website and convert them into a format suitable for metatrader4.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: quandl to mt4 csv converter - another powerful expert for MetaTrader 4 traders.

this script is designed to download futures contract quotes for a specific delivery month from the quandl website and convert them into a format suitable for metatrader4.

Also recommended: candle trailing stop - similar expert with strong performance on MetaTrader 4.


with this data, you can forecast calendar spreads in commodity markets using the ind seasonal trade indicator.

the new script version excludes the yearbegin parameter. the initial year is determined by the last four digits of the futures contract quote file name. additionally, the script now considers the closing price of the trading day - seatle, which was previously ignored.

instructions:

let's consider a calendar spread for live cattle, buy leg3 - sell lej3.

go to the quandl website.

in the 'other agriculturals' section, find 'live cattle'.

on the instrument page, locate the 'historical contracts' section with numerous red buttons. we are interested in only two columns of this matrix, g and j, as we will be loading historical prices for delivery in february (denoted by g) and april (denoted by j).

the top year on the chart is 1965, which means you can download historical quotes back to at least 1965. for this example, we will download data from the current year, 2026, back to 1994, giving us 20 years of history. click on each button for the years in the specified range in columns g and j. each button click opens a chart page.

on the opened pages, click the 'download data' button and select 'xls'.

you should end up with 20 files for the february contract and 20 for the april contract. place these files in the metatrader4 installation folder: ...experts\files.

run the script 'csv converter quandl to mt4 (calendar)' with intuitive parameters. the script will concatenate the february and april futures and convert them into the mt4 format.

the script will merge the years and create one file each for future_lcg.csv and future_lcj.csv. you can now delete the other files.

open the 'quotes archive' window in metatrader using the f2 key and load the files into the corresponding instruments.

using the ind seasonal trade indicator, you can now forecast calendar spreads!

You may also like: read cs v file and tokenise string using delimiter - excellent alternative for expert users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property show_inputs
extern string filename = "future_ngj1991"; //       http://www.quandl.com
extern int symboldigits = 5;
#include <winuser32.mqh>
void start(){
   string atime[];
   double aopen[];
   double ahigh[];

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.