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
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, 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
Hi there, when triyng to do backtest on MT4 I get the following error: 2026.01.07 16:19:31.824 TestGenerator: no history data 'XAUUSD5' from 2025.02.02 to 2025.05.01 .. and of course , I downloade all history, new old or whateve you want! No way to solve. So ,this happened about 2 weeks ago on
  Pollan's indicators  (1755   1 2 3 4 5 ... 175 176)
As your see, IP (BBS-m).v8 and IP (BBS-index).v8 seem popular for last days. They are not repainting. However it is a great work done by a great coder. You can check it. А такой рисунок видели? - MQL4 форум А такой рисунок видели? - MQL4 форум Pollan wrote (a) >> He received a lot of questions about...
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
[Deleted]
Hi everyone! This website has been super helpful as I'm very new to coding. But there's just one thing I could not figure out myself, I really appreciate if someone can assist me. I am trying to create a trailing stop system based on the AccountProfit() values within the trading period of a single...
  Interesting and Humour  (49771   1 2 3 4 5 ... 4977 4978)
Members of the forum, don't forget to follow the rules
Cloud protector not working on MetaEditor4( version 5.00 build 2415 ) I tried re-login, change network and PC reboot. But not solved. On MetaEditor5 is working. Anyone help me? Or not supported MQL4 already
[Deleted]
Please look at the attached file for full code . **** int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) {} double TakeProfit,StopLoss,start_price; } int fun_vol() { if (Volume[ 0 ]> 1 ) return 0 ; else return 1 ; } int fun_touch( int stauts) { if
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
Done. All questions here. No more questions in index 2 :) The previous ones are here. https://www.mql5.com/ru/forum/111497 h ttps://www.mql5.com/ru/forum/131277 Useful links to similar topics. Forum navigator and frequently asked questions (FAQ) FAQ subreddit Only "Useful features from KimIV"
Hi there... So, I developed a very good EA (IMHO), comprised of 5 algos, back tested it for 14 years (using tickstory, even though my algos are not day-trading), run it on a live account for the last year... I like the results. Anyway, I'm finding some investors and will need to open a joint account...
  Traders joking, the beginning  (7331   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...
  Please fix this indicator or EA  (1951   1 2 3 4 5 ... 195 196)
....................................
MetaTrader 4 Build 529 beta version with new MQL4 compiler has been released. This terminal is fully compatible with all previous versions of trading servers (it works in compatibility mode with them), so you can connect with it anywhere. To update, simply connect to demo.metaquotes.net:444
The problem is from the Mechmatov forum, here . Петя заметил, что у всех его 25 одноклассников различное число друзей в этом классе. Сколько друзей может быть у Пети? Comment: 1. Petya is also in this class, i.e. there are 26 people in total in the class. 2. If A is friends with B, then B is friends
Hello everyone, I am posting this request again because I previously asked a similar question but unfortunately didn't reach a solution. I am working on a custom indicator for MQL4 based on a "Spike" and "P-Gap" strategy, but the code is not behaving according to my defined logic. I would really
Hi coders, int DLSSec= TimeDaylightSavings() ; I'm a trader in Asia country, the forex market open local time is either 06:00 or 05:00 daily (broker's server time = 00:00). It is in winter period right now, the DLSSEc output = 0 and the forex market open local time is at 06:00. I checked with 2 AI
  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
I use MT4 on a new broker in a Demo account for some weeks. Yesterday I activated a Live Account but this one has limited data , as for exemple the m.a. 2584 stops on 251218 at 14:28 that is just one day for the 1min chart. What can I do to increase it
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...
Hi guys anyone have the download from Eightcap MT4 or the IP Adress from this server EightcapLtd-Real-4 ip adress ? Thank you so much
Hi, This robot logic is based on Tom Hougaards advanced school run strategy which he distributes freely to all through his telegram resource channel. We want the robot to enter the market based on a break of a specified range determined by a time frame, specifically we want it to scan the 4th 5 min
Hi, I’ve been trying to pass the validation phase with my EA for a few days now. I understand what this error means and what causes it, but I’m still unable to fix it. Exact logs: EURUSD,H1: invalid stoploss for OrderSend function EURUSD,H1: OrderSend error 4107 I couldn't replicate the error in my
Hi everyone, I’ve written a custom indicator called SP2L (Spike and 2 Legs) , and I’d really appreciate your help in identifying where my logic might be flawed. The core idea is as follows: A "spike" is detected when at least three consecutive candles of the same color each break the high/low of the
Hello again, I would like to detect a timeframe change and clean all objects on the chart from my indicator. Deinit() seems not to execute on a timeframe change on the same chart. -this is, clicking H4 from D1 for example. I would really appreciate some help, and thanks in advance for all your...
Good Day all. I need help running MT4 in portable mode on Linux. The instructions only work on a Windows OS. Even when you install MT4 on a Windows OS in portable mode and copy it to a USB Stick and then copy it to the Linux OS. The portable link do not work on a Linux OS. How do you create the