MQL5 Algo Trading community — forex forum for traders and developers

Hi Guys, It seems ECN is true market acces and therefore never garantueed stop loss right? Many Brokers advertise with it, but I think it is a trick and only fro their non-ECN accounts?! Thx
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
[Deleted]
  Dukascopy  (75   1 2 3 4 5 ... 7 8)
I wish to use jForexAPI to create a strategy. I have coded many lines in MT4 and .net but I am lost already with your jForex api They only help I see is a very brief PDF. Are there any forums for dds builds ? What development platform do I use to build dds files ? Where are the many dds examples ?...
Anyone had issues with the built-in MT5 VPS where everything looks fine after migration, but the EA isn't taking any trades? I'm wondering if I missed something during synchronization. With a regular Windows VPS like TradingFXVPS, you have access to the actual terminal, but the built-in MT5 VPS
Is it worth it anymore to sell EA's and Indicators in this AI age, Yes, No
A bug recently appeared in the mql5.com Forum wherein clicking "reply" as to an original post (OP) fails to quote/capture the content of the OP. This first appeared yesterday (10/12/2026) while navigating the Forum. I have repeatedly deleted my browser cache and temp files, restarted my browser, and
If you could get one improvement to MetaTrader 5 for Christmas, what would it be? A Strategy Tester feature, a charting shortcut, or a fix for something you do every day? Here’s a little Christmas reel to kick off the thread
Hi everyone, I'm curious about how most developers and algo traders here structure their testing workflow in the MT5 Strategy Tester. When optimizing an EA—especially on volatile symbols like XAUUSD—running full optimization with "Every tick based on real ticks" can be very slow. On the other hand
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
I run a single isolated x64 MetaTrader 5 terminal, build 6361, under Wine 11.1 Staging. The x64 MetaTrader5 Python package 5.0.6231 imports successfully. Windows-side process enumeration finds the running terminal at the expected executable path. Both explicit-path initialization and automatic
Dear MetaQuotes Development and Technical Support Team, We are conducting a technical forensic investigation of MetaTrader 5 Strategy Tester behavior, specifically concerning Expert Advisor (EX5) binary transfer, loading, storage, and runtime identity verification. During several independent native
Do I need to fund VPS subscription fees in my MetaTrader account, even though my broker Trading Account has sufficient funds to cover the fee ? I've been running my live account now for 3 months. Even though I can see the VPS is set to Auto Renew, and my broker trading account has plenty of funds
Build 6294: WebRequest() and TLS sockets fail on every HTTPS host that requires SNI (1009 / 5203, 5272) Since build 6294, WebRequest() fails for every HTTPS host that requires SNI (Server Name Indication), while hosts that serve their certificate without SNI still work. The same EA and the same
On MT5 build 6230, I compared live-captured ticks with historical ticks for USDJPY.cl on OANDA-Japan MT5 Live. For matching ticks, MqlTick.flags changed from 6 to 134 or from 2 to 130. The only difference in the flags was bit 0x80 (128). Bid, Ask, and tick order matched for all 3,921 ticks. The
I have a VPS trade account on Puprime-Live2 and want to move to Puprime-Live6. The Change option does not work. It gives the error " Failed to move hosting. Make sure the server name is correct and the platform version (MetaTrader 4/5) of the target account matches that of the source one." Both are
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
Hello, I have been looking for the formula on how the Half Trend Indicator is calculated but could not find it. What is the formula and concept behind it? S
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
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
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
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
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
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
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
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
[Deleted]
  Automated Vs Manual Trader  (32   1 2 3 4)
On my opinion, “Automated Trading Systems” does notpay attention to the Ratios. However, by automating your system there are zerochances of falling in love for a deal, which is good since no one is lookingfor love here! In the other hand, very few traders can actually automatesomething different....
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
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
  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
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
New article Creating a trading robot for Moscow Exchange. Where to start? has been published: Many traders on Moscow Exchange would like to automate their trading algorithms, but they do not know where to start. The MQL5 language offers a huge range of trading functions, and it additionally provides
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
  BTC  (13   1 2)
Does anyone here trade BTC
  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 @ 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, 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
  Nasdaq  (7)
