MQL5 Algo Trading community — forex forum for traders and developers

On Friday, February 27, 2026, an updated version of the MetaTrader 5 platform will be released. This version improves operations with proxy servers . We have enhanced HTTP and SOCKS5 protocol support to reduce connection errors. The outdated SOCKS4 protocol is no longer supported. We have also
Hello, since one of the recent updates to the MetaTrader 5 mobile app, there is a severe graphical bug when zooming out on the candlestick charts. When I zoom out to see the market structure, the candlesticks completely lose their contrast and thickness. They compress into faint, single-pixel
Hey everyone, After spending months building and testing EAs on XAUUSD using AI tools (ChatGPT, Deepseek, Copilot), I've noticed something interesting — AI makes it incredibly fast to generate complex strategies, but it also makes it dangerously easy to curve-fit a beautiful backtest that dies on a
Only backtesting on historical data, Backtesting + forward testing on demo, Testing on a small live account, Statistical metrics (Sharpe ratio, profit factor, max drawdown) as primary filter, I don't validate beyond simple backtesting
  Input variables  (3)
Hello everyone. I have a problem with backtesting my expert. I defined some inputs with initial values. Although I change their values ​​every time and compile, it only uses the values ​​from the first time I run the backtest. Can anyone help me
Hi, After the recent update with the Android App of MT5, I've been experiencing the following issues: 1. Whenever I close the app and immediately come back to it, I notice the recent 3-5-8 bars/candles have disappeared and are not present in the chart, and it only shows the current bid price line
  Contrast  (1)
Hello, I reinstalled MT5 on my mobile, but now is the contrast of the candles much lower and the settings are doing exactly the same thing... how do I get them right again? First screenshot is the new one and not good and second one is good
My driver's license photo is bad so it wouldn't work to verify my identity as a seller. Now I get this message : "Your application has been rejected Sorry, your application has not passed automated checks and has been rejected. You have correctly filled the required data, but the Verified User
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
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
Hi need help, MQL5 Metaeditor F1 help not working. Nothing happens when pressing F1. Metaeditor Version 5.00 build 2734 on Windows 10 Pro I have uninstalled and reinstalled MQL5. Cant find where the MQL5 Metaeditor help is located. Pressing F1 on MQL4 Metaeditor works fine
hello I have a purchase that I was not able to access when I first purchased it is now locked on my account. can I have that purchase refunded
Hello, Just curios, do you have a plan to make dark for that portal? Cheers, GT
Hello, I submitted my first free CodeBase publication, an Expert Advisor called "Equity Guard — Daily Loss Limit Guardian with Panic Panel" (code id 73870). The automatic validation completed successfully with no errors, and I received the message "Code will be published". In my draft the five
Why is my VPS saying receiving virtual server status and I am not getting any signals to my phone from my indicator
  What strategy actually works?  (154   1 2 3 4 5 ... 15 16)
Guys, I have been trading since 2011, I have tried nearly 2000 strategies, I have build almost 2000 Eas and indicators, on this olatform and on other platform, but I have not really found what works, what actually works? and does such a thing exists
What are the best risk management tools you have used in trading and why
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
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
If account is going maximum drawdown then what is the best idea to short out this panic situation as well as what is next step to do for continue in market
[Deleted]
  Artificial Intelligence  (23   1 2 3)
Do you have any experience in Neural Networking or Machine Learning Trading
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
Why do many EAs fail while the same strategy works perfectly in manual trading? Manual trading lets us adapt, filter trades, and read the market in real time. EAs, on the other hand, follow strict rules — they can’t “think” like a human. Automation often reveals the gaps in a strategy rather than
Hey everyone, Long-time lurker, first time posting something like this. I've been building an EA based on BBMA methodology (Bollinger Bands + Multiple Moving Averages) applied on XAUUSD, and I've finally reached a point where the backtest numbers look... surprisingly good. Maybe too good, which is
dear traders, i have installed 3 MT5 terminals and trade with 3 different accounts with the same EA with differenct magic numbers. my problem is that they seem to be interfere with each other. For example, the EA is set to allow only maximum 1 position. It works fine for using 1 EA on 1 MT5
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
  Money Management  (230   1 2 3 4 5 ... 22 23)
