MQL4 and MetaTrader 4 - page 610

version 4 of 950 build can't get my alert to send sms message to my phone using gmail smtp.gmail.com:465 gmailemail@gmail.com gmail password gmailemail@gmail.com phone number@tmomail.net my test works! alarm sounds and sms is sent But when the alert hits the set level----all I get is the sound of
I keep to re-read the code, and is looking to me without a solution to find the error. It is Index of Currencies, and because is reading/calculating correctly other data depending on correctly reading same pair "EURxxx" before, it has been read + taken as data, but... it does not show with the...
[Deleted]
Hi every body I have 2 indicators that copy all analysis from Mt4 chart and then paste to another chart I want to add a part that I can select date for copy For example : I want to copy all analysis on chart from 20.1.2015 to 17.08.2018 Thanks a lot for your help
Hi all,   May i know what is the maximum number of instrument or markets can be loaded into 1 MT4 account before it starts to have problem?   Thanks in advance. 
Here is the code: if(OrderSelect(ticket,SELECT_BY_TICKET) == true)       {                if(position == IN_SELL){             double avg = get_average();             if(value <= avg){                RefreshRates();                if(OrderClose(OrderTicket(),OrderLots(),Bid,3,Red) == true)...
may i open a order withuot call the order send function? maybe using the sell and buy button  ? it possible call this 2 button and emulate a click by expert advisory?
Hello forum! So the logic is: if, say, Moving Average 50 for the last 10 consecutive bars has been below each bar, then trade. The script below though trades immediately after the first time MA50 falls below a bar, instead of waiting for 10 consecutive bars.. Any insight will be appreciated, I'm
[Deleted]
I want read dates of a csv file using Filereadarray.   The problem is that the program read a values different of that csv file.  The file is a csv file with one column (of Excel) with the values 1 2 3 4 5 6 7 8 9. The program read a different value.   I cant use Fileopen with the flag FILE_CSV...
Hello, I noticed that whenever i place an order on my android mobile platform, it isn´t registered in mt4 desktop log file, even though it displays it on the chart. Is there a way of registering on the log file those orders? I was thinking of an indi that would register the activity on chart to the...
  MQL for Android  (5)
Is there anyway way of programming mql4 on android?? I have a c and c++ compiler on there but not sure the meta quotes app lets you program?   Would it be possible to emulate on an android? 
Hi, I'm trying to write an EA, first step is to compile a list of open orders that match the symbol that the EA is currently open on. However, whenever I try to check the contents of an array index with MessageBox(OrderArray[0][0]); I get an Array out of Range error. Here is the relevant code: int...
[Deleted]
Dear Forum members, I've worked on some programs in MQL4 for a year and now I decided to code some Library files as well. I have some classes written in Include (.mqh) files and used already. They are working properly. I wrote some functions in a Library file, compiled, and working so now I...
Hello. Is it possible to incorporate a programmed expert advisor mql4 Cloud Network? Thanks
I'm trying to run this function, is made for custom priceseries, basically input are: -Price applied to (close,low,high ect) -index of shift  -open,close,high,low from OnCalculate this is the function.  enum Applied_Price       // Type of constant  {   Price_Close,          // Close   Price_Open...
I have a demo account with MT4. Recently I noticed that some of my buy and sell orders were placed by "expert", followed by an expert id. I have never authorized anyone to do that for, neither did I enable the EA authorization. Because of this erratic "expert", I have been losing money. Have been...
So frustrated I haven't any idea how this happened! The code ran on 2 brokers for 3 months. Today the issue below suddenly happened at 1 broker. Please refer to the log and code below.  The code should run sentence by sentence based OnTick. However, please refere to the time marked in yellow. Why...
[Deleted]
  Pumping timeout:  (1)
Hi All  from some reason we start seeing on the journal tab a lot of Pumping timeout:   how i can troubleshot this?  
hola a todos tengo un error hace semanas , me aparece en la carpeta de expertos el error 126 cannot load metasetup.dll, alguien sabe como solucionarlo??
[Deleted]
Hi, I'm very very new to mql coding, and I'm asking you help with some basic concept. I'm starting from a very simple attempt: I check if thare aren't orders opened or pending, and I open some orders, market and stop. When all orders are triggered and closed, in loss or profit,...
wrote and compiled an ea, eliminated errors and got an exe w/o errors, but cannot load the ea.  the expert tab says it is not an ea.  why?  
Hello peeps, im just wondering if theres any actual equation for volatility? I've seen it used and measured in various ways and i know you can measure the total change in a day vs the current value, or change vs range, or high - low / volume or some nominal value based on time etc but is there an...
Seriously, in all charts. Is there actually a mathematical strategy that works? It seems to me that if someone produced a program that made windfall profits - or even just tiny steady profits all the time, it would be all over the news. I see the movements and the pivot points. I always feel like...
[Deleted]
Hi, Just a quick question, I am trying to add an expiration time on a buy script. I have added the line extern datetime Expiration = 0; to my script which is ok but is there a way i can make the order expire at 9.00pm on the day that the order was placed rather than having to manually input the date...
Hello everybody! I'm a new user of this forum and I'm trying to learn MQL4 to build a my own EA, but now I have a little problem with my code. The MT4 doesn't read this part : " int H = OrdersTotal(); //CORREZIONE BUY   if (H>0)    {     OrderSelect(H-1,SELECT_BY_POS);     if(OrderType()==0 &&...
Hello All: I used to use window xp, mt4 runs fine. right now i am update to window7, but somehow when i copy and paste the ex4 file to the indicator folder, the File won't show up inside the MT4. I tested, i still can move any ex4 file at my window xp's MT4 and use without any problem...
[Deleted]
Hi I am running my EA on FBS metatrader platform. the demo account can work but the real account not working However, I just cannot open a position with Ordersend. my code is like this int value = OrderSend(Symbol(),OP_SELL,0.01,Bid,10,0,skimProfit,"sell",magic,0,Yellow);    Error Ordersend(-1):...
Hello, I'm adding support for 4K displays and I have found that the windows desktop scaling has an effect on the text displays and dialogs I have created. The fixes are simple enough, however the changes need to be kept in line with the value of the desktop scaling size. Does anyone know if there...
Hello, I am trying to retrieve a simple double value from a "data.txt" file in the following function. However the FileOpen() function always returns -1 (INVALID_HANDLE). The "data.txt" only contains 1 value (i.e. 89.55) and is located at MQL4/Files. double ReadNumberFromFile(){   int file_handle;...
Hi   this is a general question about project patterns in MQL4. I got my first decent EA working. In the interest of expediency i stuck all logic in one ea file first. I then refactored it to be a bit more OO and created some classes but everything remained in the one file. Before I develop further...