MQL5 Algo Trading community — forex forum for traders and developers

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
Hello, I am investigating a discrepancy in the XAUUSD symbol specifications on a MetaQuotes-Demo account. The following values were read directly from MT5: Symbol: XAUUSD Calculation mode: SYMBOL_CALC_MODE_CFDLEVERAGE Contract size: 100 Tick size: 0.01 Point: 0.01 Profit currency: USD Account
The rapidly growing audience of our English-language Telegram channel, MQL5 Algo Trading , has shown that delivering information via messenger is highly convenient and valued by our community. In response to this demand, we have expanded our reach by launching three more dedicated channels: Trading
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
Hello, Where can I request an official SHA-256 digest for the MetaTrader 5 build 6316 x64 terminal64.exe distributed through LiveUpdate? I also need ordered EURUSD Bid/Ask tick history from MetaQuotes-Demo for 11 November 2026, from 14:00 to 14:22 UTC. What is the official way to retrieve it and
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
In this article we will discuss about “important aspects” in astrology. These are astrological aspects between planets lasting a long period of time (at least 3 or 4 months) and having a strong influence over people, economy and of course over financial markets. These astrological aspects form...
hello MQL5 support i cannot log in to mql5 community from my metaTrader 5 desktop application i have requested a password recovery several times.the website confirms that the request was sent successfully,but l never receive the recovery email,even checking spam and all mail please help me recorv
Hi MT5 team I wonder if MT5 mobile app could function well in Huawei mobiles and their laptop, as I am planning to buy a Huawei mobile for daily use and do trade in MT5 mobile app. Also consider their big screen of laptop. All the MT5 App buttons and function are the same (same as MT5 in Apple
I bought a expert advisor , week ago, and it s not what it shows in the test the developer tried to send me a different EA, to try to compensate the terrible EA I bought. But It s not what I was looking in the first place. So it s simple, I have been chatting with the developer, if the EA is not
I'm on a Chinese network. I downloaded the MT4 desktop version using FanVPN. I can log in to my MT account, but I can't log in to MQL5. Does anyone know how to solve this problem
(MT5 mobile App) New interface of "Bulk order" button too large to block to view important data-- big influence to traders to view the money and design when to close ALL ORDERS in a second Hi MT5 IT Team Recent day, I notice there is stupid change or update in your MT5 mobile setting for bulk
Hello, Following an MT5 update on 28 October 2026, my Strategy Tester has stopped working correctly. Platform: MetaTrader 5, Build 6290 (27 October 2026) Server: MetaQuotes-Demo Symbol: EURUSD, M15 Problem: Strategy Tester repeatedly fails to synchronise historical data, despite historical bars
Hello everyone, I'm having a problem with my MQL5 VPS (ID: 6894764, London LD6 05). The VPS previously worked perfectly with another MT5 trading account. After switching to my new Xlence demo account (server: Xlence-Demo1), I can no longer synchronize my Expert Advisors to the VPS. Every
Nobody has ever had a bad backtest. How much forward testing is required before you would trust an EA? I have a method that I believe was derived from very sound statistical principles but no-one believes backtests (perhaps rightfully so). How much forward testing to establish credibility? Thanks
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
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
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
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
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
We run a small MT5 stack with a 1 % daily loss cap. It had been in place for months and we trusted it. Replaying our own history, a day where every stop gaps at its instrument’s 99th percentile reaches 13.84 % of equity . Not 1 %. The cause is simple once you see it: the limit counts the stop, not
Hello traders, I have been working on algorithmic strategies for XAUUSD (M15 timeframe), and one of the biggest challenges I face is controlling drawdown while maintaining solid profitability. In your experience: - What risk management techniques work best for gold? - Do you prefer fixed lot or
  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
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
Which strategy is best to close profitable positions
How do you measure the real impact of economic news on an EA? I've been researching how automated trading systems behave around economic releases, and I've noticed that simply classifying events as Low, Medium or High impact doesn't tell the whole story. Two High-impact events can produce completely
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'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
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
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
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
Hi, I am totally new in MT5 Python API and I hope, my question is quite trivial - I couldn't find anything: How to install a MT5 listener so the Python script gets notified, once a trade was closed by a S/L or limit order? Is there a sample somewhere? Which functions to use? Thx
Hello everyone, I’m investigating an initialization failure during automatic Market validation of my MT5 Expert Advisor, The 500 Calabash EA, version 1.65 . test on EURUSD,H1 (hedging) tester stopped because OnInit returns non-zero code 1 disconnected there are no trading operations The validation
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
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 do most of my development runs on M1 OHLC because it's fast. Before I release anything I rerun the finished EA on real ticks. On EAs that wait for a setup and give the trade room, the two modes usually land close together. On anything with a tight target they can be far apart. In 1 minute OHLC
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
Any EA that works with fixed session times (Tokyo fixing, London open, New York close) needs the broker's GMT offset, the difference between server time and UTC. Live, TimeTradeServer() - TimeGMT() gives it. In the Strategy Tester it does not: the documentation says that during testing TimeGMT() is
  NFP news filter  (2)
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
Hello. i have gold ai made via Ai finally got it working, now i need help tweaking settings so we become rich. Its expert advisor for gold that follows stop limits and follows price until a thresh hold is met for trade. So far back testing ends in account wipe. please help
Hi everyone, there were a few threads here lately about backtest vs live. Most ask why the two differ. I'd like to ask something a bit different: how do you notice it early enough? What I do with my EAs is pretty simple. I run the backtest over the same weeks as the live trades, on my broker's
After a lot of bought EAs, prop challenges and backtests that looked great, I ended up with a short checklist I now go through before I pay for anything. Backtests weren't the problem. They just never told the whole story. Here's my list. Curious what you'd add or disagree with. 1. Deposits dressed
If this topic is not allowed please delete it. I am only asking purely for educational reasons. Not for intent. It was the case that since 2016 there was not solid proof that MT5 ex5 cannot be converted to MQL5 . In fact there were so many scam services offering that. This is what I would also say
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
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
[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
  Pivot indicators  (760   1 2 3 4 5 ... 75 76)
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
  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%
  Everything about RSI  (1469   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
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
Hi everyone, I am looking in vain for the code of this MESA projective indicator to be placed on the price that draws in the future the length of the cycle; Has anybody worked on that or know where to find it? I am looking for this indicator able to: take advantage of the adaptative cycles from J
Check out the new article: A Grid Expert Advisor Based on a Cellular Automaton with Online Learning in MQL5 (Part II): A New Level of Online Adaptation . In the second part, the cellular automaton is transferred from a grid to a graph. The features become vertices in a graph with local and
TradingView Style Chart Drag and Zoom for MT5 : Drag the MetaTrader 5 chart freely in any direction and stretch the price and time scales with the mouse, the way TradingView does it. One click on ON/OFF returns the normal chart. A small indicator that draws nothing, never trades and works next to
Prop Risk Guard MT4 - daily loss and drawdown protection : Protects a prop-firm or personal MT4 account: daily loss limit, max drawdown (static or trailing) and profit-target lock. On a breach it closes all orders, deletes pending orders and keeps the account flat until the lock resets. Author
Check out the new article: Temporal Causality Audit in MQL5: Validating Recorded Dependencies Against the Decision Time . Look-ahead errors arise when a decision consumes values that did not yet exist, such as a partially formed higher-timeframe bar. This MQL5 library logs input timing metadata and
Check out the new article: A Trade Request Preflight Class in MQL5: Checking Volume, Stops, Margin and Sessions Before OrderSend . CTradePreflight checks a trade request before OrderSend(), so an EA finds an off-step volume, a wrong-side stop, missing margin or a closed session instead of getting a
Check out the new article: Neural Networks in Practice: The Perceptron . In this article, the perceptron is presented as the basis of a neural network, and its implementation in MQL5 is described in detail. We will explain what activation functions and their derivatives are, the difference between
Check out the new article: Neural Networks in Practice: The Gradient . This article explains why and how the gradient is used in training a perceptron, based on the least squares method and the chain rule for computing partial derivatives. We will demonstrate how to implement gradient calculation in
Spread Session Recorder : Records the spread of one or many symbols to CSV every minute (min, time-weighted average, max), with ready tables per hour of day and per trading session. Restart-safe, never trades. Author: BRAINGRAIN TECHNOLOGIES LLP
Check out the new article: Neural Networks in Trading: A Spiking Architecture for Spatio-Temporal Market Analysis (Conclusion) . The SDformerFlow framework transforms complex events in financial time series into structured representations, enabling the model to identify local fluctuations and global
Multi-Session Range Boxes with Spread, StopsLevel and ATR HUD : Draws non-repainting Tokyo/Asia, London, and New York intraday session high/low range boxes, exposes running session High/Low buffers for EAs via iCustom, and displays a live Spread, Broker StopsLevel, and ATR(14) points HUD. Author: Li
Repaint Checker MT4 - find out whether an indicator repaints : Tests any MT4 indicator for repainting: records what every buffer showed when each bar closed, reads the same bars again later and reports values that changed, signals that appeared late and signals that vanished, with dates. Author
Prop Risk Guard - daily loss and drawdown protection : Protects your account from a prop-firm rule breach: daily loss limit, max drawdown (static or trailing) and profit-target lock. On a breach it closes all positions and pending orders, then blocks new trades until the lock resets. Author: OBAFEMI
Repaint Checker - find out whether an indicator repaints : Tests any MT5 indicator for repainting: records what every buffer showed when each bar closed, reads the same bars again later and reports values that changed, signals that appeared late and signals that vanished, with dates. Author: OBAFEMI
Check out the new article: Self-Learning SuperTrend: An Adaptive Machine Learning-Based Trend Indicator . The classic SuperTrend loses accuracy when the market regime changes because it uses fixed ATR parameters and a fixed multiplier. The article examines the architecture of ML SuperTrend Pro v2.00
Supertrend Gold Signals : Supertrend indicator for MT5 on Gold (XAUUSD), forex and indices: ATR trailing line in two colours, buy and sell arrows only on the closed candle of the flip, popup, push and sound alerts. Open source code. Author: Cristhian Alexander Gaibor Cuasquer
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...
  Off-topic posts  (1881   1 2 3 4 5 ... 188 189)
Comments that do not relate to the " Ask for help ", have been moved into this topic
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
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
[Deleted]
I am writing mql script to look for any change in the file and if it detectes any change in the file then it performs some trading function But after the mql "FileOpen "call desired file becomes unusable by other application even with "FILE_SHARE_READ" flag. What I am doing wrong or this is how Mql...
Hello, I am looking for an official MetaEditor distribution for MetaTrader 4 to compile and investigate my own MQL4 program in an isolated Windows environment. I would appreciate clarification on the following questions: Is there an official, fully offline MT4 installation package that includes
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
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