MQL5 Algo Trading community — forex forum for traders and developers

General rules, enforced by moderators : Rules Please be polite when communicating on this website. Refrain from statements that may offend or insult other users, Negative discussions of any banking, brokerage and other financial institutions are not allowed, Any discussions about personal relations
Is it worth it anymore to sell EA's and Indicators in this AI age, Yes, No
Hello everyone, Gold is one of the hardest symbols to automate because the spread and slippage can change a lot in a few seconds, especially at the daily rollover and around high-impact news. These are the protections I use in my gold EAs at the moment: 1. Max spread in PRICE, not in points. 60
The Service Desk option offers NO SERIVCE. Every request is simply routed to a virtual assistant which is of no help in financial matters. Is there a way to contact them
MQL5 VPS (hosting 6949043, London) runs MT5 build 6361 on Windows Server 2025. WebRequest() to https://api.telegram.org returns 1009 with an empty response, while the same EA and settings on my local terminal (build 6249) send fine. The URL is in the allowed list and was migrated. Please advise
With the new AI integration in MetaTrader 5, I think there's an opportunity to take things further. Wouldn't it be useful if MQL5 developers could access the AI model configured in the terminal directly from their Expert Advisors? I'm not talking about using AI to write code. Imagine an EA sending
I've been wondering how much COT data, retail positioning and macroeconomic factors actually influence market trends. Do they really help you understand where the market is heading, or are they not as useful as many traders believe? I'm curious to hear how other traders approach this. Do you use COT
Hello, I need to verify the official Forex trading sessions for EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF and EURJPY on MetaQuotes-Demo. Could you confirm the trading hours and any holiday exceptions for November 26, 2026, including the server timezone? Thank you
For every EA there is a set limit of 1024 Input parameters, any idea how could we increase this limit beyond 1024 as far as there is no limit on how many lines code is
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
I am trying to withdraw using a credit card and it's always refused. The Service Desk keep repeating "Declined by issuing bank". So I contacted the card provider, and they said they never received any request (I had to ask 4 times). So I asked again to our dear ServiceDesk and they said it's
Hi, when installing the latest version of metatrader 5 the message "a debugger has been found running in your system" is shown and the installation aborts. steps to reproduce: wget https://download.mql5.com/cdn/web/metaquotes.ltd/mt5/mt5setup.exe rm -R .mt5 export WINEDEBUG=-all WINEDEBUG=-all
Hello, After moving my Virtual Hosting subscription to a new trading account on 15 Nov, the subscription was placed on a new server (VPS London LD6 081, terminal build 6321). Since then every push notification from the hosted terminal fails, and MQL5.community authorization fails every 5 minutes
Hello, I am trying to connect Python to the already running MetaTrader 5 terminal for read-only diagnostics. No orders have been sent. Environment: - Windows 64-bit - Python 3.13.3, 64-bit - MetaTrader5 Python package 5.0.6231 - MetaTrader 5 terminal build 6230 - Standard, non-portable terminal
I'm on Mac Wine, after optimization in MT5, its allowing to export only in XML format but not downloading report in Excel sheet
Has anyone actually used an EA for passing their prop firm challenge and maintaining their prop firm accounts over a long period of time? If so, do you have proof? Trade history on myfxbook, for example? Thanks
Hi everyone, I’m working on an automated interpretation of a trendline trading approach in MQL5 and would appreciate technical feedback on how to validate its behavior in the MT5 Strategy Tester . The strategy inspiration comes from Tori Trades’ video, “Once you master this strategy, trading becomes
[Deleted]
  Automated Vs Manual Trader  (32   1 2 3 4)
