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
I am using MT4 and I have used mql5 marketplace from it. It was working well three months ago. Today when I am trying login I am getting the following message "MQL5.community authorization failed". The MT4 version I am using is download from "Octafx" broker website. Please help me solve this
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
  Ocean theory based indicators  (576   1 2 3 4 5 ... 57 58)
In this thread Jim Sloman's "Ocean theory" based indicators will be posted. _________________________________________ PS: this thread (as it stands right now) will have about 60 indicators posted here (metatrader 4 + metatrader 5 versions) Metatrader 4 versions are completed, but because I would...
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
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
Hi Guys I am trader with no coding experience. In the spirit GenAI I was attempting to automate a strategy I am working on into an EA using GPT. However whenever I compile it I run into trouble with the code due SL and TP variable declarations or something along those line. I am a novice trying to
Hello everybody, I have this code for "Expert Advisor", but it doeasn't work by my expectation. I want to open and close order by selected time. When the time is on the same date ex 15:00 to 16:00 it work. But when the close date is on next day it doesnt work ex. 23:50 to 0:30. The order open and
does anybody know why the EA that work properly a few days befor now does not work in mt4
Hi I have a c# DLL which is working great when placed in MT4 (build 765) installation Folder. However, when trying to move the DLL to terminal_data_directory\MQL4\Libraries I'm getting "Unhandled exception 0xE0434352". I would like to emphasize that it's not a problem of calling managed code...
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
[Deleted]
The problem is that it's sending too many Alerts because the conditions are true for a long time. How can I get it to only send me one alert when it finds the conditions are true? Below is my code: total = OrdersTotal(); if(total < 1) { if(cnt_buy ==2) {...
Hi, I have old setup files, but whenever I install it, it gives me the latest version 1367. how can I get the older version? or avoid this update. I tried disconnecting my internet but it didn't install at all thank you
I want to make the buying process very easy for my customers. I want to make it after they pay they will download the EA instantly. After they download the EA they will need to enter a product key. Each product key will be allowed to be installed on x amount of platforms and can't be used by more...
Good evening, I can no longer download any indicators or eas purchased by me from the market to my mt4, how can I solve it? the mt4 diary says: MQL4 MQL4 MARKETS PRODUCT (115398) NOT FOUND IN THE DATABASE. Can you help me? Thank you
hi i have a simple indicator which draw a trend line horizontally and to the right , can we get the date of the t2 for that trend line using any code? (even if the trend line extended out the range of the trading bar)? as in the attached pic
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
Hello friends, I would like to recreate this indicator for MT4, or if someone already has it done for MT4, that would be even better :D. Here's a description of the indicator and what I know about it: It's an indicator used to understand when to enter and exit the market in spread trading
  MT4 cannot load EA.ex4  (21   1 2 3)
hello, my case now is I purchased EA from market and cant load it in my mt4, ‘C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\xxxxxxxxxx\MQL4\Experts\Market\name EA.ex4’ other EAs are fine. Im using MT4 ICmarket. reinstall several times already
Hi, I have purchased a custom EA and there is new version out. i want to update from version 5 to version 6. I cant figire out how to do it. The develpor told me that it should be in Markets and then purchases. when i click on the purchase and the said EA. I dont see any button or tab there to
hi any idea why EA cant load? anyone encounter this? had be uninstall and reinstall again can someone guide me in this
  Buffer values  (2)
Hello, I'm working with a developer to create a mt4 indicator that reads buffer values on the chart saved by 2 other indicators and uses those values to determine when a trade alert should be given. I want to use the iCustom() function to reference values stored from the other two indicators on the
  make a loop  (1)
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 I have built two basic indicators today for my own use but I cannot finish them due to 4/5 red lines that I have tried many scenarios with no avail what do I need to put in the following boxes Copyright Link Version Atrict indicator chart window It may seem obivious to some I know but nothing
Hello, I'm working on an expert advisor created by me; I've actually defined how the program opens a position (sell and buy) but I have some throubles with the exits. I need to code this situation: in case of long position, the EA should exit if: * Bid is less of the first "lowest low" (the most...