MQL4 and MetaTrader 4

An updated version of the MetaTrader 4 platform will be released on Friday, March 13, 2026. This build includes improved interface translations, bug fixes, and enhanced platform stability. The update will be distributed via Live Update
On Friday , March 6, 2026, a new version of MetaTrader 4 will be released. The update includes several important security improvements, bug fixes, and platform stability enhancements. The update will be distributed via Live Update
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
This topic will discuss undocumented ways of working with the mql4 language , examples of solving certain problems. It would be desirable that this branch would be closer in content to the FAQ, than to the discussion. I suggest that all experienced programmers share their solutions and programming
  Pyramiding strategies  (13   1 2)
hi, i 'd like to start new thread about pyramiding strategies. i am searching solution from few months, and this is my result : i ' ve developed an EA based on keltner channel and macd. if you are interested to develop my project tell me. this is my back test (2008) and screen giapel
Hello, Do you listen any music while you trade? I have tried with many different kinds, but I think classical music is the most appropriate to remain discipline focus and calm . Any replies are appreciated. Let's start
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
I have tried to add Buy and Sell Signal, pop up alert, and push notification from Histogram Indicator. Following line have errors : string fullMsg = Symbol() + " + IntegerToString(Period()) + " - " + msg; The errors after compiling : '' - double quotes are needed '-' - illegal operation use Much
I’ve been having a problem for the past few days with installing MT4/MT5. During the installation, a proxy window pops up, which has never happened before. When I click Cancel, the installation stops. I also can’t download a newer version from the broker — I get some kind of proxy page error. It
  Something interesting, old thread  (1286   1 2 3 4 5 ... 128 129)
Dear all, I would like to start this new thread cause I have some indicators that I paid for them and I want to share for free with you, all of you that for years share tons of ideas with me in this beautiful forum. I hope to encourage many users to do the same thing Best regards doc EDIT now the...
  Live vs Demo EA  (6)
Anyone fancy taking a look at this EA , when back tested in strategy on the 1m chart XAUUSD with TP 100 , the results are amazing, however in live I cant get it to be profitable? here's the script : //+------------------------------------------------------------------+ //| Expert Advisor
  Pattern  (25   1 2 3)
Pattern indicators.
Dear Community, is it possible to feed data from MT4 indicators into Access tables real time? As far as I could find out, it can be done with server-generated data like Time, Open, Close etc. But what I (additionally need is locally generated data), what should be easier theoretically, but who
Hey guys,  I am in need of assistance please. What I would like to do is every time price creates a new high or low for the day I want to be able to save the price and the time somehow (perhaps in the global scope) to use it as a reference point? Would anyone know how to do this? 
I am runnning MT4 under Wine 6.0 on Ubuntu 20.04 focal. Have already run $ wincfg to set programms' window dimensions and scale police size. Now I am facing the issue that the toolbar submenus are not aligned and spread on two lines, and within submenus icons are also split on two or even three
I have an EA that I want to sell, but verification always fails
Hey everyone, I got tired of MT4’s default trailing stop. Trailing by a fixed amount of pips makes no sense when volatility changes every session, so I had a custom EA built to trail strictly by R-multiples. It is completely plug-and-play with zero inputs. How the logic works: It looks at the
The MetaTrader 4 update will be released on Friday , February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
The MetaTrader 4 update will be released on Friday , May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hi, I'm using Ubuntu 22.04 Linux with the latest version of Wine on my VPS I can run MT5 normally. However, i am successfuly installed it, when I run the installed MT4, I always get the message "Debugger has been found running in your system. Please unload it from memory and restart your program"
hi,I would like to convert  point from currency pair to currency account. For example assuming my account is in USD what will be  the value in USD of 200 points on the currency pair EURJPY.  I heard about MarketInfo(EURJPY, MODE_TICKVALUE)) which return value in USD for one tick...
September 1st is Knowledge Day
There is a serious problem in the latest versions of MetaTrader 4: The OK button is missing from the configuration window of several robots. I am currently using MetaTrader 4 build 1470, and the OK buttons for several Expert Advisors (EAs) are not appearing in the configuration panel. This is a
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
  Interesting and Humour  (49774   1 2 3 4 5 ... 4977 4978)
Members of the forum, don't forget to follow the rules
  Traders joking, the beginning  (7332   1 2 3 4 5 ... 733 734)
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...
  Expert Advisor  (6)
Hello I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index
  Using artificial intelligence at MTS  (275   1 2 3 4 5 ... 27 28)
Discussing the use of artificial intelligence in trading strategies in general and my Expert Advisor in particular which code can be downloaded HERE . The backtest results are on the screenshot below. It takes a long time to optimise the Expert Advisor and only with the use of genetic algorithms
[Deleted]
  Toolbars disappear  (13   1 2)
Always when I re-start MT4 my toolbars have diappareared as well as my terminal. Whatever i try with profiles, it does not help. Anyone knows what I should do? Thanks.