MQL5 Algo Trading community — forex forum for traders and developers

Hello, I’m facing an issue with my trading setup. When I connect using my mobile internet, the EA opens trades normally. However, when I use the VPS, no trades are opened at all. The settings are the same in both cases, so I’m not sure why it works on mobile internet but not on the VPS. Please
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
Upcomers confirms that Upcomers-Server is the correct current MT5 server
Hi all, there is a serious issue here. When I closed my positions, there is no way that I had so much slippage. The spread was not this massive! The account stats work out but the chart does not match the reality at all: Any advice on how to get more accurate closing levels on the chart
Hello, I am trying to publish a free open-source Expert Advisor to CodeBase and I am stuck at the "Code" step, which stays at 20%. The requirement "At least one screenshot is required with dimensions up to 750x500" does not clear. I have attached a PNG screenshot of 700x467 pixels, and I also tried
  spread + news  (2)
On XAUUSD I treat spread as a veto, not as a small cost. If the broker widens into a news candle, I skip the setup even when RSI and Stochastic agree. A correct direction with a bad fill is still a losing process. I wait until spread returns to normal, then I look at the H1 close again
Hello MetaQuotes team, I need an authoritative, source/runtime-specific clarification for private, non-commercial scientific validation in the forksAi-personal project. Exact environment: Server=MetaQuotes-Demo Company=MetaQuotes Ltd. Symbol=EURUSD Terminal build=6204 MetaTrader5 Python
Hi everyone, I am currently optimizing a ultra-low latency ingestion layout between an external bare-metal C++20 HFT execution core and an MT5 EA via a custom native DLL bridge using lock-free Single Producer Single Consumer (SPSC) ring buffers. During volatile gold tick regimes ( XAUUSD ), the
I live in Australia and trying to rent VPS from Metaquotes/MQL5. My target is to execute my EA from the VPS for fast trade execution. When I pay using my bank card, my bank sends me notification to approve the payment and I approve it. Then after about 3 seconds I receive the following message: "
Summary Requesting an update to the native Volumes indicator in MetaTrader 5 to include an input setting/toggle that allows traders to choose between the default volume-comparison mode and a candle-direction coloring mode. Current Behavior The built-in MT5 Volumes indicator strictly colors its bars
On Friday, September 25, 2026, an updated version of the MetaTrader 5 platform will be released. We have significantly expanded the capabilities of the AI Assistant for interacting with the platform. New tools have been added for working with Expert Advisors, scripts, and indicators, preparing
  GOLD, Gold and XAUUSD  (1453   1 2 3 4 5 ... 145 146)
Hi! Is it worth buying gold at 1130
So Im trying to change the vps subscription from a to b, typing in the account & server, after pressing the "next" button, it just refresh the page and do nothing. May I ask how to make it right
Hello, I came across a weird behavior from enabling DOM on the Terminal.. So, it's all good, as long as we do not change anything in the Market Watch.. The moment we do that, all hell breaks loose: DOM will not close from the menu, maybe it will close after many attempts with Alt-B, it "magnets"
I am experiencing a persistent issue with MetaTrader 5 running on Linux (currently Linux Mint 22.3 Cinnamon, but also tested on Arch) via Wine 10. The Problem: When modifying a transaction or an alert on the chart using the drag-and-drop method, the object is lost if the cursor stops moving for even
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
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
HI,Which strategy is best for BTCUSD
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
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
  War market regime  (18   1 2)
My EA on backtest is running very well, until it comes to the US-IRAN war April 2026 it keeps hovering around the same performance, yes, it is not losing, but also not showing the same performance as before the war Have anyone face the same issue
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers
Do you have Expert Advisors written in MQL4 and think migrating them to MetaTrader 5 will take too much time? Let's check this out right now. We'll take an existing Expert Advisor from the MQL5.com CodeBase, feed it into ChatGPT, generate an MQL5 version, compile it in MetaEditor, and run it in the
  Trading System by Xard777  (3900   1 2 3 4 5 ... 389 390)
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
Is there a starting EA code to use and how do I connect the EA to my trading central signals which show up in the Meta Trader platform. Any advice is appreciated. Basically, I want the EA to open a position in the indicated direction of Trading Central after a simple MA crossover, or after a
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
meta trader has been on the market for years , even longer than C trader platform, tradingview platform and several platforms currently on the market, and meta trader still finds it difficult to provide a second chart trading chart. i'm tired of going to tradingview and c trader to check what the 5
  Markov Model  (8)
how good is markov with forex ?
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
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
  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
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
Hello. An MT5 EA returns only "there are no trading operations" in automatic Market validation: EURUSD H1, XAUUSD D1, GBPUSD M30 and EURUSD M1 (hedging). There is no detailed Expert journal in the report. The exact submitted EX5 trades locally on MetaQuotes-Demo, XAUUSD D1, with factory Inputs, real
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
I’m transitioning from manual trading to EA trading and would appreciate some guidance on execution architecture. I work full time and my strategy needs execution at a specific time of day when I’m often unavailable, which is why I’m moving to automation. Currently, I analyse on TradingView, then
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
I have been facing a serious problem with getting a reliable history data of at least four years for XAUUSD. I have deleted and tried to force the terminal to download better history many times and even tried a few different brokers but still I often get warnings like: real ticks absent for ...days
Hello everyone, I’ve been working very hard on developing several Expert Advisors and I would like to ask for advice from the community: what are the best options and strategies to promote my EAs here on MQL5? I know that the Market section is highly competitive, so I’m curious to hear from more
Hello, I'm doing in Strategy Tester a lot of backtesting in "Fast genetic based algorithm". I'm looking for a way that once finish the backtesting, to automatically "Start" again. It could be possible to be done with Metatrader 5 Running from the Command Line? to create a .bat file with the command
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas. Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before
I was wondering, that macros sometimes dont appear in their correct color, so that one can see: This is a macro. And I figured out. Example: There is a macro named "abstract" which I use ... the sense is not important here. The macro is defined in a file in Line number #37 When I use this macro now
I have created a public AI-based Telegram channel that generates trading signals by analyzing charts using GPT-5.2 and Grok.com . My goal is to have a MetaTrader EA read these signals directly from Telegram and execute trades automatically. I would like to know: Is it technically possible for an EA
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
  MTF mismatch  (11   1 2)
