MQL5 Algo Trading community — forex forum for traders and developers

  Something Interesting  (566   1 2 3 4 5 ... 56 57)
This is about something interesting which we can find here for MT4 and MT5 on CodeBase, Articles and inside the threads. No any signals, market prodducts, external links (to download or any), no any advertising, no any commercial things please
Hello MQL5 Financial Support Team, I am trying to purchase a product from the MQL5 Market (Product ID: 211737). However, I receive the following error: "Deposit/withdrawal operations are not allowed for your mql5.com account." My account username is: MustafaBayat. I have already verified my mobile
Can someone give me some tips on how to apply for gigs on the platform? Everytime I apply and have a conversation with the customer but they always chose another developer. Is there a part of the application process that I might be missing
Hi all, I sell several single-strategy EAs on the Market: opening-range breakouts on the Nasdaq 100 and the DAX, an Asian-range breakout on USDJPY, a channel breakout on gold, a pullback strategy on US indices and a Tokyo-fix strategy on USDJPY. I would like to release one more EA that runs these
Hello MetaQuotes developers and MQL5 community, I am experiencing an unresolved startup-script execution issue in MetaTrader 5. Environment: Windows 10 x64, OS Build 19045 MetaTrader 5 Build 6230 MetaEditor Build 6230 Compilation: 0 errors, 0 warnings Demo account Algo Trading disabled Server-side
  GOLD, Gold and XAUUSD  (1593   1 2 3 4 5 ... 159 160)
