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, 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
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
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
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
  Traders joking, the beginning  (7329   1 2 3 4 5 ... 732 733)
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...
Hi - for some reason, my MT4 is not compiling. I'd be super grateful if someone could help compile this into an ex4. Any help very gratefully received, thank you. Love and Light //+------------------------------------------------------------------+ //| EMA + Stochastic Trend EA with Customisable
I am trying to make a Indicator based on the RSI + BollingerBands + MA My Indicator doing great job by creating Arrows and Vertical line for Signal when matching the conditions but the problem is it not showing RSI, Bollinger Bands and MA in Chart. Currently it showing like this : I want like this
Please Help. Please Guide. I am running windows 10. I am posting here because I am stuck Running MT4 on 43 inch 4K Monitor and need Help as I can't return this Monitor. I do not face this issue on 32 inch Full HD Monitor anytime. I bought a 43 inch 4K Monitor. But the Candles appear VERY THIN with...
What is the most efficient way to get unlimited Stochastic Alerts? I wanted to get notifications when bitcoin or ANY altcoin returns back from below 20 or returns back from above 80 in stochastic (I also would be interested in forex Stochastic Alerts etc) Is there a way to get these Stochastic
Is there some sort of valid reason as to why MT4 ( Version 4, Build 1440 ) has, all of a sudden, decided to continue to tell me that my SMTP credentials are incorrent, despite the fact that they're not, MT5 does not have any issue with my credentials whatsoever? There is no reason that I can work
Good evening, fellow MT4ites! So up until last week (November 2020) my MT4 platform (Version 4.00 Build 1311) suddenly seized sending email alerts. My SMTP details are correct, including the port number (587). I used SendGrid and now I'm using Sendinblue to see if it was an issue with SendGrid
  From mt5 to mt4  (2)
Hi . I had mt4 years ago ,upgraded to mt5 a couple of years after and now I want to go back to mt4 only problem is that even after deleting all data and uninstalling mt5 when I download mt4 the I can't install custom indicators any more (They just don't show up in list of indicators in the trading
I am writing an mql4 EA that adds a custom indicator to multiple charts Since mql4 does not have ChartIndicatorAdd(), I used a .dll work-around for the first chart, then saved template and applied template to other subsequent charts Now I intend to study the nature of the objects the indicator
Hello guys hope everyone is having a good week. Am trying to add a timer interval for alerts and notifications on this indicator whenever it crosses above or below the PDH, PWH, PDL, PML etc. Currently it will keep alerting nonstop as long as prices crosses either one of this levels. I'd really
[Deleted]
  custom indicator editing  (13   1 2)
Hello to you all ! I am in the middle of developing a trading strategy that uses this wonderful MT4 platform. I am by no stretch of the imagination any type of programmer but can understand a little about the basic meta-editor. I have a question that I am hoping you may be able to help me with. I...
Hello, Article URL : https://docs.mql4.com/constants/chartconstants/enum_timeframes These timeframe only work with offline start or it also work with live market? if ( iRSI ( NULL , PERIOD_M1 , 14 , PRICE_CLOSE , 0 )>overbought) OrderSend (x,x,x,x); This works fine. But these additional
how to install mql indicators if multiple mt4s on 1 computer, i have pepperstone mt4 platform and fusion markets mt4 platform on my 1 computer, if i have install purchase indicator through mql website and have install those paids indicators on my pepperstone mt4 platform how do i install the same
Hello, On the 22 Nov, the beta version 4 of MetaTrader is scheduled to be released. Check it out! Let's see whether current version of API will work or not. Cheers, Scorpion
I am redesigning EA, so it can have more accuracy and flexibility. Original code : if ( iRSI (gRandomSymbol, PERIOD_M1 ,RSI_Period,RSI_AppliedPrice,RSI_shift) > RSI_UpLevel && iRSI (gRandomSymbol, PERIOD_M5
Hi! I really wanted to use Metatrader 4 with my MQL5.com Market EA but I lost control of it, I can't find most buttons, I would need to reset it. Is there a way to erase it and start a new one from scratch? Can someone help? Thank you
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
Hi, I am getting the following message repeatedly - every seconds - in the "Expert" folder of the MT4 trading platform. GBPUSD,H4: Check if automated trading is allowed in the terminal settings! How to stop this ? Will it helps if I restart the VPS ? If so, how to do that ? Please help ! Thanks
I am checking iRSI indicator with timeframe M1 to D1. for this i am using string gRandomSymbol = "EURUSD" extern ENUM_APPLIED_PRICE RSI_AppliedPrice = PRICE_CLOSE ; extern int RSI_Period = 14 ; extern int RSI_shift = 0 ; extern int RSI_UpLevel = 80 ; extern int RSI_BelowLevel = 20 ; extern bool
I'm just learning to code. I'm just trying to write a script right now. I want to draw a blue vertical line whenever the MACD line crosses up over the signal line and draw a red vertical line when it crosses down. It seemed to work except that it skips some of the crossovers. Plus there are some
  Drawing Box  (1)
Hello, Has anyone had any experience with drawing a box from the open to the close of the 8 am candle, each day; and then extend it to 5 pm in mt4? Thanks
why i can't set or get to see any push notification for my open orders, closed orders, trades etc on my MT5 mobile app ? How to set that
Why did you post your MT 4 question in the MT 5 General section (a miscellaneous catch-all category) instead of the MQL 4 section , (bottom of the Root page )? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place
The EA will not open the second order when the first loss level is reached. I have attached the full code and highlighted the relevant section in white. Any hint or pointing in the right direction will be much appreciated. Thank You