MQL5 Algo Trading community — forex forum for traders and developers

Hello, I keep getting a " WebSocket connection to 'msg1.mql5.com' failed " error when I try to view my messages. I just want to ascertain if this is a me problem or if everyone is getting it? Thanks, Rob
I recently canceled a VPS subscription and the refund was credited to my MQL5 account balance, not back to my credit card. My current account balance is not enough to purchase the new EA that I want. I also cannot withdraw the balance because it is below the minimum withdrawal amount. My question
I’m having a big problem downloading an indicator when I click on the ‘Yes, I have MetaTrader 4, open MetaTrader 4’ button. Nothing happens, I have MT4 open all the time and the indicator won’t download or install
Tens of thousands of traders use MetaTrader 5 VPS as a secure, reliable and fast hosting solution for automated trading. Recognizing the growing popularity of the service, brokerage companies approached us for the possibility to utilize VPSs to reward loyal users. This is how the Sponsored VPS
  GOLD, Gold and XAUUSD  (1410   1 2 3 4 5 ... 140 141)
Hi! Is it worth buying gold at 1130
i am working on an adaptive EA and I’ve started wondering about something that is not easy to solve. With a normal EA, we can optimize it on historical data and then test it on data that the EA has never seen before. That part is quite clear. But an adaptive EA is different. The EA can change its
Why Drawdown Matters More Than Profit : Most people shopping for a trading system look at one number first: the return. "This EA made 900% in backtest!" And that number is exactly the wrong place to start. After more than a decade of trading gold, the most important lesson I learned wasn't how to
I've been running several EAs together on the same account instead of one single strategy, mainly to smooth the equity curve, but it's forcing me to rethink risk management completely. A single trailing stop or fixed lot size per EA doesn't work anymore, because the drawdown that actually matters is
Has anyone tried the installation of mt5 in the latest Ubuntu version 26.04. If yes, let me know what you think and if it working right as I have been preparing to upgrade my system to latest version of Ubuntu
Ran a frozen first version of a system on BTCUSDT perpetual. Still a Development run, not Validation. The halt happened during the first development segment, 1 Oct to 16 Nov 2020 UTC — later periods haven't been touched yet. Before running it I'd set two rules: halt if cumulative P&L is negative
We all know how easy it is to produce an impressive-looking backtest. The interesting part is what happens when you actively try to break it. I’m curious about real experience here, not textbook answers: Which test has exposed the greatest number of apparently excellent but actually fragile EAs for
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 friends . I opened a request on 2026.08.18 and there isn't any answer yet . Does anyone know what I must to do for this ? Are there another ways to get support from mql5
A forum mate asks me about my experience with EAs and if I've found one that produces consistent profits, I'd like to share my reply to you all and hope everyone here find or create a truly profitable EA and make decent money using it! ------ Hi, Thank you for your msg. My experience told me it's...
Subject: MT5 5.00 Build 6180 Command-Line Backtesting Error: "The procedure entry point WorldTransform could not be located in the dynamic link library" How to fix this bug???? Issue Summary: When attempting to backtest via command line, terminal64.exe crashes immediately upon startup with exit
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
Hello, I need FREE EA. FINAL LOGIC is in attached images. Please follow strictly - 100% as per images. GOLD M1 Rejection Scalper FINAL LOGIC - NO DELAY SCALPING BUY: Running RED Candle Low Rejection Wick -> Next Running BLUE Candle Body 30 Points = Instant BUY (No Candle Close Wait) SELL: Running
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
  Markov Model  (6)
