MQL5 Algo Trading community — forex forum for traders and developers

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
plz tell me about it now i am unable to send message to any of my follower in my profile
I've been testing simple "fade the stretch" ideas on XAUUSD M15 and I'm stuck on something. Hoping someone here can help me understand it. I tried entries when price is far from the daily VWAP, at Bollinger 2.5σ, and on RSI(2) extremes, with TP 1 ATR and SL 2 ATR. Win rate is around 60–63%, but
Helo All! I've actually added this comment to an older topic before, but since that topic was old, I assume it has no activity so I decided to create another topic, hoping it will get more attention. I think mql5 has a huge limitation when it comes to clipboard access. Currently, CEdit , or more
Hello! I need help with my MetaTrader 5 VPS. Broker: AvaTrade (Ava-Real 1-MT5) VPS Subscription ID: 6930206 Expert Advisor: Scraper Gold MT5 My VPS status shows "Launched" but the EA is not opening trades. The VPS terminal logs repeatedly show the following: "1 chart, 1 EA, 0 custom indicators
Hello everyone, I'm working on a script that automatically launches the MetaTrader 5 client terminal and logs in to a trading account using a configuration file. The configuration file contains the account login, password, and broker server name. The issue: When I launch MT5 using this
i am getting error wile publishing .ex5 file can anyone please help me with that
Please add a feature that enables / disables grid lines in the iOS version of the MetaTrader 5 app. This feature is already available on: Android Windows / PC MT5 WebTerminal However, iOS users currently don't have the option to turn off grid lines. Grid line customisation through colour settings
I am using MT5 build 6230. The WebRequest() function does not work with url that contain the '?' character (the Query String / Query Parameters). If I enter the same URL into a web browser, I can retrieve the data, but I am unable to do so using WebRequest() . However, if I use a URL that does not
How can I use unused VPS rental time after cancellation? Hello, I cancelled my MQL5 VPS subscription (ID: 6941559) on November 16, 2026. It was originally valid until December 13, 2026. I understand that unused rental time may be available as "Free Minutes." However, I cannot find this option when
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
  GOLD, Gold and XAUUSD  (1541   1 2 3 4 5 ... 154 155)
Hi! Is it worth buying gold at 1130
I have noticed that some people downloaded my products as demo for weeks now. I would like to know what happens with the downloaded version ? How long do they work for prospects before it stops working for if they do not buy the product and are just enjoying the product indefinitely, the purpose and
  MT5 Web terminal  (1)
How can i use MT5 web terminal. Every time it is asking for log in Id & password but it is showing invalid user id and not allowing me to log in
Hello, My MT5 AI Assistant has stopped working. I use MQL5.community as Provider and MQL5 Lite as Model. MT5 Build: 6320 Error: HTTP 404 Endpoint: https://api1.inferdeck.net/v1/chat/completions I tested api1, api2 and api4. All return HTTP 404 on the Chat Completions endpoint. The problem occurs
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
Modifying A Good Trading Strategy Prematurely. Strategies will often go through a losing period but the issue comes down to knowing when a change has occurred. Many traders will try to tweak indicators, add filters or change entry rules after a few losing trades. This can cause overfitting of your
Hi everyone, I’m working on an automated interpretation of a trendline trading approach in MQL5 and would appreciate technical feedback on how to validate its behavior in the MT5 Strategy Tester . The strategy inspiration comes from Tori Trades’ video, “Once you master this strategy, trading becomes
  Clarifying XAUUSD spread  (14   1 2)
Please somebody help me with this. I know that this is a simple and basic ,maybe even stupid question to ask ,but it still give me a headache. Anyway , here it is: What is a tipical(average,expected whatever you want to call it) spread on XAUUSD preferably on ECN type accounts. Of course ,i know it
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
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
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
  Trading System by Xard777  (3901   1 2 3 4 5 ... 390 391)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
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
Hi all, Recently i tried to optimize a strategy, i choose the fast genetic optimization since the number of passes where high. I used the system resources and also the MQL5 cloud network at the same time. Local optimization is working fine, but the cloud optimization is failing. In the Journal the
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
Hello! In the Marketplace at mql5.com you can download a demo version that only works in the strategy tester . Many clients do not consider the Strategy Tester as a valid proof and have doubts about the robot's efficiency. Can I place a link to the trading robot demo version in the product
  VPS server  (89   1 2 3 4 5 ... 8 9)
