MQL5 Algo Trading community — forex forum for traders and developers

Hello, i had a paid vps subsription but i was still testing my EA on a Demo but i wanted to change to a live account. The issue is that, when i changed, i still got the same speed with the demo one when metatrader pings my brokers server, yet i was promised a faster speed on the live account server
Hello everyone, I am using Windows 7 (64-bit) and I would like to install MetaTrader 5. I have two questions: Is the latest version of MetaTrader 5 compatible with Windows 7 (64-bit)? Is there a full offline installer available (not the small web installer that downloads files during installation)
Hi there I am so frustrated with the bot as it just talks in repeated circles and we get nowhere. I am not getting the text message to verify myself to become seller and I suspect it is because i have 1 too many zeros in my number. Is there a way that HUMAN support can help me correct that? I would
Dear MQL5 Support Team, We have once again run a traceroute test to download.mql5.com using all the IP addresses we previously provided, and we are still experiencing the same issue. As shown in the attached screenshot, several hops display the message “Request timed out,” specifically from hop 9
Each language has its own forum, and it is therefore forbidden to communicate in any language other than that of the forum in question, Threads in capital letters will be deleted, It is forbidden to post personal details such as telephone numbers or e-mail addresses, Discussions and advertising
Tens of thousands of traders use MetaTrader 5 VPS as a secure, reliable and fast hosting solution for automated trading. Recognizing the growing popularity of the service, brokerage companies approached us for the possibility to utilize VPSs to reward loyal users. This is how the Sponsored VPS
Ran into two small parity traps recently while comparing external tick backtests against Strategy Tester (Every tick based on real ticks) on multi-pair M15 Expert Advisors, sharing in case it saves someone else a headache. The first one was higher-timeframe bar alignment. Reading CopyBuffer(..., 0
With the new AI integration in MetaTrader 5, I think there's an opportunity to take things further. Wouldn't it be useful if MQL5 developers could access the AI model configured in the terminal directly from their Expert Advisors? I'm not talking about using AI to write code. Imagine an EA sending
  Indonesian Member  (6154   1 2 3 4 5 ... 615 616)
I want to know how many people from Indonesia is joining this forum. If you're from Indonesia, please comment this topic..Thank you..
Hello, I am verifying the integrity of an offline XAUUSD research dataset from MetaQuotes-Demo. Could a MetaQuotes representative clarify the following for September 3-18, 2026, or point me to the authoritative source? 1. What UTC offset and daylight-saving policy did this server use on those
The VPS dashboard in MetaTrader 5 on my Mac stays blank and repeatedly triggers a Wine crash. Environment: - MT5 version 5.00 build 6230 - Wine 11.1 - Broker server: PUPrime-Live 4 Journal errors: “WebView2 controller creation failed: 0x80080005” An earlier attempt also showed error 0x80004004. The
Dear Members, I am investigating a reproducible tick-data discrepancy in MetaTrader 5 using read-only native MQL5 and Python tests. Environment Broker server: FOREX.comGlobal-Demo 531 Account type: Demo Symbol: EURUSD Test date: November 9, 2026 Platform: MetaTrader 5 for Windows Native methods
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've been wondering how much COT data, retail positioning and macroeconomic factors actually influence market trends. Do they really help you understand where the market is heading, or are they not as useful as many traders believe? I'm curious to hear how other traders approach this. Do you use COT
Trading automation has made it easier for traders to execute strategies using Expert Advisors (EAs). However, how important is it to understand the basics of trading before relying on automation? In my view, understanding fundamental trading concepts helps traders make informed decisions, whether
[Deleted]
  Automated Vs Manual Trader  (29   1 2 3)
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....
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
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
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
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
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
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
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
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
  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
  Nasdaq  (7)
Does anyone here trade Nasdaq? What leverage do you get from your broker
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
  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
Hello guys, My EA creates graphic images from some data values and operations and save them as BMP. But, as it create a lot of images, each one with around 1MB, this is consuming a lot of disk space. So, there are a way to convert these images in JPEG format? Or at least, save them directly in JPEG...
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 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. 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
  MT5 backtesting spread  (15   1 2)
Hello,  How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.
Hello everybody, I've been experiencing this for a while now, and I wonder if anybody else is having this issue. When I run an All Market Watch Symbols optimization, it performs all passes but one, then it just hangs, no errors, no logs no nothing. I've experienced this both on broker symbols and
In thread 486768 the conclusion was that the volume-dependent margin from build 4150 can't be read from MQL5. I ran into the same thing while preparing an EA for the Market and found that it can be handled with the terminal's own calculation, so here is what worked for me. My EA places several
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
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
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
[Deleted]
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
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
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
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
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
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
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
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
  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
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
Check out the new article: Per-Setup Trade Ledger in MQL5: Find Out Which of Your EA's Entries Is Losing Money . Most EAs trade more than one setup, yet the Strategy Tester judges them all by a single equity curve. CSetupLedger is a small MQL5 class that stores each trade's setup in its magic number
Safe Pyramiding - add to winning trades only when they are risk free : Decides if you can add to a running winner: only when all open trades in that direction are on break-even and the newest one is in profit. The open risk is never more than one add. Hedging accounts only. Author: Lukas Szyry
Check out the new article: Account-Wide Position Sizing in MQL5: Capping Each New Trade by the Risk Already Open . When an EA trades several symbols, each new lot size must account for the risk already open. CRiskBudget returns the largest volume that five caps allow: risk per trade, open risk
New article New Article Publishing System at the MQL5.community is published: We present you a new article publishing system at the MQL5.community. In the new system, we have tried to make the whole process of article writing clear and comfortable by breaking it into several steps. At each step we
Check out the new article: Apache Arrow Flight from MQL5: A Native gRPC Client for Columnar Data Transport . This article implements a native Apache Arrow Flight client in pure MQL5: FlatBuffers-based Arrow IPC encoding/decoding, a raw HTTP/2 client with HPACK, and a thin gRPC/Flight framing layer
Trailing with Close by Button and Profit : This EA help you for Auto set the TP & SL by default parameter, Auto trailing stop & step for any order that you place from any device, Easy way to close all orders with 3 Button "Close All" "Close Profit" "Close Lose", Auto close all orders by profit or
i_Trend : Oscillator with two lines on the basis of Bollinger bands, BearsPower and BullsPower The i_Trend indicator (the third window below) and indicators on the basis of which it is built: Bollinger bands, BearsPower and BullsPower Author: Дмитрий
Check out the new article: Automating Trading Strategies with Parabolic SAR Trend Strategy in MQL5: Crafting an Effective Expert Advisor . In this article, we will automate the trading strategies with Parabolic SAR Strategy in MQL5: Crafting an Effective Expert Advisor. The EA will make trades based
Check out the new article: Neural Networks in Trading: Mesh Approximation of Event Streams as a Tool for Analyzing Price Patterns (MDC Module) . Here is an implementation of the key components of the EEMFlow framework using MQL5. The article demonstrates how multi-scale event processing, spiking FAM
Risk Lot Line: lot size from a draggable stop loss : Drag a stop-loss line and read the lot size for your risk. The loss per lot comes from OrderCalcProfit, so the size is right on metals, indices and cross pairs. Shows the real risk after rounding, the margin and an R-multiple take profit. Places
Check out the new article: Constructing Renko Bars from MQL5 Tick Streams in Real Time . We build a Renko aggregator that operates on the raw tick stream from OnTick, not M1 OHLC, to preserve the true crossing order. The engine writes each completed brick to a MetaTrader custom symbol, enabling
Check out the new article: Bland-Altman Analysis for MQL5: Agreement Between Strategy Tester Modes (Real Ticks vs 1 Minute OHLC). . The article builds a full MQL5 workflow for Bland-Altman agreement analysis between two Strategy Tester execution modes (real-tick vs 1-minute OHLC). A logging EA
Gold Session Liquidity Free MT5 - XAUUSD Sessions, Sweeps and Risk Planner : Free XAUUSD MT5 indicator with Asian session High/Low, closed-bar liquidity sweeps, swing structure breaks, EMA trend context and a manual lot-size risk planner. No automatic trading or guaranteed profit. Author: Sondang
Gold Session Liquidity Free MT4 - XAUUSD Sessions, Sweeps and Risk Planner : Free MT4 XAUUSD analysis indicator: completed Asian range, closed-bar liquidity sweeps, swing structure breaks, London/New York session context, H1 EMA trend and manual lot-risk planner. No automatic orders or guaranteed
  Android  (3)
How do i create a different line in my Moving Average in my Android phone
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  (1885   1 2 3 4 5 ... 188 189)
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
  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
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
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...
  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