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
  Simple Loop  (9)
I know I'm asking for a boot in the head, but it seems as thought the language has changed since I was coding last. Trying to do a simple loop from 1 to 50, where the code stops at 50. What I get is: 1 to 50 then continuously loops again from 1 to 50. I want to stop at 50. Would appreciate any
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
hi, using MT4 b745 on wine 1.7.32 i386 ubuntu for using an expert i need to add an url into /tools/options/Expert advisor/ there is already the builtin 'http://www.mql5.com' listed when i right-click on '+' nothing happen for adding a new url, so i double click on the previous url's field:...
Hello, I want to be able to draw Trendlines, Channels, Fibs, essentially any object on a chart for a specific symbol e.g a horizontal line level 1.1 on EURUSD and restrict it to only the chosen symbol. However, when I drag in another symbol on the same chart window, e.g. AUDNZD, I see the same...
Hello, I have a problem loading an Expert Advisor in MetaTrader 4. My terminal version is: MetaTrader 4 Build 1478 Date: 22 August 2026 The EA is named GOLD_MT4.ex4 . When I try to load it, MT4 gives these messages: GOLD_MT4: has newer unsupported version, please update your client terminal cannot
Hi guys, Anyone got any idea on how to call this indicator to work in EA? From the forum i found several method as the following: val1=iCustom(NULL,0,"SilverTrend",3,350,2,0,0); val2=iCustom(NULL,0,"SilverTrend",3,350,2,1,0); or BuyST=iCustom(NULL, 0, "SilverTrend", 0, 0); SellST=iCustom(NULL, 0,...
Greeting , Can anyone help me please with programe lines (code base) to add to my EA -mq4 file simply , I only want the EA to open trades only if RSI value between 65 and 35 for example or 70-30... etc , it would be really appreciated sorry I don't have experience in programming
  Manual systems discussion  (153   1 2 3 4 5 ... 15 16)
In order to construct a killer ea. I would like an opinion of what is the best indicator all of you "ELITE'S" are using for ALL TIME FRAMES. My View Daily,60min,30min - I give high marks to Squeeze_2006 combined with hist_step_stoch 15Min,10 - I give high marks to Fisher Yurik/combined With Squeeze
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...
this script converts the chart's ticks into any Second(s)timeframes !!! the Script works only for XAUUSD, you can modify it to work with other pairs or other names of Gold pair. Example custom periods: S5 S10 S15 S20 S30 S45 S50 Once the Second(s) chart is generated, you can apply almost everything
Hi all, question as per subject line. I'm sure an easy fix. Anyone? thanks in advance
[Deleted]
Hi I wrote a very simple EA and it works in tester properly but it doesn't work as i attach that to a chart . EA is successfully loaded but the first line of start function (a comment line) is never executed. Is there any specific Error or mistake in programing that cause such a condition ? I would...
  CButton Disable  (4)
Dear Community, I've read all Doc about CButton and it seems to me, there is non built in method to perform following task 1) create CButton 2) CButton should be visible but not clickable at the beginning. Any idea, how to perform this
Hello, I want to know can MT4 send WebRequest to a server or website directly like MT5 or I need to build a .dll file to do that
I want to start a YT channel about the MQL5 language, and write a book about the language. I've read the "Trademark and Graphics/Screenshots Usage Guidelines" in the MetaQuotes site, but I still have a few questions to ask. In the website there is a "contact us" section, but no email to be found
  Supply and Demand Expert Advisor  (35   1 2 3 4)
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones.  The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below).  Here are the rules of the EA: - When price reaches the proximal level of an...
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...
Good morning everyone ... I would like to ask the experts in general if they have news on some utility for mt4 that changes time frames by entering intervals different from those pre-ordained thanks
Greetings dear Coder, Please help with a way to diplay emojis on MT4 Chart using an EA. In MT5, this is possible using the following code: ObjectCreate ( 0 , "Lips" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "Lips" , OBJPROP_CORNER , CORNER_LEFT_LOWER ); ObjectSetInteger ( 0 , "Lips"
  Astro...  (231   1 2 3 4 5 ... 23 24)
Hi guys, I was wondering if anybody in this forum is interested in searching of connetion among planets,moon and other movements in space. We can share our experiance and learn more and more... All you know that the most famous and successful trader/W.D.Gann/ is used astrology and other technics to
Goal: I usually have my charts(over 20) maximized but at certain times, for comparrison, I want to have only two charts filling the whole window: one to the left with 100% height and 50% width and another one to the right with the same dimensions. I'm aware that I can do this manually but to get it
  Something interesting, old thread  (1290   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...
Posting this here since MetaQuotes doesn't have a public proposal email — happy to move this wherever makes more sense. Hello, My name is Mahmoud Seyedi. I'm a trader, and formerly a university faculty member in architecture — not a professional software developer. Over the past two years, working
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 can't download any indicators because I get an error that I don't have the appropriate application installed on my computer. I'm logged into the mql5 service on my MT4 terminal. I've assigned the .mq4 and .ex4 extensions to my MT4 platform on my computer, but I still get an error when