MQL5 Algo Trading community — forex forum for traders and developers

My subscription take from me double pay
How to define a function return struct array? This code can not be complied, why? struct sTest { int a; int b; }; sTest[] add(){ sTest test[]; return test; }
Be cautious using Git, I just lost 1 day of work. Of course I should have commit my work more often, but still I would probably have lost some work due to this issue. I didn't commit more often as I don't want to send work in progress to the server and MetaQuotes implementation of Git doesn't allow
  Signals  (2)
I cant sit and trade all the time due to personal reason, so Im looking for auto trade signals. Can anyone HONESTLY let me know who is the best trade signals provider on this site? Thanks in Advance
Hey... I was subscribed to a signal for more than a yr, and have multiple open positions from the signals. Some how I missed to renew the subscription in time, now if I re subscribe will all the orders be repeated? Or only new trades will be copied. Also will old positions be closed if the provider
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
For traders MT5 user interface If you can't view the calendar tab, probably it's a choice a your broker : This tab may be missing if the economic calendar is disabled on a trade server. Video : How to delete Calendar Events from charts ? Video : How to disable Calendar Events from charts ? Video
  Where Do I start from?  (151   1 2 3 4 5 ... 15 16)
Hi fam! Am a total newbie in the forex niche... Just signed up here on this platform... Please where do i start from? I need help... Anyone willing to put me through?
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...
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
On Friday, June 13, 2025, an updated version of the MetaTrader 5 platform will be released. It features a number of platform fixes and improvements. MetaTrader 5 Client Terminal Terminal: Fixed graphical interface display issues when running on Linux and macOS . Terminal: Improved the platform
Windows MT5 platform should have a built-in Countdown to Bar Close just like the iOS mobile app. This would be much better than having to use an indicator which decreases overall chart performance (more memory usage) during high volatility period. Another feature I think would be great is to
  Off-topic posts  (1562   1 2 3 4 5 ... 156 157)
Comments that do not relate to the " Ask for help ", have been moved into this topic
  What can I do - any idea?  (11   1 2)
I have a Windows 11 PC with: - ASUS ROG Crosshair X870E Hero motherboard, AM5, ATX - AMD Ryzen 9 9950X processor, 16C/32T, 4.30-5.70GHz - CORSAIR Vengeance 96GB kit (2x 48GB) It was basically in a waiting loop for later simulation and optimisation tasks, only as a PC for the MQL cloud. Its screen is
Hi, I'm attempting to optimize strategies this week and nothing is working, everything is reverting to default MA strategy. Please revert back to last version. This new version is broken. Whomever applied this new update is messing up the work flow of many people at this time. Thank you
Hello, I am experiencing an issue where my signal is disabled despite my login working correctly, and my account is fully operational on MT4. Everything else seems to be functioning properly, so I’m unsure why the signal is not working. Please assist
Hello Every one, I need a simple rsi buy/sell EA with some advance features. It can be easy for you in case you are an expert in MQL4/MQL5 (as i need it in both version), also it can be complex for you if you are very new for this MQ versions just like me. (Sorry for my poor english) Here is my
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
  For "Solar wind" believers  (400   1 2 3 4 5 ... 39 40)
