MQL5 Algo Trading community — forex forum for traders and developers
Hello everyone, I am developing a broker information and lookup website that will help users search for forex brokers and identify their associated MetaTrader 4 (MT4) and MetaTrader 5 (MT5) trading servers. I would like to know whether MetaQuotes provides an official API, public data feed, or
Hi, My MQL5 account was created by using the Google login button (without defining the password). I tried to connect to my MQL5 account within MT5, but when I click on "forgot my password", I just never receive the email. I tried several times from both MT5 and browser, I just get the confirmation
TimeCurrent() returns corrupted future timestamps, while TimeLocal / TimeGMT / TimeTradeServer / iTime are all correct Problem TimeCurrent() returns absurd future values (year 2033, even year ~69,000), while every other time source returns the correct time. Note: Print(t) itself outputs the literal
Hello Mql5 Strategy tester and metatrder 5 demo account produce different results during tests or execution. May you help fix the metatrader 5 platform error
Sorry, your application has not passed automated checks and has been rejected. You have correctly filled the required data, but the Verified User status could not be granted to you for security and service transparency reasons. Please do not create a new account for a repeated application. All
Since most EAs have history reader, who should i contact at MQL5 to complain about the state of this marketplace ?
(35 1 2 3 4)
It is so easy to prove that many EAs (I really mean many - contact me for the names) have ways to cheat backtests . Most of them cheat a simple backtest fully, some of them cheat a backtests moderatly to heavily. A simple statistical analysis can reveal if the EA is cheating as at a certain date the
What in the hell happened here? Clearly a glitch on Metaquotes end... Can this be reversed? Now my journal across all my Metaquotes terminals are being spammed with these old ticks every 1ms filling my journal logs up massively every second. This was a Metaquotes demo account
Hello, Following an MT5 update on 28 October 2026, my Strategy Tester has stopped working correctly. Platform: MetaTrader 5, Build 6290 (27 October 2026) Server: MetaQuotes-Demo Symbol: EURUSD, M15 Problem: Strategy Tester repeatedly fails to synchronise historical data, despite historical bars
Summary: Since some build between 5833 and 6140, the Strategy Tester returns real_volume = 1 for bars of any timeframe other than the tested chart timeframe. tick_volume is still correct, and so is history before the test start date. On the chart timeframe itself, real volume is correct. Build 5833
Seem like my VPS can't trade since Friday. MQL5 London 7 .....
MT5 Build 6290 Strategy Tester fails to load built-in indicators — Error 4805 : Hello, My MT5 Strategy Tester stopped working. Both my custom EA and the built-in ExpertMACD fail during initialization. Platform: MetaTrader 5 Build 6290 Symbols tested: XAUUSD-STD and XAUUSDm Errors in Journal: cannot
I am building an order-free, private offline conformance harness, not connecting to a broker or testing a trading account. A retained attempt with MetaTrader 5 build 5800 recorded failed IPC initialization and an IPC dispatcher not started, then timed out. The retained terminal SHA256 is
Hi, I created demo account at Exness. The server it gives me is Exness-MT5Trial15. In the MetaTrader open account, the server is not available in the dropdown list to login. I am new to this world. Can someone help me please. TIA
Subject: MetaTrader 5 Python API — Bar timestamps and historical session gaps on MetaQuotes-Demo
(1)
Hello, I am developing a Python-based trading system using MetaTrader 5 build 6292 and the official Python integration package 5.0.6231, connected to MetaQuotes-Demo. Two independently installed MT5 terminals return matching historical OHLC data, but I need clarification on two issues: The exact UTC
I have been testing my trading strategy on an MT5 demo account for the past three months, and the testing had been running smoothly until last night, when the account was unexpectedly blown due to what appears to be a critical bug. As shown in the attached evidence, my GBPUSD trades were closed at
What kind of vps do you use? Maybe some cheap and reliable advice for 5-10 terminals
Why martingale EAs look profitable… until they aren’t (especially on gold)
(121 1 2 3 4 5 ... 12 13)
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
Hello everyone, I wanted to share some lessons learned about parameter optimization, hoping to get your feedback and maybe some ideas to improve. 1. Walk- forward optimization beats simple single-period optimization. A strategy that looks great on one year of history often breaks on the next six
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
By Take Profit By Stop Loss By Reversal Buy/Sell Signal By Trailing Stop Others, Pls Specify
Which strategy is best to close profitable positions
How do you measure the real impact of economic news on an EA? I've been researching how automated trading systems behave around economic releases, and I've noticed that simply classifying events as Low, Medium or High impact doesn't tell the whole story. Two High-impact events can produce completely
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
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
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
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
Hi Here is the code I use for my money management. - Actually it shouldn't be called MM, as it is only calculates how many lots can I buy so that when I hit my stop loss I only loss a certain percentage of my account. I think though that is one of the crucial aspects of forex- trading - as it leads...
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
Scalping system shows zero directional edge across 31 features — is there anything left to test?
(24 1 2 3)
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
Hello, Could anyone tell me about flitration in Metatrader 4 Administrator? i didn't understand about it. Thank you
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...
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
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...
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
what is the procedure to add symbol from NSE to MT5 marketwatch and start trading NSE option trading and back test
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
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 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
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
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
Hello, We run MetaTrader 5 build 6182 (distributed by our broker). The build 6230 update has been downloaded by Live Update but not yet applied. We need written, documented answers to the following. Please cite official documentation where it exists. 1. Installer behaviour The installation help
Hello, how can I write the expert code on my mobile
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, Long time reader first time writer. I'm working on an EA that uses Heiken Ashi candles and needs to know if the previous bar was bearish (red) or bullish (white). There is a buffer for close and open price and I have variables that update for previous bar close and open based on the
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
Hello, I recently published on the MQL5 Market but I am unable to install the demo version of my own product. The installation fails without displaying an error code in the MT5 Journal. The Journal shows Downloading but nothing else No further error or successful installation message appears. I
Hi all, In early October 2026, I went through the product pages and public signal track records of ten of the best-selling scalping and martingale-type EAs on the MQL5 Market, and checked every figure twice. I'm not naming any sellers — patterns matter more than people. Here is what kept repeating
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
After a lot of bought EAs, prop challenges and backtests that looked great, I ended up with a short checklist I now go through before I pay for anything. Backtests weren't the problem. They just never told the whole story. Here's my list. Curious what you'd add or disagree with. 1. Deposits dressed
Hello MetaQuotes team, I am trying to establish the provenance of an EX5 file loaded by a local MetaTrader 5 Strategy Tester agent. In one run, the agent journal reported “expert file added ... 239101 bytes loaded,” while the frozen local EX5 file measured 239012 bytes. I do not know whether these
Any EA that works with fixed session times (Tokyo fixing, London open, New York close) needs the broker's GMT offset, the difference between server time and UTC. Live, TimeTradeServer() - TimeGMT() gives it. In the Strategy Tester it does not: the documentation says that during testing TimeGMT() is
Hi, i'm intended to create an EA with AI Assistant (MQL5 model), but before there are somethings i wanna know first: Can I build complex EAs with MQL5 Lite, or does its capability depend on the prompts I give it? Can I continue working on my prompt in the same chat room on another day once I've
Hi traders and ea coder, kindly share ur views on my strategy , intraday, 1) daily every new high buy entry, 2) daily every new low sell entry, 3) timeframe 5 min and 1 hour 4) stop loss previous swing high for sell stop loss previous swing low for buy or 5) stop loss current day high for sell
I’m currently coding an MT5 EA and I’d like to add an image/logo directly onto the chart (not just text or lines). I’ve been experimenting with OBJ_BITMAP and OBJ_BITMAP_LABEL, but I’m not fully sure how to properly load and display a custom image in the EA. Has anyone here done this before?🤷♂️
I have discussed a couple of times in threads about EAs and if they have any real edge or not. But what is really considered an edge? Is it a combination of indicators that on historical prices of a specific market can predict the direction of price most of the time? Will it suffice to have a
Why is it that MT5 has a white flicker when you change timeframes while MT4 operates smoothly? Is it because the charts in MT5 are not preserved and are rebuilt every timeframe switch? How does this affect the objects in the charts? Is there a way, or can you make a way to make the chart engine the
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%
Most of the repainting complaints I see in this section come down to one assumption, not to the detection logic or the buffer handling. MetaTrader hands OnCalculate its price arrays oldest to newest. Not series, not reversed, not newest first. Index 0 is the oldest bar currently loaded, and index
Hi, i'm trying to create an indicator with claude ai help, and it's almost works well, this code is intended to draw a plot arrow into the particular candle as a signal based on stochastic level the only issue i face is the signal only appear on previous candle that already formed, meanwhile for the
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
I'm looking for someone that feels the have developed a good working Kalman Filter Model to use in the fx market
Hi everyone, I am looking in vain for the code of this MESA projective indicator to be placed on the price that draws in the future the length of the cycle; Has anybody worked on that or know where to find it? I am looking for this indicator able to: take advantage of the adaptative cycles from J
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
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...
Good day, This is a public technical question. It is not a private support ticket. A response is not guaranteed. A response from other participants remains to be seen. supporting us until authorship is officially assigned to MetaQuotes and The statement binds the built-in iMA to exactly this build
Hi, I read that using ArrayCopy on the same array could cause data corruption when the initial source index is lower than the target index, due to the left-to-right copy. I tried, but no data corruption was detected. Can I be sure this won't happen under any circumstances? Here a simple script
Hello Friends! I tried to convert an indicator from MQL4 to MQL5. the indicator named: Swing Cloud and I don't know what is wrong with MQL5 code. In uptrend the cloud should be below the price and in downtrend the cloud should be above the price. Here is on MT4 it print the cloud in the correct
I have an indicator that combines the drawing of colored arrows and colored lines. The logic for determining colors and the colors themselves are exactly the same for both arrows and lines. Does each colored plot need to have its own color buffer? Or is it possible to use one color buffer for all
Is it possible to work with txt, csv or other files in the testing strategy? If so, how
Hi! I'ld like to be able to draw some rectangles that are gonna mark support and resistances zones that may take lots of bars to be crossed, thus being relevant for a lot of time. In my tool, I do that by extending the final points of the rectangle to a whole new year in the future: The problem is
Grok Swing Color Pro MT4 : by Grok AI Author: Rodrigo S. Franco
Kalman Candles : Good tendency estimator, coloured candlesticks Author: Rodrigo S. Franco
Daily Loss Guard : Closes all trades when your daily loss reaches your limit. Author: Themistokli Kola
Supply Demand Zones : Supply and demand zones for Gold (XAUUSD), EURUSD and any symbol: zones from swing highs and lows sized by ATR, fresh or tested, merged, broken ones removed, alerts and 5 buffers for EAs. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
AutoGannAutoTrend : The indicator plots price channel, Fibonacci levels and Gann fan based on the latest ZigZag peaks. Author: Nikolay Kositsin
New article MetaTrader 5 on Linux is published: In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes
HybridMicrostructure EA : The Hybrid Microstructure EA is an advanced, high-frequency scalping Expert Advisor designed specifically for XAUUSD (Gold) on the M1 timeframe. Unlike traditional indicators that rely on lagging OHLC mathematics, this EA operates on Tick-Level Microstructure
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
TimeZones : The indicator draws four vertical colored lines during a day. Line parameters can be set in the input parameters. Author: Nikolay Kositsin
Copula: Gaussian, Student t, Clayton, Gumbel and Frank copulas with tail dependence : Fits five bivariate copulas on ranks, with Kendall's tau, tail dependence, the probability of joint extreme days, AIC and the conditional probabilities of pairs trading. Author: Mohamed-amine Baddir
ChangePoint: Bayesian online change point detection : Online detection of changes in the mean or volatility (Adams-MacKay): probability of a change in the last k bars, current segment length, forecast, and an indicator. Author: Mohamed-amine Baddir
MeanReversion: Ornstein-Uhlenbeck fit and optimal trading bands : Exact maximum likelihood of an Ornstein-Uhlenbeck spread and Bertram's optimal entry and exit levels for a given cost, with the expected length of a trade cycle. Author: Mohamed-amine Baddir
Trade Excursion Report - MAE and MFE of your closed trades (script) : For every closed position the script measures how far the price went against it (MAE) and in its favour (MFE), and shows what that says about your stops and exits. Table, summary on the chart and a CSV file. Read-only, it never
Spread Heatmap - typical spread for every hour and weekday, in server time or New York time : A table on the chart: the typical spread of the symbol for every hour and weekday, read from the history of your broker. Green is cheap, red is expensive. Hours in server time, UTC or a city with the right
DailyLossGuard — Hard Daily Loss Protection : DailyLossGuard — Hard Daily Loss Protection (Prop-Firm Challenge Essential) The #1 reason funded challenges fail is breaking the daily loss rule. DailyLossGuard enforces it automatically: it tracks your daily P/L every tick against your limit (% of
Platform: MT4, desktop and iPhone Server: MetaQuotes-Demo Symbol/timeframe: XAUUSD, M15 Candle: October 27, 2026, 22:00 server time Open: 2.04 , High: 4061.68 , Low: 2.04 , Close: 4061.43 The same spike appears on both devices and a newly opened demo account
Members of the forum, don't forget to follow the rules
[Deleted]
I am writing mql script to look for any change in the file and if it detectes any change in the file then it performs some trading function But after the mql "FileOpen "call desired file becomes unusable by other application even with "FILE_SHARE_READ" flag. What I am doing wrong or this is how Mql...
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
Hello, I am looking for an official MetaEditor distribution for MetaTrader 4 to compile and investigate my own MQL4 program in an isolated Windows environment. I would appreciate clarification on the following questions: Is there an official, fully offline MT4 installation package that includes
First could you please assign a shortcut, in the MetaEditor for "SaveAs" ? I never use "save all" and always use "save as" having to always reach the menu just to save a copy is painful when you do that all day Secondly could you please restore MT4 way of showing partial backtests if the backtest is
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
Hello, I am preparing my first MetaTrader 4 Expert Advisor for the Market (draft product ID 201415) and the automatic validation fails. I would like to understand how the validator tests MT4 Expert Advisors. Version 1.30: the report shows 22 errors on NZDUSD,H1: "not enough money for buy 0.20
Hi bros, yesterday I had an idea, pick all the best trend following default indicators on TradingView and made a super TS with the conjunction. Claude from Anthropic did the excellent job. Here is the .mq4 file and a example image
Hi guys. Can an EA be programmed to recognize when a user manually opens or closes a trade from the chart
Hi, I'm using a custom moving average indicator. After updating to build 1491 Metatrader 4, the indicator goes missing from the chart whenever I start MetaTrader. When I reapply the template, it sometimes shows all the indicators I saved, but other times it only shows one . 1. All indicators are
Hi there I installed Metatrader 4 and add an EA to the chart. I am able to configure the settings for the EA and save to a set file But when I request the settings of the Expert advisor after config, I get this screen. The EA does not take any orders. It works on another laptop. What do I miss on
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
Custom indicator Heiken Ashi no longer shows up on the chart after auto compiles at the initial load of terminal after the version update Strategy Tester also shows the following errors regarding Heiken Ashi. 0 01:10:42.456 2025.06.01 22:00:00 PlutusV2613 EURUSD.FX,M1: HA Error: Indicator not ready
Hello, I am posting this in the MQL4 section since there is no MQL5 section to post it in. I am creating a simple chart overlay in MT5 to visually compare two symbols. However the chart overlay indicator does not update in real time it only updates on the close of the bar. Does anyone know what
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.