MQL5 Algo Trading community — forex forum for traders and developers
I've been away for couple of years , what is the deal with duplicate orders made from different accounts being copies of existing freelance orders
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
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
I published a product utility as a seller and I realised that the title could be improved and instead of "for" it would be better to have "with" in the title. I do not seem able to find a way to amend the title. Kindly can anyone advise on how to update the title of a published product ? Thank you
Hello, How can I identify market movements (Uptrend, Downtrend, and Range market) using Moving Averages or any other indicators? Currently, I am using the 200 EMA: If the current price is above the 200 EMA → Uptrend If the current price is below the 200 EMA → Downtrend However, this method gives
Hello guys, I made this script but it only shows 0.0 as a result when I drag the script into a chart with a running position. Can somebody tell me what's wrong with the code? void OnStart () { for ( int i= 0 ;i< PositionsTotal ();i++) { string symbol= PositionGetSymbol (i); if
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
I have a problem that I dont understand. I recently registered as a signal provider . My signal was active when I made my first trade then after that its not active anymore. I thought that it had been disabled but it seems like its not either. It only appears under the all signals tab and when I try
I didn't receive the message from MQL5 how to verify
I am trying to switch my MT5 to a new mail server and I am getting weird errors when I test the email settings. I had no problem connecting to this mail server and sending emails via SMTP from several other applications, so I am pretty sure it works correctly. MT5, on the other hand, encounters
Hey, i just tried to upload a EA to market but i get this error. test on EURUSD,H1 (netting) EURUSD: no history data from 2022.02.01 00:00 to 2022.08.01 00:00 there are no trading operations Is there a bug from mql side
About 1 month I can't withdraw and the support is not responding. I got this text at withdraw section: Withdrawal unavailable: We need to perform additional verification of your account. This is a standard procedure meant to ensure the security of all MQL5.community members. Currently, no action is
Hi guys, how are you doing? I am not being able to register my self as a seller here in MQ5. Is there any other solution to withdraw my funds? Is it possible to transfer my funds to a trading account? Thanks
MQL5.community is growing every day and in less than 2 years our site has changed beyond recognition. Today the mql5.com website includes the following sections:
Documentation to the MQL5 language.Code Base with hundreds of indicators, Expert Advisors and scripts in MQL5.Articles on various...
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
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, 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
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
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
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
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
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
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
In MQL5 I get this error: wrong parameters count for iSAR: string TestParSar_( int nPeriod, string cPair) { double nResultClose; double nResultSar; nResultSar= iSAR (cPair,nTimeFrame1,Step,Maximum, 0 ); nResultClose = iClose (cPair,nTimeFrame1, 0 ); if (nResultClose < nResultSar)
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 noticed this behavior start once I restarted MT5. I don't think there was any updates when it restarted. I'm currently running MT5 Build 4831. Context: My EA will place a buy order every time the previous candle closed below the lower Bollinger band. So when there is a new bar I check if the
Hello everyone! I am looking to employ a trading system that takes entries & exits according to price action. I am interested in a free expert advisor that uses Bollinger bands as an indicator. Once price exits the upper Bollinger band an entry would be taken declaring a breakout (vice-versa for the
I am trying to code 'correctly' and efficiently in MT5. I have an EA that loops through different currency pairs and for each currency looks at an Indicator using the iCustom function. As I understand I don't need to RELEASE a handle but .... 1. Do I need a separate HANDLE for each currency PAIR
Is anyone able to use the cloud protector as of February 16 2025? It can’t connect to it. Thank you
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
There are some groups of people out there who used a step based ATR trailing stoploss for their trend following systems so I decided to code this since I couldn't find any free source code out there on the mql5 forum. It seems to be working properly for me right now so here is part of the source
I've been backtesting a US30 EA strategy. The results seem promising, so I'm testing over a longer timer period. When I expanded the test date range to 2 years, I hit a snag where the data quality, according to the Strategy Tester backtest tab, dropped to 20% - obviously not good. Their US30 data
It seems like SymbolInfoSessionTrade() has changed recently. In my EA I check for the end of the session time, calling from OnTimer() and send a message at the end of the session. This has been working fine for more than a year. Recently, I'm receiving those messages on the weekend, when the server
I'm writing an EA using mql5. It works fine when I use MetaQuotes Demo Account but when I switch to my brockers' demo account. It throws an error message in the journal when it opens positions: 13:00:12.294 Trades '45767': failed market buy 10 EURUSD sl: 0.99529 [AutoTrading disabled by server]
Deleted/undeleted by moderator William Roeder (wrong post) hi. how can i get day of month in mql5 in integer? I easily used : TimeDay(Time[n]) for comparing, but in ME5 I can't find anything like this. Can someone explain it to me or show me how to write it, cause I'm not a pro coder? thanks
I wasn't able to find any documentation on how to override the CObject virtual methods Load, Save, and Compare to make use of(CList and CArrayObj ) load, save, and sort features - so I managed to hack my way through it. I'm posting it here in case anyone else is interested in using the
Anyone who can assist me with a free python bridge that links mt4 and python so that l can establish comms btwn the two and test my EA
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
Hi, I'm developing a custom indicator in MQL5 that uses CopyTime() to get timestamps of previous candles in the daily timeframe (D1). The problem is that after restarting MetaTrader, it seems that previous data is not loaded, and CopyTime() returns -1 . I have tried the following solutions, but none
Hi could someone help me converting this indicator
The supertrend indicator is supposed to plot lines certain points/pips above and below the supertrend signal. Working Supertrend indicator and Daily Open (I ndicator that plots lines certain points/pips above and below the daily open. ) indicator files attached. I was hoping to apply the line
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
Check out the new article: Neural Network in Practice: The First Neuron . In this article, we'll start building something simple and humble: a neuron. We will program it with a very small amount of MQL5 code. The neuron worked great in my tests. Let's go back a bit in this series of articles about
Check out the new article: Automating Trading Strategies in MQL5 (Part 7): Building a Grid Trading EA with Dynamic Lot Scaling . In this article, we build a grid trading expert advisor in MQL5 that uses dynamic lot scaling. We cover the strategy design, code implementation, and backtesting process
PSAR Zigzag (Non lagging) : A zigzag based on the trend change of the parabolic sar Author: Conor Mcnamara
Check out the new article: DoEasy. Service functions (Part 2): Inside Bar pattern . In this article, we will continue to look at price patterns in the DoEasy library. We will also create the Inside Bar pattern class of the Price Action formations. We continue to develop patterns formed based on
Check out the new article: Archery Algorithm (AA) . The article takes a detailed look at the archery-inspired optimization algorithm, with an emphasis on using the roulette method as a mechanism for selecting promising areas for "arrows". The method allows evaluating the quality of solutions and
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
MultiTester : Multiple runs/optimisations in Tester. Author: fxsaber
Pan PrizMA No leverage 72 : Construct a moving line with a polynomial of 4 degrees. Extrapolates the sinusoidal and its axial. The constructed lines remove one value at each bar and a sliding line of extrapolated values is constructed which is not redrawn. Author: Aleksey Panfilov
MA Trend 2 : Trading system by iMA indicator (Moving Average, MA). Development of MA Trend. Author: Vladimir Karputov
Back kick : Algorithm cycle: when there are no open positions, open two opposite positions. Wait for both positions to close. Author: Vladimir Karputov
New article The Fundamentals of Testing in MetaTrader 5 is published:
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are...
New article How to Subscribe to Trading Signals is published:
"Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account.
How to become an investor and...
New Candle or Bar formation. : This Bot detects the open of a new candle on any set timeframe, thereby making it easier to run a one-time code, place trades and call other functions. The code is written in the OnTick() function. Author: Clinton Dennis Edem
Check out the new article: Simple solutions for handling indicators conveniently . In this article, I will describe how to make a simple panel to change the indicator settings directly from the chart, and what changes need to be made to the indicator to connect the panel. This article is intended
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
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
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
[Deleted]
Hello to you all ! I am in the middle of developing a trading strategy that uses this wonderful MT4 platform. I am by no stretch of the imagination any type of programmer but can understand a little about the basic meta-editor. I have a question that I am hoping you may be able to help me with. I...
Hello, Article URL : https://docs.mql4.com/constants/chartconstants/enum_timeframes These timeframe only work with offline start or it also work with live market? if ( iRSI ( NULL , PERIOD_M1 , 14 , PRICE_CLOSE , 0 )>overbought) OrderSend (x,x,x,x); This works fine. But these additional
how to install mql indicators if multiple mt4s on 1 computer, i have pepperstone mt4 platform and fusion markets mt4 platform on my 1 computer, if i have install purchase indicator through mql website and have install those paids indicators on my pepperstone mt4 platform how do i install the same
Hello, On the 22 Nov, the beta version 4 of MetaTrader is scheduled to be released. Check it out! Let's see whether current version of API will work or not. Cheers, Scorpion
I am redesigning EA, so it can have more accuracy and flexibility. Original code : if ( iRSI (gRandomSymbol, PERIOD_M1 ,RSI_Period,RSI_AppliedPrice,RSI_shift) > RSI_UpLevel && iRSI (gRandomSymbol, PERIOD_M5
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
Hi! I really wanted to use Metatrader 4 with my MQL5.com Market EA but I lost control of it, I can't find most buttons, I would need to reset it. Is there a way to erase it and start a new one from scratch? Can someone help? Thank you

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.