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
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
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 downloaded about 5 custom indicators from here put to my folder compiled them but none of them working. input window don't even appear. what's the problem? build 1420
Hello all, I tried to make a panel with a checkbox, It works well, but how can I catch the checkboxevent (is checked or not) Some advices are apreciated, thank you Greetings //+------------------------------------------------------------------+ //|
Hi Guys I have an ea with traling stop, when that tralling stops is active and move with every tick there are messages coming in journal and expert, I just got message from broker that my account is over loaded with messages as they limit to 2000 a day. Is there a way to disable them
have a nice day. Below is my code structure. However, I cannot plot this data on the graph screen. Can you help me. I'm new to MQL5. double BUFFERTOP[]; //// int ema1; int ema2; int ma1; int ma2; int highW1; int highM1; int loww1; int lowM1; int closew1; int closeM1; double valueema1[]; double
Hi, due to my testing setup i need an idea how to avoid automatic update from metatrader. Is there an opportunity how to handle with it. Or possibe to rollback to older Version
Hi All, I have created an EA that relies so much on candle and MA statuses at the close of period for both entry and exiting of trade condition. The only exception is if SL is triggered or max drawdown reached. This means that considering I use the 1H time frame, it can only place a trade or exit a
u sing thi s code: but not working for some rea each time return s la st profit, but not multiple clo sed order s, which clo sed at the same time. / /------------ double LastProfit( int tip) { double cnt= 0 ; for ( int i=OrdersHistoryTotal();i>= 0 ;i--) {
Hello everyone.. I want use below indicator on MT5 EA this is possible..? // @version= 5 indicator ( "ALİ ALT BUY DENEME" , overlay = true ) Kol_Linii = input ( 2 , "Количество линий" ) Signal = open [ 3 ] > close [ 3 ] and open [ 2 ] > close [ 2 ] and open [ 1 ] > close [ 1 ] and close > open and
It is so fractured !! I try millions solutions on online but nothing can help me. I bought the EA from MQL5 but can't load it on my MT4 server. I try to list down all the details I got, so hope the community can solve my issue without longer discussion thread. Device (1) : MACBOOK Parallels Window
Dear Metaquotes Team, I am writing to express the concerns of the MetaTrader 4 (MT4) community regarding the recent update from build 1415 to build 1420. While we understand that updates are necessary to improve the platform and ensure compatibility with new protocols, we are deeply concerned about
Hello everybody, Since 2 days, all my metatraders 4 (macos, ios and windows 11) stop to connect to trading accounts unless I deactivate my ExpressVPN. I have been working with MT4 + ExpressVPN seamlessly during 3 years and since 2 days it just does not work anymore. I've spent hours with ExpressVPN
#property copyright "CopyLeft, Aad Slingerland aka 2733, januari 2024." #property version "1.11" #property link "" #property description ""
Hello, I am not taking Stop Out Level, Risk Percentage or Stop Loss into the consideration, The maximum lot size i can take in my account with Account Balance. While calculating the Lot size one major problem is Forex = 100000 Unit Gold = 100 Unit Silver = 1000 or Maybe 5000 Unit Similarly for
  MT4 cannot load EA.ex4  (22   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
Hello. Is there a way that I can retrieve the commission cost by a script in MT4 (as I could retrieve the swap fee)
hello everyone, a few months ago I entered my demo account information as a signal which allowed me to obtain live information from my account (drawdown, number of trades, open trade, etc.) and I could see the trades live without necessarily connecting to my MT4 account. For some time now it has
My account went offline because of "old version". I installed the newest Mt4 update (built1420), but now it is no longer possible to drag the EA into the chart. What can I do
I'm trying to enable outgoing email on my MT4 platform. I have Microsoft 365 essentials via godaddy. I have used along with my email/pw along with from/to Mt4 Test keeps saying that the login failed. I'm POSITIVE the email/pw is right
Hi Does anyone here know a way to measure execution speed/latency of a trade? I want to compare different brookers and vps servers. I know how to ping their ip in the cmd. But i dont think that shows the whole picture? For example i ping one of my ECN broker and the results on avg is 64ms In this...
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
Hello, Let say, Account Balance / Free Margin : $200 Leverage : 1000 Currency Pair : GBPUSD Account Currency : USD Currently i am using : and this show accurate Lot size but i am looking for formula so i can code into my EA. How can i
Hi All, I am a new to this and it might me a stupid question but would appriciate your advice. The problem is that the profit results of my EA on back testing are not making sense, i have attached one example (see the highlighted in yellow rows). My EA opened a gold buy trade at price of 613.40 on
ICMarkets Denisha chat support says this: Please note that IC Markets’ server time and charts are GMT + 2 or GMT + 3 (when daylight savings is in effect) To align the daily chart candles with New York close (5pm ET) IC Markets server time and charts are GMT + 2 or GMT + 3 when daylight savings is