Does anyone here trade Nasdaq? What leverage do you get from your broker
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
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
Description: When a test is started in the Strategy Tester (also from the command line with /config), the terminal logs "automatic testing started" and 0.15–0.35 s later "connection to TickmillUK-Live lost", then re-authorizes within ~0.5 s. If a history/tick download is in progress at that moment
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
Hello everyone, While building a risk / lot size calculator I ran into a problem that I think affects a lot of EAs. The classic formula based on SYMBOL_TRADE_TICK_VALUE works fine on EURUSD, but on some brokers it gives wrong lot sizes on XAUUSD, index CFDs and synthetic indices. The causes I found
Hello, I am trying to understand a Market automatic-validation failure for an MT5 Expert Advisor that is designed for gold (XAUUSD) only. Service Desk told me they do not check code and asked me to ask on the forum, so I am asking here for technical help with the diagnosis. Validation report
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 strategy that I am currently developing performs very well in the strategy tester, but when I do forward testing it fails. How can I shorteh the gap between strategy tester data and forward testing
Hello MetaQuotes team, I am trying to establish the provenance of an EX5 file loaded by a local MetaTrader 5 Strategy Tester agent. In one run, the agent journal reported “expert file added ... 239101 bytes loaded,” while the frozen local EX5 file measured 239012 bytes. I do not know whether these
Hello This EA has been developed, is highly flexible and does have profitable settings. I'm (bravely/stupidly) opening it out for people to test and share any profitable strategies they might find. It's not coded for MQL Marketplace yet, so it can't be sold on or used to develop a signal service
I am trying to solve this problem with my code. can someone help me look at this and tell me what is the problem or how to fix the error? //+----------------------------------------------+ //| DASHBOARD TITLE HEADINGS | //+----------------------------------------------+
Is there an officially supported way to preserve an MT5 Strategy Tester session’s simulated order and deal history and an open position with its Stop Loss, then change an EA input and reinitialize the same compiled EX5? I’m testing an EA that blocks new entries after a simulated fill exceeds its
Hello traders, What are the key considerations when developing an EA that trades multiple currency pairs simultaneously in MT5? Any guidance is welcome
Hello, I am preparing Double Gold 1.07, an MT5 Expert Advisor designed for XAU/USD, for publication. The MQL5 Market automatic validation reported “there are no trading operations” on XAUUSD D1 (hedging). The report did not show the test dates, starting deposit, leverage, or the Expert Advisor
Title: Is it possible to retrieve historical swap rates for a symbol in MetaTrader 5? Hello MetaQuotes Team and MQL5 Community, I am conducting a historical trading strategy research project using MetaTrader 5 and need to retrieve historical swap rates for a specific broker symbol. My trading
I am testing an 11-symbol MT5 EA that checks positions once per second. I would like to reproduce a Market timeout locally. Three consecutive validation reports stopped at different points. All the tests listed below used netting accounts. v1.47 (25 Nov) completed EURUSD H1 and XAUUSD D1 with “there
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
Hello everyone, I am trying to publish a new indicator in the MQL5 Codebase called "Smart Spread Guardian PRO". Current situation: Category: Indicators Language: MQL5 Source code uploaded successfully Source code opens correctly in Codebase viewer Description completed Screenshots uploaded
Hello everyone, I am working on a small multi-timeframe trend panel (M15 chart showing H1 and H4 values) and I keep running into the same three issues that I see in many MTF indicators shared online: Repainting: reading the current, still-open higher-TF bar (shift 0) means the value on old M15 bars
While developing a swing high/low indicator, one challenge I have encountered is getting newly detected swing points to appear quickly enough for real-time analysis. The difficulty is that identifying a potential swing and confirming that it is an actual swing are two different things. In my
  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
