MQL5 Algo Trading community — forex forum for traders and developers
2–3 consecutive losses, 4–5 consecutive losses, 6 or more consecutive losses, The number does not matter. I stop when my drawdown limit is reached, I keep trading as long as the signals meet my system’s rules, I have no fixed rule. I decide based on the situation
I recently canceled a VPS subscription and the refund was credited to my MQL5 account balance, not back to my credit card. My current account balance is not enough to purchase the new EA that I want. I also cannot withdraw the balance because it is below the minimum withdrawal amount. My question
New members always have something to say, even the shy ones. Take some minutes and introduce yourself to the community, tell us a little about your history, yoir ideas or why you're here, whatever. Besides. You need to do this in order to upgrade your account and activate all features Welcome...
Automatic translation was applied by moderator. Please post in the language of the forum section you selected. ------------------------------- Hello MQL5 Support Team, I have a persistent problem with MQL5 Community authorization on my new Contabo Windows VPS. I cannot log in to my MQL5 account via
Hello, I just have created a MLQ5 account. The thing is, I can't set a password because any mail is being sent. I don't know if it's my problem but I tried with 5 different gmail and got nothing. What do I do? I can't set a password. Thanks
Hi, i get the message "MQL5.community authorization failed" in my mt5 platform (this only happened in 2 of my VPS servers). I am able to login using the same credential in my laptop. May i know what is the issue
I have been testing my trading strategy on an MT5 demo account for the past three months, and the testing had been running smoothly until last night, when the account was unexpectedly blown due to what appears to be a critical bug. As shown in the attached evidence, my GBPUSD trades were closed at
How many of you have lost a prop firm challenge because of the loss limits (daily or maximum), and not because of the strategy? And what would have helped you the most to pass? A clearer rule from the firm, an alert before reaching the limit, a fixed daily routine, smaller position sizes, or
What if you trade at the wrong time? So, I was trying to pass my first prop-firm challenge. My trading system was actually pretty decent giving me 64% winrate with RR 1/3. But I lost my challenge. I didn't know why because my live broker account gave me +9.13% of profit monthly . Most of my trades
I don't own a credit card or an iPhone. How else can I pay for a software product ? Automatic translation was applied by moderator. Please post in the language of the forum section you selected
Has anyone had an issue with positions being opened at prices different from the displayed Bid and Ask prices
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
Hello, I can sign in to MQL5.com with Google, but I have never created an MQL5 password. I don't receive password recovery emails, even in spam. Changing my password in Security settings also fails. Please help me create a password for my existing account so I can use MQL5 in MetaTrader 5
[Deleted]
Hi, Wonder if someone can help.. (Currently using google to login here and post this message). I registered and never received the email for the password - I've tried the reset password and still don't receive the email. I've checked junk folder etc. even the webmail for my email host. I've also
Backslash: #include "src\file.mqh" Forward slash: #include "src/file.mqh" Both options compile. Are they equally correct, or is one of them "more" correct? I would like to use forward slash (probably because it is used in Linux). However, I want to make sure this won’t cause any issues, as I haven’t
Why martingale EAs look profitable… until they aren’t (especially on gold)
(125 1 2 3 4 5 ... 12 13)
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
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
What kind of vps do you use? Maybe some cheap and reliable advice for 5-10 terminals
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
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 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
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 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
Hello everyone, I wanted to share some lessons learned about parameter optimization, hoping to get your feedback and maybe some ideas to improve. 1. Walk- forward optimization beats simple single-period optimization. A strategy that looks great on one year of history often breaks on the next six
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
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 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
By Take Profit By Stop Loss By Reversal Buy/Sell Signal By Trailing Stop Others, Pls Specify
Which strategy is best to close profitable positions
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
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
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...
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
what is the procedure to add symbol from NSE to MT5 marketwatch and start trading NSE option trading and back test
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
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
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
The given errors are: 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 76 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 77 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 79 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 81 23 'iMA' - wrong parameters count
Hi 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
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
A pattern I see in many EAs: read SymbolInfoSessionTrade for today, take from % 86400 and to % 86400, and compare them with the current time of day. It breaks when a session crosses midnight. The returned 'to' can be later than 24:00 (a session from 21:00 to 08:00 the next day), so to % 86400
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
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
Please help me understand: I am running the tester strategy with an expert of the MT5 market on gold with four different brokers Dukascopy, Swissquote, FP-Market and Ava-Trade and I get completely different results. In particular with Swissquote and Dukascopy the result from 01.01.24 to today is
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
Hello, We run MetaTrader 5 build 6182 (distributed by our broker). The build 6230 update has been downloaded by Live Update but not yet applied. We need written, documented answers to the following. Please cite official documentation where it exists. 1. Installer behaviour The installation help
Hello, how can I write the expert code on my mobile
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
Hi Everyone, Long time reader first time writer. I'm working on an EA that uses Heiken Ashi candles and needs to know if the previous bar was bearish (red) or bullish (white). There is a buffer for close and open price and I have variables that update for previous bar close and open based on the
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, I recently published on the MQL5 Market but I am unable to install the demo version of my own product. The installation fails without displaying an error code in the MT5 Journal. The Journal shows Downloading but nothing else No further error or successful installation message appears. I
Hi all, In early October 2026, I went through the product pages and public signal track records of ten of the best-selling scalping and martingale-type EAs on the MQL5 Market, and checked every figure twice. I'm not naming any sellers — patterns matter more than people. Here is what kept repeating
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
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
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
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%
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
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
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
We are continuing discussion about the indicators. We have the following thread: https://www.mql5.com/en/forum/175886 https://www.mql5.com/en/forum/177239 https://www.mql5.com/en/forum/177358 https://www.forex-tsd.com/forum/debates-discussions/9785-rsi-indicator https://www.mql5.com/en/forum https...
Good day, This is a public technical question. It is not a private support ticket. A response is not guaranteed. A response from other participants remains to be seen. supporting us until authorship is officially assigned to MetaQuotes and The statement binds the built-in iMA to exactly this build
Hi, I read that using ArrayCopy on the same array could cause data corruption when the initial source index is lower than the target index, due to the left-to-right copy. I tried, but no data corruption was detected. Can I be sure this won't happen under any circumstances? Here a simple script
Hello Friends! I tried to convert an indicator from MQL4 to MQL5. the indicator named: Swing Cloud and I don't know what is wrong with MQL5 code. In uptrend the cloud should be below the price and in downtrend the cloud should be above the price. Here is on MT4 it print the cloud in the correct
Check out the new article: Numerical Fidelity Under Fire: Benchmarking Native MQL5, ONNX Runtime, and ALGLIB . This article benchmarks one MLP forward pass implemented three ways in MQL5: native code, ALGLIB, and ONNX Runtime. We quantify numerical fidelity versus a float64 ground truth and
Check out the new article: Broker Time vs Real Market Time — Building a DST-Aware Session Clock in MQL5 . Session filters can run an hour off when a broker and a market change their clocks on different dates. This article presents an MQL5 include file, SessionClock.mqh, that converts London, New
Volume Profile + Range v6.0 : Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. Author: Olexiy Polyakov
Prop Firm Live Daily Breach Line (OrderCalcProfit and iCustom Ready) : Real-time daily drawdown buffer monitor and exact breach price line indicator for prop firm accounts. Features 00:00 server-time deal history reconstruction (including entry commissions), 00:00 HWM snapshot locking, two-stage
Heikin Ashi Candles : A clean Heikin Ashi indicator that draws on the main chart window. It also adds one horizontal line at the average price, (Open + High + Low + Close) / 4, of the last closed candle of a chosen timeframe. By default this is H1, and the line uses the normal candles, not Heikin
Check out the new article: Andean Condor Algorithm (ACA) . The article implements the Andean Condor Algorithm (ACA) for MQL5 — a compact optimizer with a multiscale intensification operator. A significant improvement in solution quality was observed with a small population: a single adjustment to
Fair Value Gaps : Non-repainting fair value gaps on closed bars, with zone states (active, touched, mitigated) and iCustom buffers for EAs. Author: Vira Ohloblia
Check out the new article: Trading Strategy Beyond Raw Volume: Using Transformed Volume Change for Trading . The article develops a volume-change strategy that transforms tick or real volume with Ln(volume+1), differences it bar to bar, and applies arctan to produce a bounded, scale‑independent
Check out the new article: Entropy Pooling and Scenario Budgets for Expected-Shortfall Sizing . Rolling lookback windows implicitly fix a probability vector over past bars. We implement entropy pooling in MQL5 to keep all historical scenarios, reweight them by conditioning on today's volatility
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 24): Sequence Risk . Realized backtests reflect a single ordering of trades, so their maximum drawdown and prop‑firm breach risk are often understated. We resequence trade returns via a stationary bootstrap with a derived block
Opening Range Breakout with Statistics Dashboard : Draws the daily opening range and its breakout levels, with a dashboard showing how the range resolved over your lookback: broken up, down, both ways or not at all, and how often a breakout hit its target before the opposite side. Author: Vira
Check out the new article: Low-Frequency Quantitative Strategies in MetaTrader 5 (Part 6): A Constant-Dollar Exposure FX Trading System Based on Fixed-Income Interest Rate Yield Differentials . We describe ANANTA, a rules-based FX portfolio model that measures deviations in Interest Rate Swap
Market Replay Tool : Market Replay Tool is an MT5 utility that seamlessly merges a Market Replay simulator with interactive TradingView-style Long & Short drawing tools. It allows traders to backtest strategies on historical data with adjustable playback speeds, while effortlessly mapping out
Prop Firm Guard Panel : Prop Firm Guard Panel is an on-chart panel for prop firm challenges and funded accounts. It shows in real time the daily loss used and the room left, the max loss room and equity floor, and the progress toward the profit target. The start-of-day balance is rebuilt from
Check out the new article: Neural Networks in Trading: Recurrent Modeling of Market Micromovements (EV-MGRFlowNet) . The article discusses the adaptation of the EV-MGRFlowNet architecture — originally developed for processing event-based video data — to the field of financial time series. The
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
MT4 Market validation: tester deposit 1.00 and 0.20 lots - how can an EA open at least one trade?
(1)
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
First could you please assign a shortcut, in the MetaEditor for "SaveAs" ? I never use "save all" and always use "save as" having to always reach the menu just to save a copy is painful when you do that all day Secondly could you please restore MT4 way of showing partial backtests if the backtest is
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
Hi guys. Can an EA be programmed to recognize when a user manually opens or closes a trade from the chart
Hi, I'm using a custom moving average indicator. After updating to build 1491 Metatrader 4, the indicator goes missing from the chart whenever I start MetaTrader. When I reapply the template, it sometimes shows all the indicators I saved, but other times it only shows one . 1. All indicators are
Hi there I installed Metatrader 4 and add an EA to the chart. I am able to configure the settings for the EA and save to a set file But when I request the settings of the Expert advisor after config, I get this screen. The EA does not take any orders. It works on another laptop. What do I miss on
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.