MQL5 Algo Trading community — forex forum for traders and developers

Several forum users have reported hacking and malware intrusion into trading platforms and pc's, so the purpose of this thread is to give some guidance about security measures. No one knows everything, and I certainly never claimed to, so please post up any additional or superior security measures
We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
On Friday, June 6, 2025, an updated version of the MetaTrader 5 platform will be released. In this version, we have significantly revamped the MetaEditor source code editor. The built-in version control system, MQL5 Storage, has been migrated from Subversion to Git – the global standard for
what is the difference
I would like to report a serious case of intellectual property infringement and fraudulent activity. A third-party website has recently appeared, unlawfully offering multiple high-ranking EAs from the MQL5 marketplace for sale. This site is using the exact same names, logos, and even screenshots
I am trying to access the VPS, but I can't find the ip address and my credentials. Need to see the logs and such. Thank you
  DD Tracker  (3)
Good morning... Do you happen to know if there is a DD tracker for MT5? I have an excellent one for MT4... but need one for MT5. Any ideas? Br, Patrick
  RTH  (1)
How can I Set MT4 only show me RTH America without showing the Asian and European sessions ,like SPX in TRADING VIEW
Update of MetaTrader 5 terminals for compatibility with Windows 10 April 2018 Update Today, we are releasing an update for desktop terminals, which fixes compatibility issues on the latest Windows version. We strongly recommend that you install this update. If you have already installed Windows 10...
  Fake reviews in the market MQL5  (72   1 2 3 4 5 ... 7 8)
