Questions tagged [forex]

Use this tag for programming-related questions concerning the foreign exchange market (FOREX). Non-programming questions, and questions asking us to recommend an API, library or other off-site resource, are strictly off-topic.

The foreign exchange market (FOREX, FX, or currency market) is an international market trading currencies in currency pairs. Major currency pairs include EUR/USD (trades between the Euro and the US Dollar) and GBP/USD (trades between the British Pound and the US Dollar).

Resources

250 questions
35
votes
2 answers

What's the best API for automated forex trading?

I am interested in writing a small automatic trader for the forex market. I would like to chose my own tools (platform and programming language) and I just need to find a decent API to query the numbers and that accepts requests for trading actions.…
Hugo
  • 975
  • 1
  • 9
  • 11
32
votes
3 answers

almost live forex currency rates

I need to get live forex exchange rates for my personal application. I know that there's no free service that has this data available for download. I've been using Yahoo Finance, but I've just found out that it has a delay of 15 minutes or so. Is…
Marius
  • 3,726
  • 5
  • 33
  • 50
11
votes
7 answers

Forex historical data in Python

Have been searching for hours so please be kind. Need solutions to get historical Forex data in Python. For stocks it is easy: import pandas as pd import pandas_datareader as pdr start = dt.date.today() - dt.timedelta(days=30) end =…
Yster
  • 2,571
  • 4
  • 27
  • 44
6
votes
2 answers

Perl - HTTP::Proxy capture XHR/JSON communication

The site http://openbook.etoro.com/#/main/ has an live feed what is generated by javascript via XHR keep-alive requests and getting answers from server as gzip compressed JSON string. I want capture the feed into a file. The usual way (WWW::Mech..)…
kobame
  • 5,686
  • 2
  • 28
  • 57
5
votes
0 answers

How to decompile a ex4 file new build 600+

If you don't know, an ex4 file is a file created in the MQL language (Auto trading robots). There is a decompiler that can decompile old builds of this type of files, but after build 600 there is no decompiler. I have valuable EAs(Forex robot) that…
Micheal
  • 49
  • 1
  • 1
  • 5
5
votes
3 answers

select range when value is higher than in previous value

How to get all records where value is higher than previous value. For example, first range in the table below start on id 1 and ends on id 6, next range is from 7 to 10, etc... id Open 1 1.30077 2 1.30088 3 1.30115 4 1.30132 5 1.30135 6 …
4
votes
1 answer

Getting prices of broker without MT4

I am trying to do some stuff in Forex with low latency. I'm currently using mql. But as far as I see MT4 terminal is very slow and I can't execute as fast as i want. I am guessing mt4 terminal getting the prices with some FIX message and sends…
mert
  • 88
  • 9
4
votes
2 answers

MQL4 Function pointer / function callback solution

As far as i have seen function pointers do not exist in MQL4. As a workaround i use: // included for both caller as callee side class Callback{ public: virtual void callback(){ return; } } Then in the source where a callback is passed…
Joel Box
  • 411
  • 5
  • 12
4
votes
2 answers

Sample call to Interactive Brokers for a currency pair?

I'm attempting to run Interactive Broker's included code sample. http://www.interactivebrokers.com/download/JavaAPIGettingStarted.pdf On about page 42 it details how to pull market data feeds. My question is, has anyone successfully put in the…
Erik
  • 1,846
  • 3
  • 22
  • 49
4
votes
3 answers

Web service for live Forex data for Eastern Europe currency?

Is there a Web service for live Forex data for Eastern Europe currency? The yahoo data is updated with a couple of minutes delay, so I don't want to use that. I've seen some Java Applets, but thy are no use, as I can't extract any data from them. As…
luvieere
  • 35,580
  • 18
  • 120
  • 178
3
votes
0 answers

Algotrading: How to incorporate this type of trailing stop?

I currently have a system that opens a trade almost every 5 minutes. I'm currently trying to wrap my head around creating a trailing stop loss that does something like this: scan all open orders every tick and modify them, if they have not been…
3
votes
2 answers

Quandl, Quantmod, or TrueFX hourly data

I have been trying to find some source code in R using either Quantmod, TrueFX or Quandl for downloading historical Hourly and H4 currency data. Unfortunately almost every provider only has daily data. TrueFX provides historical tick-data in CSV…
H701
  • 41
  • 3
3
votes
1 answer

Indicore SDK Strategy Development - How to draw simple dots on a chart?

I am trying to develop a simple Indicore SDK strategy (for FXCM Marketscope 2.0) with LuaEditor and I have a simple question. The Indicore SDK documentation is very poor and devoid of context and examples, so I can't figure out how to print a simple…
Valtinho
  • 327
  • 1
  • 3
  • 16
3
votes
2 answers

What is the difference between init() and OnInit()?

I am learning MQL4. On their reference website, creating a custom indicator is done like as follows: #property indicator_chart_window int init(){ return(0); } int deinit(){ ObjectsDeleteAll(); return(0); } int start(){ return(0);…
Jamerfjr
  • 41
  • 1
  • 7
3
votes
2 answers

What are some javascript charting libraries that allow plotting stock prices?

I need to be able to represent high and lows using a javascript charting libraries. All the libraries I have seen only allow defining the "high" value and the low value is always defaulted to zero. Thanks!
Tom
  • 31
  • 2
1
2 3
16 17