Since it seems that some new reincarnation of "Solar wind" is appearing at least on a weekly basis, and since it seems that is useless to repeat over and over that it is a wrongly coded Ehlers fisher transform and that it is one of the most famous re painters, here is this nice little thread in
  What strategy actually works?  (27   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 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  (40   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...
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
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
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
  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
  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
The given errors are: 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 76 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 77 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 79 22 'iMA' - wrong parameters count ThreeMA_Strategy_EA.mq5 81 23 'iMA' - wrong parameters count
Hi, I know I can create a custom asset using a CSV file for price movements. However, I don't know how to include dividends to simulate a full corporate action. I noticed there is a deal_type called DEAL_DIVIDEND, so I thought maybe it would be possible. What am I missing? Is there a better
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
  Last two orders  (8)
Hello! Help please, how can determine that the last two orders were closed by StopLoss?
Hello! I am trying to send a market order programmatically via my MQL5 demo account on *********** via my EA and via this code: void OnTick () { ExtExpert. OnTick (); if (!executed) { MqlTradeRequest mrequest; // To be used for sending our trade requests MqlTradeResult
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
how to take commission value on an active position on mql5?... previously this message was not there, but when I recompile, a message like this appears, is this new
Can anyone explain. I use an EA and VPs? It says connection lost.. for as long as it says “Network” the connection is lost? And once it says “trades” the EA reconnect again ? For 16 ‘ I was off or I wasn’t
symbol GER40-JUN25 in broker. When the chart is opened on the daily timeframe it goes all the way back to december 2021 when i poll for ticks the broker stops me up to 3 months ago , on march. when i poll for ticks on GER40-MAR25 which has probably existed i get error #4401 history not found. Is
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
  Periods.mqh?  (2)
Hi... anyone know where I can find this( Periods . mqh ) header file, cant find it anywhere and its used on an example to find objects so wont work? Its on an example on here in a include file... #include < MQL5Book / Periods . mqh > , but cant find it. I've searched high and low, even searched <
I'm using CustomRatesUpdate() function . It costs up to 2-3GB of disk space on real time running interval 1 sec in 24 hours (version A) but while I copy M1 timeframe data from server then CustomRatesUpdate() from 8/2024 just in 7MB (version B) . CustomRatesReplace() also has the same effect Version
What is wrong: ouble GetStochasicValue( string cPair, int nPeriod, ENUM_MA_METHOD , ENUM_STO_PRICE price, int bar) { double sto[ 1 ]; int stoHandle = iStochastic (cPair,nTimeFrame1,nPeriod,price); if (stoHandle!= INVALID_HANDLE ) { CopyBuffer (stoHandle, 0 ,bar, 1 ,sto); }
Can someone assist me in understanding what I might be doing wrong that is causing the issues with the progression in strategy tester. It seems to get hung and won't progress to give me results. See attached. Any guidance would be greatly appreciated
Hi everyone, I’ve been working on a small-account trading strategy specifically for XAUUSD on the M5 timeframe . It’s fully automated, but I’m not here to promote anything – just genuinely curious how experienced traders would approach this kind of model. I’m testing the following principles: Very
Can someone make it to have alert only on first new signal? Thanks
👆 Please see the screenshot (Yellow Colour Marked). The indicator buffer is displaying an unusually large number like '5161657722...' in the Data Window, which seems to be a bug. The chart is correctly plotting Downward & Upward arrows, but the corresponding buffer value is incorrect. Please help
Some of you might remember this one : originally it was a part of an expensive system. Than it was coded as dots because of the repainting problems in metatrader. Here is a version for metatrader 5 : slightly changed the look of it (Bollinger bands is drawn as the "shadow" in the background) Also...
Hi everyone, it probably is a very dum8 mistake but I'm new to coding, I've created an indicator that calculates the difference between two consecutive candles tick volume but for some reason, unless i refresh it manually in mt5 , after first loading it it will display wrong values I'll post my code
Hey guys I'm new to using MT5 and have been developing some EAs recently all has been going well with backtesting for the last few weeks then all of a sudden the visualisation just stopped working? if anyone can help with this would be very much appreciated. Thanks
Hello Can someone pls turn this MQL5 into MTF. Thanks a lot. Also attaching a sample MTF MQL4 indicator for reference
  Indicators with alerts/signal  (15926   1 2 3 4 5 ... 1592 1593)
Some indicators with alert/signals with author's comments: - EMA-Crossover_Signal: Enter two Exponential Moving Average periods and it'll tell you when they crossed. - SMA-Crossover_Signal: Enter two Simple Moving Average periods and it'll tell you when they crossed. - SMMA-Crossover_Signal: Enter...
I converted Expert Advisor Code to Indicator code in MQL5 Expert Advisor Code :- void OnTick () { static bool isNewBar = false ; int currBars = iBars ( Symbol (), _Period ); static int prevBars = currBars; if (prevBars == currBars) { isNewBar = false ; } else if
Guys, Can someone advise and help? 1. I am looking for a VWAP indicator, for MT5, for scalping, please can someone send me a link for the best one on MT5, please? 2. What should the settings be? (for scalping) Thank you
Hello all, I cannot download free technical indicators on my iPhone and I Mac, on iPhone it doesn’t even clicking, and in I Mac it says wrong safari address, thank you in advance for answer me
  Parabolic SAR indicator  (296   1 2 3 4 5 ... 29 30)
I am continuing posting information about indicators. So, we have information about Stochastic indicator https://www.mql5.com/en/forum/177239 We have the thread about Momentum indicator https://www.mql5.com/en/forum/176430 Now something about Parabolic SAR. OverviewThe Parabolic Time/Price System,...
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
Does anyone know if it's possible to plot the graph from a class inside a .mqh file
Hi. I want to ask why my xauusd chart have no data for xauusd. My other charts have data like for eurusd. It's only for this chart. Please check my screenshot
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 --------
2 Moving Averages : 2 Moving Averages is a custom MQL4 indicator that uses two moving averages (fast and slow) to identify potential trend changes and generate buy or sell signals based on crossover points. It enhances signal reliability by optionally integrating support and resistance levels
New article Neural networks made easy (Part 7): Adaptive optimization methods has been published: In previous articles, we used stochastic gradient descent to train a neural network using the same learning rate for all neurons within the network. In this article, I propose to look towards adaptive
Check out the new article: Training a multilayer perceptron using the Levenberg-Marquardt algorithm . The article presents an implementation of the Levenberg-Marquardt algorithm for training feedforward neural networks. A comparative analysis of performance with algorithms from the scikit-learn
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part XII): Integration of a Forex Values Calculator . Accurate calculation of key trading values is an indispensable part of every trader’s workflow. In this article, we will discuss, the integration of a powerful utility—the
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
Check out the new article: Data Science and ML (Part 43): Hidden Patterns Detection in Indicators Data Using Latent Gaussian Mixture Models (LGMM) . Have you ever looked at the chart and felt that strange sensation… that there’s a pattern hidden just beneath the surface? A secret code that might
New article Neural networks made easy (Part 6): Experimenting with the neural network learning rate has been published: We have previously considered various types of neural networks along with their implementations. In all cases, the neural networks were trained using the gradient decent method
Check out the new article: Mastering Log Records (Part 8): Error Records That Translate Themselves . In this eighth installment of the Mastering Log Records series, we explore the implementation of multilingual error messages in Logify, a powerful logging library for MQL5. You’ll learn how to
Check out the new article: Analyzing weather impact on currencies of agricultural countries using Python . What is the relationship between weather and Forex? Classical economic theory has long ignored the influence of such factors as weather on market behavior. But everything has changed. Let's try
Trend Scalp: Trend Trigger Factor indicator ported to MQL5 from wrongly coded version for MetaTrader 4. Author: Mladen Rakic
Check out the new article: Neural Networks in Trading: Directional Diffusion Models (DDM) . In this article, we discuss Directional Diffusion Models that exploit data-dependent anisotropic and directed noise in a forward diffusion process to capture meaningful graph representations. The authors of
MACD coloured histogram : The MACD Coloured Histogram is an enhanced version of the classic MACD (Moving Average Convergence Divergence) indicator, designed to provide a clearer and more intuitive visual analysis of market momentum. This indicator combines traditional MACD functionalities with a
Check out the new article: From Novice to Expert: Support and Resistance Strength Indicator (SRSI) . In this article, we will share insights on how to leverage MQL5 programming to pinpoint market levels—differentiating between weaker and strongest price levels. We will fully develop a working
  Experts: MA Trend 2  (12   1 2)
MA Trend 2 : Trading system by iMA indicator (Moving Average, MA). Development of MA Trend. Author: Vladimir Karputov
Check out the new article: Reimagining Classic Strategies (Part 13): Taking Our Crossover Strategy to New Dimensions (Part 2) . Join us in our discussion as we look for additional improvements to make to our moving-average cross over strategy to reduce the lag in our trading strategy to more
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'm aware that the subject of point value, delta lot value, and related calculations has been extensively discussed on this forum. Until recently, none of my customers had encountered issues with point value calculations when using my products. However, I've encountered a unique problem for a client
  Solve Stoploss Slippage  (20   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
[Deleted]
Hello, When I am using MT4 in online mode with my current broker (Oanda) I can use 2 digit lot sizes (e.g: 0.11) but if I do backwards testing on a weekend where I have to use the offline mode in order to be able to use the weekday spreads and not the week-end spreads for the whole testing I can...
Hello everyone, I’ve been experimenting with my Expert Advisor in MT4’s Strategy Tester using the generic algorithm optimizer, and I’ve noticed a puzzling inconsistency: the parameter combination that delivers outstanding results during optimization almost flat-lines when I plug the same inputs into
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...
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
Hello everyone, I am real beginner so soory for simple question but... I want to show on the actual chart in MT4 some additional info coming from a EA. Actually I was only able to print the informatione in the expert tab. How can I send the info to the chart? (If there is some doc here, I will be
  EA  (2)
Hello, I am new to coding. I started using the MT5 EA to use their indicators to generate an algo trading but it doesn't work to my expectation. I mostly take trades personally but I want to be smart to use an algo since I can be caught up somewhere....I do spread betting
Hello all, I'm new here (just created this account in order to ask for help with a problem I've been having recently and to which I have found no solution online), so I apologize if I'm writing this on the wrong section of the forum. I'm a regular user with practically no coding skills, and I am...
Hello everyone.. I want use below indicator on MT5 EA this is possible..? // @version= 5 indicator ( "ALİ ALT BUY DENEME" , overlay = true ) Kol_Linii = input ( 2 , "Количество линий" ) Signal = open [ 3 ] > close [ 3 ] and open [ 2 ] > close [ 2 ] and open [ 1 ] > close [ 1 ] and close > open and
[Deleted]
I have an EA open or a number of charts. It has always been the case that when I make a change to the code (for example a new default value of an input parameter) and compile, all open charts/EA:s will re-initialize. However, since the upgrade this seems to be a bit random. Right now I am running...
Hi,  If I examine the prices on one-click buy/sell buttons, I see different numbers than the current tick price feed. This is because I opened a particular account with fixed spread in order to make automation easier. For a particular automated strategy, I need to use the one-click buy/sell prices...
  there are no trading operations  (69   1 2 3 4 5 6 7)
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...
Hey, I´ve been searching quite some time now but didnt find anything, so I hope anyone can help me here   I want to close an order after 24 Hours, but it should be at the end of the current bar(Dailyperiod), not at the start of the new one, in case of gaps.  And I dont want to close all open trades,...