MQL4 and MetaTrader 4 - page 539

To post a new topic, please log in or register
Communication with DLL doesn't work as it should. Here are two code samples: DLL: FANN_EXTERNAL double TestDouble(double *d){        d[1] =1;        d[0] =0.5;        return d[2];} EA: #import "some.dll" double TestDouble(double &o[]);#import double out[5];int init(){   out[2] = 0.5;   double t =...
hi im trying to update a script i had to compile my mq4 files for the new version but i cant find the metalang.exe fiel to compile it, is not possible to do in the new version? any other way?
Hi there, MQL5's Finding Errors and Logging says: "all messages are written without notifications into the "Experts" tab and into the "Terminal_dir\MQL5\Logs\data.txt" file". Everything's ok in MQL5. However, when using the Print function in my new MQL4 fresh copy, I don't get any log file... Any...
Hi, i have moved my custom indi to the new folder in a newly installed mt4 b.600 platform and nothing shows up. what should i do to make them appear now if i dont have the any brokers old mt4 platform, since all brokers soon will be using the 600 build platform? thank you
I mean when I code in some indicator like below: #property  indicator_chart_window#property  indicator_buffers 1#property  indicator_color1  Red  extern int X,    .....  int init()  { ..........        return(0);  }  int start()  {...........    return(X);  } Shall I get value of "X" in EA ?
hello, i noticed that mt4 has changed. i downloaded yesterday and it is different from the previous one 1. the built in dinapoli template is gone 2. when i add MFI, it shows only 2 colors. green and pink. suppose to have 4 colors please help for mt4, why some pairs are missing like gbpjpy,eurjpy,...
"while the language itself has been brought closer to MQL5 to the maximum possible extent. This means that MQL4 trading robot developers can now also enjoy all the advantages of OOP: classes and structures, inheritance, Standard Library, resources and much more" As MT5 standrad library is a...
Hi guys, is any change in format symbol.sel? My old code no function...? Symbol "GBPUSD.." is visible on Market Watch window... #import "user32.dll"   int GetAncestor(int hWnd, int gaFlags);   int GetDlgItem(int hDlg, int nIDDlgItem);   int PostMessageA(int hWnd, int Msg, int wParam, int...
The scenario is: There are two or more EURUSD charts opened with a same EA, which EA need some variable initialized in the init(); If I load the EA with set1 on EURUSD chart 1, then load the EA with set2 on EURUSD chart 2, there is no problem . The same EA worked on the both charts . But if I...
Any help with getting the email working on the new version 604 would be greatly appreciated. This version also is not recognizing an EA when I try and add it to the list of EA's on the platform. Version 509 was working great, and now problems.
Hi With the parabolic sar I would like to make an indicator I have more precise. When the Isar changes on a 1 hourly bar chart how do you calculate the price where it changed the isar from long to short?
After the MT4 upgrade, re-compiled the indicator source file, the DRAW_HISTOGRAM don't show again. Why? Thanks a lot. #property strict#property indicator_chart_window#property indicator_buffers 1#property indicator_color1 Bluedouble...
Hi i have created an indicator which makes Red dot for lower low candle and Blue dot for Higher high candles can some one help me to create a line which connects Lows of red dot and highs of blue dot Thanks for your help This is my code...
ricoFX
hi I would like to code a simple expert advisor but i have all the indicators but i have some difficulties. If you can help i will be very pleased Thanks
Greetings I emailed auto-chartist technical support but I also wanted to post my problem here so that I could see if anyone could help. Here is the problem: I am using Ubuntu Linux as my operating system 13.1 and loaded both Wine and Virtual Box on my machine. They both work well. MT4 platform...
Hello everyone, I was running one expert advisor with trading comments. After the MT4 upgrade to the latest version the comments stopped appearing. I would like to know if other trading capabilities will also stop work and what changes we need to make to the source code. Regards.
Hello I'm looking for someone who could cahnge my EAs because of the new update. I'm not a coder so it is quite complicated. so pls conect me if you could do it for me. regards chris
How can I go back to build 509? My application does not work correctly on Build 600. I have many customers using my application and they are experiencing problems. I have no idea how long it is going to take me to debug the application on Build 600, and in the meantime my customers are stuck. I...
hello I'm not sure if there is solution for this situation or it is a bug, but when I open new window in MetaEditor for the same code, then both windows are scrolled up/down in the same time, and when I switch between this windows then they are all the time exactly in the same place. Do you have any...
Hi everyone first post. There's a bug in strategy tester where it flat out refuses to test the date range you've selected and goes with just a small portion of it. No doubt we've all experienced it - is there a fix? I understand why it happens when there's a chart problem ie not enough bars in...
Hi, I struggle for hours with this simple problem that was no problem before: I read the terminal symbol names and descriptions from the symbols.raw file. string sSymbol=FileReadString(handle, 12); string desc=FileReadString(handle, 75); Print("symbol#",i,"/",n_pairs,": ", sSymbol...
I upgraded to the new build 600 over the weekend. Unfortunately I cannot log into my live account anymore because the only server that is available is the demo server. Is there any way around this?
when EA succeeds to send an order, a small red line for stop loss will be shown on chart, just as below picture; shall I make it not be shown when the order has been done with a stop loss?
Now I have made an EA which is written by MQL4 on MetaEditor 5.00 build 883 and compile it to get an ex4. file. Now I want to give others to test within some time, so is there any good method to avoid it to be decompiled? I heard that almost all ex4. file can be decompiled, yes? whatever shall I...
Hi all, I just came across this problem in coding an EA and need know help/pointers as to how to go about it. Need know when MACD "Signal Line" returns a negative or positive value so i tried the following: if (macdSignal > 0) macdTrend = "Up"; if (macdSignal < 0) macdTrend = "Down"; if (macdSignal...
Hi, I would like to compare Open[0] and Open[1]. My broker uses 5 decimal. So, I would like to compare them as 5 decimal number. In Data window, I can see Open price with 5 decimals. However, when I do Print() it, it appears only with 4 decimals. ex) On data window, Open[0] = 0.89594 However, it...
I recently started developing EAs, and I encountered an issue. No matter what I try, I can't get anything working for a stable long period of time (2008-2009 are clear examples of that as shown on this image http://i.imgur.com/aBfheCB.gif)....
  forex lines (2)
did you know this indicator works on which formula?
Here is the link to the VirusTotal.com analysis of the latest metaeditor.exe: http://bit.ly/1g4q7O6 Trend Micro and Ikarus report virus. Can somebody at the MetaQuotes raise this issue with the antivirus makers to resolve this issue? It makes me problems because I have enterprise Trend Micro...
Hi, I found similar topics on Forum, but they sounded not quite same as my case, and decided to post this one. I have following source code. double SpanA_Buffer[], SpanB_Buffer[]; //These arrays are re-sized and also initialized as follow. ArrayResize(SpanA_Buffer, a_begin-1);...