MQL5 Algo Trading community — forex forum for traders and developers

Hi, does anyone know how to delete 'unavailable signal' status from profile ? How to contact MQL5 regarding this? Please help
Hello everyone, I'm a beginner and I don't know where to download MT5 to run on my computer. I've tried downloading it from this platform many times before but haven't been able to. Could someone please teach me where and how to install it on my computer? Thank you
Hi MT5 is one of the best if not THE best trading tool on the planet. But through the years, i've collected some possible improvements that could be made to the already amazing platform If you have propositions, please post them here. 1) possibility to save several setfiles within the code, and name
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
I was moving the trading platform out of the way since I did need some space and suddenly disappeared. Now I have a big grey window with the bar on the top with file; view; insert chart...and I tried the trick with toolbox ...I even reinstalled the app but didn't help . Anyone now what's going on? I
Hi, Recently requested a payout for a prop firm and they have claimed I have risked / exposed my account to more than 2%, even though my SL was set at 1.85% and it triggered at 1.95%. My question is how do I generate an exposure chart on MT5. Many thanks
We are pleased to announce the launch of our pages on Twitter and Facebook. You can now follow all the latest events in MQL5.community via these popular Social Networks. All the latest news and data on algo trading are conveniently published on a single page on social networking websites. And it's...
Subject: MetaEditor 5 Bug (Build 5660): " #property indicator_buffers " update fails in Projects (.mqproj) Hello everyone, I've encountered a critical bug in MetaEditor 5 when working within the Project mode (.mqproj) in the "Shared Projects" folder. This issue significantly hinders development and
On Friday, February 20, 2026, an updated version of the MetaTrader 5 platform will be released. In this version, we have refined the dark interface theme by updating the overall background color, as well as the colors of tabs and scrollbars, to provide a more comfortable and visually consistent user
I am experiencing a persistent issue with MetaTrader 5 running on Linux (currently Linux Mint 22.3 Cinnamon, but also tested on Arch) via Wine 10. The Problem: When modifying a transaction or an alert on the chart using the drag-and-drop method, the object is lost if the cursor stops moving for even
Fixed lot/contract/share (set in stone), Fixed account currency units (e.g., n USD, etc.), Fixed fractional (percent of account balance), Drawdown-based (percent of max drawdown), Volatility-based (e.g., ATR, etc.), Kelly Criterion (win probability and win/loss ratio), Martingale (progressive based
There is no option to sign in with Google on the MT5 App. I would like to make purchases using funds I deposited into the account I created using the "sign in with Google" option. I can see my username when I log in to the account from a browser, but since I am using google option to sign in, I do
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
Hi, my EA code is taking very less trades, I am backtesting it for 01 month and it is taking only 16 trades in a month, results are good PF=2.57, DD% = 1.27% but only 16 trades in a month. How to resolve this issuse, please help
I am trying to withdraw using a credit card and it's always refused. The Service Desk keep repeating "Declined by issuing bank". So I contacted the card provider, and they said they never received any request (I had to ask 4 times). So I asked again to our dear ServiceDesk and they said it's
How can be the best professional developer
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
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
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
  All About Price Action  (64   1 2 3 4 5 6 7)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
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
For me was very hard, it took like 2-3 months, the thing that helped me the mos wast replicating a pattern that I watched in the market: High of the day + M15 sweep / Low of the day + M15 sweep Firstly backtesting it a lot and then taking screenshots of the pattern, then started coding and learning
  MetaEditor, Open AI and ChatGPT  (91   1 2 3 4 5 ... 9 10)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
  Free demo  (4)
anyone please tell me free demo is available for how many days
  Forex Market Profile  (30   1 2 3)
Today on EurUsd, in on hour, the famous ADP Non Farm (12:15 gmt) The peak of today (point of control aka peak time of price PTP) is in the vacuum of yesterday. We stay out of market, too dangerous. I prefer trade another day. I wait & see. The good trade was the counter trend near the yesterday PTP...
I can't see the MT5 VPS option anywhere! I tried Navigator - not there I tried tools - unable to select I tried tools --> option, no cloud tab to select. I have tried on 3 accounts: Metaquotes, IC Markets and Pepperstone. Anyone knows the issue? Thank
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
I’d like to discuss the difference between what we often call a “strong breakout” and a “false breakout”. What criteria do you personally use (candlestick body size, volume, retest behavior, multi-timeframe confirmation)? My observation: sometimes a breakout above recent highs comes with strong
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, I’ve been experimenting with a structure-based EA approach on XAUUSD where internal market behavior is evaluated together with a few correlated markets (mainly index and dollar-related symbols) to derive contextual confirmation before execution. The technical idea is to combine: Market
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
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
  We use Bitcoin ;)  (492   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...
"Hello, I am interested in publishing an article on MQL5.com, but I am facing some challenges in getting it through the initial review process. Could someone please guide me on the specific technical standards or formatting rules I should follow? I want to make sure my code examples and explanations
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
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
  Simple trade automation?  (15   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
  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 (
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
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
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
i been using amp for future trading from last two years in usa but from last three days i been noticing disconnection of data feed in live trading for almost 30 seconds to 1 minute, is anyone else have this issue
Hi all. I am migrating my EAs from MT4 to MT5. Yesterday I ran some back testing and worked fine. Today I get this error. and MT5 won't let me run optimizations. Says: - debug version of "Advisors\EA.ex5" detected - optimization cannot be started Thank you in advance for your time
  Gold BOT on MT5  (1)
Subject: Gold BOT on MT5 Hi everyone in the MQL5 community, I’m currently developing an Expert Advisor (EA) called ConvexCap GoldBot for MetaTrader 5 (MT5), specifically tailored for trading XAUUSD (gold). The goal is to create an automated scalping strategy that capitalizes on gold’s high
I have an EA which makes decisions based on several diferent symbols. The primary symbol the EA is attached to is EURUSD, but it uses tick data from EURCHF. USDJPY, XAUUSD,... I use CopyTicksRange() to get data from other symbols. And this works fine when trading live. However when I attempt to use
I just discovered an error when decoding base64 code after updating the terminal (in previous versions this error was not encountered) string Base64Encode( string text) { uchar src[], dst[], key[] = {}; StringToCharArray (text, src, 0 , - 1 , CP_UTF8 ); ArrayResize (src, ArraySize (src) - 1 );
  EAs wont place trades  (11   1 2)
Hi I am new to MT4/MT5 and I'm trying to backtest some EAs. There are a couple EAs I've tested that will place trades like the <Deleted> bot but I tried 4-5 others and they all fail to place any trades. I noticed in the journal that the bots do not initiate any buy trades but has many sell trades
I've looked for any documentation on what's under the hood of this function with no luck so far. I'm trying to calculate required margin for upcoming positions, and OrderCalcMargin() gives me a different value than the standard calcuation that I'm digging up everwhere else on the web. I'm currently
I'm looking for Expert Advisor for MT5 that can help me: 1. to set tp, sl automatically (which my tp and sl are always fixed, like when I set limit, tp & sl will always be 100pips) 2. change my sl to entry point (breakeven) when some conditions triggered (when order running between utc 1400 to 1600
Assuming there is a stable and verified live trading record, what is the typical price range for high-end Expert Advisors? Would it be advisable to start with a lower price to gain user reviews and credibility, and then gradually increase the price over time
I want to get the position ID of a trade right after opening it, but it always returns 0 . Here is the code I’m using: if (trade.Sell(volume, symbol, 0 , sl, tp)) { ulong order_ticket = trade.ResultOrder(); // Trying to get the position ID ulong pos_id = HistoryDealGetInteger (order_ticket
MT5 Backtest is not working it stuck after backtest and don't print the report.( after backtest i waited for 1 hrs but it is not printing report) mt5 backtest is not working it is not printing the report, it stuck at last and not print report, pls resolve this issue as you can asee backtest is
Hello, can you help me write this EA for MT5? If the previous candle is a BUY candle, then open a BUY. If the previous candle is a SELL candle, then open a SELL. If there is an existing position that matches the logic => keep it, do not open a new one. If there is no position that matches the logic
I want to create a robot (expert in MetaEditor) but I have a question: Does my laptop need to be on when the expert is working? For example if a robot wants to work for 5 hours, should the computer be turn on for 5 hours
Hello. I have simulate in my EA situation when program place pending order and when price going to hit it, in account no money for execution order, so I get information from server : 2026.02.28 17:12:44.096 2024.10.23 19:31:28 current account state: Balance: 1000.00, Credit: 0.00, Commission: 0.00
Hi. I want to do optimization of many of my strategies of MT5. But For my Windows PC, it is taking a lot of time plus I must keep PC ON for 24*7 (+Electricity Cost). Instead of that I am planning to buy Ubuntu VPS and install MT5 in that and start optimization, So I don’t have to keep my pc ON all
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
  Help for strategy tester  (11   1 2)
Hi i am an absolute beginner i create a small routine that provide once you press sell or buy to put one order and assign a Stop loss automaticatelly at 70 pips distante and a Tp on 140 pips according to 1:2 RR. Another step is to put TP at BE once arrived at 1:1 All this tested on the strategy
Here's what I see when I start the MT5 terminal, also when its running but my internet connection is interrupted. The indicator plot shows briefly (subsecond) and then disappears: All I need to do is switch the timeframe of the chart to anything and then back and the window shows up like it should
Title Market validation false failure : " not synchronized with trade server " on minimal indicator v1 .06 Hello MetaQuotes team, I need help with what appears to be a validator -side issue during Market automatic validation . Product Name : Market Exhaustion Indicator Product ID
Hey guys hope everyone is doing well. I got a piece of code here trying to create rectangles to cover FVG zones drawiing from the zone itself to the last closed price. As price is moving printing new candles the box is left behind where it loaded. Can anyone assist draw the box to follow price on
Hey Guyz Thanks in advance for the help and advice on where or what I might be able to do to make the RSI+MA overlay!!! I seen an earlier post that sayd to copy one CODE and PASTE the code on to the other CODE. However I tried this and complied the instrument, came back ok however when...
  Oscillators  (47   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
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
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
  Forecasting indicators  (346   1 2 3 4 5 ... 34 35)
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
On which time frame is it the easiest to count Elliot Waves correctly
Does anybody know if this indicator exists for mql5? My guess is that it does not. All I found with that name was some old one from 2012. I know maybe 30 % of mql5. How hard will it be to convert from pinescript to mql5? 186 lines of code is a bit worrying. Edit. My link from tradingview
I want to build a volume profile per candle indicator like the attached picture. This indicator work in mt4 using ticks. Can anyone know the exact step to build this type of indicator
Dear all. I am trying to build Custom indicator base on iBand. After alot of searching I decide to Post here may be someone can help me. Here is the full indicator. //This is MQL5\Indicators\Anhnt\iBand_Display.mq5 #property indicator_chart_window #property indicator_buffers 3 #property
Modern trading platforms store total traded value and total quantity for each time interval. I propose the Capital-Weighted Price (FO) : FO = Total Transaction Value / Total Quantity Request: Display FO alongside OHLC values in candlestick panels. Allow FO as default input for all technical
[Deleted]
Hello, Is it possible for me as an MT5 trader to set up  7 Minute, 8 Minute and 9 Minute charts on my MT5 platform?  If yes, how do I go about doing that? Thank you, PennySeven
Check out the new article: Launching MetaTrader VPS: A step-by-step guide for first-time users . Everyone who uses trading robots or signal subscriptions sooner or later recognizes the need to rent a reliable 24/7 hosting server for their trading platform. We recommend using MetaTrader VPS for
Check out the new article: Package-based approach with KnitPkg for MQL5 development . For maximum reliability and productivity in MetaTrader products built with MQL, this article advocates a development approach based on reusable “packages” managed by KnitPkg, a project manager for MQL5/MQL4. A
Check out the new article: Larry Williams Market Secrets (Part 13): Automating Hidden Smash Day Reversal Patterns . The article builds a transparent MQL5 Expert Advisor for Larry Williams’ hidden smash day reversals. Signals are generated only on new bars: a setup bar is validated, then confirmed
Check out the new article: MQL5 Trading Tools (Part 22): Graphing the Histogram and Probability Mass Function (PMF) of the Binomial Distribution . This article develops an interactive MQL5 plot for the binomial distribution, combining a histogram of simulated outcomes with the theoretical
Rank AutoCorrelation : Indicator includes Spearman rank correlation and Pearson correlation. Author: Mladen Rakic
Check out the new article: Neural Networks in Trading: Integrating Chaos Theory into Time Series Forecasting (Final Part) . We continue to integrate methods proposed by the authors of the Attraos framework into trading models. Let me remind you that this framework uses concepts of chaos theory to
MACD Sample : The MACD Sample EA is included in the standard pack of the MetaTrader 5 client terminal and is an example of the EA that trades using the MACD indicator. The file of the MACD Sample.mq5 Expert Advisor is located in terminal_data_folder\MQL5\Experts\Examples\MACD\". This Expert Advisor
Check out the new article: Data Science and ML (Part 29): Essential Tips for Selecting the Best Forex Data for AI Training Purposes . In this article, we dive deep into the crucial aspects of choosing the most relevant and high-quality Forex data to enhance the performance of AI models. With all the
New article MetaTrader 5 on Linux is published: In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes
Check out the new article: Neural Networks in Trading: Integrating Chaos Theory into Time Series Forecasting (Attraos) . The Attraos framework integrates chaos theory into long-term time series forecasting, treating them as projections of multidimensional chaotic dynamic systems. Exploiting
Check out the new article: William Gann methods (Part III): Does Astrology Work? . Do the positions of planets and stars affect financial markets? Let's arm ourselves with statistics and big data, and embark on an exciting journey into the world where stars and stock charts intersect. The basic idea
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and
Check out the new article: Engineering Trading Discipline into Code (Part 2): Building a Daily Trade Limit Enforcer for All Trades in MQL5 . We have developed a system that enforces a daily trade limit to keep you aligned with your trading rules. It monitors all executed trades across the account
Check out the new article: Introduction to MQL5 (Part 33): Mastering API and WebRequest Function in MQL5 (VII) . This article demonstrates how to integrate the Google Generative AI API with MetaTrader 5 using MQL5. You will learn how to structure API requests, handle server responses, extract
BBMA Oma Ally OmniView : It's like a bird's-eye view for BBMA Oma Ally fans. ust drag it onto the chart and you'll get all the BBMA signals running on the chart. Author: Alexander P
On Friday , March 6, 2026, a new version of MetaTrader 4 will be released. The update includes several important security improvements, bug fixes, and platform stability enhancements. The update will be distributed via Live Update
I cant find a reliable copy of MT4 to download. I try the copy form Oanda and it my computer says error , I'm running windows 11
  Margin Calculation ?  (17   1 2)
At the bottom of the MT4 terminal when the Trade Tab is selected MT4 shows the following parameters: ---> Balance: Equity: Margin: Free Margin: Margin level: <--- My question is "What is the equation used to calculate Margin?"
Greeting , Can anyone help me please with programe lines (code base) to add to my EA -mq4 file simply , I only want the EA to open trades only if RSI value between 65 and 35 for example or 70-30... etc , it would be really appreciated sorry I don't have experience in programming
How can I program triggering a key press/event? For the following use case: Normally one can zoom with the "+" and "-" keys, but I would like to zoom with "q" and "r" and my idea is when "q" is pressed to trigger pressing the "+" key. Or are there better ideas how to create this use case?
I send messages with "SendNotification" to push Alerts from mql4 to the Android Mobile APP. It's working correctly from years. Frome about 1 month i'm experiencing the following behaviour: 1) i send from my mql4 EA push notifications with SendNotification command to my Metatrader 4 Mobile APP
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
Hello, as in tittle, What code should I add into EA in MT4 to avoid hyperacivity alert in FTMO prop firm? Did you happen to have 200 orders open simultaneously or 2,000 trades/order modifications that day? That's as much as the FTMO servers can handle and will temporarily lock your account for
  Something interesting, old thread  (1284   1 2 3 4 5 ... 128 129)
Dear all, I would like to start this new thread cause I have some indicators that I paid for them and I want to share for free with you, all of you that for years share tons of ideas with me in this beautiful forum. I hope to encourage many users to do the same thing Best regards doc EDIT now the...
  Expert Advisor  (1)
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
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
  Filters indicators  (316   1 2 3 4 5 ... 31 32)
Some indicators which can be a filter to avoid big losses. If you have a great idea so you need a filter. To avoid any trading in none-trading zone. Please post your filters here. And please find the filter ... let's say ... 4 in one: FATL, SATL, RSTL, RFTL. In one indicator
Is there anyway to Automatically turn on the Trailing Stop Loss in MT4.&nbsp;
In MT4, how can I see the name of my chart template that is currently applied? - indicators with ctrl + i - objects with ctrl + b - and templates? How can I switch templates with a hotkey? - indicators/EA' s with alt + [key] (from ctrl + n) - profile with ctrl + F5, profile name at bottom (see...
Goal: I usually have my charts(over 20) maximized but at certain times, for comparrison, I want to have only two charts filling the whole window: one to the left with 100% height and 50% width and another one to the right with the same dimensions. I'm aware that I can do this manually but to get it