MQL4 and MetaTrader 4

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
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 platform update will be released on Friday , March 1, 2024. This version provides error fixes and platform stability improvements. 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 all I added a feature for auto lottery but after inserting it it gives me the problem of OrderModify error 4051 and invalid stoploss for OrderModify function I will insert the code below, I can't figure out what the problem is double lot;
im trying to install mt4 on my windows laptop but its not installing and returning an error any ione hl me to solve this problem below is the screen shot
I have an EA that talks to a server, but sometimes a communication error might happen, and the EA can have a hard time recovering after, so it would be better to restart the MT4 instance. Is there some way I can close the chart AND MT4 itself to enable that? TIA! Dennis Gundersen
I find it inconvenient to go thru the cycle of: move pointer > right click > buy/sell limit > set lot > set SL/TP >= 6 operations But the cycle of: move pointer > right click > buy/sell limit + preset lot + SL/TP >= 3 operations Is that possible to code this thing out? Searching the internet doesn't
I used an EA, whch at 3om today opened a trade 900 pips above the 5pm price. As you can see the open price hasnt even been hit for the past day or so. MY EA has no slippage so it cant be that. Im thinking it might have somehting to do with the EA executing so early that it didnt register the
The following statement in my code is resulting in Pending Order getting created but it somehow is not respecting ordertplvl. int
Hi coders, I need your help for my learning process. I'm using a Multi-Symbol EA which it can run sizeable pairs and it was written by someone else. My Mission :- 1) To get the 1st OrderOpenPrice 2) To get the 2nd OrderOpenPrice 3) Finally, get the difference MathAbs( 1 - 2 ) I have written the
For example, I have a BUY LIMIT position, But when the march has continued and the order is still not executed, I want to change the TP to the highest between the order placement date and the current date
  make a loop  (2)
I want that, in every 15 minute candle, the cobuffer value of the previous 26 candles will be added together Can someone help me in this case
Hi guys i try to create a indicator that calculate a CCI over the ratio of 2 instruments i code this //+------------------------------------------------------------------+ //| CCI_Ratio.mq4 | //| Expert Advisor created by
Hi bros, I have Expert Advisor and want to sell it, on the other hand i want to protect source code too. EA can be place at Metatrader market or user can be download .ex4 code website which to be ready later. Monthly subscribers for example must be paid 1000 usd for to use it. But if the subscriber
  Cannot load ea  (1)
Got the error “cannot load” and the path to the ea Tried everything Restarting,reinstalling still doesn’t work
  Elite indicators :)  (15189   1 2 3 4 5 ... 1518 1519)
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
does anybody know why the EA that work properly a few days befor now does not work in mt4
Hey all! I'm working in an EA framework so I can spin strategies up for both MQL4 and MQL5, and I'd like to implement a HashMap, since there's an implementation already done for MQL5 in /Include/Generic/HashMap.mqh, I gave it a shot and moved the folder to MT4 to see what happens. To my surprise
[Deleted]
hi, i'm new to forex trading and to this forum. right now i'm studying technical analysis while forward testing FAPturbo on 15 minute charts on metatrader4 build 225. for the last two weeks i have wanted to backtest & optimize the forex robot on the strategy center - i follow the instructions...
Can't use MT4. I can login and see ma balance, but I can't make a trade. Does anybody have the same problem
Hi there! I can't log in to my demo account, the platform dosn't react on anything, it worked before but now it's completly dead, it says "No connection" Do I need a funded live account at MT4? Becouse today I took my ballance out of my 2 live accounts. Someone can help me? Thanks
Unable to connect my EA to MT4 all of a sudden yet its been working on the account. I am getting the below error; 2024.06.03 06:30:42.116 cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\9E1B7C64C22DC2B6AAD000B3A8AB1869\MQL4\Experts' Anyone who knows why it's not connecting
Dear All,   Is there a link for the above mentioned download? The MQL4 book format is in .chm which is not a file. Please help.   Regards 
Hello, Is there any way to send simple orders (just BUY, SELL, CLOSE) to MT4 from another computer (which is running a Java app) via IP? Don't need bi-directional communication; just uni-directional. Thanks in advance
  Is there MT4 technical support?  (41   1 2 3 4 5)
Is technical support for the MT4 trading platform available if I have a problem with it? If so, where? If not, what is the alternative
Hello I prepared a video so you can see how it can't connect. https://file.io/qBcf32Kdy58y I used its vpn. I never had this problem before. I can connect to my country's internet on my desktop computer, but I can't with my mobile phone