MQL5 Algo Trading community — forex forum for traders and developers

Hello I'm trying to use an alternative OS, specifically Debian, to run MetaTrader 5 with an Expert Advisor (EA), but it's proving to be quite challenging. The main issue I'm facing is with the display when I connect to my Debian VPS GUI using Remote Desktop. After I launch MT5 and maximize it to
  Where Do I start from?  (160   1 2 3 4 5 ... 15 16)
Hi fam! Am a total newbie in the forex niche... Just signed up here on this platform... Please where do i start from? I need help... Anyone willing to put me through?
  GOLD, Gold and XAUUSD  (1116   1 2 3 4 5 ... 111 112)
Hi! Is it worth buying gold at 1130
I have meet an issue of MT5 after newest update. After auto update of MT5, the number of cores in Strategy Tester is reduced from 16 to 8 for optimization. I have try to remove MT5 completely and reinstall it. But the issues is still there, what should I do? I am using newest updated Windows 11 home
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
Almost everyone who is engaged in social or algorithmic trading sooner or later recognizes the need to rent hosting for their robots or subscriptions. Maintaining stable and uninterrupted hardware operation at home while ensuring minimal delays to the broker's servers can be quite a challenging
Hello everyone, I am currently exploring the development of a mobile application for retail traders. It is still at an early stage of research and feasibility study, not yet a formal startup. During my research, I came across information suggesting that, in addition to the MT4/MT5 desktop and mobile
On Friday, September 26, 2025, an updated version of the MetaTrader 5 platform will be released. Build 5320 is the last update to support Windows 7, Windows 8, Windows 8.1, and Windows Server 2008. Starting with the next version, desktop platforms running on these operating systems will no longer
Hi, is there any way to "downgrade" a version of a marketplace EA? Maybe using some external software to get the original file instead of the updated one or something? Thanks
Can a subscriber with US500 symbol copy the trades of SP500 symbol from another broker? The trades are not copying over. Does the symbol need to be identical on both ends? Thanks
hi all, i'm totally new here, and i'm a little bit lost....😅 i'm interested in a product, but i have to contact the seller in a private message, but i don't find the way to do that... 🙄 Can someone kindly explain me how to do that? thanks ^^ best regards, Chris
Situation: I have MT5 account number 1 where I bought an EA, installed and uninstalled it, and burned up all 9 activations, so I can no longer use it. So it was told me to buy another one. Since I couldn't do that with account 1, opened mt5 account number 2, bought the same EA again, reinstalled it
Hello, hope I find here a solution for my problem. I use MT5 on macOS 15.7 on a MacBook Air and get from time to time pink screen. I get this crashes with the Mac version from official metatrader5.com website and using CodeWeavers crossover. the crash report says panic(cpu 4 caller 0x0 ): Spinlock[
  Account temporary banned  (14   1 2)
Is there an issue with the messaging system? I tried to reply to a user’s request in my Trading Chat group via the MT5 iOS app, but I was unable to send the message. Instead, I received an error saying I’ve been banned for sending too many messages—even though I haven’t sent anything for over seven
  Chats on mql5.community  (239   1 2 3 4 5 ... 23 24)
The chats have appeared. Testing now
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  (44   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...
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
You are using EA, Indicator, method, all the things that can help you make money from Forex. But when you look back at that process. How many times have you deposited money into your account, how many times have you sat in front of the screen watching your account gradually disappear. Maybe you earn
Hi all, I have a trading system based on entry signals and now I'd like to focus on how to reduce the fees linked to the broker. On my end I identified 2 actions: 1. close the positions with negative swap before they go overnight (this introduces fees linked to the spread, but they're far below swap
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
  What strategy actually works?  (77   1 2 3 4 5 ... 7 8)
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
i want to show you and suggest you this simple and proper way of trading that i have ever seen.i mean price pattern.ofcourse many of you have heard about it but i am trading with this system and it is very practical and profitable forthermore very simple.wihout any indicator just Fib
  Harmonic Trading  (6003   1 2 3 4 5 ... 600 601)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
  MetaEditor, Open AI and ChatGPT  (78   1 2 3 4 5 ... 7 8)
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
  Trading System by Xard777  (3900   1 2 3 4 5 ... 389 390)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
  PriceChannel Parabolic system  (328   1 2 3 4 5 ... 32 33)
Some people asked me on the other forums about re-enter. But I am not using any indicator for re-enter. So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart. Let's name it as PriceChannel Parabolic system. M1 timeframe. This is image for EURUSD for
I calculated the USD/JPY candle from the BTC/USD and BTC/JPY rates and displayed it in orange on the USD/JPY chart. There is a slight discrepancy between the two candle, but they show almost identical price movements. I make this chart on a trial basis, thinking that some kind of signal might occur
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
Is expectancy a useful way of becoming a sustainably profitable forex trader? Is it something generally used by forex traders? Or is it a waste of time? Anyone here using it
Hi I just Googled "mql5 depth of market volume", and got the following definition: In MQL5, "depth of market" (DOM) volume refers to the aggregated volumes of pending buy and sell orders at various price levels, visible in the order book
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
As the title says, MT5 supports options. I have been waiting for a long time, but I have not seen any use cases
Hi guys, can anyone share their experience with trading Bitcoin on nano and cent accounts? Do you have any tips regarding input settings, how they calculate decimals, and similar details? Thanks
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 (
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
Hello there, I'm trying to trade on, Micro E_mini Nasdaq-100 index futures, As far as I know their symbol is MNQU5, I just cant seem to get them to show on MT5
  Who are the resistance?  (15   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
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
  Simple trade automation?  (12   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
  Need a broker  (10)
can anyone help me with a broker that will allow me to trade stocks and crypto on Meta Trader 5
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
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
[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...
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
  check pointer by "!"  (61   1 2 3 4 5 6 7)
Is this if (pointerObj == NULL || CheckPointer (pointerObj)== POINTER_INVALID ){..} the same as this: if (!pointerObj){..} As it is said in https://www.mql5.com/en/docs/basis/types/object_pointers ; > To quickly validate the pointer, you can also use operator "!" ( LNOT ) which checks it via an
Do you think there is an EA that combines multiple MT5 strategies and manages them automatically based on drawdown, equity, or market conditions? Would that be useful or just overkill
This functions goal is to close all open trades that are in profit -- AND the worst trade with worst loss, designated by "worst" as the ticket number. The worst trade is closing, however only some of the profit trades are closing! Maybe I am just tired, but i can not see why! HELP. If i have failed
Hello everyone, While testing my Expert Advisor (EA) in the Strategy Tester , I encountered a strange and critical issue related to account data readings, and I’m hoping someone with experience can shed light on it. Problem Description: I’m using built-in account functions like
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Hi guys, I was wondering if there is around some kind of indicator or EA that disable and enable again the autotrading button at a specific time. Reason is I use an EA that disable and close all the trades before news. Now if it disable the autotrading when market is closed it will stop the EAs,but
  Tradetime  (6)
hello, i have some troubles with the trade time, i have written an expert to convert the trade time to i time i want to trade here as example the settings that works with the conversation but in the trade history i find following, its always couple of seconds before the time that it makes 2 trade
Cool Discovery: Press Spacebar to Toggle 3D Optimization Graph to Bar/Histogram View in MT5! Hi everyone, While cleaning my keyboard during an optimization run in Strategy Tester , I accidentally discovered that pressing the Spacebar switches the 3D graph from surface to a bar-like view (like
Hi together, I will give you short example of a massiv performance issue in MT5 while backtesting - that's really, crazy!! Testcase: three symbols: EURUSD, GBPUSD and USDCAD Testperiod: 2025.09.15 - 2025.09.20 (one week) , Timeframe M5 Testresult's with single Tests: EURUSD needs 8 seconds GBPUSD
Hello, can you help me write this EA for MT5? If the previous candle is a BUY candle, then open a BUY. If the previous candle is a SELL candle, then open a SELL. If there is an existing position that matches the logic => keep it, do not open a new one. If there is no position that matches the logic
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions. We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade
Recently I made a new build featuring the new Intel Core 7 Ultra 265K, downloaded the latest build for the agents manager however despite the agents being created and running successfuly for a short while, they will disconnect and stay like that. I've made sure there is nothing blocking them from
I am developing some Expert Advisors in which I heavily rely on structs and arrays of structs. After the last MT5 Update I was getting compile-time warnings, so I decided to extract the Code-Snippet that caused these warnings: struct myStruct{ string thisString; }; myStruct structArr[]; void
I want to use a rectangle with rounded corners inside MetaTrader. When I export the image as PNG , everything looks fine — it has transparency (see image on the left). But when I save the exact same image as a BMP , the transparent background turns white. I also tried the alpha channel method in
According to https://www.mql5.com/en/docs/standardlibrary/technicalindicators/cindicators/cindicator/cindicatorrefresh, it is recommended to always call Refresh() when retrieving data with GetData(). However, looking at the standard lib code (e.g., ExpertBase.mqh ),it does not follow this pattern
Hello MetaQuotes team, I have encountered an issue with RSI when combining it with a 1-period EMA in MT5. Before April 2025, this setup worked fine for me as a confirmation tool in my strategy. After the April 2025 update, I started seeing strange behavior. Description of the problem I apply RSI
I have a question for everyone, and I would greatly appreciate your insights. I would like to approximate the price change per tick (i.e., per unit of tick volume) in historical data. The reason is that I would like to use this per-tick price change as a basis for allocating tick volume into
I found this very nice indicator for MQL4 that takes the iFractals indicator to different time frames. I found an excellent version for MQL5 HERE , which unfortunately does not include the option for different timeframes. This appears to be a basic indicator, and I wonder if anyone has already a
I want to combine the clean look of Renko with the details of candle sticks. So what I`m looking for is Renko bricks drawn over candlesticks. The bricks always have the same height as is common with Renko. But the width of a brink can vary greatly because inside are the candle sticks that formed is
hello there im looking for an mt5 version of this indicator. its called the value chart oma / overbought oversold candlesticks
  Parabolic SAR indicator  (298   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,...
I'm trying to create an indicator that uses my own custom indicators and so the master indicator needs to pass _AppliedTo to the slave indicators. In the documentation it says _AppliedTo should be passed as the last parameter after the all the indicators other parameters. What I'm finding is
  Fibo & Gann variations  (356   1 2 3 4 5 ... 35 36)
Fibo Levels indicator. Fully forecasting.
  Fibonacci Museum  (14   1 2)
The "Middle Ages" in our consciousness associate with the concept of inquisition orgy, campfires, on which witches and heretics are incinerated, and crusades for "the body of God". The science in those times obviously was not "in a center of society attention". In these conditions appearance of the...
Hello everyone Is there anyone that can direct me pages where I can read up on how to code to identify swings? It's easy for me to identify them, but the method I'm using visually is not consistent enough to translate it to the PC. I have broken my brain these past couple of days trying to figure
Hello, I am new to programming with MT5 and MetaEditor. With the help of a YT video I was able to create a ORB EA, which exactly does what a ORB indicator does but just as an EA. The original intention of the creator was a EA initiating long and short positions when breaking out of the OR-zone. But
This indicator is similar to the RSI. The idea is to calculate net_profit / [sum(positive returns) + abs(sum(negative returns))] in a rolling window. But after I changed the code in the main loop, the terminal says: 'for' expressions are not allowed on a global scope //--- the main loop of
Hi everyone. Good day to you all. I would like to ask whether you guys know any MT5 downloadable MACD Indicator that looks EXACTLY like TradingView's MACD. I heard that a developer from Indonesia created one. But, I couldn't find it. Can anyone with the link share here please? I've been looking for
I am currently practicing the implementation of a simple Simple Moving Average (SMA) indicator using a ring buffer in MT5, as part of my effort to better understand and become proficient with the ring buffer method. The logic is divided into two main parts: When a new bar appears , and When
i want to calculate sum high and lows just after latest(most recent) price crossing sma 50 but i don't know how to get that index of candle that price cross MA in most recent cross thanks
Check out the new article: Automating Trading Strategies in MQL5 (Part 35): Creating a Breaker Block Trading System . In this article, we create a Breaker Block Trading System in MQL5 that identifies consolidation ranges, detects breakouts, and validates breaker blocks with swing points to trade
Check out the new article: Connexus Observer (Part 8): Adding a Request Observer . In this final installment of our Connexus library series, we explored the implementation of the Observer pattern, as well as essential refactorings to file paths and method names. This series covered the entire
Fair Value Gaps : Fair Value Gaps indicator or 'imbalance areas' where markets often move back to. Author: maximo
Check out the new article: Master MQL5 from Beginner to Pro (Part VI): Basics of Developing Expert Advisors . This article continues the series for beginners. Here we will discuss the basic principles of developing Expert Advisors (EAs). We will create two EAs: the first one will trade without
Check out the new article: From Novice to Expert: Backend Operations Monitor using MQL5 . Using a ready-made solution in trading without concerning yourself with the internal workings of the system may sound comforting, but this is not always the case for developers. Eventually, an upgrade
Check out the new article: MQL5 Trading Tools (Part 9): Developing a First Run User Setup Wizard for Expert Advisors with Scrollable Guide . In this article, we develop an MQL5 First Run User Setup Wizard for Expert Advisors, featuring a scrollable guide with an interactive dashboard, dynamic text
Check out the new article: Price Action Analysis Toolkit Development (Part 42): Interactive Chart Testing with Button Logic and Statistical Levels . In a world where speed and precision matter, analysis tools need to be as smart as the markets we trade. This article presents an EA built on button
New article Why Virtual Hosting On The MetaTrader 4 And MetaTrader 5 Is Better Than Usual VPS has been published: Renting a virtual server right from the MetaTrader 4 and MetaTrader 5 terminals is the optimal way to ensure uninterrupted work of your trading robots and Signal subscriptions
Trade By Retail Sentiment : This Expert Advisor uses retail trader sentiment from the Ziwox API to implement a contrarian trading strategy, taking trades opposite to the majority of retail positions. By combining sentiment data with a moving average trend filter, it identifies potential market
New article How to Test a Trading Robot Before Buying it from MQL5 Market is published: MQL5 Market allows you to test a trading robot and its features before buying it. Every Expert Advisor offered in MQL5 Market comes with a demo version that can be tested in the Strategy Tester . It is quite
ATR Probability Levels : Probability levels based on ATR. "Probability" is calculated based on the projected Average True Range and previous period Close. Defaults are using daily period, but any time frame supported by MetaTrader 5 can be used. Author: Mladen Rakic
Check out the new article: Cyclic Parthenogenesis Algorithm (CPA) . The article considers a new population optimization algorithm - Cyclic Parthenogenesis Algorithm (CPA), inspired by the unique reproductive strategy of aphids. The algorithm combines two reproduction mechanisms — parthenogenesis and
Dollar Index Tracker - See the Dollar Index right below your chart. : Dollar Index Tracker displays the US Dollar Index (USDX / DXY) directly below the chart of your current trading pair. This makes it easy to compare the strength of the US Dollar against a basket of major currencies while analyzing
Check out the new article: How to build and optimize a cycle-based trading system (Detrended Price Oscillator - DPO) . This article explains how to design and optimise a trading system using the Detrended Price Oscillator (DPO) in MQL5. It outlines the indicator's core logic, demonstrating how it
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by
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...
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
  Traders joking, the beginning  (7330   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 coders, whatever I try with these functions, I only get 5 as a result today. But Saturday should be 6. Is there any trick to get the the weekday?
Our System: Using: Mozilla Firefox Windows 7 OS MT4 " not" loaded in Program files (Not a UAC issue) Downloading: Email attachment with the .ex4 file,When I click on " Download ",Browse (Program to use to download the file), I use metaeditor.exe . Should I be using something different ? File Looks...
Hi, Please anyone knows how I can locate the Currency Strength Meter Pro source file [private contact details redacted] [Image cropped by moderator]
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
I have been developing an EA but after a few backtest runs it now goes really slowly. It runs fast on my other computer with the same broker like it used to do where it runs slow now. It has nothing to do with my EA code and I have cleared all the log files, caches or any other files related to the...
Hi About a month ago I purchase an mt5 indicator and most of my main indicators is on mt4. Would it be possible to switch my recent indicator purchases into mt4? If so, where would I do this or who do I contact? J
I noticed that some logs were not saved in the logs file until application close, but others were only updated when the application closed. Is this true? And if so, is there a way to change this
I have purchased the EAs Everthing work normally for weeks, but today I cannot Install the EA (9 of 10 activations left) as shown in the pictures below. I can still access market tap and signal tap but when I push the install button the system shown this message MQL4 Market: failed download product
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
  Market sentiment index  (87   1 2 3 4 5 ... 8 9)
By market sentiment index I mean the ratio of initial deposit to current funds under conditions of simultaneous trading in all, available, currency pairs, including gold and silver. Here are the index values for the period from the 24th of February till the 08th of March trading results for 34
Hello, I have a custom EA that works fine in the live market, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell
Toolbars & Status Bar Not Appearing on MT4 Desktop Open? Using a PC and Windows 10, on closing then reopening MT4 from the desktop shortcut the Toolbars & Status Bar are Not Appearing on MT4 Desktop Open?? Any assistance would be much appreciated, thank you