Hi Here is the code I use for my money management. - Actually it shouldn't be called MM, as it is only calculates how many lots can I buy so that when I hit my stop loss I only loss a certain percentage of my account. I think though that is one of the crucial aspects of forex- trading - as it leads...
i want to show you and suggest you this simple and proper way of trading that i have ever seen.i mean price pattern.ofcourse many of you have heard about it but i am trading with this system and it is very practical and profitable forthermore very simple.wihout any indicator just Fib
Hello Fellow Traders! I've been working on a grid trading approach and would love to discuss the methodology with experienced traders in this community. The Technical Challenge I was looking to solve some common issues in automated grid trading: * How to handle dynamic position sizing based on
[Deleted]
Hello everyone in the Trading Systems section! I'm trying to improve a simple trend-following approach specifically for XAUUSD (Gold), and one big issue I'm facing is too many false signals/entries during high volatility (news events, sudden spikes, choppy ranges). What I've tried so far: Using a
  BTC  (9)
Does anyone here trade BTC
Want to trade gold and silver on spot not futures .. i tried futures algo trading on ninja.. too much loss on slippage. Any ideas what are others doing
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 was doing trading and leave the screen for some minute and I want to back check the history. Is there any tick data or tick data based back check method
  Simple trade automation?  (16   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
  Who are the resistance?  (17   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
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
[Deleted]
If you invest in stock portfolio or asset management firm, and you have 2 options 1- Long only : go long with bullish market only ( lower return ) 2- Long-Short : go long when bullish and short when bearish market ( extra return from shorting ) When strategy short stocks it expose your portfolio to
  Nasdaq  (1)
Does anyone here trade Nasdaq? What leverage do you get from your broker
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
  We use Bitcoin ;)  (493   1 2 3 4 5 ... 49 50)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
i wanted to ask this to the website admin but there's no way to contact them other than the chat bot. does anybody know if as a signal provider i can sell stock signals or is it only for forex
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
  Indexes disabled  (4)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
After the last MQL update on MT5 (5273 12 Sep 2025) //--- Show all the information available from the function AccountInfoDouble() printf ( "ACCOUNT_BALANCE = %G" , AccountInfoDouble ( ACCOUNT_BALANCE )); printf ( "ACCOUNT_CREDIT = %G" , AccountInfoDouble ( ACCOUNT_CREDIT )); printf (
Let's assume I have one class defined as follows: class Test { public: string CheckValue Test () {}; }; Ontick { Test MyObject; } How can I have following Print Out (I want to create a function, that returns the member of the class/object) List of MyObject Members: string Checkvalue I don't have any
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
I purchased an indicator and has 5 activations. In my tests I used the 5 activations in demo accounts. Now I need to remove one or 2 of these activations since the demo accounts have been closed and put it in a real account. How can I do this
Hi, how can Orders, Positions and Deals be linked together? Is there a way to link them apart from the magic number? Best Reguards, ZeroCafeine
Hi everyone, I'm working on a custom tool that needs to calculate position sizing based on risk percentage. My tool needs to convert distance (in Points/Pips) into a monetary value (e.g., how much $ I lose/gain if price moves X points). I've been using MarketInfo(Symbol(), MODE_TICKVALUE) to do
Hello friends !! I'm currently using AI to help me build the trading bot of my dreams, which tbh originates from a private community i'm in, they have a super good EA but i hate losing control and not having it for me. Basically it's a trading bot created by some veterans of a big broker and it's
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions. We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade
[Deleted]
  The Ultimate AI EA Project  (60   1 2 3 4 5 6)
Hello everyone. I would like to call upon every worthy programmer and trader to a crucial mission. A scientific project of a respectable standard, with the aim of easing the developing MQL programs using every tool available. A good start would be creating a public project then let anyone willing to
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
No response in Questions from Beginners thread so I'll create a new one, sorry for that! Hi. Tell me, please, how is the distance between the borders and the regression line calculated in the default Regression Channel in Metatrader ? Yeah, I know, it is said clearly in the documentation : >The
Hi every one. if any one can help me , i would be really happy and thankful . i want to set slippage in mt5 and also i used both order send and ctrade but for both of them there is no option to set the slippage, also i found the function Mytrade.SetDeviationInPoints() but it still does not control
Hello everyone! I am developing a trend-following strategy. The working principle is quite simple: there is a base moving average (indicating the trend direction) and additional filters - moving averages on several timeframes - the price closes above the filters on the working timeframe - it opens
Dear Members, Microsoft recently launched its own Linux distribution (Azure Linux) after recognizing that Linux has become the dominant operating system on its Azure platform, far surpassing Windows itself. This suggests the beginning of a long-term strategic shift toward Linux. Some may argue that
Hi, Should I be able to do this? 1) Create custom symbol and import 1min OHLC bar data. This includes spread values (max value from any tick in bar interval) 2) go to the tester settings 3) Change the spread to a value (1 here) 4) Save the profile 5) Run the test 6) repeat 3) and 4) for different
ObjectGetValueByTime() All time retrun 0.0 double LastUpRedrawValue =ObjectGetValueByTime(0,"Toptahlil_UpperTrendLine_"+GetPeriod(Period()),Time[iUp],OBJ_TREND);
  Divergence Indicators  (331   1 2 3 4 5 ... 33 34)
