MQL5 Algo Trading community — forex forum for traders and developers

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
  Off-topic posts  (1748   1 2 3 4 5 ... 174 175)
Comments that do not relate to the " Ask for help ", have been moved into this topic
Hi, i know that terminal could set prev_caclulated=0 when " If the price data have been changed since the last call of the OnCalculate() function (a deeper history has been loaded or gaps in the history have been filled), the value of the prev_calculated input parameter is set to zero by the
  Help  (25   1 2 3)
How do I contact mt5 customer service I have sent couple emails over 2 weeks ago still no response im having issues with metatrader5 app
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
This thread will discuss undocumented methods of working with the mql5 language , examples of solving certain problems. It would be desirable, that this branch on the maintenance was closer to FAQ, than to discussion. I suggest that all experienced programmers share their solutions and programming
tried customer services but they closing ticketwith 48 hours and i have to wait for one reply like 5 days. so i bought this EA GBPUSD for 499 usd and now has gone from this platform i need help to sort it out please
when i click on market its show nothing in my Desktop MT5 application plz guide me whats wrong , i have updated version also i have un installed and installed again
I am trying to withdraw using a credit card and it's always refused. The Service Desk keep repeating "Declined by issuing bank". So I contacted the card provider, and they said they never received any request (I had to ask 4 times). So I asked again to our dear ServiceDesk and they said it's
  Become an Author at MQL5.com!  (224   1 2 3 4 5 ... 22 23)
The new MQL5 Community website at http://www.mql5.com keeps developing. We invite all of you to make your contribution to this development. The new MQL5 is the evolutionary continuation of MQL4. The new language is characterized by the support of object oriented programming, by a higher code
MetaQuotes has once again demonstrated its leadership in creating innovative solutions for the financial industry. At the Forex Expo Dubai 2025, held on October 6–7, the company received two prestigious awards: MetaTrader 5 was named Best Multi-Asset Trading Platform Including Web and Mobile
Hi, when installing the latest version of metatrader 5 the message "a debugger has been found running in your system" is shown and the installation aborts. steps to reproduce: wget https://download.mql5.com/cdn/web/metaquotes.ltd/mt5/mt5setup.exe rm -R .mt5 export WINEDEBUG=-all WINEDEBUG=-all
1 EA only — no conflict issues, 1 EA per account — I prefer splitting my capital across accounts, 2–3 EAs — I manage manually, 4+ EAs — I built my own coordination logic, 4+ EAs — honestly, it's a mess
The MetaTrader 5 platform update will be released on Friday, January 30, 2026. In this version, we have improved ONNX support in MQL5. Models now run significantly faster on GPUs with CUDA support. In addition, we introduced support for new flags and revised the library workflow: ONNX is now
Tens of thousands of traders use MetaTrader 5 VPS as a secure, reliable and fast hosting solution for automated trading. Recognizing the growing popularity of the service, brokerage companies approached us for the possibility to utilize VPSs to reward loyal users. This is how the Sponsored VPS
" 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
Has anyone actually used an EA for passing their prop firm challenge and maintaining their prop firm accounts over a long period of time? If so, do you have proof? Trade history on myfxbook, for example? Thanks
Please somebody help me with this. I know that this is a simple and basic ,maybe even stupid question to ask ,but it still give me a headache. Anyway , here it is: What is a tipical(average,expected whatever you want to call it) spread on XAUUSD preferably on ECN type accounts. Of course ,i know it
Risk/money management, Handling market irregularities, Emotional control (trusting the EA), Finding a consistently profitable strategy, Backtesting accuracy
Hello traders, I have been working on algorithmic strategies for XAUUSD (M15 timeframe), and one of the biggest challenges I face is controlling drawdown while maintaining solid profitability. In your experience: - What risk management techniques work best for gold? - Do you prefer fixed lot or
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
Over the years, I’ve tested and observed many Expert Advisors, especially on XAUUSD. And there’s something that keeps repeating itself again and again. Most EAs that show amazing backtests on gold rely on some form of martingale or grid logic. At first glance, everything looks perfect: high win
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
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
HI,Which strategy is best for BTCUSD
I’d like to discuss the difference between what we often call a “strong breakout” and a “false breakout”. What criteria do you personally use (candlestick body size, volume, retest behavior, multi-timeframe confirmation)? My observation: sometimes a breakout above recent highs comes with strong
  All About Price Action  (64   1 2 3 4 5 6 7)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
  MetaEditor, Open AI and ChatGPT  (94   1 2 3 4 5 ... 9 10)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
