MQL5 Algo Trading community — forex forum for traders and developers

Could MQL5 administration clarify how general Terms section 3.7 applies to an AI assistant operating the normal website interface, alongside Blogs Terms section 4.3 and Market Rules IV.10? I am a Market seller considering original English technical guides for traders, with practical steps, official
Hello all. Does anyone have any recommendations for me on ways to improve the amount of money made each day using the MetaTrader 5 Strategy Tester Agent? I just started 5 days ago and I feel like I should be making more money per day then what I'm seeing. Is there something I'm missing? It seems
If EA can continue to make money, why would it need to be sold on the MT5 market? Wouldn't creators make more money by quietly trading with their own funds instead of selling copies for a few hundred dollars? As a potential buyer, this has always been my biggest concern. Is there a reasonable
My root server, which I rent from the German provider netcup, has been running for over a year without any problems with MT5. It uses the same static IP address as before, and I have not recently changed its configuration. The server runs four MetaTrader 5 terminal instances for my own automated
  Reimbursement  (2)
Good morning, I accidentally made a €10 deposit into my MQL5 account, mistakenly believing that MQL5 was a broker and that the deposit was required to start trading on a live account. I have not used these funds to purchase any products or services, and I would like to request a refund of the
Dear MQL5 Support Team, I am writing to respectfully request the review and delisting of my dedicated trading VPS. I use this Windows server exclusively for personal algorithmic trading, running my licensed MetaTrader 5 terminal to manage my live broker positions. Recently, my MT5 instance on this
Hello everyone, I'm trying to install MetaTrader 5 on my Windows 11 PC, but every time I launch the installer (mt5setup.exe), I get the error message: “Sorry, something went wrong: try again later.” No matter which broker or source I try, I always get the same result. I believe the issue is with
I've spent several years writing MQL4 indicators and EAs for FX. Recently I stopped tuning and tested properly: 20 instruments, 7.8 years of M1 data, realistic retail spreads subtracted, rules written down before running them, and judged on data I hadn't used to design them. I tested my own
  Algo Trading  (12   1 2)
Hello everyone. I have two accounts on Fusion Markets and would like to use algorithmic trading , but unfortunately, whenever I switch accounts in MT5, algorithmic trading turns off. How can I trade simultaneously using algo trading? My EA isn't working with the VPS. Thanks to everyone for your
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
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
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
  Off-topic posts  (1871   1 2 3 4 5 ... 187 188)
Comments that do not relate to the " Ask for help ", have been moved into this topic
I’m reaching out for some clarification about how MT5 handles time zone offsets when fetching historical data. Here’s the scenario: My current local time in Budapest (UTC+2) is 10:34 AM . The broker’s time zone is Cyprus (UTC+3) , so it's 11:34 AM in Cyprus. UTC time is currently 8:34 AM . I assumed
I wan't to share future products, but don't want to violate any rule in the community. Is this "legal"
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
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
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
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 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
  VPS server  (82   1 2 3 4 5 ... 8 9)
What kind of vps do you use? Maybe some cheap and reliable advice for 5-10 terminals
  MetaEditor, Open AI and ChatGPT  (120   1 2 3 4 5 ... 11 12)
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
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
  Money Management  (232   1 2 3 4 5 ... 23 24)
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...
HI,Which strategy is best for BTCUSD
I want to say that my nick 'newdigital' is not connected with digital filters. But I started this thread to discuss and explain about trading strategies based on the digital filters only. And to understand how to implement those filters. All about digital filters you may find
I’ve been analyzing automated systems for quite some time now, and there’s something that keeps catching my attention: many EAs show extraordinarily smooth curves, high win rates, and impressive growth using Martingale, Grid, or position recovery strategies. The problem arises when the market
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
  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
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
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
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
  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...
  Nasdaq  (6)
Does anyone here trade Nasdaq? What leverage do you get from your broker
  BTC  (12   1 2)
