MQL5 Algo Trading community — forex forum for traders and developers

The updated MetaTrader 5 platform will be released on Friday, April 17, 2026. This release introduces the first stage of enhancements to the main trading dialog. It now features a more modern design, an integrated Depth of Market, and more convenient switching between operation types. Future updates
I've been running live EAs for a while and kept running into the same blind spot: by the time I notice performance degraded, I'm already 10-15 trades deep into the drawdown. Looking at the equity curve doesn't catch it early — too noisy. What I've started doing is comparing live trades against the
Hi, where i can download random trader ea mt5 ( set TP , SL and Lots) and trade every hour (h1)
Hello Everyone ! My MT5 Desktop app is now completely screwed after the recent update. It is now sluggish not responding to even the basic EAs and gets stuck rendering it totally unusable. So much so that even the windows explorer gets stuck. I have tried all solutions from re installing , windows
This is my first time to use MT5. I cannot run the algo trading even I switch on the algo trading button with my demo account. How to run the algo trading probably? as per attached. CYT
On Friday, February 27, 2026, an updated version of the MetaTrader 5 platform will be released. This version improves operations with proxy servers . We have enhanced HTTP and SOCKS5 protocol support to reduce connection errors. The outdated SOCKS4 protocol is no longer supported. We have also
How do I log in to MetaTrader 5 when I am registered on the MQL5 website via a Google account? I don't know my password and probably my login. What should I do? I can't register because my gmail is already in use. I can't change my password because I don't know my current one and when I want to
Hello MQL5 Support Team, I have recently uploaded an indicator to the Market, but I mistakenly used an incorrect product name during submission. I kindly request you to update the product name to the correct one as mentioned below: Current Name: [edit] Correct Name: [edit] This indicator is part
I cant load a screenshot and I dont know why. Ok, I have loaded a screenshot but it is not marked as a loaded. The system still demands to load. And there are exactly 750x500 in the screenshot. Because of this a cant upload code to CodeBase, it only has 20% of end
Hello, My article is stuck at “5. Article – 25%” and the “Send for Review” button does not appear, although all steps are completed (images, headings, formatting, preview image, etc.). This seems to be a known article wizard state issue
MetaQuotes has launched new MQL5.community information channels on Facebook, X.com (Twitter), and Telegram. These channels provide daily publications of relevant technical materials from the MQL5.com Articles and CodeBase sections. They are designed to promptly update developers on algorithmic
Hello all, I am trying to deply a data mining capability on my past trades. I am running some EAs and I want to create the dashboard that would show me information such as: winning/losing hours, winning/losing days, winning/losing pairs, etc I know that most likely I will have to design/set up the...
I’m not receiving the verification sms nor telegram code to verify as a seller
When I try to install MT5 this comes up. Have downloaded it before with no problem. What can be the issue (without the obvious that I already checked)
Hello When purchasing and installing a paid Expert Advisor from the Market in MT5, can I copy the Expert Advisor file from the Expert -> Markets folder and transfer it to another MT5 terminal on the same computer? I can then copy this file to the Expert folder. Will the Expert Advisor work on the
I’m not looking for recycled opinions from YouTube or X. I want to hear from traders who are actually in the trenches—building EAs, testing ideas, filtering noise, and continuously trying to understand how the market really moves. If you’re one of those people, I would truly value your perspective
In Forex market, it is important to know the return of your investment even you are a scalper to be able not to be discourage to the result of your trade
In my case a tried a trading equal highs with an EA and it didn't go well
Is it possible? made my idea and backtest always give poor or negative results But on a real account it always challenge me with every loss I say "failed on backtest and now is time to break on real" but seems challenging me to not break, and after every loss it start making winnings again until
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
Why do many EAs fail while the same strategy works perfectly in manual trading? Manual trading lets us adapt, filter trades, and read the market in real time. EAs, on the other hand, follow strict rules — they can’t “think” like a human. Automation often reveals the gaps in a strategy rather than
If account is going maximum drawdown then what is the best idea to short out this panic situation as well as what is next step to do for continue in market
If you are looking for EA for trading, which you trust? the live signal of the EA that show real trading activity and performance? or the backtest
  What strategy actually works?  (120   1 2 3 4 5 ... 11 12)