How can be the best professional developer
Hello everyone in the Trading Systems section! I'm trying to improve a simple trend-following approach specifically for XAUUSD (Gold), and one big issue I'm facing is too many false signals/entries during high volatility (news events, sudden spikes, choppy ranges). What I've tried so far: Using a
  We use Bitcoin ;)  (492   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...
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
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
"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 (
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
Want to trade gold and silver on spot not futures .. i tried futures algo trading on ninja.. too much loss on slippage. Any ideas what are others doing
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
i been using amp for future trading from last two years in usa but from last three days i been noticing disconnection of data feed in live trading for almost 30 seconds to 1 minute, is anyone else have this issue
#define func(arg1, arg2) Print (arg1); arg2; func( "Hello" , ExpertRemove ()) // fine func( "Hello" ,) // Warning Makes no sense for me. There are many cases, when I explicitly do not want to have the second argument, but I also dont wanna mess up my code with even more macros with different names
I'm looking for Expert Advisor for MT5 that can help me: 1. to set tp, sl automatically (which my tp and sl are always fixed, like when I set limit, tp & sl will always be 100pips) 2. change my sl to entry point (breakeven) when some conditions triggered (when order running between utc 1400 to 1600
Hi guys i want read my ini file created inside of File folder of metatrader5 , is possible to do that exist a ini command for doing
Hello my name is Bruce , I'm trying to build a portfolio EA that trades one order at a time, open to close, in SQX 141. I used Market pos. count = 0 and ended up with two open trades , hoping someone has the answer, I'm using MT5 hedging. Thank You
Hi everyone, I have a strange problem with an Expert Advisor in MetaTrader 5. The EA is a purchased EA from the MQL5 Market . On PC 1 , everything works normally and the EA places pending orders immediately . On PC 2 , the EA loads and initializes successfully , but it never places any pending
I have an EA which makes decisions based on several diferent symbols. The primary symbol the EA is attached to is EURUSD, but it uses tick data from EURCHF. USDJPY, XAUUSD,... I use CopyTicksRange() to get data from other symbols. And this works fine when trading live. However when I attempt to use
I think, since after I have imported Dukacopy tick and bar to severals custom symbols, my local network farm agents became "not used". Is there a way to use the remote agents for non customised symbols? I have tried to use local symbols, ochl in local terminal and yet connect to agents are still
  Look for Best EA  (11   1 2)
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
I've recently seen quite a few updates to Integration with Python, including various functions. Does it can be used in back testing? According MQL5 Reference, I found that there is no such function. At the same time, Socket functions can not be used from the Strategy Tester. Is there a way to
I just discovered an error when decoding base64 code after updating the terminal (in previous versions this error was not encountered) string Base64Encode( string text) { uchar src[], dst[], key[] = {}; StringToCharArray (text, src, 0 , - 1 , CP_UTF8 ); ArrayResize (src, ArraySize (src) - 1 );
Hi all. I am migrating my EAs from MT4 to MT5. Yesterday I ran some back testing and worked fine. Today I get this error. and MT5 won't let me run optimizations. Says: - debug version of "Advisors\EA.ex5" detected - optimization cannot be started Thank you in advance for your time
  Gold BOT on MT5  (1)
Subject: Gold BOT on MT5 Hi everyone in the MQL5 community, I’m currently developing an Expert Advisor (EA) called ConvexCap GoldBot for MetaTrader 5 (MT5), specifically tailored for trading XAUUSD (gold). The goal is to create an automated scalping strategy that capitalizes on gold’s high
  EAs wont place trades  (11   1 2)
Hi I am new to MT4/MT5 and I'm trying to backtest some EAs. There are a couple EAs I've tested that will place trades like the <Deleted> bot but I tried 4-5 others and they all fail to place any trades. I noticed in the journal that the bots do not initiate any buy trades but has many sell trades
I've looked for any documentation on what's under the hood of this function with no luck so far. I'm trying to calculate required margin for upcoming positions, and OrderCalcMargin() gives me a different value than the standard calcuation that I'm digging up everwhere else on the web. I'm currently
Assuming there is a stable and verified live trading record, what is the typical price range for high-end Expert Advisors? Would it be advisable to start with a lower price to gain user reviews and credibility, and then gradually increase the price over time
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
I have an indicator that combines the drawing of colored arrows and colored lines. The logic for determining colors and the colors themselves are exactly the same for both arrows and lines. Does each colored plot need to have its own color buffer? Or is it possible to use one color buffer for all
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
  Help for strategy tester  (11   1 2)
Hi i am an absolute beginner i create a small routine that provide once you press sell or buy to put one order and assign a Stop loss automaticatelly at 70 pips distante and a Tp on 140 pips according to 1:2 RR. Another step is to put TP at BE once arrived at 1:1 All this tested on the strategy
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
Title Market validation false failure : " not synchronized with trade server " on minimal indicator v1 .06 Hello MetaQuotes team, I need help with what appears to be a validator -side issue during Market automatic validation . Product Name : Market Exhaustion Indicator Product ID
Hey guys hope everyone is doing well. I got a piece of code here trying to create rectangles to cover FVG zones drawiing from the zone itself to the last closed price. As price is moving printing new candles the box is left behind where it loaded. Can anyone assist draw the box to follow price on
Hey Guyz Thanks in advance for the help and advice on where or what I might be able to do to make the RSI+MA overlay!!! I seen an earlier post that sayd to copy one CODE and PASTE the code on to the other CODE. However I tried this and complied the instrument, came back ok however when...
  Oscillators  (47   1 2 3 4 5)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
Hi, I read that using ArrayCopy on the same array could cause data corruption when the initial source index is lower than the target index, due to the left-to-right copy. I tried, but no data corruption was detected. Can I be sure this won't happen under any circumstances? Here a simple script
  Forecasting indicators  (346   1 2 3 4 5 ... 34 35)
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
On which time frame is it the easiest to count Elliot Waves correctly
Does anybody know if this indicator exists for mql5? My guess is that it does not. All I found with that name was some old one from 2012. I know maybe 30 % of mql5. How hard will it be to convert from pinescript to mql5? 186 lines of code is a bit worrying. Edit. My link from tradingview
Check out the new article: Graph Theory: Traversal Depth-First Search (DFS) Applied in Trading . This article applies Depth-First Search to market structure by modeling swing highs and lows as graph nodes and tracking one structural path as deeply as conditions remain valid. When a key swing is
New article MetaTrader 5 on Linux is published: In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes
ExMachina TradePilot : Professional trade management panel: one-click Buy/Sell with auto lot sizing, smart trailing stop (ATR/Fixed/Candle), automatic breakeven, multi-TP partial close system (TP1/TP2/TP3), and one-click pending orders. All-in-one order management for serious traders. Author
Auto Fibonacci Retracement Levels MT4 : Automatically draws Fibonacci retracement and extension levels based on the most recent ZigZag swing high and low. Updates dynamically as new swing points form. Author: Kestutis Balciunas
Check out the new article: Low-Frequency Quantitative Strategies in Metatrader 5: (Part 1) Setting Up An OLAP-Friendly Data Store . The article outlines a practical data pipeline for quantitative analysis based on Parquet storage, Hive-style partitions, and DuckDB. It details migrating selected
Check out the new article: Unified Validation Pipeline Against Backtest Overfitting . This article explains why standard walkforward and k-fold CV inflate results on financial data, then shows how to fix it. V-in-V enforces strict data partitions and anchored walkforward across windows, CPCV purges
Limit channels : ATR based limit channels - metatrader 4 version Author: Mladen Rakic
Session Range Boxes MT4 - Asian London New York : Draws colored rectangular boxes for the Asian, London, and New York trading sessions with high/low range extension lines. Author: Kestutis Balciunas
Check out the new article: Engineering Trading Discipline into Code (Part 3): Enforcing Symbol-Level Trading Boundaries with a Whitelist System in MQL5 . This article details an MQL5 framework that restricts trading to an approved set of symbols. The solution combines a shared library, a
Check out the new article: Overcoming The Limitation of Machine Learning (Part 4): Overcoming Irreducible Error Using Multiple Forecast Horizons . Machine learning is often viewed through statistical or linear algebraic lenses, but this article emphasizes a geometric perspective of model
New article Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5 is published: One of the most interesting aspects of Self-Organizing Feature Maps (Kohonen maps) is that they learn to classify data without supervision. In its basic form it produces a similarity map of input data
Check out the new article: Developing an Expert Advisor (EA) based on the Consolidation Range Breakout strategy in MQL5 . This article outlines the steps to create an Expert Advisor (EA) that capitalizes on price breakouts after consolidation periods. By identifying consolidation ranges and setting
CRT Indicator(STF) : Explorer : This is a minimalist CRT (Candle Range Theory) visualizer built in under 100 lines, revealing what “picture-perfect” single-timeframe setups actually produce across real markets. Author: Chukwubuikem Okeke
Check out the new article: Market Profile indicator . In this article, we will consider Market Profile indicator. We will find out what lies behind this name, try to understand its operation principles and have a look at its terminal version (MarketProfile). The Market Profile reflects the
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and
An updated version of the MetaTrader 4 platform will be released on Friday, March 13, 2026. This build includes improved interface translations, bug fixes, and enhanced platform stability. The update will be distributed via Live Update
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
Hi, Market tab of my mt4 platform is giving me problems. When ever I tried to select it, it freezes every time. I removed it completely from my computer and reinstalled it but still the same problem. Actually now it has become worse because now I can't access my purchases. Also at mql5.com whenever
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...
I have an EA on MT4 that sometimes opens more than 100 trades on SP500. when EA closes all trades , they do not close at the same time. They close one by one and it takes about 1 to 3 seconds for all trade to close and because of this delay the closing price are different. what should i do to make
Just recently around February 25, 2024 I began getting the above message and now I no longer have access to my EAs; as they won't work without being logged into my MQL5 Community account (they won't load up on the chart) . I have no problem going to my Browser and being able to Login to my MQL5
  Telegram.mqh  (4)
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
When I run my backtest I get the following errors. I am connected to the correct data source
On Friday , March 6, 2026, a new version of MetaTrader 4 will be released. The update includes several important security improvements, bug fixes, and platform stability enhancements. The update will be distributed via Live Update
I cant find a reliable copy of MT4 to download. I try the copy form Oanda and it my computer says error , I'm running windows 11
  Margin Calculation ?  (17   1 2)
At the bottom of the MT4 terminal when the Trade Tab is selected MT4 shows the following parameters: ---> Balance: Equity: Margin: Free Margin: Margin level: <--- My question is "What is the equation used to calculate Margin?"
Greeting , Can anyone help me please with programe lines (code base) to add to my EA -mq4 file simply , I only want the EA to open trades only if RSI value between 65 and 35 for example or 70-30... etc , it would be really appreciated sorry I don't have experience in programming
How can I program triggering a key press/event? For the following use case: Normally one can zoom with the "+" and "-" keys, but I would like to zoom with "q" and "r" and my idea is when "q" is pressed to trigger pressing the "+" key. Or are there better ideas how to create this use case?
I send messages with "SendNotification" to push Alerts from mql4 to the Android Mobile APP. It's working correctly from years. Frome about 1 month i'm experiencing the following behaviour: 1) i send from my mql4 EA push notifications with SendNotification command to my Metatrader 4 Mobile APP
Hello, as in tittle, What code should I add into EA in MT4 to avoid hyperacivity alert in FTMO prop firm? Did you happen to have 200 orders open simultaneously or 2,000 trades/order modifications that day? That's as much as the FTMO servers can handle and will temporarily lock your account for