MQL5 Algo Trading community — forex forum for traders and developers
The major update has brought two important changes significantly enhancing the MetaTrader 5 experience. The new section of advanced trading statistics can help improve results, while the built-in payment service can simplify account top-up. In addition, we have laid the foundation for additional
I am coding an EA for trading SAR. My bear positions, based on the SAR, never action. All bull positions work fine. Using counters for each function I have confirmed that every function works as required. values. in the below code simply refers to a pre-made structure. void OnTick () {
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
Hello, I accidentally deposited money into my MQL5 account using my Visa card on April 7 and April 8, 2025. I haven’t used the balance to purchase any product or service. I misunderstood the system and thought I would be able to withdraw the funds later, but I now realize it is not possible. I
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
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...
What steps should I take to get these alerts to stop
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
How do I get assistance from support? The MQL5 helper has automated response that have nothing to do with my issue. Please help me get through to someone in support, I need human assistance
One-click trading buy/sell buttons constantly changing color according to price changes and it also shows current ticker price. It distracts me so much while trading especially the rapidly changing color red > blue > red > blue ... I want simple Buy/Sell buttons with color coded; blue = buy and
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
I am using Macbook pro and installed MetaTrader5 for Mac version. I am trying to run python script in EA but it says "Python compiler not found". When I tried to install from Tools --> Options --> Compilers it redirects me to meta quotes webpage but files are not found. Can someone help me on this
why am I unable to receive verification code? The response I get from the Telegram bot is "There is no MQL5 Code for the phone number ...)
Machine learning in trading: theory, models, practice and algo-trading
(36902 1 2 3 4 5 ... 3690 3691)
Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
The latest versions of the MetaTrader 5 mobile app for iOS introduce a range of convenient chart features, along with important stability improvements for a smoother user experience. Added text object for creating custom labels on charts. Open the chart objects menu and tap "Add Text". Next, enter
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
The whole point is that you don't have to run separate EAs that trade specific strategies. A centralized solution has many advantages such a system is better risk management between strategies. We can block signals if we detect multiple similar signals. We can dynamically calculate the lot size
Hello, Article : https://www.mql5.com/en/docs/series/iclose iClose, iHigh, iLow, iOpen these values provide the current/Live/real-time candle information or previously closed candle information?. How can iClose value is possible for Current candle because ones the candle is closed, it became
I'm curious about the effectiveness of a weekly adaptive optimization approach compared to sticking with a single, static rule for EA (Expert Advisor) strategies. Consider an EA that has already been built with one year of optimization. What if we update it every week with slight adjustments based
Hi all, I was not able to successfully exploit this divergence wit han EA, anybody has any idea on how to optimize this theoritical strategy
The buyers are the loser and helpless from MQL stuffs
As from the title, I mean which method has the best ratio safety/profitability for you (support resistance based, atr based, range based, time based etc etc.) Share your opinion...
Hello, How can I identify a trend or trend reversal (counter-trend) using RSI, Stochastic, and Bollinger Bands ? What are the recommended settings for RSI, Stochastic, and Bollinger Bands
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
Excuse for my english, i hope to be able explain my idea for trading system Ok I'd like to present a very simple and profitable way to trade eur usd only one important indicator: sma 14,,,,,,,, when price cross sma 14 we take position 5 minutes setting short when price was over sma 1 lot long...
Market Condition Evaluation based on standard indicators in Metatrader 5
(2400 1 2 3 4 5 ... 239 240)
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
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, Could you please provide a list of Forex calendar news events that typically result in significant price movements (more than 500 pips) in the Forex market? For example: USD Non-Farm Payrolls (NFP): Average price movement is 500–1000 pips. USD Consumer Price Index (CPI): Price movement ranges
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
M artingale, H edging and G rid <<< MHG >>> M y H oly G rail Over 50% of freelance jobs can be classified as one form or another of MHG. I wonder why ? Martingale : A gambling system of continually doubling the stakes in the hope of an eventual win that must yield a net profit. Hedging : Taking
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
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
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
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
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
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
Newbie question I know..trying to place a leveraged buy order for stock RNG.N. Current ask price is at 32,950. Account balance is 103€ with the same free margin (no other open positions) and a 1:200 leverage. For 50 stocks this should be enough, right? Stop loss is not set. Still getting the "not
I know this is possible on demo accounts, but on real accounts? Anyone who operates with this strategy on a real account
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
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
[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...
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
string cciOnRsi_ ( int nPeriod, string cPair) { double rsi[]; double cci[]; ArrayResize (rsi, Bars ); ArraySetAsSeries (rsi, true ); for ( int i= Bars ; i>= 0 ; i--) { rsi[i]= iRSI (cPair,nTimeFrame1,Period_EA, PRICE_CLOSE ,i); } double cci[i] = iCCIOnArray(rsi, 0 ,Period_EA, 0 );
I am writing to report a persistent issue I am experiencing when compiling MQL5 code in MetaEditor. Problem Description: When compiling code that calls the symbolInfo.VolumeStep() method from the CSymbolInfo class (included via <Trade/SymbolInfo.mqh> ), I consistently receive the errors 'VolumeStep'
How to write this mql4 code to mql5: string TestCCIonRSI( int nPeriod, string cPair) { int sizeOfaNizDan = nPeriod; double aNizDan[]; int i; double nResult; int nRow = 2 ; int nCol = 3 ; ArrayResize (aNizDan,sizeOfaNizDan); ArraySetAsSeries (aNizDan, true ); for (i =
[Deleted]
I need to change background color of my Panel derived from CAppDialog, but since m_background is a private member of CDialog, I can't access it and change the color with the function ColorBackground().I appritiate any help.
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
Dear all, After many months of back-testing with Expert Advisors (EAs) I wrote myself in MT5, I decided to dive into live trading. But, for about a week now I am stuck. I log in to my live account, open the chart of the instrument I want to trade, drag my EA to chart, I enable algo trading both in
Hi i am newbie in programming. i want to develop simple EA that trade once every trend confirmation, but in my code the EA open the trade in every bar after trend confirmation. if (trend[ 0 ] == - 1 ) // -1 means sell { obj_Trade.Sell(LotSize, _Symbol ,bid,bid+StopLoss* _Point , bid-TakeProfit*
Good day. Say someone asks me to "Modify their trade closing by Including a delay to function A" Function A closes trades when an indicstor gets a particular setup. When modification is done as per specific requirements. How ever clients main problem wasnt what they asked for. But it is that
for the ParSar: double GetSARValue( string cPair, int nPeriod, int bar) { double sar[ 1 ]; int sarHandle = iSAR (cPair,nTimeFrame1,Step,Maximum, 0 ); if (sarHandle!= INVALID_HANDLE ) { CopyBuffer (sarHandle, 0 ,bar, 1 ,sar); } return (sar[ 0 ]); }
I am learning how to code in mql5, I am trying to make an EA but can't be able to get the correct indicator values for each candlestick, I hope some experienced programmer can help
Hi all, I'm using #property tester_file "tester_configs.bin" to pass a binary file containing pre-generated JSON configurations to my EA. This used to work perfectly for the past 3 months, but now for some reason, Mt5 refuses to copy my tester file when starting the optimization process. The file is
I’ve recently started programming and I’ve encountered a small issue. I’m using MetaEditor through my broker’s terminal (Puprime). After compiling the file and sending it to someone using a different broker, they receive an error message stating that a newer version is required. Does this mean I
Ive come across a warning when writing an expert advisor that I don't understand. I have some ideas on why I'm getting it but was hoping someone could clarify. I'm getting the warning possible loss of data due to type conversion warning when compiling the code attached. I know this error is normally
Hello guys i want know is it possible for an ea to trade a small balance of $10
Hi all. I'm trying to make simple indi which will speed up placing sup/res lines on the chart.
It will place Hline on mouse click only while holding (ctrl for Blue or shift for Red line) but I don't know how to combine CHARTEVENT_KEYDOWN & CHARTEVENT_CLICK or I'm doing it the wrong way?
Can...
/*+------------------------------------------------------------------+ | 1DayFibo | | Copyright © 2011 | | basisforex@gmail.com |
hi everyone i have an issue with my indicator, the arrow buffer is filling with some strange values that draws wrong signals on charts here is the issue picture and here is the code: #property strict #property indicator_chart_window #property indicator_buffers 5 #property indicator_plots 2
i used to have multiple moving averages on my chart and it worked flawlessly until earlier today i only have one ma and wanted to add more, but no matter what settings i put into the ma, when i click save nothing new was added, and only the first moving average remains. is this some kind of a bug or
Hello. In MT4 I had a MTF MA indicator and it is working nice. The problem is that I can't find any sample in MT5 which works the similar. Simply, I want to use 1 min chart and I want to attach to that chart SMA calculated on 15 min chart. I can't solve that. Any help will be very useful. Thanks
I'm experiencing an issue with the FX Trend indicator, which I acquired from the marketplace, as it is not attaching to my charts. I've already corresponded with indicator's developer, and based on our communication it appears that my installation and setup procedures are correct. The developer has
Hi, I have this sample code for the MTF RSI indicator. The first thing we check in onCalculate is whether the number of bars calculated by the RSI handle matches the number of bars in the selected timeframe. If they don’t match, the function returns zero. This works well in the open market, and
Dear Fellows I am trying to customize Volume Profile indicator https://www.mql5.com/en/code/47784 and make it EA Friendly to get signals for POC Price (png attached), HVN and LVN Prices. Google search did not helped much and all the VP Indicators lack the Buffers. Is it really impossible to created
Can someone please help with installing 09_Pretty_Normal.set file to my market profile indicator? I opened the market profile indicator in the editor nut i don't see anything like in the file here is what I see, not sure how to use this. s00=- - - - - - - - - - - - - - - - VisualMode=1
Here is my contribution to the community...two very useful custom indicators. If someone dont know how to use them feell free to ask.
There's a given Moving Average indicator, it works in MT5. Now I'm trying to add a text object tagging the MA value of last bar. #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_type1 DRAW_LINE #property indicator_color1 clrWhite
Hey guys, hope everyone is having a good week and closing the week strong. I need help in editing notifications and alerts interval for MT5 shved supply and demand indicator. I copied the lines from the mql4 version on the code, but commented them out. Details in Line 39 and 273. I need it to at
Hi hope you are fine i need help any one have this indicator for meta trader 5 or is there any indicator of SRC for meta trader 05 i need this indicator . any recommended indicator for the SRC meta trader 5
Hello, I installed an indicator file, but it did not open, I imagine because it is in the EX4 extension, and I saw that the ones in the EA folder, the ones that open, are in the MQL4 SOURCE FILE extension, SO I wanted to know how to change it, I'm waiting, thank you
[Deleted]
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot
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
Discussing the article: "Introduction to Connexus (Part 1): How to Use the WebRequest Function?"
(5)
Check out the new article: Introduction to Connexus (Part 1): How to Use the WebRequest Function? . This article is the beginning of a series of developments for a library called “Connexus” to facilitate HTTP requests with MQL5. The goal of this project is to provide the end user with this
Angle and Speed : The indicator shows the angle or average speed of price change. Author: Aleksandr Slavskii
Market Profile MT4 : Market Profile MetaTrader indicator — is a classic Market Profile implementation that can show the price density over time, outlining the most important price levels, value area, and control value of a given trading session. This indicator can be attached to timeframes between
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part IX): Code Organization (IV): Trade Management Panel class . This discussion covers the updated TradeManagementPanel in our New_Admin_Panel EA. The update enhances the panel by using built-in classes to offer a
Check out the new article: Neural Networks in Trading: Hierarchical Vector Transformer (Final Part) . We continue studying the Hierarchical Vector Transformer method. In this article, we will complete the construction of the model. We will also train and test it on real historical data. The training
Candlestick Analysis EA R1 : This MT5 Expert Advisor combines multi-timeframe candlestick pattern analysis with fundamental event filtering to execute trades with disciplined risk management. Author: jacklmp
iForexSessions : Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York). Author: amrali
New article Idleness is the Stimulus to Progress. Semiautomatic Marking a Template has been published:
Among the dozens of examples of how to work with charts, there is a method of manual marking a template. Trend lines, channels, support/resistance levels, etc. are imposed in a chart. Surely,...
Check out the new article: USD and EUR index charts — example of a MetaTrader 5 service . We will consider the creation and updating of USD index (USDX) and EUR index (EURX) charts using a MetaTrader 5 service as an example. When launching the service, we will check for the presence of the required
Check out the new article: Advanced Memory Management and Optimization Techniques in MQL5 . Discover practical techniques to optimize memory usage in MQL5 trading systems. Learn to build efficient, stable, and fast-performing Expert Advisors and indicators. We’ll explore how memory really works in
Uniformity Factor Indicator : This is a simple analytical (non-signal, one-time calculated) indicator that allows you to test the hypothesis that price timeseries represent a "random walk", specifically Gaussian "random walk". This can help to construct a parametric transformation of price
New article How to use ONNX models in MQL5 has been published: ONNX (Open Neural Network Exchange) is an open format built to represent machine learning models. In this article, we will consider how to create a CNN-LSTM model to forecast financial timeseries. We will also show how to use the created
Custom crosshair cursor with synchronization : Synchronized custom crosshair indicator showing price and (server/local) time. Author: Soewono Effendi
Check out the new article: MQL5 Wizard Techniques you should know (Part 59): Reinforcement Learning (DDPG) with Moving Average and Stochastic Oscillator Patterns . We continue our last article on DDPG with MA and stochastic indicators by examining other key Reinforcement Learning classes crucial for
Good morning everyone, Is someone can help me understand the difference between : bands_shift [in] The indicator shift relative to the chart. shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Thanks a lot for...
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
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
Hi - for some reason, my MT4 is not compiling. I'd be super grateful if someone could help compile this into an ex4. Any help very gratefully received, thank you. Love and Light //+------------------------------------------------------------------+ //| EMA + Stochastic Trend EA with Customisable
I am trying to make a Indicator based on the RSI + BollingerBands + MA My Indicator doing great job by creating Arrows and Vertical line for Signal when matching the conditions but the problem is it not showing RSI, Bollinger Bands and MA in Chart. Currently it showing like this : I want like this
Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
(19644 1 2 3 4 5 ... 1964 1965)
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
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
Please Help. Please Guide. I am running windows 10. I am posting here because I am stuck Running MT4 on 43 inch 4K Monitor and need Help as I can't return this Monitor. I do not face this issue on 32 inch Full HD Monitor anytime. I bought a 43 inch 4K Monitor. But the Candles appear VERY THIN with...
What is the most efficient way to get unlimited Stochastic Alerts? I wanted to get notifications when bitcoin or ANY altcoin returns back from below 20 or returns back from above 80 in stochastic (I also would be interested in forex Stochastic Alerts etc) Is there a way to get these Stochastic
Is there some sort of valid reason as to why MT4 ( Version 4, Build 1440 ) has, all of a sudden, decided to continue to tell me that my SMTP credentials are incorrent, despite the fact that they're not, MT5 does not have any issue with my credentials whatsoever? There is no reason that I can work
Good evening, fellow MT4ites! So up until last week (November 2020) my MT4 platform (Version 4.00 Build 1311) suddenly seized sending email alerts. My SMTP details are correct, including the port number (587). I used SendGrid and now I'm using Sendinblue to see if it was an issue with SendGrid
Hi . I had mt4 years ago ,upgraded to mt5 a couple of years after and now I want to go back to mt4 only problem is that even after deleting all data and uninstalling mt5 when I download mt4 the I can't install custom indicators any more (They just don't show up in list of indicators in the trading
I am writing an mql4 EA that adds a custom indicator to multiple charts Since mql4 does not have ChartIndicatorAdd(), I used a .dll work-around for the first chart, then saved template and applied template to other subsequent charts Now I intend to study the nature of the objects the indicator
Hello guys hope everyone is having a good week. Am trying to add a timer interval for alerts and notifications on this indicator whenever it crosses above or below the PDH, PWH, PDL, PML etc. Currently it will keep alerting nonstop as long as prices crosses either one of this levels. I'd really

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.