how good is markov with forex ?
  MetaEditor, Open AI and ChatGPT  (118   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
I would like to start a technical discussion about Expert Advisors for algorithmic trading. I believe that identifying the market trend is certainly important, regardless of the approach used (price action, technical indicators, neural networks, etc.). However, I have the impression that the real
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 am developing a general-purpose analysis EA for MT5. Before a Strategy Tester run, the user selects an already installed custom indicator and supplies its path/inputs to the EA. The EA then uses documented MQL5 APIs such as iCustom/IndicatorCreate, BarsCalculated and CopyBuffer to analyze 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
Hi everyone, I've been trading RSI divergences for a while, and there's still one situation that confuses me. Curious how more experienced guys handle it. On my screenshot (H1 gold), at the same moment I have: M5 -> sell divergence, 13 bars old M15 -> buy divergence M30 -> fresh buy divergence, 2
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
This topic is created in order to have a guide and discussion about multi strategy EAs. I have seen this topic appeared in some topics but the discussion tends to die after some comments. So the intention is to have the topic in here and don't let it die
  All About Price Action  (68   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...
Hi everyone, I created an MT5 Expert Advisor (EA) that uses 2% risk management and two indicators (Moving Average and MACD) . I ran an optimization using 3 months of backtest data and 3 months of forward test data on XAUUSDc (M5 timeframe) . Results: Backtest Profit: 15,714 USD Forward Test
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
  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...
  Simple trade automation?  (17   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
  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, 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
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
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  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 guys, I used to experience intermitent issues with the Tester Visualization hanging on "Waiting for Update" but usually if I forced close it and retried a few times or changed the symbol it would start working again. However, now I am completely stuck. No matter what symbol I try, how many times
Hey everyone, I’ve been working on a few high-frequency EAs lately, mostly geared towards passing prop firm challenges. Some of my systems are pushing out over 10,000 trades a month. I ran into a massive bottleneck with tracking live, real-tick drawdown. Standard MT4/MT5 mobile push notifications
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
  EA trading group  (4)
Trying to find others that trade with EA's so we can try to prevent each other from making mistakes that one of us has already made.. please comment below and lets get this group started
Hi all I am an IT guy and just finished my first EA using breakout stragety and it is working on my prop firm account. I want to start another new EA, any strageties are good ? Hope some experienced traders can help this IT guy. Thanks Peter
I need an authoritative clarification for technical validation of MetaQuotes-Demo XAUUSD. Environment: Company: MetaQuotes Ltd. Server: MetaQuotes-Demo Account: USD-denominated DEMO Symbol: XAUUSD MT5 build: 6151 Our captured XAUUSD specification confirms: Swap mode: points Swap long: -12.6 Swap
I need an authoritative clarification for technical validation. Environment: Company: MetaQuotes Ltd. Server: MetaQuotes-Demo Account: USD-denominated DEMO Symbol: XAUUSD MT5 build: 6151 On 2026-09-03 at 10:21:51 UTC, SymbolInfoCommissions("XAUUSD", rules) returned 0 , meaning no symbol commission
  MNQ ticker  (1)
Can someone please help? i cannot find the MNQ or NQ on MT5
Do you think there is an EA that combines multiple MT5 strategies and manages them automatically based on drawdown, equity, or market conditions? Would that be useful or just overkill
HI all, a general question on the python API and more specifically propfirms. I was wondering if the brokerside is able to see that a Python API is being used to place trades - I'm currently in the process of passing propfirms which do not allow the use of EA's/ require their mql5 source code to be
Hi everyone, I’m new to MT5 and need some help with an Expert Advisor on an Equiti MT5 Demo account. Manual Demo trades work, and these settings are enabled: MT5 toolbar: Algo Trading ON , Tools → Options → Expert Advisors → Allow algorithmic trading ON , EA attached and allowed to trade , Terminal
the Copied trades.mq5 is generate by Ai assistant, which wrongly non-stop open order. Why??? It's real Money
Hello everyone, I am currently having fun, programming and developing EAs with different strategies. And here comes a question: I would like to make some sort of "validation manual" for EA. What methods of testing do you use while programming your Experts? What does your validation process look
Good Afternoon ! I Always use M1 and 1 minute OHLC in tester configuration windows for optimization an its ok until 2026 june, I update Metatrader to version 5 build 6140 now 2026 august and now I have to set timeframe to same as I set in tester parameter window. Example "Mean Reversion.Ex5" example
  VPS Latency  (4)
I bought mini VPS ...it worked perfectly fine for some days and gave me 1.3ms latency rather 0.38ms but it worked well for me ...but from 2-3 days latency dropped and yesterday it was 3.8 and today it is 4.9ms...and in journal i saw an order took 18.1ms to take place...this is causing my EA to miss
I'm a bit confused of this documentation found here: https://www.mql5.com/en/docs/basis/function/events#oncalculate I quote it here: " OnCalculate The OnCalculate() function is called only in custom indicators when it's necessary to calculate the indicator values by the Calculate event. This
Hello, I am trying to publish an Indicator to the CodeBase, but the submission is stuck and I cannot complete it. The problem: - Step 4 (Code): the progress bar stays at 20% and never advances, so I cannot reach the final submit. - Step 5 (Test): "Validation state: Not started", and the Type is
  Hull Moving Average  (431   1 2 3 4 5 ... 43 44)
Attached is a coloured Hull MA. It's a fast moving average and gives quick signals for trend changes, excelent to use with a long term trend indicator! What I'd ask a programer is to program it so that once the line changes an arrow appears, bullish or bearish and an alert is signaled. Actually the
  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
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%
I feel stupid. The Copy Buffer is the wrong way around.. But why? In Copy Buffer.png Attachment , you can see the Moving Average for the second last candle , should be [2]. In the top left corner , you see the comment. The first, which is the same value, is the array position [0]. Code: int OnInit
[Deleted]
  SuperTrend  (256   1 2 3 4 5 ... 25 26)
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...
  ATR Trailing Stop - Help  (101   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
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
[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
Hello everyone. I have been experimenting with marking the opening hours of the main liquidity sessions (London and New York) directly on MT5 charts as shaded zones, and using their high and low as levels for scalping entries. The idea is that a breakout of the session range in the first hour of
I am using the following EMA set up. emaFastCloseHandle = iMA ( _Symbol , _Period , emaFastPeriod, 0 , MODE_EMA , PRICE_CLOSE ); emaSlowCloseHandle = iMA ( _Symbol , _Period , emaSlowPeriod, 0 , MODE_EMA , PRICE_CLOSE ); My initial thoughts were doing the following double fastEma[ 2 ];
Hi Friends. I'm trying to create an indicator that shows green fill when price is above a certain level and a red fill when price is below a certain level. But the indicator keeps returning only the red fill. Code is attached below. Please help me have a look. Thanks #property
Hi, why in my script ,the high[] not return a good high ? //+------------------------------------------------------------------+ //| supertrend.mq5 | //+------------------------------------------------------------------+ #property version "1.02"
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
Check out the new article: Machine Learning Under Constraint (Part 2): Calibrating Position Size to the Remaining Drawdown Budget . We present a rule-set-aware calibration chain that turns the remaining risk budget into a calibrated sigmoid scale for position sizing. It computes a ceiling from stop
Check out the new article: Self-Optimizing Expert Advisors in MQL5 (Part 19): Parameter Optimization For Time-Lagged Independent Components Analysis (2) . The article shows how to tune ICA hyperparameters with a supervised evaluation pipeline and apply spectral clustering to time-lagged indicators
Check out the new article: Overcoming The Limitation of Machine Learning (Part 2): Lack of Reproducibility . The article explores why trading results can differ significantly between brokers, even when using the same strategy and financial symbol, due to decentralized pricing and data discrepancies
GDS Renko Fast Demo EA : GDS Renko Fast Demo is a small educational Expert Advisor for MetaTrader 5. It demonstrates how two internal fixed-size Renko streams can be used in a simple mechanical trading example without offline charts or custom symbols. Author: Andrey Goida
VSA Glossary : Built on Wyckoff Volume Spread Analysis (VSA) principles, it decodes smart money accumulation, distribution, absorption, and trend direction with zero repainting and a strict 2,000-bar performance limit. Author: Asma Batool
Market Structure SMC: Swings, BOS/CHoCH, Order Blocks, FVG, QML : SMC/ICT market-structure indicator for MT5: swing highs/lows, BOS (continuation) and CHoCH (reversal) confirmed on close, Order Blocks, Fair Value Gaps, and QML (Quasimodo) levels. Every feature is toggle-able, with adjustable swing
Check out the new article: Zero-Copy Tick Streaming (Part 1): Bridging MetaTrader 5 to Shared Memory with the Arrow C Data Interface . This article implements a lock-free shared-memory bridge in MetaTrader 5 that writes ticks in Apache Arrow’s columnar layout via the C Data Interface. It details the
Check out the new article: First Fractal Breakout — Intraday Strategy, Expert Advisor and Backtesting . This article develops a market‑structure‑driven intraday breakout system based on Bill Williams fractals. We define session bounds, derive volatility‑scaled stops, use fixed risk and take‑profit
Check out the new article: Market Simulation: Position View (XI) . In this article, I will show you, dear reader, how to select the objects we create on the chart and modify the position indicator so that it can perform many more functions than originally intended. We will look at how to implement
Check out the new article: From Basic to Intermediate: Queues, Lists, and Trees (III) . In this article, we will take the next step in understanding what a linked list is and how it works. Although the content of this article may seem rather complex and confusing to beginners, I will try to explain
Session Manipulation and Algorithmic Reaction Tracker : Closed-bar ICT/SMC session-liquidity scanner for three symbols, with confirmed MSS, FVG retests, risk/reward projections and optional macro context. Author: Wennide Mogore
Market Structure Entry Model : Market Structure Shift (CHoCH) Bullish Setup (CHoCH ): Price breaks above the previous confirmed Lower High (LH), signaling a trend reversal from bearish to bullish. Bearish Setup (CHoCH ): Price breaks below the previous confirmed Higher Low (HL), signaling a trend
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
Check out the new article: Building a Future Swing Projection Indicator in MQL5 . We implement a Future Swing Projection indicator in MQL5 that analyzes historical swing structure and estimates the next move from recent price behavior. It locates six alternating swing points, measures five completed
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 1): Data Leakage and Timestamp Fixes . Before we can even begin to make use of ML in our trading on MetaTrader 5, it’s crucial to address one of the most overlooked pitfalls—data leakage. This article unpacks how data leakage
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 want to be able to draw Trendlines, Channels, Fibs, essentially any object on a chart for a specific symbol e.g a horizontal line level 1.1 on EURUSD and restrict it to only the chosen symbol. However, when I drag in another symbol on the same chart window, e.g. AUDNZD, I see the same...
Hello, I have a problem loading an Expert Advisor in MetaTrader 4. My terminal version is: MetaTrader 4 Build 1478 Date: 22 August 2026 The EA is named GOLD_MT4.ex4 . When I try to load it, MT4 gives these messages: GOLD_MT4: has newer unsupported version, please update your client terminal cannot
Hi guys, Anyone got any idea on how to call this indicator to work in EA? From the forum i found several method as the following: val1=iCustom(NULL,0,"SilverTrend",3,350,2,0,0); val2=iCustom(NULL,0,"SilverTrend",3,350,2,1,0); or BuyST=iCustom(NULL, 0, "SilverTrend", 0, 0); SellST=iCustom(NULL, 0,...
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
  Manual systems discussion  (153   1 2 3 4 5 ... 15 16)
In order to construct a killer ea. I would like an opinion of what is the best indicator all of you "ELITE'S" are using for ALL TIME FRAMES. My View Daily,60min,30min - I give high marks to Squeeze_2006 combined with hist_step_stoch 15Min,10 - I give high marks to Fisher Yurik/combined With Squeeze
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
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
Hi all, question as per subject line. I'm sure an easy fix. Anyone? thanks in advance
[Deleted]
Hi I wrote a very simple EA and it works in tester properly but it doesn't work as i attach that to a chart . EA is successfully loaded but the first line of start function (a comment line) is never executed. Is there any specific Error or mistake in programing that cause such a condition ? I would...
  CButton Disable  (4)
Dear Community, I've read all Doc about CButton and it seems to me, there is non built in method to perform following task 1) create CButton 2) CButton should be visible but not clickable at the beginning. Any idea, how to perform this
Hello, I want to know can MT4 send WebRequest to a server or website directly like MT5 or I need to build a .dll file to do that
I want to start a YT channel about the MQL5 language, and write a book about the language. I've read the "Trademark and Graphics/Screenshots Usage Guidelines" in the MetaQuotes site, but I still have a few questions to ask. In the website there is a "contact us" section, but no email to be found
  Supply and Demand Expert Advisor  (35   1 2 3 4)
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones.  The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below).  Here are the rules of the EA: - When price reaches the proximal level of an...
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...