Hi all, I am looking for an Indicator with show Divergence on the macd version i attach below , with a sound alert signal. Can any one programer help out please. Thank you
Hi, I'm new to MQL5 and would like to make an indicator that identify the swing & internal points of the chart. I read that in order for you to find the swing/internal points then you need to identify the HH/HL/LL/LH of the chart. I want to collect some algorithm ideas on how to do this. Thanks
I currently have an indicator I am coding which works in two stages. Stage 1: To detect signal Stage 2: confirm the detected signal When I try to use flag to confirm signal in stage 2, it doesn't work. But same flaging method works well for EA. Please anyone with help on how I can flag and achieve
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
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
I'm LOOKING for the BEST REVERSAL INDICATORS PLEASE
Dozens of articles about indicators are available on this site. You'll find here examples of indicators and articles about how to create indicators. However, a beginner may have some difficulties choosing where to start when learning how to create indicators. So here are a few tips to help you find...
Multi-Dimensional Fractals (up to 4 Dimension) give us market structure with different kinds of supports and resistances. Just some words about market structure from Larry Williams "LONG-TERM SECRETS TO SHORT-TERM TRADING": "Why This Is Important Once you have this basic understanding of market...
On which time frame is it the easiest to count Elliot Waves correctly
  Tick Indicator and EAs  (246   1 2 3 4 5 ... 24 25)
hi, a cool indicator Tick_on_Chart i all TimeFrames :cool: only Live Tick !!!
Hello, community! I am developing a project to integrate my trading environment in MetaTrader 5 with Python, aiming to train a Machine Learning model that can optimize my trading strategy. I already have my trade history and a custom indicator in MQL5. I would like to collect this data and prepare
  Spread monitoring  (21   1 2 3)
Is there an indicator, script, or ea that monitors the price feed and alerts when the spread on a designated pair reaches x amount? If there isn't, can one be made?
  Current spread and swap monitor  (42   1 2 3 4 5)
