MQL4 and MetaTrader 4 - page 2

To post a new topic, please log in or register
I have contacted the service desk about this issue. This is what I sent them.... Hello, Please either remove the option to download MT4 from your website or fix it so that it does actually download MT4 and not MT5. We are getting sick and tired of answering the same question over and over again....
Hi all, i'm having a tough time making my EA place stop orders only once at a given price. It places stop orders every tick which matches the price. I wanna be able to make multiple Buy stop and Sell Stops, but only one at a time. For example if there is a filled Buy stop order and another Buy...
My code is set up to be placed on only one pair, but it will trade on multiple. For instance... *Not Entire Code* //-----------------------------------------------------------------   {     if(gbp>0)       {         if(gbp-usd<(TradePoints*(-1)+1))           {             result=OrderSend("GBPUSD"...
  Error Code 5004 (36   1 2 3 4)
Hallo, I just update my MT4 FXDD client terminal. The new updated client terminal gave an error code: 5004 which I didn't have in the old MT4 client terminal. I understand that error 5004 is about fileopen error. I have checked and I have done "fileclose" for every "fileopen". I have also checked...
Hi I get an error invalid trade volume when I try open lots like 11.23 but when I use 10 its fine. I'm using double lot variable. Why would that give me this error? Louis
I have written this small function which helps any programs to do the normalize of prices (without having to re-type the long normalize command), but it keeps giving this error. How can i solve this? //+------------------------------------------------------------------+double normMe(string ins,...
Good afternoon everyone, I am trying to calculate the net profit/net loss of an expert advisor for the current week. For some reason, this function always returns 0 during backtesting. double GetWeekProfits(){   int type, netprofit = 0;   datetime starttime = iTime(Symbol(), PERIOD_W1, 0);   for(int...
Hi All, back in October and again recently MS sent out major Windows 10 updates. Among other problems that these caused necessitating a factory reset, the MT4 purchased indicators disappear. Whilst they might still appear in the list under Navigator, they do not exist. Same for Templates and...
Hi i got an Object from an indicator (a simple regression channel determining trend) that i check to enter a trade or not, but my EA is a Multipair (i put it on one chart only and it trades all the pairs) so my question is : will it work correctly if i just call the iCustom with each symbol and read...
  Volatility indicators for MT4 (118   1 2 3 4 5 ... 11 12)
What volatility indicators out there are coded for MT4 that I can use other than the Bollinger bands? Please post links if you can. I'm looking for a way to better place my stops based on market volatility
Hello, i'm just creating an EA but i need your help for simple candlestick reference i dont know the MQL4 REFERENCE for Candle .. Simple MQL for bearish or bullish Candle  Example FOR EA :  LIKE THIS :   if Candle Number 1 == Candle Number 12 NOT LIKE THIS : if (iOpen   >/<    iClose)     ==...
  Great EA in backtest! (1494   1 2 3 4 5 ... 149 150)
Hello folks I found a very good EA that shows great results in Backtest, but wont work if its Loaded, can anyone fix this pls? Regards Link to download https://www.mql5.com/ru/code/8397 Edited: newdigital.
Hi, I'm looking for an advanced EA that can trail based on price action (close of a bar in bullish/bearish formation). I currently use the supertrend and the halftrend which are good but I want to compare with pure price bar action and see which one performs the best. Paid or free is fine. I just...
i have an investors password for one account but i cant see the running trades or its not showing the running trades( i watched it with myself and also recorded the screen video) but the trades are being updated normally on the history of the mt4. how can i view the trades when its running ?
The DLL made with c # does not work at mt4. the following error occurs. I would appreciate if you help. 2018.11.27 17:15:12.066 Libdeneme1 EURUSD,M5: unresolved import function call 2018.11.27 17:15:12.066 Cannot find 'Add' in 'testme.dll' (https://www.mql5.com/en/articles/249) c# code and mql4 code...
MT4 also developed by its own company does not work why the DLL. Script under DLLSampleTester.mq4
Hello guys, Can you please point out why the following script cannot be imported into MT4 history using the history center Thanks much appreciated.
  100%
The script builds usual schedules a tic-tac-toe. I have no good knowledge of the mql 4/5 language. The script loads my CPU percents from 60 - to 100%,  all the time under loading. In what can the reason be? Whether really to correct it and how? A script from CodeBase.
Hello, I saw  an EA-system which is promoted by a guy who give the Investor Password and the account no. I had loged in and the results I saw were good enough. Finally as I start to observe the live playing of the EA, I realise the following weird: - it opened more than 30 trades, and the next day...
Hey guys! I found an indicator online EMAPredictive3 by Matthew "Dr Chaos" Kennel. The only problem with it is that it doesn't really update. I have to click refresh after every tick, otherwise it will look overlapped (as in the picture attached). I really tried to do something with RefreshRates()...
Im new to Forex on the MT4 platform so this is a demo account, the green arrow is where i placed my sell trade but it ddnt take profit when it hit the take profit line.There are two candlestick that hit my take profit twice so im very confused .Please help
Hello  every one  the Below Function is to get the Last order lot size and multiply it by 2 it is is lose trade but it is not working properly , can you help  double fLotSize(){double fnewlot=Lot_size;int i =OrdersHistoryTotal();for (i;i>=0;i--){    if (OrderSelect(i,SELECT_BY_POS...
Hello, This was probably asked before, but I couldn't find information online, which I'd be able to put in practice. How can I setup time based orders in MT4, like MOO or MOC. Maybe not exactly the second market opens or closes, but more or less as well as time stops (say close a trade after X...
Where can I get an EA/indicator that counts the number of price fluctuations that occurred within each candlestick before it was closed? Cheers,
Hy, how is it possible for my Ea to read my Enum-Choice? enum selectChoice  {   Banan=0,     // lolol   Apple=1,     // lala  };input selectChoice WhatIlikeMost=Apple;//later in EA..if(WhatIlikeMost==Apple) //Do my stuff...;// Thats how i did it, and it doesnt work...Do You know better?
  Graph of MT4 (1)
Hi everyone I have some problems with MT4. Hope you can help me regarding that. I am using FBS broker on MT4. While I bid for sell or buy, the value set on the trade bar is different from the value I chose to bid on the graph. Also, when graph is going below the line of my proposed bid for sell, the...
Hi, I have an EA. The EA can open orders according to some rules. It can set a take profit and stop loss point. if my statement is true, the EA should not wait to stop loss and close the order. Forexample, if SMA(15)>SMA(50) for a sell position. I read PositionClose but there is not an example. Can...
Hi, I have a lot of EA´s on some mt4 accounts and all of them are registered on the mql5 virtual servers. But today i tried to put a new EA on the virtual server and when i synchronize the experts it gives an error. All of the other EA´s are working but this one no. Can someone help me?
I need a help how to lock my EA/Script based on my login account name ? how to make the this script can run only account name of jeo mex for the example ? 
Hi guys, I have a problem with a 2d array, i have never worked with 2d arrays before, so its kinda  expected. I read a lot, both forum and google, but found nothing .  I have a 2d array  to store ticket numbers for past orders, the orders are divided by series, this is why i have a second dimension....