Expert Advisors and Automated Trading - page 490

Dear all Forex traders I am familiar with MQL4programming language. I have been written several expert advisors (EA) onsingle currency pair such as EURUSD. But I want to write anEA that includes different currency pairs such as EURUSD and GBPUSD now. It isnecessary to mention that based on my...
HI THERE CODE DEVELOPERS. I NEED YOUR HELP, I HAVE A NEW TRADING IDEA AND I WANT TO TEST IT ON A SIGNIFICANT TIME PERIOD. I NEED AN E.A. THAT: *1* AT A GIVEN HOUR OF THE DAY I.E. OPENS A BUY (MARKET ORDER) AND A SELL (STOP ORDER) SOME POINTS ( 50 PTS. 0.0050-FOR EURO) AWAY FROM THE...
im looking for an ea or manual signal that will generate a consistent around 300% a month? please reply thanks
Hi, I have this bit of code from MQL docs which I want to use in my EA to display these details over the chart for the moment, I want to use them later on but I get the amiguous call error, any idea on how this can be fixed? Thank you //Get and show account detailsdouble AccountInfoDouble(...
How to put an expert on VPS? I want to put my expert on a VPS(Virtual Private server). Who could help from the base?
When registering for the cloud testing, you get a bonus of 2.00. I activated the cloud on a server and a couple of PCs. Only during ONE day I earned a very small amount of points. Now my credit is down to 0.51 and I get the message "can't connect to MQL5 Cloud, not enough money". In theory,...
Hello guys, I have a question... the following is my code: void onStart(){MqlRates rates[]; int copied=CopyRates(Symbol(),PERIOD_M1,0,100,rates); if(copied<=0) Print("Error copying price data ",GetLastError()); else Print("Copied ",ArraySize(rates),"...
  Debugging issues  (6)
Hi guys I'm having trouble with getting my program to debug. I am still new to coding and have been following a Step-By-Step guide to study. I am at the point of debugging now and even though my meta editor is attached to a feed in the options, the run for the debug is blanked out. It doesn't...
I have a script that writes the values of technical indicators per candle, but I do not know how to get the script to run on a specified date range. If I attach the script to a chart it counts backwards the number of candles from the current date which is a limitation because I want to get the data...
Hi ;) First let me introduce my idea a bit : I am trying to design a trading automat based on fondamentals news. So the trading decision is not the MQL work, this is the role of an external engine actualy hosted on an dedicated server. I used Mql for execution orders. On the paper this system look...
Hi, As many of you would be aware, you need to carry out a manual data check and/or re-synchronisation of your pricing data before doing a CopyOpen(), CopyHigh() etc if you want to ensure you have the most recent data available. However, what's the situation with accessing Indicator data using...
Hi , I want to apply ALFA.mql EA on GBPUSD M1 chart , BRAVO.mql EA on GBPUSD M30 chart , and no EA on the GBPUSD M5, M15, etc... Can anyone explain me how can I do that? TIA
Hello everybody So the question is: What happens when a new tick arrives while ontick event is still processing previous tick?? Is this tick event discarded??? or is there a tick queue to be processed so all ticks are definitely processed???? Thanks in advance Juan
I know I can check the hours but is there a simple test that can be done to determine if the market is open or closed
Hello I know that in order to have my template work with the strategy tester, I need to save a template with the same name as my EA. Fine. So when I start a backtest I see my template applied in the tester window. Trouble with that is, in order to satisfy forward testing, I have put my MACD...
Trying to get this EA to work... new to MQL5. Basically, I'm trading on simple MA crossovers based on risk to account balance (USDEUR on 1 HR time frame). Any help is appreciated.... thanks! //+------------------------------------------------------------------+//|...
Hello This is probably a simple fix, but I've got a cold. In my buy function I have OrderSend(mrequest,mresult); and then if(mresult.retcode==10009 || mresult.retcode==10008) { // Request is completed or order placed Alert("SELL order has been successfully placed with...
All, My function has been failing due toorder fulfilment issues, an order may not be fulfilled in one transaction, asper attached screen shot, relevant code is attached below. In the above example, I should bereading a volume of 3.20 (0.5 + 2.70) and an out price of 1.61451(1.61451+1.61451/2). The...
I wonder if anyone has any really helpful tips on using the least amount of memory possible, or at least at freeing it again. I'm working on a really big multi-currency EA, using quite some indicators. But still this should not pose any problems for modern computers with 20GB of RAM or thelike....
Hi, is it possible to export an enumeration or a constant in a library? Thanks Mario
Hi, I would like to know, if and how it is possible to obtain trade results into an EAs code. What I want to do is to have a counter that adds up when the last trade closed in loss. Exemplary: i=1if (lasttradeclosednegative)  i=i+1; E.g., after 5 losing trades i would be at 6. The parameter i will...
i have build 2 server and setup agent in it ,they have running a period of time . Today i got this message from one of the server: 2013.06.14 16:51:45 server1 pass 3540 tested with error "no memory in OnTick function (cannot get 4096 Kb, used 1947 Mb)" in 2390 ms ... (there are a lot of them) and...
  optimizing EAs?  (10)
How do I optimize EAs on metatrader 5? on my program, there is no optimizer bar on the strategy tester. I am using metatrader 5 build 787.
How to konw a postion is close by stoploss or takeproft ,or others reason in history? I need some example code . Thanks.
This article https://www.mql5.com/en/articles/236 has given me idea to try to connect Statistica NN to MT5. I don't have Neurosolutions, but one possible advantage of Statistica to NS is that it automatically sifts through various configurations of NN in order to find the most plausible solution....
Hi, Is it possible to download the tick by tick data for a particular security in Excel? Many Thanks, Vinesh
Hello everybody, I have just developed a symple EA which works at tick level. Functionality is very simple. It meassures price differences between a secuence o ticks (between 5 and 20 ticks, but parametrizable). When the price diference is big enough (3 pips, another parameter) the EA opens a...
Hi folks! As a newbie I ran through the code from this awesome article https://www.mql5.com/en/articles/100 After adding some mods I came to a problem on which I can't find a solution. My modification to the code was: Instead of using ADX volatility line with a threshold Adx_Min, I used ATR as a...
Hello, I have bigproblems getting my two indicators together. I made two customindicators, one is the Parabolic SAR, and the other is an averaging method, similarto MA. The Parabolic SAR Indicator looks like this one: https://www.mql5.com/en/code/viewcode/43/10703/parabolicsar__3.mq5 I don’t...
Hi, i spend a lot of time searching and testing ea's, i even started to learn mql5 to develop my own ea's. But what i learned by now is that there is no reliable testing method for expert advisors - strategy tester does not behave like a real account and even the demo accounts i tried so far are...