MQL4 and MetaTrader 4

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
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
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
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
  Heikin Ashi (better formula)  (107   1 2 3 4 5 ... 10 11)
Can someone do this program? From an article made by BNP-Paribas it seems that we can have better representation with Heikin Ashi if we made the following modified Heikin-Ashi candlesticks as follows: a. haOpen, haHigh and haLow according to Dan Valcu formulas. b. haClose is calculated first
Hello, The android metatrader 4 application, build 1357 keeps resetting the chart, cancelling out any changes made. I have configured the chart 4 times so far and it keeps resetting. I have not been able to ascertain what exactly triggers the reset as on 3 occasions it happened within 24 hours of
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...
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
  Traders joking, the beginning  (7330   1 2 3 4 5 ... 732 733)
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...
Hi coders, whatever I try with these functions, I only get 5 as a result today. But Saturday should be 6. Is there any trick to get the the weekday?
Our System: Using: Mozilla Firefox Windows 7 OS MT4 " not" loaded in Program files (Not a UAC issue) Downloading: Email attachment with the .ex4 file,When I click on " Download ",Browse (Program to use to download the file), I use metaeditor.exe . Should I be using something different ? File Looks...
Hi, Please anyone knows how I can locate the Currency Strength Meter Pro source file [private contact details redacted] [Image cropped by moderator]
I have been developing an EA but after a few backtest runs it now goes really slowly. It runs fast on my other computer with the same broker like it used to do where it runs slow now. It has nothing to do with my EA code and I have cleared all the log files, caches or any other files related to the...
Hi About a month ago I purchase an mt5 indicator and most of my main indicators is on mt4. Would it be possible to switch my recent indicator purchases into mt4? If so, where would I do this or who do I contact? J
I noticed that some logs were not saved in the logs file until application close, but others were only updated when the application closed. Is this true? And if so, is there a way to change this
I have purchased the EAs Everthing work normally for weeks, but today I cannot Install the EA (9 of 10 activations left) as shown in the pictures below. I can still access market tap and signal tap but when I push the install button the system shown this message MQL4 Market: failed download product
  Market sentiment index  (87   1 2 3 4 5 ... 8 9)
By market sentiment index I mean the ratio of initial deposit to current funds under conditions of simultaneous trading in all, available, currency pairs, including gold and silver. Here are the index values for the period from the 24th of February till the 08th of March trading results for 34
Hello, I have a custom EA that works fine in the live market, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell
Toolbars & Status Bar Not Appearing on MT4 Desktop Open? Using a PC and Windows 10, on closing then reopening MT4 from the desktop shortcut the Toolbars & Status Bar are Not Appearing on MT4 Desktop Open?? Any assistance would be much appreciated, thank you
  Elite indicators :)  (15200   1 2 3 4 5 ... 1519 1520)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert
INTRODUCTION I have learned a few things after thousands of hours fighting with MQL4 and I want to share some of it. Here is my qualifications: I am not a professional programmer but have written an EA that is 20 or 30 pages long. And yet it will backtest (on H1 with 1 minute data, on Ticks) in...
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
Hi i'm not able to install MT4 or Mt5. i downloaded it from official Metatrader website, and also from broker website. still the same. someone help please
Hello, why is MetaQuotes blocking my servers IP address. It used to work, then it stopped working, then it worked again, now it stopped working again. Also I can’t find any official support email. info@metaquotes.net is not working. kind regards, Roman
In my MQL4 code I am able to send plain text from mt4 to telegram with ease. However, I am having difficulties adding telegram emojis to my code so that it outputs within telegram. I have searched high and low and all of which I found were examples using php and or python. Tried using plain unicode
I want to trade by a percentage of my account balance but the OrderSend command seems to expect Lot Size. What do I need to do to trade with a percentage of my Account Balance? Thanks, Jim Stow
I am considering getting one of those new Snapdragon Windows 11 laptops (such as Lenovo Slim 5) that run on ARM64 architecture instead of X86. I know MT4 doesn't have a native ARM version and needs to be run using the Prism emulator built in to ARM64 Windows version. I am curious if the emulated
Designed to discuss the pair over the past period, forecasts, and anything else that might affect the movement of this pair
what is the best code for identifying a new bar