Guys, I have been trading since 2011, I have tried nearly 2000 strategies, I have build almost 2000 Eas and indicators, on this olatform and on other platform, but I have not really found what works, what actually works? and does such a thing exists
Hello everyone, I am testing a range-based Expert Advisor on a few instruments. The EA avoids overtrading and stays inactive during low-volatility conditions. During holiday periods or very quiet sessions, I prefer to keep the EA attached and let it follow its internal rules rather than interfere
I have been testing my EA performance on a signal And like any trading system can have days of winnings and days of losses The only thing I noticed that when I use new account and be a winning day, or most trades are winning the reliability of signal be low ( 1-red or 2-orange ) But when start the
" automated trading " means different things to different people, here I mean a system that detects good trading situations and then places an order and closes later after some conditions are met. It seems to be possible to create a profitable system, but so far I haven't had much luck. some big
  hedging TP/SL  (9)
Hello, Is it 100% sure that we can set the TP 7 pips, ZOne like 4 pips and SL 3 pips in hedging strategy ???? Or TP an SL MUST be the same
What is the average someone can get from a gold xauusd scalping EA daily with low risk
Before downloading Volume Weighted Averape Price (VWAP) indicator for MT4 on MQL5, I was made to create an account, and a password was generated for me. I used the password to login, and saw a message that looked like MT4 terminal should be open. Since it was already open, the script ran through
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
What is your Preffered Syle of trading? Swing Day Or Scalping? What EA would you prefer for developers to make you assuming All of the work and are profitable
  We use Bitcoin ;)  (493   1 2 3 4 5 ... 49 50)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
  BTC  (4)
Does anyone here trade BTC
  Nasdaq
Does anyone here trade Nasdaq? What leverage do you get from your broker
If you invest in stock portfolio or asset management firm, and you have 2 options 1- Long only : go long with bullish market only ( lower return ) 2- Long-Short : go long when bullish and short when bearish market ( extra return from shorting ) When strategy short stocks it expose your portfolio to
For the past weeks I've been developing an EA based on SMC, multitimeframe liqquidity-sweep: Stats are good IMO, DD < 10%, good sharpe ratio, etc... But I question myself about this being more stable? Such as diversifying. My main problem is choosing a variety of pairs, i.e: EUR/USD GPB/USD USD/JPY
"Hello, I am interested in publishing an article on MQL5.com, but I am facing some challenges in getting it through the initial review process. Could someone please guide me on the specific technical standards or formatting rules I should follow? I want to make sure my code examples and explanations
I was doing trading and leave the screen for some minute and I want to back check the history. Is there any tick data or tick data based back check method
i wanted to ask this to the website admin but there's no way to contact them other than the chat bot. does anybody know if as a signal provider i can sell stock signals or is it only for forex
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
  Simple trade automation?  (15   1 2)
I used to use metatrader4 when I was messing with Forex, but I have funds that I'd like to use out of my stock porfolio to trade one particuarl stock which goes up and down $1-2/day pretty much all the time. I'd like to set metatrader up to say, sell at a certain price, then buy at $2.00 lower, then
  Who are the resistance?  (17   1 2)
If BTC/USD has support at $68,000 and resistance at $70,000, what type of group or person would keep dumping at $70,000 when they make very little profit from a buy at $69,000
  Indexes disabled  (4)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
