MQL5 Algo Trading community — forex forum for traders and developers

On Friday, June 13, 2025, an updated version of the MetaTrader 5 platform will be released. It features a number of platform fixes and improvements. MetaTrader 5 Client Terminal Terminal: Fixed graphical interface display issues when running on Linux and macOS . Terminal: Improved the platform
Suggest adding a function for Python to call Strategy Tester. Currently, Python cannot call Strategy Tester and Strategy Tester Visualization, so it is recommended to add this functionality
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
On Friday, June 6, 2025, an updated version of the MetaTrader 5 platform will be released. In this version, we have significantly revamped the MetaEditor source code editor. The built-in version control system, MQL5 Storage, has been migrated from Subversion to Git – the global standard for
Ever since the New update of MT5 trader on android, the chart screen shakes whenever the there is quick market movement. It either shakes up down or sideways. Please see and rectify it
The updated version of the MetaTrader 5 platform will be released on Friday, October 4, 2024. This update follows the major release build 4570 , which featured notable web terminal improvements and introduced new machine learning functions in MQL5. In this latest release, we have addressed several
Since today I am trading one position and instead of making a single position is adding up to the old position. For example I purchase 0.02 of UT100u5 and later I made another trade of 0.02 instead of having 2 positions the MT5 started to add up and now I have 0.04 and with an average price. This is
  How to Start with MT5, a summary !  (92   1 2 3 4 5 ... 9 10)
How to start with MT5 platform : summary. As our topic about " How to start with Metatrader 5 " is going to be huge, here you find a summary, with main links. A very good article to learn how to use this site . How to start with MetaTrader and forex , the beginning , Some news about MT4 and MT5 for
  How to Start with Metatrader 5  (1440   1 2 3 4 5 ... 143 144)
I decided to create this thread to help to myself and to the others to start with Metatrader 5. I am experienced in MT4 and in forex in general (i hope : ) but we traders really need to collect all the information about it in one place. I will make some posts about 'how I am starting with MT5'. :)
We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
There is no subscribe section in signals
i want to remove my payment method from mql5. Tell me how to remove my card
Hi all, Today I have accepted a live MT5 updates, after that the MT5 was re-started and now I am not able to fix the isse below: The procedure entry point and page could not be located in the dynamic link library C:\program\files\metatrader5\terminal64.exe I already tried: 1. Reinstall the MT5 in
Strategy Tester is blank after Ctrl+R. Worked 6/16/25. Tried uninstall/reinstall, deleting temp/logs/Community .dat, updating Intel HD Graphics 520 drivers, reboot. Demo account on Windows 10, Build 5120. Screenshot attached. Need help Thanks
  What strategy actually works?  (32   1 2 3 4)
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, I am sharing my strategy, which I am using for manual trading, and I am planning to build an EA based on this strategy soon. This strategy works for all currency pairs and timeframes, but the recommended timeframes are M1, M5, M15, and M30. This strategy is currently giving me an 80% win
Hi guys, I just start a trading discussion about what the best method to identify trend. We know there are three type of trend: 1. Up Trend 2. Down Trend 3. Sideway. How we identify Trend? Thanks in Advanced
I just started this thread as a continuation of the talking made on this topic (we can read it). Or ...to make it shorter: it was some discussion about forecasting/predicting of the next candle or direction of the movement or market condition evaluation. And it was around standard indiocators in
  All About Price Action  (41   1 2 3 4 5)
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...
  Brainwashing System / Asctrend System  (262   1 2 3 4 5 ... 26 27)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First
  Quantitative trading  (386   1 2 3 4 5 ... 38 39)
