Forum

Error on importing mt4R

I'm trying to use R->MQL library but I'm getting the following error message when I try to import it: Cannot call 'mt4R.dll::RGetDllVersion', 'mt4R.dll' is not loaded I'm in an Ubuntu 14.04 machine. This is my code: #define RPATH "/usr/lib/R --no-save" #include <mt4R.mqh> #include

Remove log file from backtests

I'm having some problems with my hd. I did some backtests and suddendly I'm without enough memory to save files. I'm trying to find where Wine stores the backtests log files (i'm using an Ubuntu machine). I already checked on wine/program files(x86)/broker/logs and on wine/program

declaration of 'myrequest' hides global declaration

I'm trying to open an order but I'm getting this warning: declaration of 'myrequest' hides global declaration How can I solve this? This is my code: MqlTradeRequest myrequest; ... void OnTick () { ... MqlTradeRequest myrequest; MqlTradeResult myresult; ZeroMemory (myrequest);

HAMA indicator returns EMA instead of colors

I'm developing an EA which uses HAMA indicator (attached). But the indicator returns an EMA for me, but I want that it returns the bar color (e.g. yellow or green), so I can classify market condition. How can I do this

Neural Network Indicator for MT4

I've been searching for a Neural Network indicator, for I didn't find anything good o far. Is there a free Neural Nwtwork indicator for MT4

Transforming TimeCurrent results to other softwares

I created a script to write a file with some fields, and one of them is TimeCurrent(). But the problem is that it is returning to me a number that I cannot translate to date in other programs (e.g. R, Excel, Calc OpenOffice). This a sample of the numbers that it returns: 1422013200 1422013801

Cannot open file on Ubuntu

I'm using Ubuntu 14 and trying to create a script to write files, but I'm getting the 5004 error, every time I try to open a file. datetime currtime; bool newcandle; string terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH); string filename=terminal_data_path+"\\MQL4\\Files\\"+"data.csv";

Error 130 modifying order on ECN broker

I'm trying to modify an order, but I'm getting error 130. I already checked for STOP LEVEL and it is 0 (I'm using Alpari). This is my code: int digits= MarketInfo(Symbol(),MODE_DIGITS); if(digits == 2|| digits == 3) pipdigits = 0.01; else if(digits==4 || digits==5) pipdigits=0.0001; selltakeprofit