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
3
votes
1 answer

get Symbols quantmod OHLC currency data

I am trying to retrieve the OHLC Price data for currency pairs. As you can see below I have managed to get the Close price for a defined period of time. Ideally I would also like the Open, High and Low prices too. From there I aim to analyse the…
user3740289
  • 235
  • 3
  • 15
3
votes
3 answers

QuickFix Trouble - Repeating Groups

My fix engine keeps rejecting messages and I was hoping someone could help me figure out why... I'm receiving the following sample message: 8=FIXT.1.1 9=518 35=AE 34=4 1128=8 49=XXXXXXX 56=YYYYYYY 52=20130322-17:58:37 552=1 54=1 37=Z00097H4ON…
Franco Trombetta
  • 197
  • 1
  • 3
  • 14
2
votes
4 answers

MongoDB for Forex

I was wondering, can MongoDB be used for storing Forex data which would be later presented on client applications as real time data with analisys in form of graphs? I will have different sources with different feeds which can not be found from…
Draško
  • 1,923
  • 4
  • 39
  • 62
2
votes
2 answers

FIX issue with new order single

I am new to FIX technology and am working on a FIX application. Whenever I send a NewOrderSingle message, I get an error. I am using the QuickFix engine in C# and creating RequestPlaceOrder objects and filling the required fields. The FIX message…
CrazyC
  • 1,698
  • 5
  • 33
  • 55
2
votes
1 answer

My indicator only has one value in the buffer , which is giving me a straight line

I am trying to convert an indicator I found on tradingview (which uses pinescript) to MQL4: ============================================== BullTrend = (close - lowest(low, 50)) / atr(5) BearTrend = (highest(high, 50) - close) / atr(5) BearTrend2=…
Max
  • 23
  • 3
2
votes
1 answer

How to get a profit of Nth open position MQL4 / MT4?

I want to create a function that can get random profit open position. For example : a profit of the Last 2 Open Position of overall Total Position a profit of the First 3 Open Position of overall Total Position Below function seems it only gets…
Roller
  • 35
  • 5
2
votes
1 answer

How do I keep the string value the same when the indicator buffer no longer gives a value?

I've coded a basic Expert Advisor to trigger a trade when the parameters are true. However, in this case the code will never meet all the requirements because the string value gives no value when the indicator buffer doesn't give a value. What I…
vinny9592
  • 37
  • 5
2
votes
1 answer

How to use min/max with shift function in pandas?

I have timeseries data (euro/usd). I want to create new column with conditions that (It easier to read in my code to understand the conditions.) if minimum of 3 previous high prices less than or equal to the current price then it will be…
Korn Tawe
  • 153
  • 1
  • 3
  • 13
2
votes
0 answers

How can I determine the strength of candlesticks programmatically?

Telling the strength of a candlestick is not straightforward in most cases. How can I combine the length of the upper and lower wicks and the body to wick ratios to arrive at a way of determining the strength of every candlestick type?
iGetIt
  • 665
  • 5
  • 19
2
votes
1 answer

Extracting data from API to Spreadsheet using Google Appscript

I'm trying to build a spreadsheet based around DataDT's excellent API for 1-minute Forex data. It's simple: for a given date & time, I need the Open and Close price from DataDT. For example, in the following cases, Date+time are the input and Open…
Laura C
  • 35
  • 5
2
votes
1 answer

MQL4 TEMA indicator. Indicator line gets messed up when I limit the amount of bars the indicator is processing

I have this TEMA indicator which worked fine. I added a piece of code in order to limit the amount of bars to process but the indicator line gets messed up in the back in an abnormal way and when I limit the amount of bars to process to a small…
2
votes
1 answer

Expert Advisor is not opening trades

I tried to create an EA in mql4 which opens and close the trade position as per condition given, but it is not opening the trade after mating the conditions, EA Works till signal which shows buy and sell and after that nothing happens. How can I…
2
votes
1 answer

exception 'Viewflex\Forex\ForexException' with message 'Error retrieving exchange rate

am using version of this package "viewflex/forex": "^0.1.1" But while updating the currency rate for - $usdRate = $server->getRate('USD', 'INR'); Getting error as below exception 'Viewflex\Forex\ForexException' with message 'Error retrieving…
2
votes
1 answer

How to execute an OrderSend() function of MQL4 or MQL5 using cmd?

How to execute an OrderSend() function of MQL4 or MQL5 language using cmd script ?
2
votes
2 answers

MQL4 run EA on all symbols by adding to just one chart

In MetaTrader4 Terminal I write a simple alert EA I would like to run my EA on all FOREX Majors and FOREX Minors, I've got my code all done, but I want it to automatically run on all symbols in my [ Market Watch ] panel. Here is my code, it is very…
1
2
3
16 17