Expert Advisors and Automated Trading - page 91

To post a new topic, please log in or register
Moved indicator window up by moving indicator code to the top in template.tpl file BUT cannot drag trade levels anymore. How
Hi All When I do backtesting, OrderSend sometimes failed to open trade, but I got no error (e.g. error 0) when I use GetLastError() to check. Why is this the case? what could possibly wrong in here and fail to open trade? Many thanks
  EA disabled (1)
If the EA is in-active for about a week , does it automatically becomes dis-abled ? Under which situations does the EA disables it's self? *NB: The EA is on a VPS platform.
hi I have an expert that open and close orders automatically.  is it possible to prevent modifying orders (close orders that created by expert) manually? i don't want to allow user (with the master password not investor obviously ) to be able to close the order manually after it is triggered by...
Hello Everyone, I have recently started using MQL5 and I am testing my first algorithm. It is supposed to send a buy limit order to buy a stock at price p_latest and sell it at price (p_latest - stop_loss) or (p_latest + take_profit). My stoploss is 5 points and my takeprofit is 1 points. However,...
There should be better indication whether an EA is for a Hedging or Net accounts. If I have not bought the EA , then how can I find out for which account is it because it is difficult when you buy the wrong EA.
Hello, I need to choose an EA or Signal from those in the market to make it apply to a real account on a VPS. I need to understand some parameters to choose what is the best one for me. I read carefully this page, https://www.mql5.com/en/articles/1492 but I'm still not convinced about some...
  Martingale (2)
Hi guys is there anyone knowing anything about Martingale strategy? I'm new on it and i'd like to start to use it in online roulettes. Do u think that it worth trying using it if my budget is roughly 2k£? I found this guide <Deleted> and they say it's better not to use it; but i have friends who won...
I am editing the MQL5 downloadable indicator " MACD.mq5 " to make it show the higher time frame MACD instead of the current one, but with no success. the main code I inserted is: input bool FractalTime = true;                  // Fractal Application//...//...//--- Get the proper timeframe depening...
  StopsLevel() (1)
Hi all, I am new to mql5 and the forum, so apologies if this thread is created in the wrong place.  I have also searched for solution to the problem I have, but can't find anything. I am trying to write a script to place market order (for immediate execution) with stop loss in place and am using...
Hi all helpful coders I would love to have an EA or indicator coded for visual back testing on mt4, nothing fancy, just simple parameters. It's something i've been working on to be used for binary options. It's a trend following strategy. The EA/indi has to be based on Awesome Oscillator and MACD....
Hello guys, I just Followed THIS TUTORIAL, and made everything as it should be, but this error appear : What is missing? Thanks.
I'm writing an EA that uses momentum for trading. For this I use 4 indicators in pairs of 2. Pair one evaluates for example H1, the second pair M10. I'm using the iMA() function to init it, see the code below. But when running, the second pair both return invalid handles. What am I doing wrong here?...
Hi guys, I have an EA that ive translated from mql4 , that doesnt trade. Ill send the code if anyone has ideas. //+------------------------------------------------------------------+//|                                                  Negative_EA.mq5 |//|                        Copyright 2018,...
This is my first time trying to create an EA using MetaEditor. After manually entering a SL of 50 pips away and TP of 3 pips away from entry price, I found that the open positions are getting closed out before the SL was hit. Please refer to the attached screenshots.  I was thinking that the EA was...
I know how to disable autotrading from MQL code using DLL calls, but is it possible to do the same without DLLs? I do not need enabling autotrading, only disabling.
Hi. I have managed to use the ObjectCreate code successfully in MetaTrader 4 to display an OBJ_LABEL on the chart. However when i migrate my robot to a virtual server this OBJ_LABEL does not appear nor is there any error. I know the robot is running because all other functions of the robot are...
[Deleted]
Hi everybody,  I try to create a little money management logic but big in complexity, i searched everywhere, tested couple of things, but nothing now i'm empty. Maybe i don't found the logic behind it, i explain: i want to say that, if it's profit and history consecutivelosses was > 1 then nextlot =...
I'm having problems, to make this code work.I just want my EA to work on demo accounts, for testing purposes.Then I want to make it only work on specific accounts, example "account = 22031989"I saw this in the manual, but I do not know how it works. Thank you :D// +...
Hi there, does anyone know how to read the time and sales list by MQL? OnBookEvent() lists only pending orders, but no executed orders. Maybe i´ve overlooked something. Or can this only be done by CopyTicks? Thanks in advance
i want when value of Aval chenge with value of Sod . else value of Aval don't back to first value. please help thanks double Aval = 0;   double Dif ;   double Sod = (AccountEquity()/Goal) ;      if(Sod >= Aval)    {      Aval = Sod ;    }   else (Dif = Aval - Sod);
I'm trying to pause the Back Testing from the EA. Can anyone help? MQL5 with Strategy Tester and Visualization Mode. Is there any way to send keystrokes such as space key from the EA? (Don't want to use the Debug MODE)
  Strategy Tester (13   1 2)
Is there a way to test all time frames in one run, that out puts all results per time frame?
Hi coding in mql5 myFile.mqh class SpreadRatio{ string symbol; public:  Person(string symbol){   symbol= symbol;  }  ~Person(void); // do stuff}; myFile2.mq5 SpreadRatio spreadRatio; // compile error - wrong parameter count. <<<<<<<<<<<<<<<<<int OnInit(){ spreadRatio = new SpreadRatio(Symbol());}...
//+------------------------------------------------------------------+//|                                                MAAAACROSSING.mq4 |//|                        Copyright 2018, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Hallo zusammen, mithilfe eines Videotutorials habe ich nun endlich meinen eigenen EA "programmiert". Nach einigen Backtests war die Freude allerdings schnell vorbei. Denn nun habe ich es beim Backtesten plötzlich mit folgender Fehlermeldung zu tun. 2018.08.04 16:57:44.895 TestGenerator: unmatched...
I've spent a lot of time looking around at different options for writing expert advisors in C# and I can tell you with certainty that all of the available solutions are terrible. Wasting your time attempting to write expert advisors in any language besides MQL is a terrible idea. I know, you want to...
Hi, ‌‌I am at the very kindergarten stage of coding and I stumbled on this website http://fxeabuilder.com/ea-builder/ I am  able to create a few good EA's with their help. ‌ M‌y major challenge is how to add Breakeven to this particular EA based on CCI. ‌ I‌f price moves 20 pips, EA should bring...
I use MetaTrader 5 running on Linux through wine. The platform needs to connect to a site to release access to Expert Advisor that I use (WebRequest function), but MT5 can not connect to the site. This error message appears on the wine's log: GnuTLS error: A fatal TLS alert has been received....
Hi there, New to MQL5, have coded using MQL4 in the past. I'm trying to create an EA that detects a specific pattern based off high's and lows. And then draw lines on the chart to visualize these patterns. The code goes through lots of iterations to calculate the end result, and when it gets there...