I usually backtest my EAs in Open Prices M1, simply because it is way too slow otherwise I came up with a bug though. I had a problem : my orders were opening at an hourly level, not a M1 level (despite using M1 OP in the strategy tester settings) so I pinpointed down the error to an ATR Handle
This is a screenshot of the trades. I’ve extracted the entire trading history, consisting of more than 2,307 trades, and they all look similar to what you see in the screenshot. He is trading on a demo account as part of a trading contest. If needed, I can upload the full trading history in the
I'm trying to develop an SMC indicator in which I plan to integrate to an EA. I'm curious, in regards to POI/order blocks. What is the usual algorithm to implement this key aspect
  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...
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%
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
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
[Deleted]
  SuperTrend  (262   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...
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
Hi everyone, I have a problem. If I use the simplified version of OnCalculate, I receive the price series as an array of doubles in the OnCalculate parameters. This is the price series selected by the user in the "Parameters" tab of the dialog box displayed when the indicator is added to the chart
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
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
  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
Gold Breakout EA for XAUUSD H4 +90 Percent in a 2020 to 2026 Backtest : A Turtle-style breakout EA for gold. It buys when an H4 bar closes above the 20-bar high in an uptrend, with a 2 ATR stop and a 2R target. Backtested on XAUUSD from January 2020 to September 2026: +9,029.72 on 10,000 at 1% risk
CME Gap Tracker for Gold and Bitcoin: Open Gaps, Fill Rate and a Fade-Trade Test : Finds the weekend CME gap on gold and on 24/7 Bitcoin charts, keeps every unfilled gap on the chart until price returns to it, and shows how often gaps filled, how fast, how far price ran first, and what fading them
PulseStrike Scalper - Statistical Burst Detection EA : PulseStrike Scalper - Statistical Burst Detection EA Author: Rana Ali
SMC Gold: Liquidity Sweep and Order Block EA for XAUUSD M15 : An intraday Smart Money Concepts EA for gold. It waits for price to sweep a recent swing high or low, confirms the reversal with a close through the sweep candle's body, and trades only with the H1 trend. Backtested on XAUUSD M15 over
Asian Range Sweep Indicator with a Built-In Win Rate Scorecard : Marks the Asian session range, signals when London or New York sweeps one side of it and reverses, and keeps a scorecard of how every past signal ended in R, spread included. Non-repainting, with buffers ready for an Expert Advisor
Check out the new article: The Mathematics of Volatility: Why the GRI Indicator Deserves to Return to Your Trading Terminal . The article focuses on the Gopalakrishnan Range Index (GRI/ROCI), which quantitatively assesses the market's "degree of chaos" using the logarithm of the closing price range
Check out the new article: MetaTrader 5 and the MQL5 Economic Calendar: How to Turn News into a Reproducible Trading System . The article presents a systematic approach to news trading in MetaTrader 5 using the built-in economic calendar: data structure, API functions, time synchronization rules
Check out the new article: Building a Swing-Based Volume Profile Indicator in MQL5 . This article presents a swing-based volume profile indicator in MQL5 that analyzes platform tick volume within completed high-to-low and low-to-high legs. It confirms swing points, partitions each leg's range into
Check out the new article: Automating Trading Strategies in MQL5 (Part 53): Double Top and Double Bottom Reversal Model . We build an MQL5 program that detects and trades Double Top and Double Bottom patterns from confirmed swing pivots with rule-based logic. The detector matches peaks within a
Check out the new article: Did Your Scale Outs Actually Help? A Scale Out Value Analyzer in MQL5 . The article presents an MQL5 tool that tests whether scaling out improved results rather than only appearing disciplined. It reconstructs positions from closing-deal history and reprices the full
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 21): Feature Importance Analysis . Feature importance often understates correlated predictors by spreading one signal across many engineered copies, while unrelated noise can appear higher. We measure this effect against a
Check out the new article: The Dragonfly Algorithm (DA) . In this article, we will examine the Dragonfly Algorithm (DA), inspired by the collective behavior of dragonflies in nature — their ability to coordinate flight in a swarm, avoid collisions, follow prey, and evade predators. Let's look at how
Check out the new article: Neural Networks in Trading: The Adaptive Graph Diffusion Model (Attention Module) . In this article, we will take a detailed look at the practical implementation of the key components of the SAGDFN framework. We will show how sparse attention and the selection of
Trade Reporter Lite - Telegram trade notifications : Posts your MT5 opens and closes to a Telegram chat: side, symbol, entry, stop and target in pips, lots, and on close the result, pips, R-multiple and time held. Retry queue, restart-safe, never trades. Free version of Trade Reporter Telegram and
Check out the new article: How to Connect an LLM to an MQL5 Expert Advisor via a Python Server . The article examines three key obstacles to integrating LLMs with MetaTrader 5: the lack of direct access, strict rate limits, and API key security given the architectural limitations of MQL5. A
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
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
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, 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:...
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,...
  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...
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