I noticed a lot of EA products in the market which are listed in the front page , all have exactly the same thing in common : Fake reviews After investigation , those developers are telling people that in exchange for a positive review they will get a free EA or free indicator. So suddenly a product
Hello, I would like to update my mobile phone number. However, I am no longer using my old number, so I am unable to receive the verification code. Could you please advise me on the steps to verify my identity and proceed with updating my phone number? Thank you very much for your assistance
Please check the following: Confirm that your phone provider permits the reception of international SMS messages. Ensure network coverage is strong. Ensure the mobile number/s are not in roaming (in that case delivery is not guaranteed). Ensure unwanted SMSs are removed so that phone memory is not
“Vast sea of EAs, zillion good-looking robots, each promising riches, but leaving traders and investors stranded on the shores of uncertainty.” © My contribution toward: – MetaQuotes analytical tools and metrics for evaluating strategy performance – more transparent and informed trading
How to subscribe
I am having trouble updating my EA. I am sending the same code with only the name corrected, and it keeps giving me these errors, even though it is the same code I sent and was approved before. test on EURUSD,H1 strategy tester report 74 total trades test on NZDUSD,H1 there are no trading operations
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  (39   1 2 3 4)
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...
Hello all, I have been trading the Forex market for 4 years and I need automated trading strategies due to a change in my employment status (and I'm not a very profitable trader and need a change in direction.) I am looking to find out if anyone has past/present experience or considering automated
Hello, I am sharing my strategy, which I am using for manual trading, and I am planning to build an EA based on this strategy soon. This strategy works for all currency pairs and timeframes, but the recommended timeframes are M1, M5, M15, and M30. This strategy is currently giving me an 80% win
  What strategy actually works?  (26   1 2 3)
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
I need help if anyone know how to do this or has a bot please reach out to me
  Info copytrading  (6)
Hello, I would like to conduct a study on the signals available in MT4 and MT5. For this, I would like to have the data displayed on the website in a .csv or similar format. Is it possible to extract them from the web? Thank you very much
  My Own Technic  (10)
I started my journey in trading five months ago. Since then, I’ve studied all kinds of strategies— ICT, SMC, price action, and more— but none of them really worked for me, mostly because of the wide stop losses. Eventually, I switched to a demo account to develop and refine my own strategy. I
  Brainwashing System / Asctrend System  (261   1 2 3 4 5 ... 26 27)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First
  Quantitative trading  (386   1 2 3 4 5 ... 38 39)
Quantitative trading, also known as algorithmic trading or algo trading, is a rapidly evolving field that combines finance, mathematics, and computer science. It involves the use of sophisticated mathematical models, statistical analysis, and computer algorithms to identify and execute trading
  Bother with HFT system  (11   1 2)
im trying to test a new hft ea but get the error message invalid price . i think its the buy and sell stops that are too close to chart price. how can i find out if thats whats happening, and what hte min distance should be
Hey everyone, I had a trade on silver (XAGUSD) that got really close to my take profit — just a few pips away — but then it reversed. Now I'm not sure what to do. Should I close it manually or leave it and see if it goes back up? The bot I'm using was showing a continuation lower, but price bounced
Hi guys, I just start a trading discussion about what the best method to identify trend. We know there are three type of trend: 1. Up Trend 2. Down Trend 3. Sideway. How we identify Trend? Thanks in Advanced
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
Signals provider broker uses 'XAUUSD.' (with a period) Subscribers broker uses 'XAUUSD' (without a period) According to https://www.mql5.com/en/forum/10773#q13, automatic mapping should make a match on the first 6 characters. However the subscribers MT5 terminal (build 4755) logs "no symbol found"
  Who are the resistance?  (14   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
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
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this
  Simple trade automation?  (11   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
  Trading Futures  (6)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
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
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
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
  EA scams  (73   1 2 3 4 5 ... 7 8)
Does no one check sellers code for scams. For example this guy shows his EAs winning but they only win up until the last upload date and then they lose. He obviously has the data loaded in the EA For example, his program was last updated on 28th february 2023 and you can see the great results before
Hi developers. I am close to finishing my EA which i want to protect from unauthorized users. I have searched over this platform but I've only came across MQL4 3 simple ways of protecting your code. I have searched on the documentation of MQL5 but seems like it does not touch anything to do with
hi guys i have app that write a txt with this syntax in Mql5\Files EURUSD,BUY,0.10 the mt5 read perfect load data but when execute return error but in my accont i have 10k and if i run the same command by hand it works my code // ===== COMANDO DO ORDER: "<SYMBOL>,<BUY/SELL>,<VOLUME>" ===== if
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Can anyone help me trace it and remove it? No real answers or real help came from support, either the broker or MetaTrader 5 and MQL. Keep opening trades randomly on all pairs almost every hour, causing losses if not closed manually, and I tried all the troubleshooting, and I don't want to delete
When do a EA backtest I read in journal the follow line: tester: 2024.12.14 09:32:03.427 Tester "00 - EURUSD -01-XMLOW-Double\EURUSD-01-XMLOW-DoubleLong.ex5" 32 bit Question: MT5 (build 4755 on Windows 11, AMD7940HX processor) is 32 or 64 bit? In build I use flag "AVX512" or "AVX2", same
Hi, I've noticed this ever since I switched to MT5 and multi-agent testing around 2 years ago. When testing with all local agents (I have not yet used cloud testing) the task scheduler does not distribute tasks optimally - particularly when getting "near" the end of testing. For genetic optimisation
Hello All, I'm new to this forum. I have created 1 strategy using pine on tradingview which produces buy and sell signals, Integrated with PineConnector and MT5. The condition of the script is that it doesn't has SL/TP. It exits on opposite signal. I need to use specific lots eg. XAUUSD lot=0.02
I am making a EA that will run on accounts with low leverage. To avoid runtime errors, I am trying to find the maximum number of lots that can be opened given the available free margin. Here's my attempt at the calculation. double marginRequired; double freeMargin; double maxOpenLots; void OnInit ()
Hi  I rent a VPS for a month and I run it , My question is when synchronization  With expert advisor and completion Should I turn on automatic trading or close it ,  because it closes automatically when I activate the VPS ? Should I add the expert advisor to the planned ? And how to choose the...
How to increase the font size of the opening price on the chart
Hello, I have Garnet. However, it is difficult to know which signals are available, as many are not available though listed. Is there a filter or some other way to only display the signals compatible with Gartnet and Metatrader? Thanks
i have a take profit of " 150 " points but , I'd like to partially close a position if it get 50 points profits then modify the remaining position with a take profit ( 100 points) , here's my code the problem is that the position closes fully at 50 points , i understand why but can't figure out how
  Copy Set Files  (1)
I have looked and searched the forum and cannot find a proper answer on how to copy set files in the most updated MT5 version. I saw a YouTube video that says the set files are in the Preset folder but it was an old video and my current version of MT5 does not have a Preset Folder. My situation is I
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
Hello MT folks, I have a sample indicator I extracted. On the 1-minute timeframe, the data displayed on the indicator appears the same on the chart as I have extracted. But immediately, I switch the timeframe to 4 hours, the data displayed on the indicator is mostly slightly different in decimals
I have been troubleshooting this for hours now... I am trying to CopyBuffer the following custom indicator line: int testHandleICustom = iCustom ( _Symbol , TFVal, Toolbox + "iMA+ATR.ex5" , MAPeriodVal, MAShiftVal, MAMethodVal, AppliedPriceVal, ATRPeriodVal
Is there an indicator or plot property to send the fill in the background ? thanks
  Test report  (2)
How do I find out where the error is, everything is ok when compiling
I have an indicator that plots 3 buffers. The first is a line (buffer number 0) and the other two are arrows (bufer numbers 1 and 2) that lie on that line (see picture). With this order of the buffers, the indicator is plotted in a desirable way (the arrows overlap the line). Unfortunately, when
  Zigzag indicators  (648   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Through experimentation one night, I figured out it was very easy to calculate the truest pivots in the market with minimal code by calculating the candles moving backwards in time rather than forwards. Moving backwards in time isn't reality, and of course we always move forwards in live trading
what do i do in this case ? thanks (its an indicator)
Hey erveryone hope you guys are doing well. I got an mlq5 code am trying to fix the deletion logic for invalidated logic but it is failing no matter waht i edit. Tried also chatgpt and deepseek but nothing fixes the issure. i have added candle lookbar, invalidation closes ,alert trigger deletes all
  forecast on Forex  (10)
I'm pretty new to this and reading all the articles and blogs never gives you a straight answer. Always uses words like maybe , on the other hand, if. Its never clear. Does anyone have a good source for news and forecast? Regards Trevor
Hello, I'm trying to send a message to my Telegram bot using WebRequest() in MetaTrader 5, but it consistently fails with error code 4006 . Here's what I've already done: Allowed WebRequest in MT5 under Tools > Options > Expert Advisors Added the URL: https://api.telegram.org/ Restarted MT5 after
See attached for pictures
  need help on mt5 indicator  (13   1 2)
can someone give their indicators source code, cuz i am facing some problems and chatgpt can't solve it, i need an indicator that gives signal so my indicator gives buy and buy stop signal, sometime it's giving wrong buy stop signals, also indicator shows old arrows on the loaded chart but stops
hello every one, i wrote an indicator which colored some candles red or green based on a special condition. i want to convert it to mql4 , but it seems candle draw function is not in mql4. would you please help me. thank you so much --------
Check out the new article: ALGLIB library optimization methods (Part II) . In this article, we will continue to study the remaining optimization methods from the ALGLIB library, paying special attention to their testing on complex multidimensional functions. This will allow us not only to evaluate
Check out the new article: Automating Trading Strategies in MQL5 (Part 11): Developing a Multi-Level Grid Trading System . In this article, we develop a multi-level grid trading system EA using MQL5, focusing on the architecture and algorithm design behind grid trading strategies. We explore the
Multi Currency Template: This is Multi Currency Expert Advisor Template that can trade according to symbol list (default 6 symbols).For Example, Ichimoku Chinkou Span is used for entry logic.// Main input parametersinput double Lots = 0.01; // Basic lot sizeinput int StopLoss= 50; //Stoploss (in
Check out the new article: Price Action Analysis Toolkit Development (Part 26): Pin Bar, Engulfing Patterns and RSI Divergence (Multi-Pattern) Tool . Aligned with our goal of developing practical price-action tools, this article explores the creation of an EA that detects pin bar and engulfing
Check out the new article: Automating Trading Strategies in MQL5 (Part 19): Envelopes Trend Bounce Scalping — Trade Execution and Risk Management (Part II) . In this article, we implement trade execution and risk management for the Envelopes Trend Bounce Scalping Strategy in MQL5. We implement order
Check out the new article: MQL5 Wizard Techniques you should know (Part 68): Using Patterns of TRIX and the Williams Percent Range with a Cosine Kernel Network . We follow up our last article, where we introduced the indicator pair of TRIX and Williams Percent Range, by considering how this
Double Moving Averages With Fibonacci : This indicator combines two moving averages to generate buy/sell signals based on crossovers. It also plots Fibonacci retracement levels using recent swing highs and lows for support/resistance. Visual arrows mark trade signals, and optional alerts notify
Check out the new article: Introduction to MQL5 (Part 17): Building Expert Advisors Using Technical Chart Patterns (II) . This article teaches beginners how to build an Expert Advisor (EA) in MQL5 that trades based on chart pattern recognition using trend line breakouts and reversals. By learning
MartingailExpert: The EA uses Martingale. Initial entry by indicator iStochastic (Stochastic Oscillator). Author: Vladimir Karputov
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Instantaneous trend line - levels: Instantaneous trend line - using levels for signals filtering Author: Mladen Rakic
  Libraries: MT4Orders  (57   1 2 3 4 5 6)
MT4Orders: Parallel use of the MetaTrader 4 and MetaTrader 5 order systems. Author: fxsaber
SMTP Mail Library: Library for sending mail messages. Author: Andrey Voytenko
Check out the new article: Developing a Replay System (Part 71): Getting the Time Right (IV) . In this article, we will look at how to implement what was shown in the previous article related to our replay/simulation service. As in many other things in life, problems are bound to arise. And this
Check out the new article: Data Science and ML (Part 42): Forex Time series Forecasting using ARIMA in Python, Everything you need to Know . ARIMA, short for Auto Regressive Integrated Moving Average, is a powerful traditional time series forecasting model. With the ability to detect spikes and
  Solve Stoploss Slippage  (14   1 2)
Hi all How do you solve stop loss slippage. On a demo account account the stoploss is hits the stoploss perfectly but on a real account it's a different story (Using the same ECN Broker). Below I attached images to look at the different Stop loss for demo account: For real account here here is the
Guys, Ive been trying to withdraw funds from my MQL5 account and MQL5 frustrating my effort. I created a webmoney account to receive funds and their response was "Our payment provider does not support your region" Please let me know how an international payment system such as webmoney is not
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
I am not able to run new optimization test on MT4 backtesting further, as every time I try to run it I get zero results and on the journal it says something like this "There were <n> passes done during optimization". I have searched the interenet and have performed the following without any
Hey all! Does anyone know of an effective way that I could extract the trade history from strategy tester after it is complete, into excel? I am currently doing this manually at the moment, but is a very long process when I am back-testing on 20+ pairs... Is it possible to use Macro's within excel...
  Live vs Demo EA  (5)
Anyone fancy taking a look at this EA , when back tested in strategy on the 1m chart XAUUSD with TP 100 , the results are amazing, however in live I cant get it to be profitable? here's the script : //+------------------------------------------------------------------+ //| Expert Advisor
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
Hi guys!  I was looking for an automatic lot size calculator based on a horizontal line. All the stuff I have found are position size calculators, but then you have to manually enter the lot number in the Red/blue chart with the buy/sell buttons. I need something that automatically calculate the lot...
  TRIX Indicator  (35   1 2 3 4)
TRiX (3 Exponential) indicator for MetaTrader 4. The TRIX is a trend-following indicator used by triple smoothing of price and looking for anomalies and rate of change. How To Use TRIX How To Use TRIX Download here: Click here to download Great trading
  Moving Average vs iMAOnArray  (14   1 2)
Hello guys, I have a very simple indicator drawn in a subwindow, the code of which is below: #property indicator_separate_window #property indicator_buffers 2 #property indicator_minimum 0 #property indicator_color1 Lime #property indicator_color2 Red double val1[]; double val2[]; double dXecn = 1 ;
Hi lovely community :) I'm having some issues with Strategy Tester and really need a hand. I did have a look around and I've tried a few solutions but to no avail. When I run a EA that I've made I get no results at all. Completely blank. I'm trying to figure out where I'm going wrong. I've check
Hi. People Lately history center is not working and I can't download any historical data. Is this due to planed schedule ? or Is it happen since new build 950 ? Just want to clarify what is going on. Kind regards.
Can someone please help me with the above issue, i cant download historical data for any symbol, its showing only little data and when try to download i will get error " there is no new data for pair "XXX", i have tried multiple pairs but nothing is working, download and re-install the MT4, switch
[Deleted]
Hi Guys, Just started working on the MT4 platform and there is something that I just can't figure out and its being a real pain. Each time I backtest an EA using the "Strategy tester" and I open a chart for it, the chart opens with a black background and white bars. Since I prefer working with...
[Deleted]
I have a back testing program that only accepts indicators as DLL's. Does anyone know if it's possible to convert an MQ4 indicator to a DLL? If so, could you please tell me what I need to do in order to convert it? Thanks