MQL5 Algo Trading community — forex forum for traders and developers

Hello All Ive been using Meta VPS for nearly a year paying every month. Ive just started a new live account with <...> and now im getting ERROR 403. MT5 are only letting me use the free trail, with nearly a year on the clock 3.10 PING not the usual 0.3 i was getting. Something smells off. Nothing
Comments that do not relate to the " Dealing with spam in PMs ", have been moved into this topic
  Dealing with spam in PMs  (11   1 2)
Comments that do not relate to the " Having friends on MQL5: The positives ", have been moved into this topic
Hi Community! I am on Mt5 Apple IOS mobile app and i realised that even after inserting Trendlines for All Time Frames, they are not showing on Lower Timeframes from M1-M15. On top of that, for M30, H1 and above, the trendlines disappear when it is zoomed in a little too much (Attached photos for H1
Hello, I am trying to verify my phone number via Telegram using @mql5_verification_bot, but I never receive the verification code. My phone number is correct and Telegram is working normally. The bot replies: "There is no MQL5 Code for the phone number ..." I already tried: restarting Telegram
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
How have you benefited from having friends on mql5? I find it weird that people ask to be friends but after you become friends, you never discuss anything trading or EA related, never share ideas, never encourage or seek encouragement. I find people on this forum to be 1000x more important than
I am starting this thread to centralise any suggestion for improvement of MT5 platform, mql5 language and mql5.com site and services. I will update this first post regularly with all the suggestion by category and hopefully with date of release. Please make realistic suggestion and on this mentioned
  Lot Calculation  (4)
i an a new beginner tarder and dont know much aboutlotsizes etc is tehre a way to calcualte these
Hi everyone, I am hoping someone in the community has faced a similar situation and can guide me on what to do. A few years ago, an unknown amount was credited to my MQL5 account via Web money. I have no idea who sent it or why — it just appeared in my account unexpectedly. I never requested it. I
I installed the MicrosoftEdgeWebView2 dependency in Bottles like another recent forum post said and when I click to login to MQL5 in the top right, it draws an empty box. How do I fix this? Am I missing another dependency? There are no errors in the journal anymore
Hi, I am experiencing a discrepancy in data integrity when using matrix::CopyRates() compared to the legacy CopyRates() function. For the same symbol, timeframe, and depth, I am unable to retrieve the same Close values, and the resulting matrix structure appears inconsistent with the requested
Hi there, I cannot access mql5 web site anymore. I get the 403 - Forbidden http error, I have to use a vpn or login from another network, it seems my ip address has been banned and I don't know why, my account is not banned and can login as as usual, provided I use a vpn. I tried contacting the help
//Inputs input double riskPercentage = 10 ; // Risk % of account balance per trade input int TPandSLpointsFixed = 200 ; //Fixed SL and TP points at open of the trade input int TrailingPoints = 50 ; // Trailing stop points //////////////////////////////////////////////////// void OnTick () {
Over the past few years I believe mql5 has played a great role in helping traders by bridging the gap between developers and traders. Thanks mql5
  Machine Learning and Neural Networks  (741   1 2 3 4 5 ... 74 75)
MQL5 now supports matrix and vector operations which are used in various computational tasks, including machine learning. We have created this thread to select and share some materials that may be useful to you. Machine learning technology is based on neural networks. Neural networks are
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
  Tick tools  (37   1 2 3 4)
Hi, Recently I've begun development of tick indicators. Some of them you can see in this thread: -TickSmoother -TickPriceChannel -TickMACD -TickStochastic Some of them can be implemented in EAs for better entries or for scalping.
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
We’ve released a new video on one-click trading in MetaTrader 5 — a feature that lets you open and manage trades instantly, without extra confirmations. Execution speed plays a critical role in trading. In this video, you will see how the platform's built-in tools allow you to place market orders
  All About Price Action  (67   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...
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
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
  What strategy actually works?  (143   1 2 3 4 5 ... 14 15)
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 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
May I know if there is anyone who focus on triangle breakout and can make profit this year
[Deleted]
If you are looking for EA for trading, which you trust? the live signal of the EA that show real trading activity and performance? or the backtest
" automated trading " means different things to different people, here I mean a system that detects good trading situations and then places an order and closes later after some conditions are met. It seems to be possible to create a profitable system, but so far I haven't had much luck. some big
  MetaEditor, Open AI and ChatGPT  (98   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
[Deleted]
Is it possible? made my idea and backtest always give poor or negative results But on a real account it always challenge me with every loss I say "failed on backtest and now is time to break on real" but seems challenging me to not break, and after every loss it start making winnings again until
[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
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
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
  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...
  BTC  (4)
Does anyone here trade BTC
  Nasdaq
Does anyone here trade Nasdaq? What leverage do you get from your broker
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
"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 (
Hi, I’m currently facing a challenge with the MT5 Strategy Tester during heavy optimization runs, and I’m looking for a more efficient way to handle "invalid" parameter combinations. To avoid wasting time on useless optimization passes, I’ve been using INIT_PARAMETERS_INCORRECT (or INIT_FAILED)
Hi everyone, I am developing an EA for XAUUSD and I would like some advice about trailing stop management. Current setup: Symbol: XAUUSD Mainly H1 timeframe Trend/momentum strategy Trades often run into profit, but many positions close too early because of trailing settings. At the moment I am
  Found a scary EA  (7)
BOTH backtest and forward testing in the strategy tester of mt5 are profitable. Does it means it will be profitable in real market as well? What I need to know before I purchase is: What tick data is being used in the forward testing? Is it the data from the past or from other symbol
Hay, I am new to programming and this is my first EA. I used PositionsTotal()<=0 to count all positions, now I want to use magic numbers to count positions. I would like to ask if there are any other solutions or methods. if (PriceInfo[ 1 ].open > Buffer_belowlin_FS[ 1 ] && PriceInfo[ 1 ].open >
  EA Time Trouble  (4)
Is matching the EA time with the broker’s time one of the biggest challenges
As long as the Return Code is not 10009, I can safely assume its an error but looking up on the list of return code here: https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes I couldn't find anything for 0. Here's a sample of the order check result
It's possible to have a good entry system, but we have to think about the hard part which is knowing when a trade should close. - Fixed take profit is a random number of points. If it is large, the market might go up and go down again causing you to lose the profit. If it is small, you might miss a
Hi everyone, beginner question here. I’ve just purchased a new EA, but I already have another EA running on MetaTrader 5 using the built-in MetaTrader VPS. I’d like to keep each EA fully separate (ideally one EA per account and VPS), and I’m unsure about the best way to structure this. What would
Observation / research note While backtesting a multi-symbol portfolio EA on EURUSD M15 , I noticed that entries for GBPUSD, USDCHF, USDCAD, and GBPJPY were systematically about 15 minutes late . EURUSD, EURJPY, and EURAUD entered on time. This happened in Open Prices Only mode. When I ran each
  Look for Best EA  (28   1 2 3)
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
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
Hi all, I came across a youtube video someone (Can not find the video i searched history on every browser and phone) was making code changes to position sizer from earnforex to have an indent on breakeven of specified value and also for the trailing stop to start once tp1 is achieved instead of
  dynamic lotsize not working. help!  (63   1 2 3 4 5 6 7)
void OnTick () { auto.s5 = 0; for ( int k = total0 - 1 ; k >= 0 ; k--) { if (position.SelectByIndex(k)) { tk = position.Ticket(); if (tk <= 0 || tk != position.Ticket()) break ; int otyp = position.Type(); if (otyp != POSITION_TYPE_SELL
Hi guys, Hope that you are well. I have 5 MT5 terminals running, but for some odd reason in the last two weeks 2 of the terminals with similar EA's have stopped working. I am not getting any bad report or anything...I installed a new Terminal and reinstalled the EA's, it is still not working...all
Hi, I am working on Partial Closing Positions (MQL5). On A Netting account, I simply open an opposite order with the right volume,and can (of course) set the trade comment (Name of the EA) like with any other trade. On a hedging account I use PostionTradePartial to partially close a position
  Tick Indicator and EAs  (245   1 2 3 4 5 ... 24 25)
hi, a cool indicator Tick_on_Chart i all TimeFrames :cool: only Live Tick !!!
  MACD indicator  (1533   1 2 3 4 5 ... 153 154)
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...
  Everything about RSI  (1468   1 2 3 4 5 ... 146 147)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
Overview I’m sharing a free indicator I built: a Multi‑Timeframe Linear Regression HUD rendered with Canvas , designed to show trend strength, deviation from regression, and recent candle bias — all in one compact dashboard. Useful for discretionary traders who want a quick “market condition
Hi All, Do you have an indicator in mind that you think would make your life easier or more productive, what would it be? I might be able to write it for you. Let me know it's details and if it's needed for mt4 or mt5 and if I can write it, I will give it to you for free
  Need help indentifying indicator  (2709   1 2 3 4 5 ... 270 271)
sisi: Hi,Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx I hope you could attach your EA so...
Which hero has the wave three indicators. Please help me
Hi! I want an alert system for technical indicators. It's been rather difficult to implement that into the existing source code of the indicator. I have searched online and found no reliable or latest results for this. Basically, I want a read, yellow and green box whenever the indicator reach a
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 =
Apologies for a really stupid question! Recently started using MT5 and I have been looking for a tool on the platform which draws out SL boxes in red and TP boxes in green, expandable. It's probably really easy to find, but I can't find it. Any help would be appreciated Cheers
[Deleted]
RSI is a very good signal specially when use 70-30, but sometimes it can be early signal and enty at that time would lead to some drawdowns before the right direction start Am looking into any indicator that can help to avoid this situation I tried most famous indicators and no one helped Any
Hello All, I am still struggling to port what I perceive as useful mq4 indicators to mq5. I had help on my last attempt but chose quite a complicated indicator and 'am saving it for later'. This indicator is far simpler and I can tell from the debug I have included it is locating signals and
Does anyone know the source code for this metric? I would be very grateful for any help
Hello guys, I am wanting to join two indicators in order to make a backtest, there is this possibility? Or will I need to hire a programmer to join the two in an EA, to then be able to make my backtest? I await help! Thank you, Danrop
I'm LOOKING for the BEST REVERSAL INDICATORS PLEASE
Prime Quantum AI — TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). : Prime Quantum AI is an MT5 Expert Advisor combining a classical pre-filter (ADX + Alligator) with AI vision-based chart confirmation from major AI providers (Anthropic Claude, OpenAI GPT, Google
New article Creating a comprehensive Owl trading strategy has been published: My strategy is based on the classic trading fundamentals and the refinement of indicators that are widely used in all types of markets. This is a ready-made tool allowing you to follow the proposed new profitable trading
Check out the new article: Creating a Custom Tick Chart in MQL5 . Learn how to implement a tick-based chart in MQL5 where each bar is built from a fixed number of ticks instead of time. The article covers creating and configuring a custom symbol, capturing real-time ticks, forming OHLC values, and
Check out the new article: The MQL5 Standard Library Explorer (Part 11): How to Build a Matrix-Based Market Structure Indicator in MQL5 . Learn to engineer an MQL5 indicator that converts trend, momentum, and volatility into a single raw score using a matrix.mqh (ALGLIB). The article covers a
Check out the new article: MetaTrader 5 Machine Learning Blueprint (Part 15): How to Calibrate Profit-Taking and Stop-Loss Targets from Synthetic Data . This article applies the Optimal Trading Rule from AFML Chapter 13 to set profit targets and stop-losses without in-sample calibration. We model
Check out the new article: Event-Driven Architecture in MQL5: How to Turn an Expert Advisor into a Full-Fledged Trading System . The article is dedicated to the event-driven architecture in MQL5 and describes the transition from the monolithic OnTick model to distributed processing. We will consider
Check out the new article: MetaTrader 5 and the MQL5 Economic Calendar: How to Turn News into a Reproducible Trading System . The article presents a systematic approach to news trading in MetaTrader 5 using the built-in economic calendar: data structure, API functions, time synchronization rules
Period Converter Mod : An analogue of Period Converter in MT4 Author: Aleksandr Slavskii
Aura Heiken Ashi : Advanced smoothed Heiken Ashi indicator featuring automated Supply & Demand zones, EMA trend filtering, and multi-indicator momentum confirmation for high-precision trading. Author: Ilham Hijrah Saputra
New article Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies is published: This article is intended for novice/beginner users who want to approach some kind of customization with functionality and without writing an EA from scratch. In MetaTrader 5 we have a great
XANDER Grid XAUUSD : Bidirectional grid EA for Gold (XAUUSD). Ideal for ProCent accounts. Includes Daily Profit Target and Max Drawdown protection. Author: Cristhian Alexander Gaibor Cuasquer
New article MQL5.community - User Memo is published: In this article we have prepared some hands-on tips that will help you to get accustomed in MQL5.community and to take full advantage of it's available features. Author: MetaQuotes Software Corp
XANDER Pulse Candles : Color your candles by momentum state. Four bias levels + neutral — built for dark charts. Author: Cristhian Alexander Gaibor Cuasquer
Institutional Gaussian Signal Filter (Zero-Lag ALMA) : A quantitative Gaussian filter designed to replace lagging retail moving averages by applying advanced digital signal processing to eliminate market noise without sacrificing responsiveness. Author: Amanda Vitoria De Paula Pereira
Breakout Rhonchus PRO : Breakout Rhonchus PRO is a professional non-repaint MT4 indicator designed to detect high-probability breakout momentum opportunities using EMA Tunnel analysis, EMA200 trend filtering, CCI momentum confirmation, and ATR volatility filtering. Author: Ilham Hijrah Saputra
Hey guys,  I am in need of assistance please. What I would like to do is every time price creates a new high or low for the day I want to be able to save the price and the time somehow (perhaps in the global scope) to use it as a reference point? Would anyone know how to do this? 
I am runnning MT4 under Wine 6.0 on Ubuntu 20.04 focal. Have already run $ wincfg to set programms' window dimensions and scale police size. Now I am facing the issue that the toolbar submenus are not aligned and spread on two lines, and within submenus icons are also split on two or even three
I have an EA that I want to sell, but verification always fails
Hey everyone, I got tired of MT4’s default trailing stop. Trailing by a fixed amount of pips makes no sense when volatility changes every session, so I had a custom EA built to trail strictly by R-multiples. It is completely plug-and-play with zero inputs. How the logic works: It looks at the
The MetaTrader 4 update will be released on Friday , February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
  Something interesting, old thread  (1285   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...
The MetaTrader 4 update will be released on Friday , May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hi, I'm using Ubuntu 22.04 Linux with the latest version of Wine on my VPS I can run MT5 normally. However, i am successfuly installed it, when I run the installed MT4, I always get the message "Debugger has been found running in your system. Please unload it from memory and restart your program"
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
hi,I would like to convert  point from currency pair to currency account. For example assuming my account is in USD what will be  the value in USD of 200 points on the currency pair EURJPY.  I heard about MarketInfo(EURJPY, MODE_TICKVALUE)) which return value in USD for one tick...
September 1st is Knowledge Day
There is a serious problem in the latest versions of MetaTrader 4: The OK button is missing from the configuration window of several robots. I am currently using MetaTrader 4 build 1470, and the OK buttons for several Expert Advisors (EAs) are not appearing in the configuration panel. This is a
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
  Interesting and Humour  (49774   1 2 3 4 5 ... 4977 4978)
Members of the forum, don't forget to follow the rules
I’ve been having a problem for the past few days with installing MT4/MT5. During the installation, a proxy window pops up, which has never happened before. When I click Cancel, the installation stops. I also can’t download a newer version from the broker — I get some kind of proxy page error. It