Expert Advisors and Automated Trading - page 379

I've wrote an Expert Advisor to execute a simple two moving average crossover strategy, as follows: - When the fast moving average crosses the the slow MA up: go long; - When the slow moving average crosses the fast MA down: go short; - When price reaches take profit price: close position. Notes...
  Exit from an EA  (2)
Is there an equivalent to the C exit command in mql5? the nearest thing I have found is the  ExpertRemove command but when I try to use that I get a compiler error saying the function doesn't have a type. could anyone enlighten me please?       Steve. 
Can I not use SendOrder() in the OnTimer() function? I want to look for a local file and then send an order when it appears.  I have the code, but the function returns 4014. Thanks.
Dear all, I am a very newbie on EA programming, I would like to implement a simple EA operating on JPYUSD based on what is happening on GOLD. A friend of mine developed this simple code in Tradestation for EURUSD in correlation with USDJPY , can you please help me converting the code to Metatrader
After I run an optimization.. Is it possible to somehow sort the optimization results my trade success rate? It would be very usefull. thanks
I want to make robot what makes multiple positions simultaneously. They are with StopLosses ant TakeProfits. How I can with robot check what position is still opened and what position is already closed (price passed SL or TP) ? PositionSelect(Symbol) selects as if only one position
MQL5 - Pair Trading: When the condition is met, how do I do this simultaneously? 1) Close the LOSING Position immediately (Position could be a Sell/Buy order of any currency) 2) Set Trailing Stop to WINNING Position immediately (Position could be a Sell/Buy order of another currency)
MQL5- Loop to check if position is profiting or losing? How to look for profiting and looking positions? Returning the ticket/deal numbers
Someone they know if they exist a real and profitable EA robot trader, without all <Deleted> and the stories I see like gain 1 million in 3 months? I try many EAs in the last 9 years and they all <Deleted> all my account. So I wait for good recomandation from some the have, use good ea. Thanks for...
  mql coding help  (2)
Hi, Why this code draws vlines only on history in MT4 tester? I'd like to it worked on new data.    void OnTick () { for(int j=0; j<=100; j++) { for(int i=0; i<=10; i++) { if (Close[i+1]>Open[i+1])  ObjectCreate(0,"pionowa"+"_"+i+"_", OBJ_VLINE, 0, Time[i+1], 0); continue; } } }
Hi, I'm trying to modify my MQL5 Wizard's Expert to allow position increasing on hedging account.  Can't find anything on this subject, unfortunately. Will be very grateful for any useful articles or forum posts describing hedging with MQL5 Wizard's experts. Eugene 
Hi Is there any EA that could change every trades SL and restore it after certain interval? For example increase every SL by 20 points at 20:00 and restore at at 21:00? Times and SL pip change would need to be adjusted from EA parameters
i have FX Choice mt4, FXCM mt4, and mt4 general, and im trying to make an expert advisor robot but when i press new, in the pop up window i only see expert advisor (template), i dont see expert advisor (generate) and i check they aren't the same thing. How can i make an expert advisor/robot
Hello, Can any one post a mql code on how to create a box on chart (for lot size..) and how to get that value in the EA. Thanks
Hello together, I have a simple question. Is ther in mql5 the possibility to see if it is doubleclicked on the chart or on an object (similar to CHARTEVENT_OBJECT_CLICK) ? Regards Klaus
Hello Is it possible to make a EA/indicator that shows average spread for for at time MT4 has been running or just the last 24 hours ?   /zippiz 
Dear all, I am trying to migrate to MQL5 and have some problems with getting indicator values. Whenever I am attaching this EA to a chart, the Alert function always returns 1.0 as the indicator value  ----why????? Please HELP me to write the correct code to get the indicator. Thanks in advance....
Hi....are there any brokers that have lower Mt5 Strategy tester real tick spreads  than the metaquotes demo version for eurusd....being 0.00007 or 0.00008 average.
Hi,   I have an expert advisor on mt5 that is doing well, now i have the version for mt4 and i put in the same variables and it behaves totally different. Is there any way to save the one from mt5 to mt4 or to convert it?   Thanks! 
Hi Team, I am new on here and my apologies if this information already exists or has been asked in the recent past. Is there a monthly or annual rating done on the various FX Trading "Robots" available to the public based on past auto trading performance. I currently use the MT4 Strategy Builder and
Hello, I am currently testing MT5 with a stock exchange broker that does not provide historical data in-built MT5. So, I would love to be able to import my own tick data. The problem is that TKC file format seem to be proprietary and compressed.  I would love to know if someone has more information...
Hi Guys, I would like to request for who ever expert here can provide me an expert file that I can test in MT4 by changing a parameter of Ichimoku 6-26-52 to another
I am running identical code on 2 MT5 accounts on FXChoice. One with Hedging and one normal using the same code. I also test on Metaquotes with hedging I have an EA that just does trailing stops. The code works fine on the non hedging account. On the hedging account I get Error 10036 Invalid Request
Hi everyone, I'm a newbie on this forum and MQL4 (build 950) and i hope that someone can help me to push me in the right direction! So, I am trying to create a script to find the horizontal resistance/support lines, but have an issue. There seems to be nothing wrong with my basic code, still i...
Hello MQL5 Community, I am currently exploring how to start the MT5 Terminal with a custom configuration file. My main objective is to log in into my account, launch my EA and allow it to make calls to some URL using WebRequest(). I was wondering if it's possible to specify the allowed WebRequestUrl...
Pretty much what the title says. Im hoping theres a course out there that teaches you mt5 code.  
About the optimization option. Example; I run optimizer on  01 january to 01 april (3 month test) I use the best profit parameters of this 3 month test and run it on 01 april to 01 may (1 month test)(the month directly after the 3 month test) On the 1 month test I frequently lose money.   My...
I am new to MQL5 and with little other true programming experience. Before I invest a lot of time, I was hoping that those with understanding and experience of MQL5 could help answer a few questions. Over the years I have used MT4, TradeStation, Strategy Trader and MultiCharts and to my...
Hi all,   I hope you can help me answer what i guess is a simple question.   Im looking at getting a EA or other system that can put in additional orders, TP (trailing and normal) and SL - when ever i enter the market.  So i'm not looking for a fully automated EA, but more what you could call a...
Hey! I lookig for a programmer who is could be connect mt4 to any webbrokers with API or any possible ways. PM ME!