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
2
votes
2 answers

LSTM error with date format

This is my first attempt in deep learning, the purpose of this code is to predict the FOREX market direction. Here is the code: import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn.preprocessing import…
Sayed Gouda
  • 525
  • 1
  • 6
  • 21
2
votes
0 answers

Automatically update variable data from the web in Python programming lanuage

I have that little program dol_rate = 0.84072 eur_rate = 1.18957 what = input("Select (A) DOL->EUR or (B) EUR->DOL: ") if what == "A" or what == "a": price1 = input("Enter a certain amount of US dollars: ") doltoeur = int(price1) *…
Dimitrios
  • 21
  • 2
2
votes
1 answer

How to enter a new order only if / when the first one has been executed (filled)? [MQL5]

I'm kinda of new in MQL5. I have an EA that buys one stock first (let's say PETR4) and then buys another one (let's say ABEV3). The only problem is that I can only order the second one when the first one is executed (not only placed). I used the…
Lucas
  • 41
  • 3
2
votes
1 answer

Is it possible to connect to Metatrader enabled forex without Metatrader client application?

Isn't it possible to connect to various forex brokers, using Metatrader 4/5 Api? And I'm not talking about connecting to Metatrader client application, like this nodejs plugins allows https://github.com/PenguinTraders/MT4-Node.js/tree/master. I'm…
PragmaticEd
  • 475
  • 1
  • 3
  • 12
2
votes
2 answers

jquery Flot Chart - How to hide weekend datetimes - for Forex charts?

How can I hide the Weekend times on X-axis? This timeline should skip the time between the Friday 23:59 and Monday 00:00 - i.e. all the Weekend. I already skipped all timestamps between Friday evening and Monday morning, but it still shows the data…
dazzafact
  • 1,712
  • 2
  • 20
  • 31
2
votes
1 answer

MQL4: How to fetch an economic calendar's event value?

How can I fetch the latest released value of an economic announcement using MQL4 to be compared with another variable called x? I need to compare the fetched data (variable x) with the manually entered variable y value of 170000. If x > y, a…
p.luck
  • 401
  • 2
  • 6
  • 26
2
votes
1 answer

MQL4 OrderCloseBy() returns error 3 == [ ERR_INVALID_TRADE_PARAMETERS ]

I found this error and I am not sure about the reason ( The syntax is similar to C ) The function is supposed to close a buy order with a sell order but I'm getting error 3: invalid trade parameters. Is there some parameter that I am setting…
shuji
  • 6,348
  • 7
  • 30
  • 45
2
votes
1 answer

Writing an expert adviser in [ MQL4 ]

So if I wanted an EA in MQL4 that took the open price and when current price was 10 pips below the open it places a buy order and when it was 10 pips above the open it sold. Only one order at a time and the open changed daily. Q1: How could that run…
2
votes
1 answer

MQL4 how to get if a price hits an object?

How to get if a price hits an object? Lets say, the object is a pitchfork, or trendline, manually drawn. I guess, it should start this way: if(Bid==?)
2
votes
4 answers

How to calculate the slope of noisy time series data

I have a process that consumes multiple sources of live price data from the forex market and produces 2 streams of time series data as its output. The output is noisy (i.e. not smooth like sin or cos), and both streams are bound between the values…
2
votes
1 answer

Forex rates for financial apps

I need to show live Forex rates in web/mobile apps like in iqoption.com for example. I've tried yahoo finance, but they don't update the rates as fast as I want. Where I can get the data for this ?
2
votes
1 answer

mql4: Get data from site

How I can get "Maintenance" value from site using a MQL4 script ? As I understand, I must set an internet connection, get data from site, parse it and get data. Is there a way how I can do it? I'll be grateful for any example.
lsv
  • 1,507
  • 4
  • 19
  • 28
2
votes
2 answers

Mt4 Probability Script

I'm fairly new to python I have made a simple script that imports price feeds from mt4 My idea / Project is to turn this into some sort of a probability indicator, that is giving the probability, besides the bid and ask, for example: TIME/ …
2
votes
1 answer

Python/Pandas resampling Forex tick data for tick volume

I have a bunch of tick data that I can successfully resample into time data using: h5_file = pd.HDFStore(h5_path) h5_file['fx_data'].groupby('Symbol') ask = grouped['Ask'].resample('5Min', how='ohlc') bid = grouped['Bid'].resample('5Min',…
user4479529
2
votes
1 answer

Efficient chunking timeseries in R

I am working with a number of large timeseries currency pair pricing data in R. Files tend to be 100-300MB in size, and I will generally be working with 3 files at a time. I am looking for a (much) more efficient way of considering the TIME column…
Liz Young
  • 396
  • 4
  • 17
1 2
3
16 17