been asked for this a couple of times by pm,so here it is
Is there an indicator or plot property to send the fill in the background ? thanks
Hi, the code "while(!IsStopped())" is not working on my Indicator. I have a code like this: while (! IsStopped ()){ copied = CopyTicks ( _Symbol , ticks, COPY_TICKS_ALL , LAST_TICK_TIME, 1000000 ); Print("COPIED: "+copied); if (copied> 0 ){ LAST_TICK_TIME =
Institutional Kyle's Lambda Market Impact Engine : An institutional market microstructure indicator for MT4 that computes Kyle's Lambda and Amihud Illiquidity ratios to identify institutional order absorption and toxic liquidity vacuums. Author: Amanda Vitoria De Paula Pereira
Check out the new article: Trading Options Without Options (Part 2): Use in Real Trading . The article considers simple options strategies and their implementation in MQL5. We will develop a basic EA that will be modernized and become more complex. In the first part of the series, we briefly
Check out the new article: From Static MA to Adaptive Filtering (Part 2): Implementing the SAMA_NLMS Indicator in MQL5 . This article implements the NLMS-based Self-Adaptive Moving Average as a working MQL5 indicator. It provides the complete source code and explains the key design choices
bias point : I am not good at explaining but you can use it according to your own skills. Author: namakulabu
Check out the new article: MQL5 Wizard Techniques you should know (Part 97): Using Convex Hull and a miniature GRU Network in a Custom Trailing Stop Class . For this article we look at a custom MQL5 Wizard class for Trailing Stops. Our implemented custom class ‘CTrailingConvexHullGRU’, is built from
Check out the new article: Beyond the Clock (Part 3): Building an Indicator Window for Alternative Bars in MQL5 . AlternativeBarsViewer is a subwindow indicator that renders all ten alternative bar types as color‑coded candles using the same CBarConstructor hierarchy as BarBuilderEA, ensuring
Check out the new article: Building a Divergence System: Creating the MPO4 Custom Indicator . We introduce MPO4, a pressure-based oscillator that emphasizes the body and direction of candles in the context of current volatility. The article details its mathematics, normalization into a bounded
Check out the new article: Implementing the Decorator Pattern in MQL5: Adding Logging, Timing, and Filtering to Any Indicator Non-Invasively . Cross-cutting concerns like logging, timing, and threshold filtering should not live inside indicator classes. We show how to apply the decorator pattern in
Check out the new article: Neural Networks in Trading: LSTM Optimization for Multivariate Time Series Forecasting (Final Part) . We continue to implement the DA-CG-LSTM framework, which offers innovative methods for time series analysis and forecasting. The use of CG-LSTM and dual attention allows
Quantum XAUUSD Silver Trader : Multi-indicator EA for Gold (XAUUSD) and Silver (XAGUSD): RSI, ADX and MA signals, adaptive ATR trailing stop and built-in capital protection. Author: Cristhian Alexander Gaibor Cuasquer
Check out the new article: Market Simulation: Getting started with SQL in MQL5 (IV) . Many people tend to underestimate SQL, or even not use it at all, because they do not fully understand how it actually works. When running queries against an SQL database, we are not always looking for a universal
Check out the new article: From Basic to Intermediate: Handling Mouse Events . This article belongs to the category of materials where simply looking through and studying the code is definitely not enough to understand the processes involved. In fact, you need to create an executable application and
003 - Weekly Day Reversal : Open-source Expert Advisor for testing day-of-week reversal and continuation effects. Built for systematic research, strategy validation, and further development by the MQL5 community. Author: Sergey Ermolov
Simple EMA Cross EA with SL/TP and Magic Number : A simple Expert Advisor based on the crossover of two EMAs (fast and slow), with configurable Stop Loss, Take Profit, lot size, and Magic Number. Author: Edgar Alexis Benitez
V1N1 LONNY MT5 : Asian Range Breakout day-trading EA. Multi-symbol, M15/M30/H1. Places pending stop orders during the London session outside the pre-London Asian range, using PSAR + MACD + Stochastic signals, with automatic London/NY DST handling, structural stops, trailing and break-even. Author
  Coppock Indicator  (41   1 2 3 4 5)
Hello all, Does anyone know where I can find "Coppock Indicator" for Metatrader 4.0. Thanks nick
I tried updating the MT4 version of the EA that was listed on MQL5, but it kept failing validation with a "no trading operations" message. I tested it by: 1. Re-uploading the old EA that had passed validation and was already listed. 2. Creating a simple EA that ensured "trading operations" for
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
  there are no trading operations  (72   1 2 3 4 5 ... 7 8)
I test me EA on my own broker it works okay. But when I send in for validation I get the following : test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no...
Good morning everyone ... I would like to ask the experts in general if they have news on some utility for mt4 that changes time frames by entering intervals different from those pre-ordained thanks
Hello, I am posting this in the MQL4 section since there is no MQL5 section to post it in. I am creating a simple chart overlay in MT5 to visually compare two symbols. However the chart overlay indicator does not update in real time it only updates on the close of the bar. Does anyone know what
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
Hi, I will release another private EA, this is called Electra, we continue using Greek names. This EA is a Multi-pair medium/long term Swing Trader. This is a positive Equity System, it mean the the equity remain in the positive side most of the time.Don't be tempted of halt and close the trades in...
Mt4 on my Samsung stopped displaying charts. No error message just a static image of three candles in monochrome appear. Screenshot attached. No indication that a chart is even trying to display. Everything else in the app works fine. App was updated, same result. Same if symbol is changed. Any
Hello Support and all, I've found problem of no any alert sounds from MT4 after update as build 1408. I've confirmed all setting for sounds are Enable (Option-->Events-->Enable for all). I've confirmed MT4 teminal for 2 brokers with 1408 update have the same problem, while MT4 teminal for other 2
Sorry I'm bad english language .I'm a beginner trader, currently experiencing losses, I'm busy with work and getting older, so I don't have time to constantly monitor charts. I found a free indicator file on ForexFactory, but it doesn't send notifications to MT4 on my mobile phone. I'd appreciate it
  Supply and Demand Expert Advisor  (32   1 2 3 4)
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones.  The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below).  Here are the rules of the EA: - When price reaches the proximal level of an...
I looked all over the MQL4 manual and still can't find the right way to just grab these 2 chart values, as shown in the attached image. The values are highlighted in a red circle in the image. As you can see, we need the value of the bottom and top "little-squares-predrawn-by-mt4" chart values...
My current broker is VT Markets, and they use the symbol XAUUSD -ECN instead of XAUUSD+. 2026.06.04 12:47:22.049 '26612571': Signal - #84143680 sell 0.01 XAUUSD+ at 4460.69 skipped as no symbol found how can i solve this problem