Hi! Is it worth buying gold at 1130
Environment: - MetaTrader 5 terminal build 6328 - Windows 10 build 19045 - A minimal MQL5 script compiles successfully (0 errors, 0 warnings). - Script uses int OnStart(), with Print() as its first statement. No trading, DLL, file I/O, or terminal-control calls. Observed behavior: - In an isolated
Automatic translation was applied by moderator. Please post in the language of the forum section you selected. Hello. In MetaEditor 5.0.0.6231 for Windows, a build stopped during code generation and did not produce the EX5 file. Does this version officially support compiling an MQL5 program
This thread will discuss undocumented methods of working with the mql5 language , examples of solving certain problems. It would be desirable, that this branch on the maintenance was closer to FAQ, than to discussion. I suggest that all experienced programmers share their solutions and programming
**Subject: MetaEditor Auto Completion stops working when code above cursor is folded** **MetaTrader 5 Build:** 6060 **Problem:** After the latest update, MetaEditor Auto Completion stops working when a code block located above the current cursor position is folded/collapsed. For example: 1. Open an
This has now happened three times: following a disk full event, something nuked the entire %LOCALAPPDATA% folder. After the first time I set up extra logging to find out what happened, but the second occurrence didn't capture enough info. So I added a file system level trigger, windows file-delete
Hi everyone, I've been trying to verify my phone number on the MQL5.community platform for several days, but unfortunately, I haven't been able to receive a verification code using either available method. Here's what happens: SMS verification: I request a code, but no SMS ever arrives. Telegram
Hello. On MetaQuotes-Demo, symbol_info_tick("XAUUSD").time appears approximately two hours ahead of my computer’s UTC time. My computer clock appears to match an independent UTC clock. What time basis do the Python symbol_info_tick().time and copy_rates_from_pos() candle timestamps use? Is there an
=Hello, I'm trying to publish my Expert Advisor (Gold/XAUUSD scalper) to the Market, but automatic validation consistently fails with "Validation completed with errors" (1 error), without any specific error detail beyond the summary below: test on EURUSD,H1 (hedging) there are no trading operations
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
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
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
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
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
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
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
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
  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
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...
The approach that has been reliable for me is the one Fernando Carreiro described years ago: ask OrderCalcProfit() for a known volume, then scale to the money you are willing to lose. I use the symbol's maximum volume as that known size, because 1.0 lot is not always a valid volume. OrderCalcProfit
Hello everyone, A user reviewing one of my CodeBase EAs found a bug that I think many panel EAs have: when you switch the chart timeframe, the EA is unloaded and loaded again (OnDeinit with REASON_CHARTCHANGE, then OnInit), and everything the user changed on the panel goes back to the input
Hi everyone. I’m backtesting an EA on XAU/USD in the MT5 Strategy Tester and looking for historical overnight swap rates for both long and short positions. I used ForexOP’s archive for FX pairs and couldn’t find XAU/USD there. I also checked OANDA. It shows historical financing rates for gold, and
Hi everyone. I’m testing a rule that moves the stop loss to break-even with a small profit offset on an EUR/JPY strategy in the MT5 Strategy Tester. I compared several settings against a baseline run with the rule disabled. The best-performing setting had the same 309 entries and position sizes as
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
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
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
Hello everyone, I am currently exploring an automated data validation system for XAUUSD scalping strategies in MetaTrader 5. The idea is to perform a diagnostic test before starting strategy optimization and generate a report containing: - Percentage of minutes using real ticks. - Missing and
Hello traders, What are the key considerations when developing an EA that trades multiple currency pairs simultaneously in MT5? Any guidance is welcome
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
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
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 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
  Everything about RSI  (1471   1 2 3 4 5 ... 147 148)
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
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
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
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
JsonParserByLeo : High-performance JSON library for MQL5: single-pass tape parser, DOM, SAX streaming, builder, JSON Pointer, JSONPath-like query VM and typed struct mapping. No DLL required. Author: Niquel Mendoza
Asia Session Range and Liquidity Sweep Zones (BSL/SSL) with Live HUD : Plots daily Asia Session High/Low range boxes, extends session liquidity levels through London and New York sessions, and marks non-repainting closed-bar liquidity sweeps (BSL/SSL) with a live HUD. Author: Shahzaib Muhammad Munir
New article How to Test a Trading Robot Before Buying it from MQL5 Market is published: MQL5 Market allows you to test a trading robot and its features before buying it. Every Expert Advisor offered in MQL5 Market comes with a demo version that can be tested in the Strategy Tester . It is quite
Prop Firm Risk Headroom Monitor : Account-wide MT5 prop firm risk monitor that tracks daily and maximum loss headroom, current stop-loss exposure, projected equity and remaining risk capacity. Author: Luke John Smith
Trade Cost Report: Commission, Swap and Fees per Symbol : Summarises the account's closed trades per symbol and shows how much of the gross result was taken by commission, swap and fees. Author: The Dam Phan
Risk Calculator - lot size by risk percent and ATR stop : On-chart panel that sizes your trade: lot size from your risk % and a stop in points or ATR, with spread, broker-minimum, minimum-lot and margin checks. Calculation only - it never trades. Author: Chia-yi Wu
Symbol and Trading Conditions Inspector : Displays live symbol specifications, broker trading conditions, account information, spread, trading permissions, session status and margin properties directly on the MT5 chart. Author: Luke John Smith
Check out the new article: CandleCode Indicator: Formalization of Candlestick Patterns in MQL5 . The article demonstrates the practical implementation of CandleCode for MetaTrader 5: calculating candlestick codes using the Likhovidov method with thresholds adapted to volatility (Bollinger Bands) and
Telegram Notify - trade notifications, chart screenshots and daily summary for any EA (library + ready EA) : A WebRequest-only (no DLL) Telegram library: text and chart screenshot messages with queue and retry, plus ready trade reports (open, close with profit and reason, SL/TP changes, pending
XAUUSD Hang Seng Split: a free gold EA that reads the Hong Kong market : This is a free, execution only EA for gold on M15. It compares gold with the Hang Seng (HK50). When gold has split far away from it, the EA trades in the direction of that split, but only while gold itself is calm and hasn't
Check out the new article: Adaptive Bar Replay Tool in MQL5: Using MFE and MAE Percentile Analysis . We implement a bar replay indicator in MQL5 that uses historical MFE and MAE percentiles to compute adaptive Stop Loss and Take Profit levels. The article covers data collection, excursion
Check out the new article: Practical MQL5 Utilities (Part 1): Trade Journal Analytics Panel . This article presents a read-only trade journal for MetaTrader 5 that groups account deals into positions and calculates closed-trade statistics, including profit factor, expectancy, drawdown, and win and
Equity Guard : Closes all positions, deletes pending orders and blocks new trades when the daily loss, drawdown-from-peak or daily profit target is reached. Works with manual trading and any other EA. State survives terminal restart. Author: Gunay Guleryuz
Break-even and Trailing Stop Manager : Moves the stop loss to break-even (with locked profit) and trails it by a fixed distance or an ATR multiple. Never opens or closes trades, the stop loss only moves forward. Author: Gunay Guleryuz
Check out the new article: Neural Networks in Trading: Spatially Guided Aggregation of Market Events (STFlow) . The article introduces the STFlow framework, which can generate a robust joint representation of the current market state and the dynamics of recent events, ensuring high sensitivity to
  Wrong character  (8)
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 =
i mean the title says it all. download mt4 indicator --> do you have mt4? mt4 is required for installation. click yes - i have mt4 (open in mt4) or click no - i have no mt4 (download mt4) i have mt4, but nothing happens as it should (you wait a few seconds and the indicator should automatically
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
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
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
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
This is the error I got when I running the EA. But some mt4 apps runs the EA perfect. But Exness broker mt4 gives this error to me. Anyone can help me to fix this. 
  Off-topic posts  (1907   1 2 3 4 5 ... 190 191)
Comments that do not relate to the " Ask for help ", have been moved into this topic
  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
  Interesting and Humour  (49804   1 2 3 4 5 ... 4980 4981)
Members of the forum, don't forget to follow the rules
  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