MQL5 Algo Trading community — forex forum for traders and developers

Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
Dear MetaQuotes team, I would like to suggest adding a customizable button in MetaTrader 5 that allows users to perform bulk closing of all positions directly from the chart or toolbar. Currently, this function is only available through the "Group Operations" menu, which requires manual navigation
  GOLD, Gold and XAUUSD  (1107   1 2 3 4 5 ... 110 111)
Hi! Is it worth buying gold at 1130
  Withdrawal  (7)
What should you put on holders name when with drawing, I’ve been putting my name, changed it to my surname but the withdrawal is declined
Hello, good morning, last night I hired the VPS and the Algo Expert did not work, I already did all the steps indicated in the installation manual... I can't find what the poor thing could be. Thank you Greetings
On Friday, September 5, 2025, an updated version of the MetaTrader 5 platform will be released. In this build, we continue expanding the OpenBLAS linear algebra library in MQL5 with a new set of functions. These methods provide developers with a complete transformation cycle, from preliminary matrix
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
when i migrate all the setting and EA i have two error message, as i see everything was migrated but the EA bot
Hi everyone. Im using MAC and just purchased a VPS in MT5 today. Im seeing the message 0 charts, 0 EAs, 0 custom indicators, signal disabled. I used the Migrate ALL option. Charts are open with custom indicators on my MT5. I can tell nothing is migrated because my indicator should send me push
I want to make sure it is allowed to share a product from marketplace if a customer requests, cos I remember the last time i did (though without customer requesting) , I was rejected from the job by admin
invalid license (538), please reinstall from MQL5 Market I have researched this error but my case is pretty unique: I have downloaded and installed a free Indicator: ATR Stop Loss Finder, It works just fine, I can switch between different broker's account and it will work just fine on any chart (
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
Use detailed Nasdaq data to enhance your trading strategies through more accurate decision-making and efficient risk management. This is a unique opportunity for those looking to improve their results. Unlike traditional minute or hourly bars, the subscription offers access to tick data, providing
I have a little problem here! mt5 is ok on my desktop, but on my notebook, the VPS icon appears gray, and it doesn't work! I've tried everything, logging into the community, etc... but I still haven't been able to activate the VPS on my laptop
<Broker name removed> is safety to +50k USD fund
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
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
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
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...
  MetaEditor, Open AI and ChatGPT  (75   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
How to download the complete historical data int mt5.
  What strategy actually works?  (60   1 2 3 4 5 6)
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
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
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  (5998   1 2 3 4 5 ... 599 600)
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
  Private Signals  (12   1 2)
Hi, Is it possible to create your own private signals and have your trading accounts follow one trading account. How can you subscribe accounts to a private signal
How i can increasing gap trading for 1 minute trading for Binary Market. In live market there have lots of gap in 1 min chart. I want to trade in Binary option live market for 1 minute candle. What will be the strategy for it
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
  Machine Learning and Neural Networks  (741   1 2 3 4 5 ... 74 75)
MQL5 now supports matrix and vector operations which are used in various computational tasks, including machine learning. We have created this thread to select and share some materials that may be useful to you. Machine learning technology is based on neural networks. Neural networks are
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
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...
  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
  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
CHistoryOrderInfo StopLoss and TakeProfit values are 0.0 at OnTradeTransaction case TRADE_TRANSACTION_HISTORY_ADD when CHistoryOrderInfo TypeDescription = ORDER_TYPE_SELL I am writing a MT5 Expert Adviser (EA) that Buys long positions and maintains both a trailing SL and a leading TP. The EA will
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
Hello All, I have just received version 5 build 5260. I have for the past three years and continue to generate my EA magic numbers auto magically with the following code: /* make_long_random() * * Make a big 64 bit random number * Typical uses? create a random EA magic number. * * Parameters: None *
I have a few EA's that I concider profitable but take immense amounts of time for backtesting in real ticks. Open prices work but sometimes the variance to real ticks is over 40% which make the backtesting results unacceptably unrealiable. The idea is to comission a developer here to "rewrite" the
Hi all, since the update to 5200 (and now with 5227) the strategy tester is not updating the charts if i switch between different timeframes. My expert uses 3 different timeframes - 3 indicators with separated times. After this 5220 update in the bottom of the tester chart three tabs are displayed
The string produces by CDealInfo.TypeDescription() is not a string representation of ENUM_DEAL_TYPE identifiers. For example, a CDealInfo. DealType = 0 is DEAL_TYPE_BUY in ENUM_DEAL_TYPE , but for CDealInfo. DealType = 0, CDealInfo.TypeDescription() returns the string "Buy type" (length: 8) in the
https://www.mql5.com/en/docs/runtime/imports I want to refer to the import of structs. Structs can be passed by reference. In the import section you define like void MyFunc( mystruct &data ); And within C# you define the param as IntPtr. public static void MyFunc( IntPtr data ) Then simply use
Debugging my EA, I am getting: Journal: 2025.09.03 07:37:44.290 MQL5 debugger Critical error while running expert 'PolishedGoldEA (XAUUSD,M15)'. Unknown error. The Debug tab shows no Trace data at the error. I searched Forum for Debug Critical Error and it said that the error information will be on
I added the cores and i can some they show up on my local agents (some of them not all of them). When conducting the back test the status just alternates between connecting and ready they dont actually do any work. What am I missing here
  Function  (9)
Good day I'm still new to mql5 and the following idea crossed my mind. Is it possible to create a function with a indicator inside the function. For example Check_Entry(). Now I want to create 3 indicator inside this function and call the function into the ontick function but what I want to know is
Good morning, I got two issues. 1) On My Metatrader 5 instance in the past I used the cloud agents for simulation. That worked brilliant. Nothing was changed I only deactivated them as I wanted to peform a small test just on my pc. Now I can't reactivate them. I I right click on them, the option to
I'm looking for a fast way to obtain price in text, is there an EA that allows me to copy price to my clipboard using crosshair to point to the price I seek? Tradingview, you can copy price, possible to do this on mt5
  VPS
Hello. I purchased a VPS, but it won't open positions from my EA. What could be the problem? Without a VPS, it works normally, but with more slippage. 14:24:44.073 History: first bar USDJPY+,M1 on the server is 2025.07.03 01:48 0 14:24:44.073 History: first bar USDJPY+,M1 on the server is
How can I remove those arrows autotrade history in backtesting, I am having a hard time identifying the backtest trades as it is cluttered by those autotrade history
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
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
I coded a custom indicator that plots arrows on M1 candles when all higher timeframes (M5, M15, M30, H1, H4, D1) agree with the candle direction. The arrows appear shifted or misplaced or don't appear at all. I think the problem is with the loop. I am adding the for loop in OnCalculate function
  OrderCalcMargin  (7)
hello, The instruction OrderCalcMargin () works perfectly when written in script But when used in an indicator we got Error n° 4014 ERR_FUNCTION_NOT_ALLOWED Is this instruction works on script but not in indicator regards
  help better understand MACD?  (12   1 2)
where it is MACD line? Signal LINE understand
Even if candlesticks appear to be the same at first glance, there are differences in the frequency of value updates when tick value movements are included. By adding up the range of price movements (either up or down) when a single candlestick is formed and visualizing it as a histogram, I thought
  Forecasting indicators  (345   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".
  Oscillators  (45   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 all, I plotted an horizontal line as Object with an indicator, but I would like to change the level color, from black to white, for better viewing. Is there an option under ObjectSet functions to do this? Thank you
Hello, I am a newbie MQL5 coder - but not new to coding or trading. I understand to access the open time of the most recent bar inside a custom indicator , in OnCalculate, I need to access time[0]. However this is giving me a time in May (13), while today is August 22. The data window in the chart
Hi, I'm new to MQL5 and would like to make an indicator that identify the swing & internal points of the chart. I read that in order for you to find the swing/internal points then you need to identify the HH/HL/LL/LH of the chart. I want to collect some algorithm ideas on how to do this. Thanks
Greeting, Given MQL5 (or 4), is there a way to store the values choosen by a user so the next time my indicator is used those values are in the input form? Hope to hear, Adriaan
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
Hello, I'm trading on MT5. I'm looking for ideas to write an indicator(or EA). In fact each symbol got specifications From there I want to extract these datas : 1) value of "½ Minimal volume" 2) value of "eur/lot" from "Margin rates : ½ Market buy" 3) value of "eur/lot" from "Margin rates : ½
Dear MQL5 Community, Hello, I’m reaching out regarding an issue affecting some of my clients. Several have reported being unable to download one of my products after purchase, despite successful transactions. The returned error is 29111 not found in the database. Additionally, my MQL5 Service Desk
  Parabolic SAR indicator  (297   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,...
Check out the new article: Market Profile indicator (Part 2): Optimization and rendering on canvas . The article considers an optimized version of the Market Profile indicator, where rendering with multiple graphical objects is replaced with rendering on a canvas - an object of the CCanvas class. In
MT4-BuildYourGridEA : The expert is a system to help any trader to make a grid of orders. Author: Nikolaos Pantzos
Volume weighted line chart with smoothing : A smoother line chart which cuts out a lot of the market noise and uses volume in the formula Author: Conor Mcnamara
Check out the new article: Market Simulation (Part 01): Cross Orders (I) . Today we will begin the second stage, where we will look at the market replay/simulation system. First, we will show a possible solution for cross orders. I will show you the solution, but it is not final yet. It will be a
Veltrix Emperor MT4 EA : Unlike most EAs that rush into trades too early, Veltrix Emperor is patient: ✔️ Confirms the trend 3 times before entering. Author: Kommoju Usha Rani
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
  Libraries: MultiTester  (500   1 2 3 4 5 ... 49 50)
MultiTester : Multiple runs/optimisations in Tester. Author: fxsaber
Check out the new article: Big Bang - Big Crunch (BBBC) algorithm . The article presents the Big Bang - Big Crunch method, which has two key phases: cyclic generation of random points and their compression to the optimal solution. This approach combines exploration and refinement, allowing us to
Check out the new article: Neural Networks in Trading: An Ensemble of Agents with Attention Mechanisms (MASAAT) . We introduce the Multi-Agent Self-Adaptive Portfolio Optimization Framework (MASAAT), which combines attention mechanisms and time series analysis. MASAAT generates a set of agents that
EMA_RSI_RISK-EA : Expert Advisor for MetaTrader 5 that combines Exponential Moving Averages (EMA) and Relative Strength Index (RSI) to generate trading signals. Includes risk management features and trading time filter. Author: solyemam
Check out the new article: Overcoming The Limitation of Machine Learning (Part 3): A Fresh Perspective on Irreducible Error . This article takes a fresh perspective on a hidden, geometric source of error that quietly shapes every prediction your models make. By rethinking how we measure and apply
Check out the new article: Building a Professional Trading System with Heikin Ashi (Part 1): Developing a custom indicator . This article is the first installment in a two-part series designed to impart practical skills and best practices for writing custom indicators in MQL5. Using Heikin Ashi as a
Check out the new article: Price Action Analysis Toolkit Development (Part 38): Tick Buffer VWAP and Short-Window Imbalance Engine . In Part 38, we build a production-grade MT5 monitoring panel that converts raw ticks into actionable signals. The EA buffers tick data to compute tick-level VWAP, a
WaveTrend : The WaveTrend Indicator (WT) is a powerful technical analysis tool designed to identify trend direction and potential reversal points. It plots two lines, WT1 and WT2 , in a separate window, calculated based on price momentum and smoothed averages. Author: Duy Van Nguy
New article Graphical Interfaces III: Groups of Simple and Multi-Functional Buttons (Chapter 2) has been published: The first chapter of the series was about simple and multi-functional buttons. The second article will be dedicated to groups of interconnected buttons that will allow the creation of
This is the error message after "Compile files with MQL5 Cloud Protector". It usually works within an hour, but this time more than 6 hours. Is anyone facing the same issue today? Is the server blocked or upgrading? MetaEditor 5.00 b2415
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
Designed to discuss the pair over the past period, forecasts, and anything else that might affect the movement of this pair
what is the best code for identifying a new bar
  ex4 decompiled  (32   1 2 3 4)
ex4 files seem to be getting decompiled and unlocked. Someone sent me an ex4 and then the mql4 file decompiled, the ex4 being recent. Market place EAs are also available via this service. Does MT4 change it's encryption or is every ex4 now decompilable
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...
hi there, I come across this error a lot.. See below image.. The MT4 coders just need to see if a variable name  already exists. (Text 8277 in this case) PLEASE HELP! regards,
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
[Deleted]
  Absolute courses  (1125   1 2 3 4 5 ... 112 113)
Good afternoon. I would like to raise this topic. We know the exchange rates of currency pairs. For example EURUSD, or GBPUSD. What does it mean - it is a graph of one currency (euro, for example) in relation to some benchmark (another currency, for example, the Fed dollar). Postulate 1: no currency
  Please fix this indicator or EA  (1951   1 2 3 4 5 ... 195 196)
....................................
[Deleted]
  Terminal window missing  (23   1 2 3)
I have been running MT4 on my laptop for several months. All of a sudden the terminal window won't appear? i have tried re-booting and several different profiles, no go. Any ideas will be greatly appreciated! Thanks, Steve
Hello, I was wondering if anyone has experienced the problem above. My code base is 5650 lines long, split into 2 modules and an indicator. When I run the code through the debugger, there's one DebugBreak() and then I run an ExpertRemove() on the code to stop it running, although I need to stop the
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
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