On my opinion, “Automated Trading Systems” does notpay attention to the Ratios. However, by automating your system there are zerochances of falling in love for a deal, which is good since no one is lookingfor love here! In the other hand, very few traders can actually automatesomething different....
Hello traders, I have been working on algorithmic strategies for XAUUSD (M15 timeframe), and one of the biggest challenges I face is controlling drawdown while maintaining solid profitability. In your experience: - What risk management techniques work best for gold? - Do you prefer fixed lot or
We run a small MT5 stack with a 1 % daily loss cap. It had been in place for months and we trusted it. Replaying our own history, a day where every stop gaps at its instrument’s 99th percentile reaches 13.84 % of equity . Not 1 %. The cause is simple once you see it: the limit counts the stop, not
I've been thinking about market regimes lately and I'm starting to question how we normally build EAs. Most strategies are basically built around the assumption that the market behaviour we see in the backtest will continue to exist in the future. But we all know that isn't always the case. A trend
I was testing a daily loss lock in the Strategy Tester (100,000 account, 5% daily limit = 5,000, lock set at 90% of the limit). With "1 minute OHLC" the lock fired late: the day closed at 105% of the limit. With "Every tick based on real ticks" it locked at 90.0% (−4,501), exactly as designed. The
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
Modifying A Good Trading Strategy Prematurely. Strategies will often go through a losing period but the issue comes down to knowing when a change has occurred. Many traders will try to tweak indicators, add filters or change entry rules after a few losing trades. This can cause overfitting of your
I run an LLM-driven intraday scalper on MT5 (demo). Over 60 closed trades it lost $212, and commission alone was 40% of that loss. Before asking "how do I make it profitable", I spent two weeks trying to establish whether it has any directional edge at all. It does not — and I want a sanity check
  Trading System by Xard777  (3901   1 2 3 4 5 ... 390 391)
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
Hi all, Recently i tried to optimize a strategy, i choose the fast genetic optimization since the number of passes where high. I used the system resources and also the MQL5 cloud network at the same time. Local optimization is working fine, but the cloud optimization is failing. In the Journal the
Hello! In the Marketplace at mql5.com you can download a demo version that only works in the strategy tester . Many clients do not consider the Strategy Tester as a valid proof and have doubts about the robot's efficiency. Can I place a link to the trading robot demo version in the product
  The Only Pivot  (2695   1 2 3 4 5 ... 269 270)
Shinigami ask me to put my latest indicators and templates.. so if you are new for reading this thread, please use this indy and template because this is what i use now after download this zip file, just go to page number....... (i forgot, sorry ) the rule is using h1 1. if 2 SMMA WEIGHTED CLOSE...
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
New article Creating a trading robot for Moscow Exchange. Where to start? has been published: Many traders on Moscow Exchange would like to automate their trading algorithms, but they do not know where to start. The MQL5 language offers a huge range of trading functions, and it additionally provides
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
  BTC  (13   1 2)
Does anyone here trade BTC
  Welcome to the new section!  (15   1 2)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
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 recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you
I'm trying to figure out if I can have a list of all my trades for the same utensils separate rather than one bulk position in the tool box/terminal box. Is this even possible? Thanks
  Nasdaq  (7)
