Expert Advisors and Automated Trading - page 483

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...
hi i m from india this is my first post in this forum i just need a EA for a simple strategy BUY= EMA(CLOSE,5) > SMA (CLOSE,20) AND RSI (CLOSE,21) < 40 EXIT= RSI (CLOSE,21) > 80 SHORT= EMA(CLOSE,5) < SMA (CLOSE,20) AND RSI (CLOSE,21) > 60 EXIT= RSI (CLOSE,21) < 30 So pls if anybody...
Hello guys, probably a stupid question, but I did not find a way to get all the tick information for a specific timeframe. For example I want to get all the highs, lows, open and close of a given time frame say M5 from january 1, 2012 to december 31, 2012. Is that possible, to put it in a array or...
I am placing multiple trend lines on a chart via an EA using OBJ_TREND and I want the lines to have a text lablel. I can get a text label by using the OBJPROP_TEXT but there is no control over where this goes it simply goes to the beginning of the trend line position. I want the text label to...
Hello I just programmed my first Multi-Currency EA. Its working but there are 2 thing I don't know how to use. The first thing is to Inizialize the RSI indicator with a changeable Timeframe: Why cant I use the Array mPeriod[s] instead of PERIOD_H1? It gives me an compiling error "mPeriod'- can't...
Hello. I'm trying to experiment with expert advisers and indicators. One main problem I'm having is not being able to use any technical indicator functions when running my script in real time. When I use TIF ( "Technical Indicator Functions") on strategy tester then it works just fine and I get...
Hello I am trying to get Price_High everytick. I want to output Price High to Control Log. My OnTick() function outputs string, "Hello" everytick. How do i output Price High everytick? Actually my final purpose is to get histgram of price difference, PRICE_OPEN - PRICE_CLOSE, monday to friday....
hello The link http://www.metatrader5.com/en/metaeditor/help/mql5_wizard/wizard_ea_generate shows how to create an EA based on the standard library delivered together with the client terminal. Please, someone could answer the question below! There is some article in MQL5community that teaches how...
[Deleted]
Hello, can somebody help me with a open source code example for a MT5 EA that open a Order in EURUSD and GBPUSD when a simple signal happen? I want to make some Test but i dont get a EA working. So the EA need just to open one Order in that both pairs, let us say at every new candel open and close...
Hello everybody, I need help to understand which is the simplest way to get informations abut the time execution of an order. In my EA, order is placed, and results are collected using this code: bool success=OrderSend(mrequest,mresult); Where mresult is a MqlTradeResult structure. From...
I have Master an Slave EA, and i Need if is possible to change something or add in Slave a place where to select TP, and do not close it until it reach TP. Because it open trades and close it between -0.1 and -0.8. So i Need to be able to set TP on it. Can you help me? Moderator edit: DECOMPILED
Hi all Can somebody help me answer that or have experience with it? How many EA`s is maximum / optimal to run in MT5 ? ( I currently have 4 )  , How many MT5  platforms is maximum  / optimal to run on VPS server ? ( I currently have 3 )  Thank you 
  need help  (2)
hello , i have a problem in the code . for (int Path_Counter = 0 ; ; Path_Counter ++)&nbsp;&nbsp;&nbsp;&nbsp;{ FileSeek(File_Id,End_Line_Char+1,SEEK_SET); string File_Str=FileReadString(File_Id,1000000); int End_Of_Line=StringFind(File_Str,"\n",0); End_Line_Char+=End_Of_Line+1;...
hi guys! im.. a newbie (sigh) i didnt really want to bother anyone.. but i cant find anything like it! so, since im waaaaaay to pre-occupied to learn how to write EA's, and since its just an idea, and not really worth spending so much time just to create it, i was wondering... can anyone direct...