MQL4 and MetaTrader 4

To post a new topic, please log in or register
New MetaTrader 4 Platform build 1210 The MetaTrader 4 platform update will be released on Friday, September 6, 2019. The new build features the following changes: Optimized "Market" and "Signals" section. In the new version, the product and signal showcases run faster and thus provide a better...
The MetaTrader 4 platform update will be released on Friday, September 13, 2019. The new build features the following changes: MetaTrader 4 Client Terminal build 1220 Fixed occasional slowdown caused by operations with a large number of graphical objects from MQL4 programs. Fixed passing of
Hi everyone, Floating Charts from stopped working 2 days ago, and the website is unreachable. Does someone else have the same problem? Thanks in advance
  Traders joking, the beginning (7615   1 2 3 4 5 ... 761 762)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
These 2 EA's execution speeds are very different, I take it due to the fact that in first one there is the declaration at top and in the second one there is only the declaration inside the OnTick() function. Is this all there's to it
I'm new to MQL. I'm trying to get the SMA of the ATR value. Is this supposed to work? int lookback = 1000; for(int i=lookback-1;i>=0;i--) atr[i] = iATR(NULL, 0, 10, i); for(int a=lookback-1;a>=0;a--) ma[a]=iMAOnArray(atr,lookback,20,0,MODE_SMA,a); Print("atr= "+DoubleToStr(atr[1], _Digits)+"
  Is <11 faster than <=10? (35   1 2 3 4)
<11 faster than <=10? for example if(b>0 && b<11) vs  if(b>0 && b<=10) Is the first one faster bc its just one thing < vs <=? Worth it?
Hi, I'M not very skilled in MQL4, and havig problems with the lot size in my EA, where souldn't be to orders open with the same Lot Size at the same time. I made a For loop that finds if there's an open order with the same Lot Size as the intended one, and if its true, adds 0.01 to the lot size, but
  Experiments ... (852   1 2 3 4 5 ... 85 86)
Thus thread will be used to post some experiments
Hello all, I was puzzled why the indicator below did not update on the M1 time frame - the error message was 'zero divide'. However the print statement showed the variable 'volume' to have a positive value. I then watched the M5 time frame which updated perfectly as did all the other time frames
I'm testing a EA on a DEMO Account and on REAL Account at the same time (2 sessions of MT4 running over different accounts, same machine, same EA) and results are quite differents... Can anybody tell me why? Regards,
Hi, Someone who understands the programming and structure of the MT4 platform itself may be able to answer the following: I am considering renting a cloud supercomputer with the idea of running various Optimization BackTests in MT4 much faster than on a local PC. My concern is that even with the
Hi there, Does anyone here ever experience this? I noticed that during high activity times during NY session, MT4 kind of lags and stutters. My computer is actually very powerful and I don´t have lots of indicator going on. Is there any way to improve this
My Mql5 indicators that I've had downloaded is not showing in my MT4 Tallinex account The Market Folder is missing from left side of Platform.  So I went to data - Indicator folder and the market folder is present with all the free indicators  that I've downloaded from this site.  I went to The EA...
TheRumpledOne is now coding FREE indicators for MT4 I am having a blast!!
Hi This mql4 code read the txt file string but as lower case not as upper case as it is saved in the file. Any idea where is the problem and how to get it to read the text as is? Thanks // string file contents// USD s wint filehandle=FileOpen(filename, FILE_READ | FILE_ANSI | FILE_COMMON, 0);
  Usefull links/threads/tools (48   1 2 3 4 5)
The thread about threads: what's going around the forum everywhere    ============ MT5, mql5, suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread   Suggestions for Trading System thread  After Requests &...
I have written an EA using among others the well known custom indicator called NonLagMA. I have written other EA's with this indicator without any problems that i was aware of at that time. I have two different length parameters that each are linked to either a Bull or Bear trend. I use two
In the attached file "5MinutesScalping-i4.mq4" you'll find the source code of an indicator I downloaded. It has 2 buffers (buffer 0 and 1) which provide buy/sell signals. Now I want to create my own custom indicator (attached file "Onno - Indicator.mq4") that uses the attached indicator by calling
I have installed metatrader 4 via PlayOnMac.  When I try and follow signals, I just get a prompt to download meta trader 4. Unsure on how to get signals setup on MT4. Any help would be wildly appreciated. 
Hi Guys - I'm struggling with something that should be really simple and I'm not sure what I am doing wrong here. I have 2 simple Dynamic Arrays. The first one stores a list of all my "Winning" (positive) trades and works fine after I sort them (MODE-DESCENDING): for(int i=NoTradesBest-1; i>=0; i--)
Hi,   it's been a month i'm stuck with this problem.   I found nowhere on Internet how to set up a hidden trailing stop so i tried to code it myself.   there is an error in my "Hidden TrailingStop" code.   here is my bot...
Hi all, I need to check if there is an arrow object on a certain bar, like in this graph. I'm watching the OBJ_ARROW functions but I don't find what I need. Have you got a suggestion? Thank you
Friends, can any developer insert the CALL and PUT buffers to work with MT2 in this attached indicator? Thank you
I am trying to drawn a TREND line but I just get a line running across the screen (the wide GOLD line below). EAM55_2 & EMA55_1 are the EMA's for 2 consecutive figures. The start time on the right hand side appears correct but I just want the length to be (in this example 5 (or 6) periods). Trying...
Could somebody please be so kind and teach me how to make a function to get the amount of bars since the order is open!? For example, if I bought a EUR/USD on 9/2, then today such function should return 10 in a daily chart, 240 (more or less) in a hourly chart, and so on. Much appreciated
I keep getting MT5 from the website
Making backtesting on my MT4 I need to keep different objects on my chart. So I save them all preparing new template with them ... fortunately when I need go back to them an I am loading saved template they do not show up ... Strange because it shows three MA's on but not text or fibo levels
Hey Folks!! Hope everyone is doing just great!! Kindly assist in resolving a "zero divide error" that keeps coming up at the code below; double change; double PRI_MA; double CUR_MA; PRI_MA=iMA(NULL,60,60,0,MODE_SMA,PRICE_CLOSE,60); CUR_MA=iMA(NULL,60,60,0,MODE_SMA,PRICE_CLOSE,0);
Hey coders, sometimes I need a tick, may it be on a weekend or during quiet market times. I thought about forcing a tick by calling OnCalculate() from a chart event. This was my first idea: void OnChartEvent(const int id,                  const long &lparam,                  const double &dparam...