What kind of vps do you use? Maybe some cheap and reliable advice for 5-10 terminals
  The Only Pivot  (2695   1 2 3 4 5 ... 269 270)
Shinigami ask me to put my latest indicators and templates.. so if you are new for reading this thread, please use this indy and template because this is what i use now after download this zip file, just go to page number....... (i forgot, sorry ) the rule is using h1 1. if 2 SMMA WEIGHTED CLOSE...
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you
I'm trying to figure out if I can have a list of all my trades for the same utensils separate rather than one bulk position in the tool box/terminal box. Is this even possible? Thanks
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...
Hi, Can someone please let me know how to use Metatrader5 to trade in stocks in NSE and/or BSE stock markets in India? Thanks, Amitabh
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  Simple trade automation?  (19   1 2)
I used to use metatrader4 when I was messing with Forex, but I have funds that I'd like to use out of my stock porfolio to trade one particuarl stock which goes up and down $1-2/day pretty much all the time. I'd like to set metatrader up to say, sell at a certain price, then buy at $2.00 lower, then
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
  Nasdaq  (6)
Does anyone here trade Nasdaq? What leverage do you get from your broker
  BTC  (11   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
Many prop-style rules measure the daily loss limit from midnight on the broker's server clock and include floating P/L (equity), not only closed trades. Below is the approach we use in an EA to get the day's starting balance and the running result for the day, closed plus open, without storing
Could you clarify the official process exit-code meaning for MetaEditor64.exe version 5.0.0.6308? I ran a single-file compile using /compile:"BTC_Scalper_Auth5_ReadOnly.mq5" /log:"metaeditor_compile.log" . The log reports code generated , 0 errors , and 0 warnings , and a fresh EX5 was created
Feature Request: Introduce Full Expert Advisor (EA) Support in MetaTrader 5 for Android To: MetaQuotes Development Team Dear MetaQuotes Team, I am writing to propose an important improvement to the MetaTrader 5 Android application. I would like MetaQuotes to introduce native Expert Advisor (EA)
Hello. In a newly installed terminal, WebRequest() returns 1009 and GetLastError() returns 5203 for one domain. Another terminal on the same VPS reaches the same domain without any problem. I tested with a simple GET script on a live chart, and the results are below. Terminal A (build 6295 , newly
Hello, We are preparing two local MT5 Strategy Tester runs on build 6230 using “Every tick based on real ticks” (Model 4). Both use RoboForex Demo ECN hedging, EURUSD and USDCHF, and the historical period from 17 August 2020 through 13 August 2021. The planned difference is the fixed execution
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
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
The given errors are: 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 76 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 77 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 79 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 81 23 'iMA' - wrong parameters count
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
my code below iStart2Lots should equate to 0.10 -- however when trade opens, the lot is 0.09. why oh why? please explain, and how to ensure the result is correct -- 0.10? input double iStartLots = 0.25 ; // 1st Trade Lot double iStart2Lots = . 4 *iStartLots; //0.10; // 2nd Trade Lot what
  trend indicator  (2)
Hello, i have easy trend indicator. ( attached picture ) It only write sell/buy signal does not make auto trading. Is there a way to make it auto ?Best
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
  NFP news filter  (4)
Why didn't my EA get triggered during the NFP news release, even though it doesn't use a news filter? Can anyone help me understand why this happened
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
Hi, i am creating a preconfigured version of a MT5 to easily install on multiple vps with experts and templates already configured. So far i have been able to have Automated Trading enabled, the check for algo trading in the expert enabled, and also the login account configured. I am launching the
  Pivot indicators  (761   1 2 3 4 5 ... 76 77)
Everything about pivot indicators you may find in this thread. Besides there are some usefull links as well: - how to trade with pivot (manuals) is here . - some trading system based on pivot https://www.forex-tsd.com/forum/trading-systems/1158-pivot-system - pivots, camarilla, high/low etc.... is
  Everything about RSI  (1470   1 2 3 4 5 ... 146 147)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
Equidistant ChannelStandard Deviations ChannelLinear Regression ChannelAndrew's Pitchfork (let it be too)Another channel. Will write about it in the commentsNoneI do not have an opinion on the topicI just want to see the answer
[Deleted]
  SuperTrend  (263   1 2 3 4 5 ... 26 27)
I've developed a new SuperTrend indicator. It works the same as the ProRealTime version where you can set the 'Nbr Periods' and 'Multiplier' values. Bear in mind that because of differences between brokers that in places it may change direction earlier or later than the ProRealTime version if you...
  Current spread and swap monitor  (43   1 2 3 4 5)
been asked for this a couple of times by pm,so here it is
  Parabolic SAR indicator  (299   1 2 3 4 5 ... 29 30)
I am continuing posting information about indicators. So, we have information about Stochastic indicator https://www.mql5.com/en/forum/177239 We have the thread about Momentum indicator https://www.mql5.com/en/forum/176430 Now something about Parabolic SAR. OverviewThe Parabolic Time/Price System,...
Why the version of MT5 backtest speed such slow, I pend it over night(~8 Hours), only 1 pass finished but I have brought a new cpu, the usage of CPU keep only 11%
My intention of the code below is to display 3 periods of moving average lines for the range of bars specified by chart window width. Although first period of line is drawn properly, succeeding 2 period lines fail to draw due to CopyBuffer error (4806 : Requested data not found). I cannot figure out
Repainting indicators look perfect in history and useless in live trading. Here is a check anyone can run without any tools. 1. Screenshot the last 20 signals today. 2. Wait for 3 new bars - do not reload the chart. 3. Screenshot again and compare. If an arrow moved, disappeared, or appeared late
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
  Oscillators  (50   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
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
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
  Kalman Filter  (5)
I'm looking for someone that feels the have developed a good working Kalman Filter Model to use in the fx market
Check out the new article: Bacterial Evolutionary Algorithm (BEA) . The article focuses on the Nawa–Furuhashi Bacterial Evolutionary Algorithm (BEA) and its two key operators: segmental bacterial mutation for local optimization and horizontal gene transfer for the exchange of successful solution
Basket Close Manager - close a group of trades at a money or percent target, loss limit, trailing lock or set time : Watches a basket of positions (whole account, one symbol and/or one magic number) and closes all of them together when the floating P/L hits your profit target, loss limit, trailing
MTF Trend Matrix : A compact dashboard that shows the EMA trend direction and ADX strength of several symbols across several timeframes at once. Author: Winston Teddy Meyn
Check out the new article: Is Your Expert Advisor Still the One You Backtested? An Edge Drift Detector in MQL5 . An equity curve cannot tell whether a live Expert Advisor still matches its backtest. This MQL5 tool compares live closing deals to a backtest baseline using a bootstrap-calibrated CUSUM
Relative Volume (RVOL) Indicator in a Subwindow : Relative Volume (RVOL) in a subwindow: the volume of every bar divided by its normal volume, drawn as a color-coded histogram with reference levels and a live text label. Author: Theophilus Adebomi Adeniyi
Point of Control (POC) and Value Area Lines for the Day : Builds a volume profile for every day and draws its Point of Control (POC) and the Value Area boundaries (VAH and VAL) as horizontal lines on the chart. The levels of the current day are updated as the day develops. Author: Theophilus Adebomi
Symmetrical Triangle Detector - objective, non-repainting triangle rules with Gann box : Detects horizontal symmetrical triangles with objective, non-repainting rules (pivot zigzag, 3+2 touches, symmetry, no wicks or bodies breaking the lines) and draws them to the apex with breakout arrows and an
Check out the new article: Causal Savitzky-Golay Kinematics in MQL5: Non-Repainting Velocity and Acceleration from Local Polynomial Fits . We present CSavGolFilter, a causal Savitzky–Golay implementation for MQL5 that evaluates a local polynomial at the most recent closed bar. It delivers smoothed
Chart Pattern Breakout Indicator : Breakout status and measured targets for 13 chart patterns: channels, wedges and triangles found on zigzag swings, each shaded by what price did after its last swing (forming, broke up, broke down, target hit, failed) and rated with a quality score. Larger patterns
Check out the new article: Hedge (Multiplicative Weights): Blending a Handful of Simple Trading Rules Online . We implement a Hedge (multiplicative-weights) ensemble in MQL5 that combines five simple experts: MA cross, RSI reversion, Bollinger and Donchian breakouts, and a MACD histogram flip. The
Check out the new article: Do My EA's Losses Come in Clusters? A Wald-Wolfowitz Runs Test for Trade Outcomes in MQL5 . A pause after a losing streak assumes that losses come in clusters. CRunsTest turns the closed trades of an account or a tester run into a sequence of wins and losses and checks it
  Experts: XANDER Grid XAUUSD  (45   1 2 3 4 5)
XANDER Grid XAUUSD : Bidirectional grid EA for Gold (XAUUSD). Ideal for ProCent accounts. Includes Daily Profit Target and Max Drawdown protection. Author: Cristhian Alexander Gaibor Cuasquer
Check out the new article: Integrating News Sentiment to Avoid Strategy Disruption in MQL5 . We present a dynamic news‑sentiment filter for MQL5 Expert Advisors. It uses WebRequest to query a REST API, parses JSON sentiment and confidence, and gates entries and exits alongside Moving Average and RSI
  Libraries: TypeToBytes  (63   1 2 3 4 5 6 7)
TypeToBytes : Byte-wise operation with structures and standard data types. Author: fxsaber
Check out the new article: Hjorth Parameters for MQL5: Activity, Mobility, and Complexity as a Volatility-Momentum-Shape Dashboard . Implements Hjorth's Activity, Mobility and Complexity in MQL5 as an O(1) rolling engine, a regime-colored dashboard indicator, and an Expert Advisor. Explains how
  Expert Advisor  (7)
Hello I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index
  Metatrader 5 app  (4)
Hallo, I am from the Netherlands and trying to create a new account in my MetaTrader 5 app. Not a Demo account but a live trading account. I don’t see an option anywhere in the app to create a live trading account. Nothing. Could anyone please tell me how I can open a live trading account, or
Hello, How can I switch the virtual hosting signals (VPS) from one live account to another live account for the MetaTrader 4 software without deleting my data subscription? Since I have a 6-month contract, I do not want to lose the money I have already paid and therefore would like to use the
Hi everyone i have a problem i bought a new vps and i cant login my mql5 account on the mt5 i have logged in my trading account but mql5 account login is giving error login failed and in journal it says mql5.community authorization failed i have tried everything Microsoft WebView 2 reinstalled mt 5
  Off-topic posts  (1882   1 2 3 4 5 ... 188 189)
Comments that do not relate to the " Ask for help ", have been moved into this topic
  Android  (1)
How do i create a different line in my Moving Average in my Android phone
Hi All, I am trying to set up an outlook email under TOOLS>OPTIONS>EMAIL but am having issues I keep getting the error " Mail: login to smtp-mail.outlook.com:587 failed", I have also tried using smtp.office365.com:587 instead of smtp-mail.outlook.com:587 but it still comes back with the same error
  Spread Indicator  (29   1 2 3)
Hi traders, several times traders from forums ask if there is an indicator simply showing the current pair's spread. I already programmed such an indicator for my own use and decided to contribute it to the community. Feel free to comment! By the way, it's also posted @ codebase.mql4.com Indicator...
I have 4 MT4 terminals, with 15 charts per terminal. I've been updating my trading system lately. One of the measures I took was to reduce the number of indicators on each chart, thinking that this would make my system snappier. To this end, I coded one indicator to have multiple buffers and display
  Interesting and Humour  (49803   1 2 3 4 5 ... 4980 4981)
Members of the forum, don't forget to follow the rules
Programmatically placed arrow objects work but interfere in readying the chart. The common function below, in hopes to disabled it, can't handle dismissing it. ObjectSetString ( 0 ,sName, OBJPROP_TOOLTIP , "" ); In the object you drawn manually for example, this is what you see,. I have indeed seen
Hello, I need help retrieving missing EURUSD M1 history for an MT4 Strategy Tester backtest. My setup: Broker: OANDA U.S. Platform: MT4 running in Windows 11 through Parallels on a Mac. Required history: September 1–October 23, 2026, including September for indicator initialization. In my October
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 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
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