Expert Advisors and Automated Trading - page 4

To post a new topic, please log in or register
Hi,  I try to write a description for my EA but i got this error and I dont understand why. The counter says it is below 3600 and when I save it delete everything and say it is too long. Any idea?  
  Block gbpusd (3)
How can it be when our account is connected to a signal. Block gbpusd currency?I don't want gbpusd to be traded
I am developing a MT5 multisymbol EA. I get the message "No more than 1000 symbols can be selected" What statements substitutes a "selection" How do I "Deselect" a symbol? I am working with all the majors.
Hi, I'm looking to make an EA works with multiple currencies, there's a lot of indicator that show a meter based on a score or a index. Unfortunately, none of them's code is available. I've googled to find the formula, but ... didn't find nothing. Anyone knows such a formula please ?
Does anyone know, I have activated <Product Name Removed>, I know this EA only opens 1 position for a particular pair, but I get weird about the EA, opening more than 5 positions for a particular pair. Can anyone help me overcome this problem.
  share utility code (23   1 2 3)
Hi Please share useful code.
Hello, I've been building EA's for some time now and it seems (to me) like I've finally made it. However, Im kind of affraid of running my bot on live account. Many tests were proffitable, dropdowns are small and tick history is 98% quality [report attached (unfortunately not in English but should...
Hi, is there any body who can tell me how can I do not show the indicators in strategy tester visualization mode. I used IndicatorRelease() but it does not work at all. please advise
Hi, i am beginner with mql5 i have this function in MQL4  double get_Lot_from_last_ord(string SYM, int MAGIC){   double LastLot=0;   for(int i=OrdersHistoryTotal()-1; i>=0; i--)   {      if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))         if(OrderSymbol()==SYM && OrderMagicNumber()==MAGIC)...
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...
Hi all, first post and am happy to join the conversation. I am having difficulty with a simple bot I am creating (not for live trading, just practice coding). The premise of the bot is simple: - It checks if the 2nd and 3rd last candles are either both bullish or both bearish - It checks if the last...
please help me with an ea of this indicator to automatically open orders on blue arrow/red arrow order should close automatically on next blue/red arrow at the same time open a new order.. Thanks the indicator is the white zigzag line on this picture below.....
Hello, I stumbled upon an issue during the development of an Expert Advisor and I was wondering if anyone had any idea that might help. I get an "Invalid Price" error in backtest when the Expert Advisor tries to close a position on XAUUSD on a specific broker. The error messages my Expert Advisor...
I got a little confused on this indicator I can't get the right values And the expert does not emit any signal I asked the programmers for guidance on this Thanks everyone//+------------------------------------------------------------------+extern int       MaPeriod         = 20;           // Hama...
HI When I transfer EA MQL5 to vps in a journal he writes it to me "initializing of 'My expert" failed with code 1", "Expert "My Expert" removed"What I do wrong, on my computer EA worked fine. Mathi
if EA does not deviation setting, is it set in MT5 option setting?
Hello all,  I have a very simple code that uses exponential moving averages at 2 lengths.  When the shorter length crosses above the other then a long position is taken.  Sometimes it works.  That is ,when there is an obvious crossing I can see on the chart a long position is taken but at other...
I place my orders with OrderSend function and I use the MqlTradeRequest to fill the order and my (type_filling) is equal to 2. when I run the test is buys and sells normally and it is shown in Operations and History tab in Strategy Tester Visualization but they are not shown in Trade tab. So if...
  Requests & Ideas (MQL5 only!) (492   1 2 3 4 5 ... 49 50)
Terms and Conditions: You describe (you provide) the idea, I place an open MQL5 code in this branch, I place this code in a CodeBase. &nbsp, I specify the author of the idea and the author of a MQL5 code in a code, The coding services are provided "as is" and you use them at your own risk. List of...
Hi, I created a EA using Expert Advisor (generate), when i use backtest everything works fine, tp and sl works perfectly, but when i use the EA in the real market everything stops working. The EA opens a position and adds tp and sl but before the trade ends it starts another one but this time it...
double p2p;  //+------------------------------------------------------------------+//| Expert initialization function                                   |//+------------------------------------------------------------------+int OnInit()  {//--- if(Digits==3 || Digits==5) p2p=10;else p2p=1;...
Description: Telegram 4 MQL was made to make the life of an automtic trader a bit more convenient or better to say it was made to spare nerves. Suitable questions while operating an autotrading systems are: Was the order correctly executed?Did an situation change an unusual way so that I need to...
My code below places sell pending orders when certain candle pattern conditions are met on the H_1 chart. At certain points the condition is met but the pending orders are not placed, as in the encircled portions in https://imgur.com/a/3pNC7M3 . I am not sure what's causing it. string prefix = "HG";...
Hi guys Looking for an EA on the market (preferably free) that allows me to partially close a trade at X pips for a certain %, and then moves the SL to BE. It then continues with a trailing stop.
Hi Is it possible to set the account balance for a EA. Say, I have a total balance of £10k in my broker account, but I want to run 2 EAs on the same broker and on the same mt4 terminal. Is there a way of assigning a balance of £5k to each EA so if one EA goes bust it doesn't use the balance...
Hi support, I am creating a dialog with EA using Dialog.mqh Then when i try to use the external function "input" to change the parameters, the whole program went dis-functional. I failed to close the APP window. And if I tried to right click and "remove" the APP window, the chart at the...
Hi, i bought EA which says it can be used on maximum of 3 accounts, what can happen if installed on the 4th account? 
hello mql engineers, I compiled a code with newest version of MT4, when load it it report "is not a script" this source code is writtern last month, and compiled no problem and works well with last month' updated mt4, today,  I download new version MT4, and compiled it , still no problem without any...
Hi, I have written an EA which gives me really good results when I optimise it over a six month period - supposedly the best results are like 35-40% profit. However, when I select the 'best' set of parameters (I choose the highest profit), and then run those as a single backtest on the same currency...
Hi, For netting account, whats the best approach to close positions when the lotsize position is higher than symbol max lot? Any know routine for this?