Expert Advisors and Automated Trading - page 3

To post a new topic, please log in or register
I have created a custom indicator, DebugIncludeSignal.mq5, for EA debug purposes. The indicator has one buffer which are controlled by a set of two arrays, one time array and one signal array. DebugIncludeSignal.mql5 customer indicator works fine when I attach it to a chart. In order to see how...
Dear Friends, I'm currently using a PC with the following configuration to optimize my new EA with about 36 paths for 2.5 years (2017 till now): Intel(R) Core(TM) i7-7700HQ CPU @ 2.8 GHz 2.81 GHz Installed Memory: 16 GB System type: 64-bit Operation System  Although this config is not weak for a PC,...
  solved (5)
solved!
Hi. How can i get the ticket of an position and close a the position? whats wrong in Code ? InThe Code, I Open a position and immediately (after 10 seconds) i want to close it. //+------------------------------------------------------------------+//|                                           test...
Hi at all, I'm studying and improving the framework of my EA, with a basic strategy that I use as an example, currently basic 2ma. I wonder, and now I ask you too: how useful is it to do tests with wrong parameter values ​​??? How do you have instrument values, TP and SL, or even others ... I show...
Hello.. good day to all.. am coding a ROBOT based on (STOCHASTICS, RSI, MOMENTUM, FX5 and MACD) Divergence... i don't know What technical indicator to "exit" a trade with.. need help..
In strategy testing I need history data, even before the start date of the test. How can I request it? Bars will only provide data from after the start date. As one optimisable parameter is the length of the data I use at one time, my tests are inconsistent as the actually testing won't start at the...
I need an ea just set an automatic stop loss .. but not in pips I need to set a level all the deals close at  Can anyone help me in 
what does this do? if I set this up, when I use PositionOpen it should follow? and why do I still need to input a deviation when I use PositionClose?
Does anybody know of a trailing stop loss robot that uses the percentage of take profit with multiple levels?
  Intraday Time filter (37   1 2 3 4)
Hi I want to know where I can learn more about different settings for intraday timefilter in mql5 wizard. What should be my settings if I want to trade during 00.06 hrs to 22.00 hrs thanking you
The EA runs well these days but suddenly gives this error today: Access violation... I just did some small changes and compiled well.  Because the code can be compiled well, I don't know what the problem is. And I can't understand the error report. Please teach me how to solve the problem. Thanks
if I want close 100 orders in 1 second, EA can do it?
While testing an EA, I've got the following results. It's completely unrealistic and it mirrors a HUGE flaw at strategy tester, using every tick based on real ticks: when testing limit orders, orders are always placed at first at the book, so it's gets immediate execution. At demo accounts too. As...
  Forex Casino (28   1 2 3)
Hi, I this thread I plan to represent some interesting EAs with Casino Games Strategies (Roulette for example). In the 1st version I don't use any technical analysis. The main feature is Money Management for the Roulette. Try to optimize inputs for best performance. Very important parameter is...
how to set the parameter "Signal_ITF_BadHoursOfDay" ??? I would like to trade from 10am to 4pm. https://www.mql5.com/en/docs/standardlibrary/expertclasses/csignal/signal_time_filter Parameter Description...
Hi everyone, I am wondering if there is a possibility to code an entry condition where the price is > or < a trendline drawn on the chart. Is there any possibility to get the value of a trendline in mql5? Is it possible to compare the price with the value of the trendline on the same date? Thanks a...
Hi In fast genetic optimization The default number of passes for many step is 10000. One day I tested mql5 ea from market and I see it can increase number of passes more than 10000 passes(exp 30000). Now I need get more accuracy in my optimization result. how I can change default number of passes...
Hello, I am running this ExpertMAMA and it is showing small but generally consistent profits.  It is a quite complex code but has been around at least since 2011.  The issue I am having is that every now and then it shows a large loss and when I review the code I could not figure out how to...
Greetings, I ran a search and did not see a mention of how to fix my problem. Maybe I am searching for the wrong thing. This seems extremely basic. I have used #include <Charts/Chart.mqh>, after using redraw, the chart does not seem to update.  This is my first time really looking for help with code...
Hello dear friends At Metatrader 4, when we wanted optimization Expert we had a parameter called Consecutive Loss Trades   Do we have the same parameter in Metatrader 5 in optimization ? Thank you
Hi,Can I have the ATR number of a particular candle on my chart when I click on the candle. Thanks
Basically, I want my EA to manage open trades with OrderModify(). My EA is programmed to take trades when 2 Moving Averages are crossing. Every time the 2 Moving Averages cross, it opens 2 trades. Trade 1: Take Profit = 1.0 * ATR Stop Loss = 1.5 * ATR Trade 2: No Take Profit Stop Loss = 1.5 * ATR...
Hello, I've found a bug with Bars function, it worked great until build 1978. Description: Bars function call hangs on a newly created custom symbol or empty data symbol. Bug started from build 1983 and later. How to reproduce: Open a random chart and run the following piece of code (script): void...
Hello, everyone! I've been using MT4 and MT5 for a long time and I think I master MQL4 and MQL5 languages quite well. So, I've decided to build an expert advisor builder in order to help people make their own EA without having programming skills. My question can sound trivial or stupid, but in order...
As I'm typing into the metaEditor I noticed a small arrow flashing next to the 'for' loop operator.  What is its significance?
Hello Fellow Coder and Trader. I have some notable issue you may experience the same thing in the past or in the future. The issue is this, price hit take profit but the take profits are never executed. Making my trading robot need to wait another half day to one day for the price come back....
What is difference between Symbol() and _Symbol? Any help would be highly appreciated. 
Hello to everybody, My goal is to write an EA which react in a particular way once I close a specified deal; i.e. suppose I have just closed a specified deal by the following code       ticket = PositionGetTicket(i);      print("Opened order ticket no.: "+IntegerToString(ticket)+"...
Hi, is there any idea how to check an account is under investor mode / trader mode using a function in MQL4? I have used IsTradeAllowed but it is actually used to check AutoTrading button. Thanks.