Does anyone here trade BTC
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
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
  Indexes disabled  (6)
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
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
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 Support, We need to determine whether an MQL5 Expert Advisor can enforce a strict 14,400-second wall-clock deadline when an in-progress file operation does not return. Could you please clarify: Are FileOpen, FileWriteString, FileFlush, FileClose, FileMove, FileCopy, FileReadArray
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
I have successfully installed and used the MetaTrader5 package on Ubuntu without any difference on Windows. Here are the instructions. 1. Install Wine with the following command (skip if you already installed) sudo apt install wine 2. Install the MetaTrader 5 platform for Linux according to the
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
Hi all My EA is different in teser and prop firm account. Please help On 7 Sep, 2026, the no. of lot increase by 1 in tester , but not in prop firm account Prop firm account The function is as follows: int LastLotCnt() { int re; long l_timecurrent = TimeTradeServer (); double
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
Hi all! I'm trying to deal with resource management and/or path resolution when consuming resources that are supposed to be shipped with the Expert Advisor or are supposed to be used during Backtesting. This is in the context of me writing my own Expert Advisor. Not someone elses. For example: I
For me, EA validation should be a multi-stage process rather than relying on a single backtest. I would normally look at: Backtesting over different market conditions, not only the period where the strategy performs best. Out-of-sample and forward testing to check whether the logic remains stable
Hello everyone, I would like to ask for advice from developers who have experience publishing Expert Advisors on the MQL5 Market, especially EAs designed for a specific symbol and using external data/APIs. I have developed an Expert Advisor specifically for XAUUSD (Gold) . The EA is not a
Most brokers on GMT+2/+3 server time follow the US DST schedule so the daily close stays at 17:00 New York. Europe ends DST on 25 October and the US on 1 November, so for that week London opens one hour earlier in server time than usual. The same thing happens in March in reverse. For EAs that build
I'm experimenting with something a bit different around MetaTrader 5 and I'd really like to hear how other MT5 developers would approach it. I'm building a local multi-agent setup where different agents have different jobs. For example: one watches financial news; another tries to judge whether a
Fot those that had this issue, and there are many around, this happens only on day one of renting the VPS, as it magically disappeared for me o both my VPS at ... 00:00 next day. This is so weird we cannt control the connectors and cache when synchronizing from MT5
When uploading an EA to the market, it fails validation due to invalid volume error: test on EURUSD,H1 (netting) strategy tester report 22 total trades test on XAUUSD,D1 (netting) log files size exceeded 2080 MB, test terminated 2022.04.11 15:39:28 failed market sell 0.15 XAUUSD, close #47 buy 0.15
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
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%
  MACD indicator  (1535   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...
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
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
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
  Trend indicators  (515   1 2 3 4 5 ... 51 52)
All the indicators which are helping the detection the trend please post here. The first indicator is sinTrend. The value of about zero is the float, the trend is started if the value of indicator is equal or above 0.0015 or minus 0.0015, the value of above 0 is uptrend, below 0 - downtrend
  Oscillators  (48   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
  Fibo & Gann variations  (362   1 2 3 4 5 ... 36 37)
Fibo Levels indicator. Fully forecasting.
I've run accross this FFT cycle indicator in the past couple of weeks. It is very interesting to say the least. I would like to know if anybody else has any experience with this type of cycle analysis. I've know of Hurst, Clyde Lee, and Brian Millard. Brian Millards' work is among the best I've...
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
  libSVM...  (2)
I was looking at the Support Vector Machine Indicator - which looked mildly interesting, but it uses a proprietary SVM paid for library. It occurred to me I might be able to wrap up libSVM to give a similar interface to MQL5 as the proprietary library so that I can build the indicator with its full
FXR_TripleHybridSR : Good Trading System Author: Rodrigo S. Franco
ATR Sylvain Vervoort Trading System : Excellent Trend-Following system based on ATR. Author: Rodrigo S. Franco
Pin-Point TrendFollowing System : MACD, OsMA, AC, AO & RVI same time slope growing/falling is the signal. Author: Rodrigo S. Franco
A manual-trade manager for MetaTrader 5: completed Renko bricks, configurable break-even and trailing Stop Loss, plus an on-chart Renko dashboard. No automatic entries. : A manual-trade manager for MetaTrader 5: completed Renko bricks, configurable break-even and trailing Stop Loss, plus an on-chart
CLiveTradeInfo - CHistoryTradeInfo : The library reconstructs a complete MQL4-style order model on top of the native MQL5 Position, Order, Deal, and History APIs. This design allows legacy MQL4 Expert Advisors to operate with minimal code changes while preserving MQL5. Author: Hans Alexander Nolawon
Gold MT5 Fractal Breakout EA : A MetaTrader 5 (MT5) Expert Advisor based on breakouts of prior swing highs and lows. The EA places pending orders around confirmed fractal structures and manages each trade with defined stop-loss, take-profit, and optional position-management rules. Author: chen guang
Manual Trade Pad for Strategy Tester : A Lightweight Manual Trading Panel for MetaTrader 4 — Live Trading and Strategy Tester Author: Amirhossein Heydarijokani
Simple Anchored VWAP - Institutional Volume Benchmark : Clean and efficient Anchored VWAP (AVWAP) indicator for MetaTrader 5. Calculates volume-weighted average price from a user-defined anchor date with optional volatility standard deviation bands. Author: Maksim Ermolin
Check out the new article: Harris Hawks Optimization (HHO) . We implement the Harris Hawks Optimization algorithm in MQL5 and analyze five movement modes of agents controlled by a single parameter — the decaying escape energy E. The C_AO_HHO class is introduced; it is compatible with the unified
Check out the new article: Ollivier-Ricci Curvature: Reading the Shape of a Correlation Network, Not Its Level . The article builds an Ollivier–Ricci curvature library in MQL5 for multi‑symbol analysis. A basket becomes a correlation network, and the reading captures network geometry rather than
Check out the new article: Price Action Analysis Toolkit Development (Part 84): Validating Recorded Double-Bottom Samples . This work adds an explainable validation module to the recording toolkit for double bottoms. It finds and filters swing lows, selects the neckline, quantifies depth, low
APEX VELOCITY : ApexVelocity is a professional-grade Expert Advisor designed to capture explosive momentum in high-volatility instruments like XAUUSD (Gold). Moving away from rigid, hard-coded parameters, v1.0 introduces a robust, fully dynamic architecture that adapts to market conditions and
Check out the new article: Launching MetaTrader VPS: A step-by-step guide for first-time users . Everyone who uses trading robots or signal subscriptions sooner or later recognizes the need to rent a reliable 24/7 hosting server for their trading platform. We recommend using MetaTrader VPS for
Extrapolator : Extrapolator fits a sum of sinusoidal harmonics to the recent price history and extends the fitted curve to the right of the last bar as a forecast.The forecast is a mathematical extrapolation of past cyclical behaviour, not a guarantee of future price movement. The last part of the
Local Timezones and Local Session Hours : Class to access to the local time for the specified location, as well as time zone information and the local trading session hours. Author: amrali
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
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
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
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
  Interesting and Humour  (49796   1 2 3 4 5 ... 4979 4980)
Members of the forum, don't forget to follow the rules
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
New article How to Copy Trading from MetaTrader 5 to MetaTrader 4 is published at mql4.com: Is it possible to trade on a real MetaTrader 5 account today? How to organize such trading? The article contains the theory of these questions and the working codes used for copying trades from the MetaTrader...
hi, using MT4 b745 on wine 1.7.32 i386 ubuntu for using an expert i need to add an url into /tools/options/Expert advisor/ there is already the builtin 'http://www.mql5.com' listed when i right-click on '+' nothing happen for adding a new url, so i double click on the previous url's field:...
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
this script converts the chart's ticks into any Second(s)timeframes !!! the Script works only for XAUUSD, you can modify it to work with other pairs or other names of Gold pair. Example custom periods: S5 S10 S15 S20 S30 S45 S50 Once the Second(s) chart is generated, you can apply almost everything
  Simple Loop  (9)
I know I'm asking for a boot in the head, but it seems as thought the language has changed since I was coding last. Trying to do a simple loop from 1 to 50, where the code stops at 50. What I get is: 1 to 50 then continuously loops again from 1 to 50. I want to stop at 50. Would appreciate any