[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
Does anyone know how to add this to the charts in MT5? I can add the retracement tool however, I can't find the extension tool. Any help would be appreciated
  Restore Up  (2)
I have all of a sudden had a text box come up on my charts stating Restore Up. I have no idea how it got there or what caused it to get there and it's very annoying. Any assistance in how to remove it would be appreciated. Thank you
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 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
  ATR Trailing Stop - Help  (102   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
MT5 build 6231. I placed a right-price-label on to a 1 minute chart and now I can't get rid of it. It will not highlight when I double click on it and it is not to be seen in the objects list [ctrl B]. I have tried updating, none ready, I guess I am current. I tried to delete on different periods 5
  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
Symbol Specification Probe - tick size, tick value, money value of a stop : The probe prints the values a symbol specification supplies: digits, point, trade tick size, trade tick value, contract size, volume minimum, volume maximum, volume step and the stops level. Trade tick size is the smallest
Gaussian Auto EA : Trend-following breakout EA using a Gaussian-filtered channel, ATR bands, risk-based lot sizing, and an R-multiple trailing stop. Author: Laith
Check out the new article: Where your backtest stops being real: Measuring the depth of your broker's tick history . In the "Every tick based on real ticks" mode, the Strategy Tester's journal reports the minutes for which real ticks were absent or discarded and says that every tick generation was
Check out the new article: Your Take Profit Is a Guess Until You Log MFE: Building an Excursion Recorder in MQL5 . A compact MFE/MAE recorder in pure MQL5 samples excursion while a position is open and writes one CSV row per closed position, measured in R and frozen at entry. A companion script
Check out the new article: MQL5 Trading Tools (Part 40): Adding SQLite Persistence and Per-Timeframe Visibility to the Canvas Drawing Layer . We add SQLite persistence to the canvas tools, saving every drawing and the entire UI session per symbol, then restoring them on startup so the workspace
RH Trade Panel - Risk-Based One-Click Trading with Session Tracker : Manual one-click trading panel for MetaTrader 5. Calculates the lot size from your risk % and stop loss (always rounded down), places SL/TP by pips and reward:risk, and manages trades with breakeven, trailing stop and Close All
Check out the new article: Building a HalfTrend Channel Indicator in MQL5 . This article builds a HalfTrend Channel indicator in MQL5 that combines rolling price extremes with a HalfTrend baseline and a Wilder‑smoothed ATR(100) to form adaptive channel boundaries. It explains the trend‑state
Check out the new article: Backtesting Indicator Signals in MQL5 Using Buffers and Chart Objects . The EA evaluates indicator signals from buffers or dated chart objects on historical closed bars, keeping execution separate from account reports. It models virtual positions with user-defined entry
New article Price velocity measurement methods has been published: There are multiple different approaches to market research and analysis. The main ones are technical and fundamental. In technical analysis, traders collect, process and analyze numerical data and parameters related to the market
Check out the new article: Native Apache Cassandra Client in MQL5: Writing Trade and Market Data via the CQL Binary Protocol . This article shows how to build a native Cassandra CQL v4 client in MQL5 over a raw socket, without a REST or gRPC proxy. It details CQL frame encoding, correct handling of
Check out the new article: Neural Networks in Trading: Difference-Based Modeling of Market Microstructure (Difference Block) . The article presents a practical implementation of the EDCFlow framework's approaches, with a focus on the Multi-Scale Difference module. It demonstrates how sequential
CBitBuffer Class - Data Serialization in MQL5 : A class for reading and writing individual bits or bit sequences to and from a buffer. Author: amrali
MD Scalper – Trend / Reversal pending-stop scalper with trailing stop : Scalping Expert Advisor that reads a 3-period smoothed MA channel (High/Low), places pending stop orders either with the move (Trend) or behind it (Reversal), and trails the stop loss tick by tick. It includes broker-safe order
Tick-Only Spread Telemetry, Swap Decoder and 1-Lot Execution Cost Audit : Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost. Author: Meng Chang Chen
Multi-Session Range Boxes and 14-Day ADR Exhaustion Monitor : Zero-DLL intraday session box indicator (Asia, London, New York) with 14-day Average Daily Range exhaustion tracking and dynamic ADR Upper/Lower target lines. Author: Meng Chang Chen
  Wrong character  (3)
Hi there! This code is supposed to display an upward-pointing arrow on the button, but I'm only getting a question mark. I also tried using Arial, but that didn't work either. I don't want to use Wingdings on purpose. What's the cause, and how can I fix it? bool CreateUpArrowButton( string name =
  Various  (1128   1 2 3 4 5 ... 112 113)
In case some of you have been wondering what was the "wonder" indicator picture posted a couple of times in the digital filters thread, and, since rules for advanced elite section are a bit different : It was a MACD of a Hodrick-Prescott filter. One version of that indicator (Hodrick-Prescott...
Hi all, Has anyone else been affected by this? After the November 2026 Windows updates, other programs can no longer connect to MT4's DDE server. Excel links (=MT4|BID!EURUSD) and any software that reads MT4 prices over DDE stop getting data. Removing the Windows update fixes it straight away. I've
Title: MT4 Virtual Hosting keeps crashing – Initialization failed [10042] Hi everyone, I'm experiencing a serious issue with my MetaQuotes VPS (MT4, build 1492). The VPS worked previously, but since this morning it repeatedly fails to start and eventually stops automatically. The journal
  Interesting and Humour  (49804   1 2 3 4 5 ... 4980 4981)
Members of the forum, don't forget to follow the rules
Hi everyone! I'm trying to publish my MT5 EA on the MQL5 CodeBase, but the publishing process says that I need to attach an image. The problem is that I can't find any option to upload or attach an image on my side. Has anyone faced this issue before? Is there a specific way to add an image, or am I
Error code: 4109 – Trade is not allowed The local MT4 terminal reported error 4109 when attempting to place Buy Stop and Sell Stop orders. However, this error occurred in the local terminal , where AutoTrading was disabled following VPS migration. The VPS journal did not report error 4109 or any
  Android  (4)
How do i create a different line in my Moving Average in my Android phone
Hello, I am trying to add the first version of an MT4 product (a utility, draft product 210289) in Market > Control panel > Versions > Add product file. The upload is rejected immediately with: "Please recompile your product with new compiler" . What I already did: Installed MetaTrader 4 with the
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
  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 everyone, I'm having an issue with MT4 MetaEditor when trying to compile an EA using MQL5 Cloud Protector. The MQL5 Community login window keeps asking for my password in an endless loop, even though I'm entering the correct credentials. The same account and password work perfectly in MT5
  Off-topic posts  (1906   1 2 3 4 5 ... 190 191)
Comments that do not relate to the " Ask for help ", have been moved into this topic
The MetaTrader 4 platform update will be released on Friday , March 1, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
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