Expert Advisors and Automated Trading - page 5

To post a new topic, please log in or register
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?
I have a ex4 file, is possible to guess its strategy and redo it in a new robot? Thanks
Hi, i have bought an EA in a website, but the suscription is for one year. Can anyone copy this EA code and do a new one exactly the same but without limited license? Thanks!
hello to all I'm serching for italians expert in mql5. thank you
Hello everyone, I wanted to know if there is a method or code to disable or enable the button "Autotrading" high on the MT4 thanks.
Hello everybody, im trying to sum the total loss of the closed orders that closes on LOSS , i tried as much as i can, here is what i got : double TOTAL_LOSSES()     {      double pr_2=0;      for( i=OrdersHistoryTotal()-1; i>=0; i--)      {       if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY))...
hiya, The day before yesterday a regular Windows 10 update was done on my PC. After that none of the MT4 Expert Advisors that were on my PC could be loaded to a chart anymore. Those EAs for which an update was pending could be kicked into working again by clicking "update" in the market tab. What...
Hello guys, I’ve a problem with publishing my EA on the market. Although I’ve read all the related articles and topics on this forum to find a solution for it, but still I’m struggling with validation of my EA. All the obligations of the MQL4 has been included in my EA, but still I receive the error...
Hi everyone, i want gave 10 tried or more but all is open tried1 0.01 lot tried2 0.02 lot tried3 0.03 lot tried4 0.04 lot tried5 ... for this cod open all order in Pendbuy() in 1 price. i don't want this....
Hi, I have two accounts, one VPS, one purchased EA with 5 activations and I'd like to use the EA on both accounts. How would the setup be for MT4? 1. Install MT4 into dir1 2. Install MT4 into dir2 3. Login to mql5 with both installations  4. Login the accounts (dir1-->account1, 2-->2) 5. Install EA...
  Halt Trend EA (4)
Does anyone know of any EAs based on Half Trend indicator? Thanks very much.
Hi, I'm a bit new to MT5 & Tester. I'm running a backtest in 'Every Tick Real' mode, and MT5 is downloading data. Give I've selected 5 years of data, so the data's pretty big. However, from observation(See screenshot below), it seems that MT5 is just downloading data, and copying them twice....
MetaEditor kind of works,  but I can't refactor symbols, also have hard times with auto complete static members, etc.  So far I tried Visual Studio Code, but it still parses code mostly as text, instead of symbols.
Hi All, I have an EA on a VPS, it seems loaded correctly, but it doesn't start properly because of the error: "cannot call dll", can someone help me to load dll in the correct path? PS: EA is coded in MQL4. Thank you very much! Francesco
Hello all, I have recently written an indicator that uses a custom DLL written in C++ and uses MySQL Connector/C++ 8.0 to connect to a database for authentication. I was able to get the DLL to load on my own PC as well as another client's, but I am unable to load it on my Virtual Private Server...
Hi, I am looking to build a dashboard so that I can view some specific conditions on all of the 28 currency pairs I track. The basic logic for the conditions I have figured out and run them separately on each pairs chart. The problem I have is that I want the info displayed on one chart.  I want to...
Is there a way to retrieve the current time frame in minutes with an EA?  I tried using PERIOD_CURRENT but it only returns zero.
Hello, every one! I try to use the standard library to write a trail stop loss function. But it fail in test, some order can't be modify, it return a invalid stop error message, and the error code is 4756. Hope someone can help to check it. Thank you. //---classCSymbolInfo mySymbol;CPositionInfo...
hello dear programmers i have an MT4 EA that its backtestingspeed is good at 1st but after a while its speed is too slow. what is the problem. i am backtesting that in D1 timeframe. is that from my broker or my EA or what? thank you
hi every one my question is that, assuming that there are two ways to write a Boolean script, which way is faster (makes the EA backtest/optimization faster)? bool a,b,c; a=true; c=(a big an complicated formula that only needs to be tested when a==false); method 1-        if(!a) {b=C;} method...
Hello Everyone, I am new to EA coding.  Somehow i was able yo make a code for simple RSI.  But the problem i am facing is that it opens so many order whenever the RSI condition is met. It is opening position at ever tick. I need to add a piece of code so that this EA opens only 1 trade per candle....
Does anyone know if it's possible to program my EA to pull in data from the terminal journal (not the experts log)? I want to do this live if possible, so check the text in the journal every tick, minute or ideally when a new journal entry appears and scan the text for certain values. I'm not sure...