MQL4 and MetaTrader 4

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
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
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
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 MT4 programmers, I have indicators that create objects.  For a few of my indicators, I might add more than one (of the same indicator) to a chart. A problem will occur if the indicators both create and delete the same object names.  Therefore, the usual workaround is to use a user-defined...
Hi, I have an issue... I have no idea on how to overcome this. One EA on a MT5 client have been running for months with good results. Now for some reason it has.Not taken a single trade since July started. Nothing have changed in the settings, just stopped trading. So I setup a completely new and
Hello experts I want make two dropdown list inputs in first one will select a list from main lists and the second input will show the list that selected in the first input when assign the second input to the first one I got constant expected error. enum List1 { ITEM_A, ITEM_B, ITEM_C }; enum
Please help me add selllimit and buylimit orders to this line of code so that I can place both stop and limit orders at the same time. Thank you <Improperly formatted code removed by moderator>
  HFT bot  (2)
I can’t install my HFT bot on MT4 terminal
Hello everybody, I'm developing a tool to backtest my EA and I want to change the symbol, the time frame and the spread in the MT4 strategy tester automatically by mql4 code. How can i refer to the symbol, the time frame and the spread in the MT4 strategy tester in mql4 code ? Thank for your idea
  Ema Cross!  (858   1 2 3 4 5 ... 85 86)
Hi folks, Could somebody tell me what does he think about this simple EA? It works good in metatrader back tester . Note : The back testing optimized for the maximum accuracy results
  indicators issue on mt4  (17   1 2)
Hi Guys. I bought some indicators few years ago. Everything was working perfect until about 3 months ago. When my mt4 in not running for few days and when I want to open it, it freeze. I already noticed that when I delete the indicators that I bought from MQL4 then mt4 is opening with no problem. So
Please Guide Me To Programming in MQL4: I Want to Define Selected TimeFrame and Loop for this How to Programming this? is this false? enum ENUM_TIMEFRAMES timeframe [5]= {PERIOD_H4,PERIOD_H1,PERIOD_M30,PERIOD_M15,PERIOD_M5}; for(timeframe = 0; timeframe < 5; timeframe ++ ) { . . . }
Intro. So I have a setup whereby a chart button is displayed on the chart only from which the order was executed from. Within the button, there is text which displays the ticket number, as well as the running profit. The button comes in two parts, the Static Attributes and the Fluid Attributes: the
By the way, you have to keep an eye on him because the minimum stop changes from 2 to 20 and he keeps on placing bets but does not put them in the free flight, they need help him at this point to close the bets in profit! The best time to trade is in a dynamic corridor! this way you gain......! 1
I am using #resource directive for importing a technical indicator . The code on compilation always shows the error "Unknown Resource Type". It would be great if anyone could help me. Thanks in advance
  Elite indicators :)  (15191   1 2 3 4 5 ... 1519 1520)
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
Right, I just do not get the logic behind why MQL4 is outright refusing to display the correct order position information on the correct chart, as in the chart with which the order was placed upon. I just do not get why - despite the fact that I have specifically told it to loop through ALL of the
Hey programmers I don't get any further with my simple webrequest to a google drive file, to just pull out a simple word, how the sentiment of nas100 is. (https://drive.google.com/file/d/1Cu9HVjzxKZoZ5E1z_hYL1wO0pKWfz2jC/view?usp=sharing) I always get an 404 Error when trying to access the file over
how to add crypto symbols to meta 5
I ordered EA multiplied ATR trailing and There is some problem to make it work for me.All seems to be good to go but nothing happening.I believe EA works fine.Looking for someone Who would be able to give me some helpful hand and explain what am i missing or doing wrong about goal i am trying to
I am unable to download any indicators from the market for MT4. When I select download, it will ask if I have MT4 installed then I select the "Yes I have MetaTrader 4 installed" button but then nothing happens afterwards. Please advise on how to resolve this
Hello there, I'm working on the converting the MT5 version of my EA to MT4 version, and it's not reacting the same on MT4. Basically it's an EA to do manual backtest on the strategy tester. As you know the OnChartEvent() function doesn't work on tester, so instead I'm using the OnTick() function to
Hi, I have been trading for a few years, and finally decided to take the plunge and learn more about building Expert Advisors. Playing around in - Bots Builder - has helped a lot. I used it to construct a very basic EA. The next step is adding a License Check Function - where the EA expires after 30
I have contacted the service desk about this issue. This is what I sent them.... Hello, Please either remove the option to download MT4 from your website or fix it so that it does actually download MT4 and not MT5. We are getting sick and tired of answering the same question over and over again
Hi, Could you give me mt4 multiterminal platform and regular mt4 platform I could not find it on the web. Thanks in advance
Thanks you very much
if ( ObjectCreate ( 0 , "UpArrow" +Time[i], OBJ_ARROW_UP , 0 , Time[i], Low[i])) { ObjectSetInteger ( 0 , "UpArrow" +Time[i], OBJPROP_COLOR , clrDodgerBlue ); ObjectSetInteger ( 0 , "UpArrow" +Time[i], OBJPROP_ARROWCODE , 233 ); // Arrow code
haha gotcha! but actually, I can't run back testing on my EA's in the weekends, because I use 'MODE_TICKVALUE' in my calculations; and if the markets are closed, it pulls the 'live' value for that 'constant'; which is ZERO. you got me good, MT4. double tickValue = MarketInfo( Symbol ()