MQL5 Algo Trading community — forex forum for traders and developers

  Support  (7)
How do I get assistance from support? The MQL5 helper has automated response that have nothing to do with my issue. Please help me get through to someone in support, I need human assistance
Hello community. I'm evaluating the reliability of my EAs and a question has come up regarding the optimal historical depth for backtesting. My dilemma is this : a 10-year backtest theoretically proves that the EA can survive multiple market regimes. However, the current market doesn't behave the
"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
The MetaTrader 5 platform update will be released on Friday, April 24, 2026. In this version, we have enhanced the built-in help system: improved its dark theme support, refined navigation, and added text scaling. In addition, we have optimized the dark theme display across all platform components
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
Hi, could someone help me how to delete my own comment from the EA page and news feed? I couldn't find a way, thank you
Hi, I’d like to ask where you get free historical tick data for futures? From what I can see, access to such data is usually paid, but I’m wondering if there might be some way around it. I was thinking about using CFD broker data as an approximation — of course it won’t be 100% accurate compared to
i get a message saying my bank denied the payment but the bank says they never got a transaction request. anyone know why this is happening. thanks
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
The MetaTrader 5 Web Terminal is an advanced, fast, and reliable trading solution. It operates on any device across all operating systems and does not require additional software installations. You only need a web browser to access your account. To help you get acquainted with the web terminal
I downloaded the new macOS update last week (Sonoma 14.0) and the day after, the laptop started restarting once or twice a day, each time while I was using MT5. The crash reports indicate that a kernel panic occurred while executing code within the MetaTrader 5 application . It is therefore possible
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[
The updated MetaTrader 5 platform will be released on Friday, April 17, 2026. This release introduces the first stage of enhancements to the main trading dialog. It now features a more modern design, an integrated Depth of Market, and more convenient switching between operation types. Future updates
I have a table like this: int Read_LastTrend( string UsedSymbol, string sCol) { int Ret = 0 ; ResetLastError (); //Create or open the database in the common terminal folder string filename = Filename(SCANNER_NAME, true ); int db = DbOpen(filename, __FUNCTION__ ); if (db ==
My account is temporary banned and I can even send message to anyone and or in the group I have created and also I can't even contact the people of MQL5
  What strategy actually works?  (146   1 2 3 4 5 ... 14 15)
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
The strategy that I am currently developing performs very well in the strategy tester, but when I do forward testing it fails. How can I shorteh the gap between strategy tester data and forward testing
Hey everyone, Long-time lurker, first time posting something like this. I've been building an EA based on BBMA methodology (Bollinger Bands + Multiple Moving Averages) applied on XAUUSD, and I've finally reached a point where the backtest numbers look... surprisingly good. Maybe too good, which is
Hello Fellow Traders! I've been working on a grid trading approach and would love to discuss the methodology with experienced traders in this community. The Technical Challenge I was looking to solve some common issues in automated grid trading: * How to handle dynamic position sizing based on
Why do many EAs fail while the same strategy works perfectly in manual trading? Manual trading lets us adapt, filter trades, and read the market in real time. EAs, on the other hand, follow strict rules — they can’t “think” like a human. Automation often reveals the gaps in a strategy rather than
We’ve released a new video on one-click trading in MetaTrader 5 — a feature that lets you open and manage trades instantly, without extra confirmations. Execution speed plays a critical role in trading. In this video, you will see how the platform's built-in tools allow you to place market orders
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
If account is going maximum drawdown then what is the best idea to short out this panic situation as well as what is next step to do for continue in market
  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
  Tick tools  (37   1 2 3 4)
Hi, Recently I've begun development of tick indicators. Some of them you can see in this thread: -TickSmoother -TickPriceChannel -TickMACD -TickStochastic Some of them can be implemented in EAs for better entries or for scalping.
  All About Price Action  (67   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...
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
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
May I know if there is anyone who focus on triangle breakout and can make profit this year
[Deleted]
If you are looking for EA for trading, which you trust? the live signal of the EA that show real trading activity and performance? or the backtest
  Nasdaq  (1)
Does anyone here trade Nasdaq? What leverage do you get from your broker
[Deleted]
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
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
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
  We use Bitcoin ;)  (493   1 2 3 4 5 ... 49 50)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
  BTC  (4)
Does anyone here trade BTC
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
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 (
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
  Canvas is cool!  (1031   1 2 3 4 5 ... 103 104)
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
Hello, wondering if anyone could help out, im trying to code my EA in Mql5 but i get this error, Any help on how to resolve this. Thank you in Advance Note: The starthour and endhour are already defined Part of the Code concerning time... void OnTick () { datetime currentTime = TimeCurrent ();
I am doing a big optimisation for one of my EAs. Turns out my local machine and local network agents won't cut it, so I opted into the MQL5 cloud network . Anytime I enable MQL5 cloud agents I get the above error. It's still deducting money from my MQL5 account though. What's up with that error? I
Hi everyone, beginner question here. I’ve just purchased a new EA, but I already have another EA running on MetaTrader 5 using the built-in MetaTrader VPS. I’d like to keep each EA fully separate (ideally one EA per account and VPS), and I’m unsure about the best way to structure this. What would
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
Hi, I’ve designed a neural network featuring two agents that decide whether to enter a "buy" or "sell" position, or to "skip." The entire codebase is in Python, which outputs a CSV file; this CSV is then read by an MQ5 Expert Advisor (EA) that manages the actual trades. I’m now looking for advice
gidday. i want my script to work on forex pairs, all trades, from all forec symbols. My script below is working on both usd and aud deposit accounts, but only on BUY TRADES. help! I want all my trades have an sl that is equivalent of $350
Hi, Is it possible to add more than one EA to a single chart ? When I try, MT5 always remove the already installed EA... why this limitation ? Thanks! Erwann
  EA Time Trouble  (5)
Is matching the EA time with the broker’s time one of the biggest challenges
EAs do not seem to be running in parallel when put on different workspaces in same MT5 terminal. Switching workspace seems to be reloading and initializing the EAs losing current state. I was expecting to be able to spread my EAs across multiple workspaces and switch to observe status and control as
  dynamic lotsize not working. help!  (63   1 2 3 4 5 6 7)
void OnTick () { auto.s5 = 0; for ( int k = total0 - 1 ; k >= 0 ; k--) { if (position.SelectByIndex(k)) { tk = position.Ticket(); if (tk <= 0 || tk != position.Ticket()) break ; int otyp = position.Type(); if (otyp != POSITION_TYPE_SELL
Hi, I’m currently facing a challenge with the MT5 Strategy Tester during heavy optimization runs, and I’m looking for a more efficient way to handle "invalid" parameter combinations. To avoid wasting time on useless optimization passes, I’ve been using INIT_PARAMETERS_INCORRECT (or INIT_FAILED)
Hi everyone, I am developing an EA for XAUUSD and I would like some advice about trailing stop management. Current setup: Symbol: XAUUSD Mainly H1 timeframe Trend/momentum strategy Trades often run into profit, but many positions close too early because of trailing settings. At the moment I am
  Found a scary EA  (7)
BOTH backtest and forward testing in the strategy tester of mt5 are profitable. Does it means it will be profitable in real market as well? What I need to know before I purchase is: What tick data is being used in the forward testing? Is it the data from the past or from other symbol
Hay, I am new to programming and this is my first EA. I used PositionsTotal()<=0 to count all positions, now I want to use magic numbers to count positions. I would like to ask if there are any other solutions or methods. if (PriceInfo[ 1 ].open > Buffer_belowlin_FS[ 1 ] && PriceInfo[ 1 ].open >
[Deleted]
  Multi Timeframe Indicators  (12254   1 2 3 4 5 ... 1225 1226)
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot
Hi, I’d like to ask how you handle measuring price velocity. There are situations in the market where you can clearly see very fast and sharp moves, and I’m wondering what is the best way to analyze them. Do you think M1 candles are sufficient for this, or do you use more precise methods such as
  Moving Average  (1550   1 2 3 4 5 ... 154 155)
Post all MA indicators here
  Tick Indicator and EAs  (245   1 2 3 4 5 ... 24 25)
hi, a cool indicator Tick_on_Chart i all TimeFrames :cool: only Live Tick !!!
  MACD indicator  (1533   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...
  Everything about RSI  (1468   1 2 3 4 5 ... 146 147)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
Overview I’m sharing a free indicator I built: a Multi‑Timeframe Linear Regression HUD rendered with Canvas , designed to show trend strength, deviation from regression, and recent candle bias — all in one compact dashboard. Useful for discretionary traders who want a quick “market condition
Hi All, Do you have an indicator in mind that you think would make your life easier or more productive, what would it be? I might be able to write it for you. Let me know it's details and if it's needed for mt4 or mt5 and if I can write it, I will give it to you for free
  Need help indentifying indicator  (2709   1 2 3 4 5 ... 270 271)
sisi: Hi,Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx I hope you could attach your EA so...
Which hero has the wave three indicators. Please help me
Hi! I want an alert system for technical indicators. It's been rather difficult to implement that into the existing source code of the indicator. I have searched online and found no reliable or latest results for this. Basically, I want a read, yellow and green box whenever the indicator reach a
Hi, the code "while(!IsStopped())" is not working on my Indicator. I have a code like this: while (! IsStopped ()){ copied = CopyTicks ( _Symbol , ticks, COPY_TICKS_ALL , LAST_TICK_TIME, 1000000 ); Print("COPIED: "+copied); if (copied> 0 ){ LAST_TICK_TIME =
Apologies for a really stupid question! Recently started using MT5 and I have been looking for a tool on the platform which draws out SL boxes in red and TP boxes in green, expandable. It's probably really easy to find, but I can't find it. Any help would be appreciated Cheers
[Deleted]
RSI is a very good signal specially when use 70-30, but sometimes it can be early signal and enty at that time would lead to some drawdowns before the right direction start Am looking into any indicator that can help to avoid this situation I tried most famous indicators and no one helped Any
Hello All, I am still struggling to port what I perceive as useful mq4 indicators to mq5. I had help on my last attempt but chose quite a complicated indicator and 'am saving it for later'. This indicator is far simpler and I can tell from the debug I have included it is locating signals and
Check out the new article: MQL5 Trading Tools (Part 31): Creating an Interactive Tools Palette in MQL5 . We turn the Tools Palette sidebar from a static shell into an interactive MQL5 system. The article implements flyout menus per category, a chart event handler, a multi-click drawing engine (one-
  Examples: MetaTrader 4 on Linux  (41   1 2 3 4 5)
New article MetaTrader 4 on Linux has been published: In this article, we demonstrate an easy way to install MetaTrader 4 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes Software Corp
Check out the new article: The View and Controller components for tables in the MQL5 MVC paradigm: Containers . In this article, we will discuss creating a "Container" control that supports scrolling its contents. Within the process, the already implemented classes of graphics library controls will
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 15): How to Calibrate Profit-Taking and Stop-Loss Targets from Synthetic Data . This article applies the Optimal Trading Rule from AFML Chapter 13 to set profit targets and stop-losses without in-sample calibration. We model
Check out the new article: Forex Arbitrage Trading: Relationship Assessment Panel . Let's consider creating an arbitrage panel in MQl5. How to get fair exchange rates on Forex in different ways? Create an indicator to obtain deviations of market prices from fair exchange rates, as well as to assess
Prime Quantum AI — TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). : Prime Quantum AI is an MT5 Expert Advisor combining a classical pre-filter (ADX + Alligator) with AI vision-based chart confirmation from major AI providers (Anthropic Claude, OpenAI GPT, Google
Self-Aware Trend System : Self-Aware Trend System (SATS) is an advanced MQL5 indicator that combines an adaptive SuperTrend engine with a Trend Quality Index (TQI) dashboard, offering dynamic signal detection, risk management levels, and self-learning calibration for smarter, more reliable trade
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
Check out the new article: Beyond the Clock (Part 1): Building Activity and Imbalance Bars in Python and MQL5 . The article replaces clock-based sampling with López de Prado's alternative bar types and provides two aligned implementations: a unified Python module for batch tick histories and an
Check out the new article: Adaptive Malaysian Engulfing Indicator (Part 2): Optimized Retest Bar Range . The article adds a self-adaptive layer to the Malaysian Engulfing indicator by optimizing the retest bar range with a constrained brute-force search scored by MFE and MAE. It details the data
Check out the new article: Building a Trade Analytics System (Part 3): Storing MetaTrader 5 Trades in SQLite . This article extends a Flask backend to reliably receive, validate, and store closed trade data from MetaTrader 5 using SQLite and Flask‑SQLAlchemy. It implements required‑field checks
Check out the new article: Manual Backtesting with On-Chart Buttons in the MetaTrader 5 Strategy Tester . Learn how to build a manual backtesting EA for MetaTrader 5's visual tester by adding chart buttons with CButton, executing orders through CTrade, and filtering positions with a magic number
Check out the new article: Automating Trading Strategies in MQL5 (Part 27): Creating a Price Action Crab Harmonic Pattern with Visual Feedback . In this article, we develop a Crab Harmonic Pattern system in MQL5 that identifies bullish and bearish Crab harmonic patterns using pivot points and
Instance ID script for MT4/MT5 : This script allows a user to find out instance_id of the running MetaTrader instance/installation. Author: Stanislav Korotky
Check out the new article: Creating Custom Indicators in MQL5 (Part 11): Enhancing the Footprint Chart with Market Structure and Order Flow Layers . This article extends the MQL5 footprint chart with market-structure and order-flow layers: volume-profile bars, point of control, value-area
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
I have tried to add Buy and Sell Signal, pop up alert, and push notification from Histogram Indicator. Following line have errors : string fullMsg = Symbol() + " + IntegerToString(Period()) + " - " + msg; The errors after compiling : '' - double quotes are needed '-' - illegal operation use Much
I’ve been having a problem for the past few days with installing MT4/MT5. During the installation, a proxy window pops up, which has never happened before. When I click Cancel, the installation stops. I also can’t download a newer version from the broker — I get some kind of proxy page error. It
  Something interesting, old thread  (1286   1 2 3 4 5 ... 128 129)
Dear all, I would like to start this new thread cause I have some indicators that I paid for them and I want to share for free with you, all of you that for years share tons of ideas with me in this beautiful forum. I hope to encourage many users to do the same thing Best regards doc EDIT now the...
  Live vs Demo EA  (6)
Anyone fancy taking a look at this EA , when back tested in strategy on the 1m chart XAUUSD with TP 100 , the results are amazing, however in live I cant get it to be profitable? here's the script : //+------------------------------------------------------------------+ //| Expert Advisor
  Pattern  (25   1 2 3)
Pattern indicators.
Dear Community, is it possible to feed data from MT4 indicators into Access tables real time? As far as I could find out, it can be done with server-generated data like Time, Open, Close etc. But what I (additionally need is locally generated data), what should be easier theoretically, but who
Hey guys,  I am in need of assistance please. What I would like to do is every time price creates a new high or low for the day I want to be able to save the price and the time somehow (perhaps in the global scope) to use it as a reference point? Would anyone know how to do this? 
I am runnning MT4 under Wine 6.0 on Ubuntu 20.04 focal. Have already run $ wincfg to set programms' window dimensions and scale police size. Now I am facing the issue that the toolbar submenus are not aligned and spread on two lines, and within submenus icons are also split on two or even three
I have an EA that I want to sell, but verification always fails
Hey everyone, I got tired of MT4’s default trailing stop. Trailing by a fixed amount of pips makes no sense when volatility changes every session, so I had a custom EA built to trail strictly by R-multiples. It is completely plug-and-play with zero inputs. How the logic works: It looks at the
The MetaTrader 4 update will be released on Friday , February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
The MetaTrader 4 update will be released on Friday , May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hi, I'm using Ubuntu 22.04 Linux with the latest version of Wine on my VPS I can run MT5 normally. However, i am successfuly installed it, when I run the installed MT4, I always get the message "Debugger has been found running in your system. Please unload it from memory and restart your program"
hi,I would like to convert  point from currency pair to currency account. For example assuming my account is in USD what will be  the value in USD of 200 points on the currency pair EURJPY.  I heard about MarketInfo(EURJPY, MODE_TICKVALUE)) which return value in USD for one tick...