MQL4 and MetaTrader 4 - page 234

To post a new topic, please log in or register
Hey All, I'm new here, long time lurker as a lot of google searches tend to end up in here anyway, so I thought might as well create an account and start participating. I'm trying to get an EA off the ground, and being able to code during the next few days would help out a lot. Currently using only...
Hi, The following EA was a sample I downloaded attempting to test Bar Open Only processing that operates 100% dependent on the platform during operation. That is to say it should not have any dependency on sending or operating on tick files or broker sent limit orders, only market order action on...
I want to get High/Low/Open/Close of Order Opened Candle?
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...
hey everybody! i would like to calc the angle of Moving Average 10. i tried this: double MAShift1 = iMA(NULL, 0, MA, 0, MODE_SMA, PRICE_CLOSE, 3); double MAShift3 = iMA(NULL, 0, MA, 0, MODE_SMA, PRICE_CLOSE, 7); double test = (SignalPeriod-0.0)/WindowBarsPerChart(); int angle...
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...
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...
Hi friends... i am trying to developed a Renko Based ea... actually i am new in MQL4.. i want to open the trade (buy or sell) when the second bearish or bull candle will make... example In RENKO i set the bar size on 10 pip..on the second renko bull can i will open a buy trade. & my stoploss will...
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...
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...
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??
Please try attaching EA for auto trading. Leave your comments after complete your testing.    
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,...
-
Hi, I have recently taken to doing some coding for MQL4. I would like to create an expert adviser that can open order when current candle hits the previous's highest or lowest. I have done up the majority of the framework using the Sample MACD file as a reference however the EA is not making trades...
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...