Quantitative trading, also known as algorithmic trading or algo trading, is a rapidly evolving field that combines finance, mathematics, and computer science. It involves the use of sophisticated mathematical models, statistical analysis, and computer algorithms to identify and execute trading
Hello, I am experiencing an issue where my signal is disabled despite my login working correctly, and my account is fully operational on MT4. Everything else seems to be functioning properly, so I’m unsure why the signal is not working. Please assist
Hello Every one, I need a simple rsi buy/sell EA with some advance features. It can be easy for you in case you are an expert in MQL4/MQL5 (as i need it in both version), also it can be complex for you if you are very new for this MQ versions just like me. (Sorry for my poor english) Here is my
Hello all, I have been trading the Forex market for 4 years and I need automated trading strategies due to a change in my employment status (and I'm not a very profitable trader and need a change in direction.) I am looking to find out if anyone has past/present experience or considering automated
  For "Solar wind" believers  (400   1 2 3 4 5 ... 39 40)
Since it seems that some new reincarnation of "Solar wind" is appearing at least on a weekly basis, and since it seems that is useless to repeat over and over that it is a wrongly coded Ehlers fisher transform and that it is one of the most famous re painters, here is this nice little thread in
I need help if anyone know how to do this or has a bot please reach out to me
  Info copytrading  (6)
Hello, I would like to conduct a study on the signals available in MT4 and MT5. For this, I would like to have the data displayed on the website in a .csv or similar format. Is it possible to extract them from the web? Thank you very much
  My Own Technic  (10)
I started my journey in trading five months ago. Since then, I’ve studied all kinds of strategies— ICT, SMC, price action, and more— but none of them really worked for me, mostly because of the wide stop losses. Eventually, I switched to a demo account to develop and refine my own strategy. I
  Bother with HFT system  (11   1 2)
im trying to test a new hft ea but get the error message invalid price . i think its the buy and sell stops that are too close to chart price. how can i find out if thats whats happening, and what hte min distance should be
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this
  Who are the resistance?  (14   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
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
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
  Simple trade automation?  (11   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
  Trading Futures  (6)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
I've been trying to fix days for 2 days straight. i am not sure what is going . the EA rejects all symbols except USDJPY and it's broker variant with suffixes.. why is the autovalidation check for EURUSD.. of course it will not pass!!! how do I fix this
  error experts  (1)
For five days now I have been trying to download an expert to sell it in the MetaTrader 5 market, and yet it fails the test. I am trying to fix it and follow the instructions, but to no avail. I hope someone can help me. test on EURUSD,H1 (netting) 2022.02.10 19:52:20 failed cancel order #101 buy
Hi, Stuck into a problem. Using the standard MoneyManagement modules results in OrderCalcMargin always returns true and margin 0. in AccountInfo it's that call OrderCalcMargin (trade_operation,symbol, 1.0 ,price,margin) which with further execution leads to the usage maxvolume of the symbol
Hi Everyone, My EA code open a position using Trade.Buy(lotsize,_Symbol,Ask,0,tp) without any stop loss but having a tp price. When certain conditions are met, i would like to remove the tp by using Trade.PositionModify(ticket,0,0) but EA keep producing failed modify [Invalid stops] error
Hi, I've noticed this ever since I switched to MT5 and multi-agent testing around 2 years ago. When testing with all local agents (I have not yet used cloud testing) the task scheduler does not distribute tasks optimally - particularly when getting "near" the end of testing. For genetic optimisation
If i run multiple instances of MT5 from seperate folders (ie copy folder) and i try to attach an EA to a specific one of them( ie one that one and install from market, it seems to only want to install it to the default MT5 install? anyone know a way around this
In the OnInit of my EA, I use this loop to retrive previous candlestick's open, close, high, low, volume and time values: string candleValues; for ( int i = Window; i > 0 ; i--){ candleValues = StringFormat ( "%g,%g,%g,%g,%g,%s" , iOpen ( _Symbol , PERIOD_CURRENT ,i)
  invalid stops  (1)
hi guys . I made an ea that in backtest does good , but when I trade it on a live account it say invalid stop. why? (backtest made on realtick) thanks
  MQL5 VPS  (2)
Hello my friend, Nice to meet you. I am new to MT5 and MQL5 VPS, i have several questions, can you please help to provide more information for me to consider the MQL5 VPS service: 1) If i subscribed 1 MQL5 VPS, how many trading accounts can i migrated to? 2) If it is workable to migrated multiple
When do a EA backtest I read in journal the follow line: tester: 2024.12.14 09:32:03.427 Tester "00 - EURUSD -01-XMLOW-Double\EURUSD-01-XMLOW-DoubleLong.ex5" 32 bit Question: MT5 (build 4755 on Windows 11, AMD7940HX processor) is 32 or 64 bit? In build I use flag "AVX512" or "AVX2", same
Hi, I know I can create a custom asset using a CSV file for price movements. However, I don't know how to include dividends to simulate a full corporate action. I noticed there is a deal_type called DEAL_DIVIDEND, so I thought maybe it would be possible. What am I missing? Is there a better
as the above I trade manually and would like to be able to manage the trades individually not one rule for all
Here's a funny joke: Imagine spending days tweaking your EA in order for it to be accepted by the old, non-customizable, obsolete check-up mechanism for the MT5 market. You keep getting the same error over and over again: test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1
Objects, and here in this example of a button objects, that are set to hidden by default after attaching to the chart, after minimizing and re-maximizing the panel appear as visible. How to keep them hidden? Please refer to the attached GIF example. Thanks
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
  MACD indicator  (1531   1 2 3 4 5 ... 153 154)
We are continuing discussion about the indicators. We have the following thread: https://www.mql5.com/en/forum/175886 https://www.mql5.com/en/forum/177239 https://www.mql5.com/en/forum/177358 https://www.forex-tsd.com/forum/debates-discussions/9785-rsi-indicator https://www.mql5.com/en/forum https...
  SnR  (1)
Guys what's the best objective method to define and detect Support and Resistance Zones using MQL5
  Renko Charts  (3)
Can someone please program for us a Renko chart that is tradable like candlesticks such as with indicators. I'm personally almost running crazy trying to figure it out with my beginner experience in programming. Someone please help
Hello Can someone pls turn this MQL5 into MTF. Thanks a lot. Also attaching a sample MTF MQL4 indicator for reference
  Moving Average  (1)
Hello I am new to Forex so maybe asking silly question, but I have to ask. This is my settings for MA, with shift -50, but the thing is i want MA to do the same lines,same logic but without shift settings to -50. Is there any kind of similar indicator to draw the same or if not same, but close to my
Hello MQL5 team and fellow developers, > > While working on a MetaTrader 5 trading system, I've encountered references to several include files that seem to be missing or unavailable in the default MT5 installation. Specifically: > > - time.mqh > - history.mqh > - stdlib.mqh (often included in MT4
Can Anyone Solve this mystery! when I Copy my .ex5 file into another Broker's Terminal\QBD0125HJF5248LZEEOO21542HJ75\MQL5\Expert I get the error 4802 cannot load custom indicator .... while at the same time when I run the same executable on the home Terminal it was debugged on It will run without
👆 Please see the screenshot (Yellow Colour Marked). The indicator buffer is displaying an unusually large number like '5161657722...' in the Data Window, which seems to be a bug. The chart is correctly plotting Downward & Upward arrows, but the corresponding buffer value is incorrect. Please help
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...
Hi everyone, it probably is a very dum8 mistake but I'm new to coding, I've created an indicator that calculates the difference between two consecutive candles tick volume but for some reason, unless i refresh it manually in mt5 , after first loading it it will display wrong values I'll post my code
  Indicators with alerts/signal  (15926   1 2 3 4 5 ... 1592 1593)
Some indicators with alert/signals with author's comments: - EMA-Crossover_Signal: Enter two Exponential Moving Average periods and it'll tell you when they crossed. - SMA-Crossover_Signal: Enter two Simple Moving Average periods and it'll tell you when they crossed. - SMMA-Crossover_Signal: Enter...
I converted Expert Advisor Code to Indicator code in MQL5 Expert Advisor Code :- void OnTick () { static bool isNewBar = false ; int currBars = iBars ( Symbol (), _Period ); static int prevBars = currBars; if (prevBars == currBars) { isNewBar = false ; } else if
Guys, Can someone advise and help? 1. I am looking for a VWAP indicator, for MT5, for scalping, please can someone send me a link for the best one on MT5, please? 2. What should the settings be? (for scalping) Thank you
Hello all, I cannot download free technical indicators on my iPhone and I Mac, on iPhone it doesn’t even clicking, and in I Mac it says wrong safari address, thank you in advance for answer me
  Parabolic SAR indicator  (296   1 2 3 4 5 ... 29 30)
I am continuing posting information about indicators. So, we have information about Stochastic indicator https://www.mql5.com/en/forum/177239 We have the thread about Momentum indicator https://www.mql5.com/en/forum/176430 Now something about Parabolic SAR. OverviewThe Parabolic Time/Price System,...
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Exponential moving average: Exponential moving average Author: Mladen Rakic
Check out the new article: Developing Advanced ICT Trading Systems: Implementing Order Blocks in an Indicator . In this article, we will learn how to create an indicator that detects, draws, and alerts on the mitigation of order blocks. We will also take a detailed look at how to identify these
Automatic Chart Refresher : A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart. Author: phade
Glitch Index: Source of this on is February 2004, Active Trader magazine. System concept This system was inspired by the more successful stock systems that have appeared in the Trading System Lab. These strategies share a common timing technique - they attempt to take advantage of minor...
Check out the new article: Developing a Replay System (Part 73): An Unusual Communication (II) . In this article, we will look at how to transmit information in real time between the indicator and the service, and also understand why problems may arise when changing the timeframe and how to solve
AutoTrendLinien : Autotrendlinien generates a channel in the direction of an existing trend. Author: Nikolay Kositsin
Working with sockets in MQL5 : This library will allow you to tranfser realtime quotes from MetaTrader 5 to external server application. The TCP protocol is used, it allows to transfer the data not only locally, but globally all over the Internet. The Winsock2 library (ws2_32.dll) is used for
New article Forecasting with ARIMA models in MQL5 has been published: In this article we continue the development of the CArima class for building ARIMA models by adding intuitive methods that enable forecasting. It is well known that ARIMA models rely on temporal dependences in a dataset. Therefore
New article How to Develop an Expert Advisor using UML Tools is published: This article discusses creation of Expert Advisors using the UML graphical language, which is used for visual modeling of object-oriented software systems. The main advantage of this approach is the visualization of the
RSI Expert Advisor - Automated Trading Tool Based on RSI : The RSI Expert Advisor (EA) is an automated trading tool developed for the MetaTrader 5 (MT5) platform. This EA leverages the Relative Strength Index (RSI) to identify buy and sell signals, incorporating risk management, partial position
Check out the new article: Atomic Orbital Search (AOS) algorithm . The article considers the Atomic Orbital Search (AOS) algorithm, which uses the concepts of the atomic orbital model to simulate the search for solutions. The algorithm is based on probability distributions and the dynamics of
Dollar Index: The U.S. Dollar Index (USDX, DXY, DX) is an index (or measure) of the value of the United States dollar relative to a basket of foreign currencies, often referred to as a basket of U.S. trade partners' currencies. The Index goes up when the U.S. dollar gains "strength" (value)...
Check out the new article: Installing MetaTrader 5 and Other MetaQuotes Apps on HarmonyOS NEXT . Easily install MetaTrader 5 and other MetaQuotes apps on HarmonyOS NEXT devices using DroiTong. A detailed step-by-step guide for your phone or laptop. Huawei users running HarmonyOS NEXT can now easily
New article Developing stock indicators featuring volume control through the example of the delta indicator has been published: The article deals with the algorithm of developing stock indicators based on real volumes using the CopyTicks() and CopyTicksRange() functions. Some subtle aspects of
  Elite indicators links thread  (56   1 2 3 4 5 6)
It is the thread to download good elite section indicators mainly developed for elite section and for public sections as well.
  Elite indicators :)  (15198   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
Hi everyone, since i've developed around 3 sub-versions of an EA Strategy, I'd like to run multiple back-tests at once or at least 2 backtest together so i can save up some time ... is that possible? what would be the ways to do that? Btw i'm using a RDP from MacBook to access a Windows VPS
Hello all,  I'd like to know which is the exact formula (used by brokers) to calculate preventively the monetary value of a SL or a TP.  I'll explain better: if I set a pending order or I send an order to the market and I put mouse over my SL or TP level, the platform says me how much (in deposit...
Below are step by step instructions, of how to subscribe to a MΤ4 signal: 1. Register a MQL5 account: https://www.mql5.com/en/auth_register 2. Open your MT4 platform and go to Menu >> Tools >> Optios and click on the Community tab. There you put your Login and Password of your MQL5 account
Hello everyone, I’ve been experimenting with my Expert Advisor in MT4’s Strategy Tester using the generic algorithm optimizer, and I’ve noticed a puzzling inconsistency: the parameter combination that delivers outstanding results during optimization almost flat-lines when I plug the same inputs into
Hi all, I am programming an indicator and I wonder if it is possible to use non-standard timeframes in MQL4. Basically, I am thinking of using M10, H2, H6, H8 and H12 which are all available in MT5. Is this somehow possible to use them in MQL4? Currently, I was trying something like iHigh(_Symbol
I am considering getting one of those new Snapdragon Windows 11 laptops (such as Lenovo Slim 5) that run on ARM64 architecture instead of X86. I know MT4 doesn't have a native ARM version and needs to be run using the Prism emulator built in to ARM64 Windows version. I am curious if the emulated
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...
Can someone make it to have alert only on first new signal? Thanks
  Solve Stoploss Slippage  (26   1 2 3)
Hi all How do you solve stop loss slippage. On a demo account account the stoploss is hits the stoploss perfectly but on a real account it's a different story (Using the same ECN Broker). Below I attached images to look at the different Stop loss for demo account: For real account here here is the
I'm aware that the subject of point value, delta lot value, and related calculations has been extensively discussed on this forum. Until recently, none of my customers had encountered issues with point value calculations when using my products. However, I've encountered a unique problem for a client
I would like to report a serious case of intellectual property infringement and fraudulent activity. A third-party website has recently appeared, unlawfully offering multiple high-ranking EAs from the MQL5 marketplace for sale. This site is using the exact same names, logos, and even screenshots
[Deleted]
Hello, When I am using MT4 in online mode with my current broker (Oanda) I can use 2 digit lot sizes (e.g: 0.11) but if I do backwards testing on a weekend where I have to use the offline mode in order to be able to use the weekday spreads and not the week-end spreads for the whole testing I can...
Guys, Ive been trying to withdraw funds from my MQL5 account and MQL5 frustrating my effort. I created a webmoney account to receive funds and their response was "Our payment provider does not support your region" Please let me know how an international payment system such as webmoney is not