After the last MQL update on MT5 (5273 12 Sep 2025) //--- Show all the information available from the function AccountInfoDouble() printf ( "ACCOUNT_BALANCE = %G" , AccountInfoDouble ( ACCOUNT_BALANCE )); printf ( "ACCOUNT_CREDIT = %G" , AccountInfoDouble ( ACCOUNT_CREDIT )); printf (
void OnTick () { auto.s5 = 0; for ( int k = total0 - 1 ; k >= 0 ; k--) { if (position.SelectByIndex(k)) { tk = position.Ticket(); if (tk <= 0 || tk != position.Ticket()) break ; int otyp = position.Type(); if (otyp != POSITION_TYPE_SELL
My mother language is Arabic, I will try to make this article as simple as possible, away from technical jargons. This article is about using two Python scripts (master_client001.py and slave_server.py) to copy trades locally (at the same PC or Laptop) between two MT5 platforms (Master and Slave
  Python in algorithmic trading  (234   1 2 3 4 5 ... 23 24)
MQL5 is a programming language that is specifically designed for creating high-performance trading applications in financial markets. It offers faster speed and superior performance compared to other specialized programming languages used in algorithmic trading, and its syntax is similar to that of
  How was your first EA developed?  (63   1 2 3 4 5 6 7)
For me was very hard, it took like 2-3 months, the thing that helped me the mos wast replicating a pattern that I watched in the market: High of the day + M15 sweep / Low of the day + M15 sweep Firstly backtesting it a lot and then taking screenshots of the pattern, then started coding and learning
[Deleted]
I purchased a EA. it is based on ATR but when i reviewed the code, there is no iATR function. it have double fATR( string sy, ENUM_TIMEFRAMES tf, int ATRper, int shift) { double atrBuf[]; ArrayResize (atrBuf,ATRper+shift+ 1 ); int i=ATRper+shift; while (i>= 0 ) { double high=
Hello Everyone. I have created this Renko chart generator for MT5 because I have searched for a good Renko chart generator for a long time and I did not find one , so I decided to build my own and share it with the mql community for FREE. You can find it attached. If you want any improvements let me
Hi Fellow I am facing this error and any help to avoid this will be highly appreciable. Seems hardware compatibility issue: ___________________________________________________________________________________________________________________________________________________________________________
  Starting a new EA  (16   1 2)
So my name is Christoper. I am from Scotland. I have recently started trying to design an EA to get off a building site. I am an engineer so trying to adapt that and to a different part of life get me off this building site I have recently created a EA that has 1.79 profit factor a drawdown of 0.40%
Expert Advisors must be flexible in trade environment. Most advisors don't have any strategies and they are not flexible.. I am trying to find best trend strategies to use, do you have any ideas, let's talk about it
It's possible to have a good entry system, but we have to think about the hard part which is knowing when a trade should close. - Fixed take profit is a random number of points. If it is large, the market might go up and go down again causing you to lose the profit. If it is small, you might miss a
Hey everyone, I’ve been working on a few high-frequency EAs lately, mostly geared towards passing prop firm challenges. Some of my systems are pushing out over 10,000 trades a month. I ran into a massive bottleneck with tracking live, real-tick drawdown. Standard MT4/MT5 mobile push notifications
  EA Time Trouble  (2)
Is matching the EA time with the broker’s time one of the biggest challenges
  Look for Best EA  (21   1 2 3)
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
When testing an EA in the strategy tester, code changes after the first test do not seem to be reflected correctly in subsequent tests. Example scenario: 1. In the settings tab of the strategy tester, I select the ex5 file of my EA, symbol, period etc. In the input tab, I set the input values. Then
I'm trying to execute trades on VTMarkets MT5 using Python API. Every order returns error 10030 "Unsupported filling mode" regardless of which filling mode I use. What I've tested: Different order types: ORDER_TYPE_BUY / ORDER_TYPE_SELL (market orders) ORDER_TYPE_BUY_LIMIT / ORDER_TYPE_SELL_LIMIT
Hello All, I am still struggling to port what I perceive as useful mq4 indicators to mq5. I had help on my last attempt but chose quite a complicated indicator and 'am saving it for later'. This indicator is far simpler and I can tell from the debug I have included it is locating signals and
Does anyone know the source code for this metric? I would be very grateful for any help
RSI is a very good signal specially when use 70-30, but sometimes it can be early signal and enty at that time would lead to some drawdowns before the right direction start Am looking into any indicator that can help to avoid this situation I tried most famous indicators and no one helped Any
Hello guys, I am wanting to join two indicators in order to make a backtest, there is this possibility? Or will I need to hire a programmer to join the two in an EA, to then be able to make my backtest? I await help! Thank you, Danrop
I'm LOOKING for the BEST REVERSAL INDICATORS PLEASE
While converting my MT4 indicator code to MT5, I came across a strange issue where the arrows disappeared when a new tick came in. Could anyone help with this? When I hit [z] key to activate indicator display, peak high and low arrows appear on chart, but soon after when a new tick comes in, they
Is it possible to work with txt, csv or other files in the testing strategy? If so, how
Here's what I see when I start the MT5 terminal, also when its running but my internet connection is interrupted. The indicator plot shows briefly (subsecond) and then disappears: All I need to do is switch the timeframe of the chart to anything and then back and the window shows up like it should
Hi, I'm using a gold market expert with an exceptional opinion of mine, whose name I won't reveal for the sake of fairness. He has only one serious weakness: he's unable to react correctly when the market experiences sharp price drops like those seen in March. I'd like to know if you know of an
Hey guys, I have the following problem and it seem I am not the only one. I cannot change the colors of indicators. I can change text in a text field , but if I double click the color fields, nothing changes. No menu appears. It is with all indicators. What is the solution? Thanks
Some of you might remember this one : originally it was a part of an expensive system. Than it was coded as dots because of the repainting problems in metatrader. Here is a version for metatrader 5 : slightly changed the look of it (Bollinger bands is drawn as the "shadow" in the background) Also...
Hey guys. I need some help. I need an indicator that will set a horizontal line on a chart and essentially alert me when price hits it. I've scoured the internet and tried most of the line alerts available but they're not fit for purpose. Issues i've found with other line price alert indicators is...
[Deleted]
  Multi Timeframe Indicators  (12253   1 2 3 4 5 ... 1225 1226)
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot
Hi! I was developing an indicator of DRAW_COLOR_ARROW type and I noticed the arrows I was using looked misaligned. Thinking it could be something of those arrows especifically, I decided to change them to another set, and they still looked misaligned. So I took a print screen, put in Paint, added
Hi! I'm developing an indicator of the "separate window" kind that has an input variable where the user can choose between different visualization algorithms. In one of those, I need the maximum and minimum value to be set fixed (3.0 and -3.0 specifically), while in any other algorithm it's not
Market Clock Pro : Candle countdown HUD with trading sessions (UTC), live spread and anomaly detection, daily range vs ADR, and market-closed state with reason (holiday / weekend / session). Holidays calendar included for seven major markets. Author: Marcelo Alejandro Borasi
Easy Range Breakout EA - MT5 : This EA implements a range breakout trading strategy. It calculates a price range between start and end times defined by the user, draws a visual rectangle on the chart to mark the high and low of that range, and then monitors price action after the range closes. If
Institutional GARCH(1,1) Volatility Forecaster : A predictive quantitative engine that replaces lagging retail ATR, it utilizes the Nobel-prize-winning GARCH(1,1) econometric model to mathematically forecast future market volatility and variance. Author: Amanda Vitoria De Paula Pereira
ASQ Session Manager : Institutional-grade forex session detection and analysis library for MetaTrader 5. Author: Muharrem Rogova
Check out the new article: Developing a robot in Python and MQL5 (Part 1): Data preprocessing . Developing a trading robot based on machine learning: A detailed guide. The first article in the series deals with collecting and preparing data and features. The project is implemented using the Python
New article New Article Publishing System at the MQL5.community is published: We present you a new article publishing system at the MQL5.community. In the new system, we have tried to make the whole process of article writing clear and comfortable by breaking it into several steps. At each step we
Smart Trend Follower : This EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic
Check out the new article: Fractal-Based Algorithm (FBA) . The article presents a new metaheuristic method based on a fractal approach to partitioning the search space for solving optimization problems. The algorithm sequentially identifies and separates promising areas, creating a self-similar
Basket Manager EA : This EA is meant to impose a few rules to manage baskets. Author: Yashar Seyyedin
Check out the new article: MQL5 Wizard Techniques You should know (Part 86): Speeding Up Data Access with a Sparse Table for a Custom Trailing Class . We revamp our earlier articles on testing trade setups with the MQL5 Wizard by putting a bit more emphasis on input data quality, cleaning, and
Check out the new article: GoertzelBrain: Adaptive Spectral Cycle Detection with Neural Network Ensemble in MQL5 . GoertzelBrain combines Goertzel spectral analysis with an online‑trained neural network ensemble to convert cycle features into a directional confirmation signal. The indicator builds a
BGC Grid EA : Regime-adaptive grid EA with three operating modes (BGT/TGT/MGT), ATR-dynamic spacing, CUSUM change-point detection, equity-based cycle management, and a full CSV diagnostics pipeline. Based on the Bi-Directional Grid Constrained (BGC) stochastic process research by Taranto & Khan
VR Locker Lite - Trading strategy based on a positive lock : Works using a positive lock; the trading robot creates one positive lock, and the trader decides what to do with it. Author: Vladimir Pastushak
Check out the new article: Larry Williams Market Secrets (Part 11): Detecting Smash Day Reversals with a Custom Indicator . We convert Larry Williams’ Smash Day reversal rules into a practical MQL5 indicator that flags confirmed setups with arrows. Step by step, the text shows buffer binding, plot
Hello, My article "The Science of Round Numbers: Implementing String-Based Liquidity Detection in MQL5" has been stuck in the " Ready for proofreading " status for more than 20 days. ​I have tried contacting Service Desk but received no specific update. Could a moderator please check if there is
I’ve been having a problem for the past few days with installing MT4/MT5. During the installation, a proxy window pops up, which has never happened before. When I click Cancel, the installation stops. I also can’t download a newer version from the broker — I get some kind of proxy page error. It
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
Hi everyone first post. There's a bug in strategy tester where it flat out refuses to test the date range you've selected and goes with just a small portion of it. No doubt we've all experienced it - is there a fix? I understand why it happens when there's a chart problem ie not enough bars in...
Hello, I need help with this idea , i'm trying to create a on-chart multi-currency backtester , that iterate over time and symbols , and get the bar shift using iBarShift . the problem is i'm getting inconsistent shift results , what i expected was to get the shifts in order from whatever start date
  Expert Advisor  (2)
Hello I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index
hi i made this expert with function and it is not work but without fuction it work very well so i want to know the wrong in this function //+------------------------------------------------------------------+//|                                                    MYFIRSTEA.mq4...
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
[Deleted]
I have searched the forum and cannot find a simple explanation of how to do this. I have downloaded my broker's MT4 to my VPS. If I want to create a second, or multiple 'instance of MT4' with another desktop shortcut and separate broker account, what is the easiest way to do this? I assume i can't...
  Interesting and Humour  (49772   1 2 3 4 5 ... 4977 4978)
Members of the forum, don't forget to follow the rules
Hello, Do you listen any music while you trade? I have tried with many different kinds, but I think classical music is the most appropriate to remain discipline focus and calm . Any replies are appreciated. Let's start
  Telegram.mqh  (5)
I am trying to send trades to telegram. I have everything setup in telegram but can’t find telegram.mqh fir mt4. Is it something I need to create myself
Greetings dear Coder, Please help with a way to diplay emojis on MT4 Chart using an EA. In MT5, this is possible using the following code: ObjectCreate ( 0 , "Lips" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "Lips" , OBJPROP_CORNER , CORNER_LEFT_LOWER ); ObjectSetInteger ( 0 , "Lips"
I have a strange problem with MT4. I received a hyperactivity warning today in my live account and don't understand where that is coming from. I contacted the broker(ICMarkets) and they told me server messages are due to open/close of market and pending orders and stop modifications. Alright, BUT
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
  How to trade?  (1)
How to trade