Does anyone here trade Nasdaq? What leverage do you get from your broker
Hi, Can someone please let me know how to use Metatrader5 to trade in stocks in NSE and/or BSE stock markets in India? Thanks, Amitabh
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  Simple trade automation?  (19   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
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
Hi All How do I add the NSE Indian Market- Stocks and Futures into the MT5 market watch. Thanks a ton for your help. Regards Praveen
  MT5 and NSE  (5)
what is the procedure to add symbol from NSE to MT5 marketwatch and start trading NSE option trading and back test
  Who are the resistance?  (19   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
Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
Hello everyone, I am researching tick-based scalping strategies on XAUUSD using MQL5, with holding periods ranging from a few seconds to approximately one minute. During previous experiments, I found that micro-range and tick-momentum signals sometimes showed positive price movements before
How do you record MT5 Economic Calendar releases for a Strategy Tester replay that uses only the values available at the time? I’m looking at CalendarValueLast() . What’s a reliable way to timestamp the first observed actual and forecast values and flag gaps after a terminal disconnect
Every Expert Advisor I test now carries an input it does not need: the expected cost of a round trip, in points. At zero the strategy trades as if execution were free. Set it to a spread measured from your own quotes and the same code pays for its fills, and the gap between the two runs is the only
I bought an Ea but when I click install, nothing happens, I see just the logo of the Ea reloading but nothing more, what could be the problem? In the messages I see 2026.11.28 04:39:52.376 MQL5 Market 'xxxxxxxx': start the activation of the purchased product 'Lizard' 2026.11.28 04:39:52.471 MQL5
Running 2 EAs on MT5 via VPS. Recently had one go quiet for about 3 days — no crash, no errors in Experts or Journal, smiley face still there, terminal connected. It just stopped taking trades. I only found out because I manually check the accounts every few days. Could easily have been longer
Hi everyone, there were a few threads here lately about backtest vs live. Most ask why the two differ. I'd like to ask something a bit different: how do you notice it early enough? What I do with my EAs is pretty simple. I run the backtest over the same weeks as the live trades, on my broker's
I am testing an 11-symbol MT5 EA that checks positions once per second. I would like to reproduce a Market timeout locally. Three consecutive validation reports stopped at different points. All the tests listed below used netting accounts. v1.47 (25 Nov) completed EURUSD H1 and XAUUSD D1 with “there
My MT5 EA, "SP500 Close Reversal" (MQL5 Market product ID 211103), trades an S&P 500 cash index CFD. It can run on a chart for another symbol and select the index from the server. It requires a non-expiring, USD-profit, Bid-based CFD with permission to place market orders. The Market report for
Hi, I am totally new in MT5 Python API and I hope, my question is quite trivial - I couldn't find anything: How to install a MT5 listener so the Python script gets notified, once a trade was closed by a S/L or limit order? Is there a sample somewhere? Which functions to use? Thx
I needed a reliable way to tell whether a position left the account because of Stop Loss, Take Profit, Stop Out, or an EA/manual close, including partial closes. Polling `PositionsTotal()` only tells you that something disappeared. The deal in history has the reason. The hook is
Hello everyone, I develop multi-strategy gold (XAUUSD) EAs for MT5, and I am working on how best to protect open profit when the market reverses. Some of my trend trades had no fixed take profit and gave back a large part of their open profit in a sharp reversal, so I compared four exit methods on
Many prop-style rules measure the daily loss limit from midnight on the broker's server clock and include floating P/L (equity), not only closed trades. Below is the approach we use in an EA to get the day's starting balance and the running result for the day, closed plus open, without storing
Hello, I am preparing Double Gold 1.07, an MT5 Expert Advisor designed for XAU/USD, for publication. The MQL5 Market automatic validation reported “there are no trading operations” on XAUUSD D1 (hedging). The report did not show the test dates, starting deposit, leverage, or the Expert Advisor
The approach that has been reliable for me is the one Fernando Carreiro described years ago: ask OrderCalcProfit() for a known volume, then scale to the money you are willing to lose. I use the symbol's maximum volume as that known size, because 1.0 lot is not always a valid volume. OrderCalcProfit
Does anyone know how to add this to the charts in MT5? I can add the retracement tool however, I can't find the extension tool. Any help would be appreciated
[Deleted]
I have recently become more interested in Renko for some obvious reasons. However, although the chart is said to be “less noisy”, and cleaner, the real question is, “Is it more profitable as a result?” If it is easier to identify a trend , to trail, and there is less reliance upon indicators, does
  Restore Up  (2)
I have all of a sudden had a text box come up on my charts stating Restore Up. I have no idea how it got there or what caused it to get there and it's very annoying. Any assistance in how to remove it would be appreciated. Thank you
While developing a swing high/low indicator, one challenge I have encountered is getting newly detected swing points to appear quickly enough for real-time analysis. The difficulty is that identifying a potential swing and confirming that it is an actual swing are two different things. In my
Why the version of MT5 backtest speed such slow, I pend it over night(~8 Hours), only 1 pass finished but I have brought a new cpu, the usage of CPU keep only 11%
My breakout EA work on different currency pairs need an indicator to help to avoid false breakout. May be consider the volume or anything else is OK. Please advise. Thanks Peter
  ATR Trailing Stop - Help  (102   1 2 3 4 5 ... 10 11)
Hi everyone: I have absolutely no coding experience in mq4 indicators, and am asking for help in creating an indicator. The volatility trailing stop that uses a multiple of ATR has been of great use to me in Metastock when I used to trade equities, and I've been looking for an equivalent in
MT5 build 6231. I placed a right-price-label on to a 1 minute chart and now I can't get rid of it. It will not highlight when I double click on it and it is not to be seen in the objects list [ctrl B]. I have tried updating, none ready, I guess I am current. I tried to delete on different periods 5
  Pivot indicators  (761   1 2 3 4 5 ... 76 77)
Everything about pivot indicators you may find in this thread. Besides there are some usefull links as well: - how to trade with pivot (manuals) is here . - some trading system based on pivot https://www.forex-tsd.com/forum/trading-systems/1158-pivot-system - pivots, camarilla, high/low etc.... is
  Everything about RSI  (1470   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
Equidistant ChannelStandard Deviations ChannelLinear Regression ChannelAndrew's Pitchfork (let it be too)Another channel. Will write about it in the commentsNoneI do not have an opinion on the topicI just want to see the answer
[Deleted]
  SuperTrend  (263   1 2 3 4 5 ... 26 27)
I've developed a new SuperTrend indicator. It works the same as the ProRealTime version where you can set the 'Nbr Periods' and 'Multiplier' values. Bear in mind that because of differences between brokers that in places it may change direction earlier or later than the ProRealTime version if you...
  Current spread and swap monitor  (43   1 2 3 4 5)
been asked for this a couple of times by pm,so here it is
  Parabolic SAR indicator  (299   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,...
My intention of the code below is to display 3 periods of moving average lines for the range of bars specified by chart window width. Although first period of line is drawn properly, succeeding 2 period lines fail to draw due to CopyBuffer error (4806 : Requested data not found). I cannot figure out
PropFirm Consistency and Drawdown Monitor : Read-only PropFirm daily drawdown, trailing total drawdown, and single-day consistency cap HUD monitor with four closed-bar iCustom buffers. Author: Nazim Yurtcan
Break-Even Stop Mover with Locked Profit : Moves the stop loss of open positions to break-even plus a small locked profit once they reach a profit trigger. Works on manual trades and on trades from any other EA (magic filter). Never opens or closes trades and never moves a stop backwards. Author
Breakout Follow-Through Statistics: Real Break or Fakeout After a New N-Bar High or Low? : Every new N-bar high or low gets tagged, timed, and scored — real breakout or fakeout — so the scorecard tells you what this symbol has actually done at its own extremes, not what you assume it does. Author
Pullback Depth Statistics: How Deep Do Pullbacks Go Before the Trend Resumes? : Builds a real depth distribution for this symbol's pullbacks — how far price typically retraces before the trend resumes, and how often it doesn't resume at all. Author: Victor Oluwasomidotun Akindipe
Squeeze Duration Statistics: How Long a Low-Volatility Squeeze Lasts and How Far the Range Expands After It : Measures low-volatility squeezes on your own symbol and timeframe. A squeeze is a run of bars in which the range of the last bars is small compared with the ATR. The indicator draws the
Trading Conditions Monitor - Gold, Forex and Synthetics : Is it a good moment to trade? One panel combines spread, session, rollover, volatility, daily range and high-impact news into a clear GOOD / CAUTION / AVOID status. Works on all symbols, tuned for gold (XAUUSD). Author: Blessing Samuel
Opening Range Breakout EA Gold : Opening range breakout EA for MT5 on Gold (XAUUSD), forex and indices: trades the first candle that closes outside the opening range, stop at the range, target in multiples of the stop, lot by risk, end of day close. Open source code. Author: Cristhian Alexander
Supertrend Gold Signals : Supertrend indicator for MT5 on Gold (XAUUSD), forex and indices: ATR trailing line in two colours, buy and sell arrows only on the closed candle of the flip, popup, push and sound alerts. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
MD Scalper – Trend / Reversal pending-stop scalper with trailing stop : Scalping Expert Advisor that reads a 3-period smoothed MA channel (High/Low), places pending stop orders either with the move (Trend) or behind it (Reversal), and trails the stop loss tick by tick. It includes broker-safe order
News Guard — news filter and slippage log for your existing EA : A bolt-on module (.mqh) plus a ready integration example: a news filter that keeps your EA out of new entries around economic releases — using only the built-in MT5 calendar, no DLL and no WebRequest — and a slippage log that records
Tester Memo Helper — Strategy Tester report to verification memo : A script that reads an MT5 Strategy Tester report (HTML) — and, if you give it one, the tester log — and writes a short verification memo: the key figures in one place, each compared against pass/check criteria that you set yourself
Сode that records balance and equity charts and calculates additional optimization criteria : If you have access to the Expert Advisor code, you can save balance and equity charts and calculate additional optimization criteria by adding additional code from this library. Author: Aleksei Kuznetsov
Five Point Retest : Five-point retest structures found on closed bars and turned into plans: a retest band, a target at point 3 and a fail level. Each plan runs until the target is touched or a close goes past the fail level, then fades, and a panel shows how many bullish and bearish structures
Envelopes Channel with 3-Color Trend Candles : Конверты скользящих с раскраской свечей для mt5 Author: Roman Yablonskiy
Breaker Block Retest Zones : Breaker block indicator for Gold (XAUUSD) and any symbol on MT5. Finds order blocks on closed bars, keeps them hidden and draws only the ones price closed through, with waiting, retested and failed states and alerts on the flip and on the first retest. Open source code
  Interesting and Humour  (49804   1 2 3 4 5 ... 4980 4981)
Members of the forum, don't forget to follow the rules
Hi everyone! I'm trying to publish my MT5 EA on the MQL5 CodeBase, but the publishing process says that I need to attach an image. The problem is that I can't find any option to upload or attach an image on my side. Has anyone faced this issue before? Is there a specific way to add an image, or am I
Error code: 4109 – Trade is not allowed The local MT4 terminal reported error 4109 when attempting to place Buy Stop and Sell Stop orders. However, this error occurred in the local terminal , where AutoTrading was disabled following VPS migration. The VPS journal did not report error 4109 or any
  Android  (4)
How do i create a different line in my Moving Average in my Android phone
Hello, I am trying to add the first version of an MT4 product (a utility, draft product 210289) in Market > Control panel > Versions > Add product file. The upload is rejected immediately with: "Please recompile your product with new compiler" . What I already did: Installed MetaTrader 4 with the
On Friday, October 2, 2026, an update to MetaTrader 4 will be released. The new version includes several important security enhancements, bug fixes, and changes designed to improve the platform's overall stability. Improved management of Stop Loss and Take Profit levels for positions on the same
  Metatrader 5 app  (4)
Hallo, I am from the Netherlands and trying to create a new account in my MetaTrader 5 app. Not a Demo account but a live trading account. I don’t see an option anywhere in the app to create a live trading account. Nothing. Could anyone please tell me how I can open a live trading account, or
Hello everyone, I'm having an issue with MT4 MetaEditor when trying to compile an EA using MQL5 Cloud Protector. The MQL5 Community login window keeps asking for my password in an endless loop, even though I'm entering the correct credentials. The same account and password work perfectly in MT5
  Off-topic posts  (1890   1 2 3 4 5 ... 188 189)
Comments that do not relate to the " Ask for help ", have been moved into this topic
The MetaTrader 4 platform update will be released on Friday , March 1, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
I have 4 MT4 terminals, with 15 charts per terminal. I've been updating my trading system lately. One of the measures I took was to reduce the number of indicators on each chart, thinking that this would make my system snappier. To this end, I coded one indicator to have multiple buffers and display
  Expert Advisor  (7)
Hello I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index
Hello, How can I switch the virtual hosting signals (VPS) from one live account to another live account for the MetaTrader 4 software without deleting my data subscription? Since I have a 6-month contract, I do not want to lose the money I have already paid and therefore would like to use the
Hi everyone i have a problem i bought a new vps and i cant login my mql5 account on the mt5 i have logged in my trading account but mql5 account login is giving error login failed and in journal it says mql5.community authorization failed i have tried everything Microsoft WebView 2 reinstalled mt 5
Hi All, I am trying to set up an outlook email under TOOLS>OPTIONS>EMAIL but am having issues I keep getting the error " Mail: login to smtp-mail.outlook.com:587 failed", I have also tried using smtp.office365.com:587 instead of smtp-mail.outlook.com:587 but it still comes back with the same error