MQL4 and MetaTrader 4

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
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
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
  Good Indis =)  (34   1 2 3 4)
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
So I've spent all day trying to figure this out, the MT4 download link from the official website gives you MT5.... Go test it out yourself and download it and check in the "about" section, it will say MT5. This is extremely problematic as I don't have MT4 on this PC and all my purchased EAs are on
Hello everybody, unfortunately I receive these errors: 'DrawLevels' - function was not declared as export FX WATER LEVELS_V0_9.mq4 50 6 'DrawLine' - function was not declared as export FX WATER LEVELS_V0_9.mq4 94 6 'CheckAlerts' - function was not declared as export FX WATER LEVELS_V0_9.mq4 121 6
If I rent a VPS from Metatrader, does any kind of support come with it if there are problems or if I have questions, etc? If so how does that work? I don't see any mention of support (or pre-sales support for that matter) on their web pages eg https://www.metatrader4.com/en/trading-platform/vps
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...
how to change time zone in m4
  Will Brokers Close MT4 Soon?  (13   1 2)
Will Brokers Close MT4 Soon? Hello, fellow traders! I’m seeking your insights on something that has been on my mind recently. As we know, MT4 has been the go-to trading platform for years, trusted by millions of traders worldwide. However, with the increasing popularity of MT5 and brokers gradually
Hi Guys, Have just joined this forum. I have just taking the step to begin my trading journey and have completed a course on IG.com and learning from Bapybips.com as well. I have opened a Demo account and MT4 platform. Can anyone advise if I should be practicing while I am doing the course and where
I am running the MT4 app build 1425 on my Iphone and receiving a plethora of messages under Profile. All are apparently informing me that my VPSs are connecting to MQL5.com: "New MQL%.com authorization from 'xx.xxx.xxx.xxx', U.S. New York (MT5 terminal) - previous 'xx.xxx.xxx.xx', NL. How can I turn
Is there a way to use metatrader as a simulator at all? So if you wish to practice tradeing based upon past data and when the market is close on a weekend you can do so at all? I was just wondering if this could be done. Thanks Larry Liles lileslarry@yahoo.com
"Hello, I have an Expert Advisor for MetaTrader that works well, but the problem is that when running it live or in backtesting, I get an 'Array Out of Range' error at specific points and lines in the code. However, the location where the error occurs lacks any data. These errors occur randomly, and
  Traders joking, the beginning  (7315   1 2 3 4 5 ... 731 732)
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...
Good morning Forum, I have an EA that currently has two variables: buyOrders and sellOrders which increase by 1 each time a new trade is made. I have a maximum number limit which is currently set at 10 buys and 10 sells simultaneously. If a trade closes, then I would like these variables to decrease
double atr1= iATR ( Symbol (), PERIOD_W1 , 5 , 1 ); double atr2= iATR ( Symbol (), PERIOD_W1 , 5 , 2 ); retun the atr1 And atr2 Value is 0 ; why? int weekly period, i can read the K-line,so ,I Have data
Hello, I can log into my profile using the MetaTrader4 app. But when I open the Desktop MT4 terminal and use the same login details, it tells me the login details are wrong. I restarted the computer and closed everything and then reopened it. What can I do? Thank you very much
Does anyone know any EA or SCRIPT which will calculate the TP and SL levels by itself and closes the orders when either the SL calculated or TP calculated would be hit.Before you ask, this would be to get around STOPLEVEL and to allow me to trade little position sizes. To understand it better it...
Hi guys, but I'm trying to download some missing currency's from the 'history data' for backtesting and it tells me there's no history data and wont let me download. Can you guys help? Thanks again
(Previous part here ) Hello, Could you suggest a function in mql4, which among several open buy positions, starting from the lowest price, counts the specified number of lots (sum) and outputs the price below which this number of lots are. Orders are market orders. And the same, but for sell. To
Hello everybody I was wondering if it is possible to add comments using Mt4 android app. Thank you so much
How do you fix this issue? I have a Live account with a broker but can't place a New Order. All of the markets are showing as disabled
Hey guys, I am a bit stuck and need help. I am currently coding a semi-automatic MT4 EA for order placement and management. The idea is, that I insert these variables: 1) Order direction (buy/sell) 2) Start price (e.g. 2800) 3) End price (e.g. 2798) 4) SL (e.g. 2802) 5) TP1 (2796) 6) TP2 (2794) 7)
  Download history in MQL4 EA  (53   1 2 3 4 5 6)
I need 15M 1H 4H 1D 1W  for all 28 pairs for 30 periods back in my EA. I have used a very good tool in MQL5 published  here but is there a way of doing this in MQl4?
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
Please guys look at the following code. It is meant to print numbers from 1000 down to 0. But I need to break out of the loop before it hits 0 by the press of a button. How can I achieve that? Control doesn't enter the loop. void OnInit () { ObjectCreate ( 0 , "Run" , OBJ_BUTTON , 0 , 0 , 0 );
hello all. I have created an EA that creates some templates in "files" and moves them into the Templates folder using Windows API (as I can't write into Templates); when I tried to publish in the market, MQL5 rejected it. Some days ago I saw a post where it was provided exactly this recommendation