MQL5 Algo Trading community — forex forum for traders and developers

META TRADER 5 - has all the tools you need to be successful for your trading. Take your time to navigate through the app. Learn about all the tools, as well as all the available indicators that you can use for your analysis. You will realise that everything is in front of you, you just need to
There is sometimes huge differences between MQL5 iADX/iATR from mql5 to tradingview is there a way to avoid those errors
Algo trading is on, DLL and Live trading selected, Blue hat in the corner of chart is on, no error messages and no messages in toolbox experts, tried removing EA and Reattaching, had successful backtesting but EA bot is not taking any trades. Why is this
Message: Hi everyone, I'm developing an Expert Advisor in MQL5 and I'm getting this compilation error: '<' - open parenthesis expected v1.mq5 85 12 The problem persists even though I've double-checked the syntax, parentheses, and braces. The error seems to be related to the following portion of the
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
Hello, I have a service running fine, let's say on EURUSD. If I need, I can use the right click on the service and choose "Add". I change the parameter to GBPJPY then this new service. Fine. Is there any instruction that can be put in script, EA,... where I can simulate this "Add" function? Thx
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 contact the Service Desk?  (169   1 2 3 4 5 ... 16 17)
I tried to upload money from my paypal account. Some problem occurred. I tried to contact service desk but there ar not link to service desk in my profile . How can I contact service desk
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
Does anyone know if there's any way to get the MT5 python integration to work on Mac M1 (arm). Python installs and runs fine on a Mac, but unsurprisingly, when I try: pip install MetaTrader5 I get: ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none)
hi , my vps suddenly stoped opening trades, i checked the journal its shows this message: any one can help how to fix it
  Where Do I start from?  (146   1 2 3 4 5 ... 14 15)
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?
**Beginner's Question** I downloaded MetaTrader 5 and connected it to an EA robot for automated trading. When I ran the test, it asked for various parameters, and I wasn't sure which ones to choose for the strategy that suits me best. There are many robots available, but I'd like to start by trying
Hi , I am trying to send notifications to my android , I logged in to my account in the device but there is no MQID. why id is null and how can I fix it , I logged into mql5.com account and my Meta-trader demo account , and they are working ok, i have decent internet connection I received emails in
Hi everybody, I am trying to test a strategy with mulitple symbols, but ticks from the differnet symbols are not accurate because MT5 tester needs a unique Symbol to run. I use EURUSD as main to get the ticks for each symbol at each EURUSD tick, but the results are wrong compared to separate symbols
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...
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  (32   1 2 3 4)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
Hello, 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
  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
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
  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
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
  DOM Ladder  (10)
Hi. How much would it cost to make this DOM?
  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
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
  Who are the resistance?  (12   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
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
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...
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
  What is wrong?  (6)
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
Hello everyone.I´ve been experiencing an issue, on my MT5, which seems to be a setting one, but can´t figure out why. I can´t execute a delete PENDING, non from a MQL5 bot, and from PYTHON API either.Both bots seem to be correctly coded, MQL5´s one compiles well, and works in Backtesting, but when I
Hi All Some assistance, has anyone seem this error before on Mt5. " Order Failed! Reason: Unsupported filling mode" 🚀 Placing Immediate BUY Order: XAUUSD 📌 Supported Filling Modes for XAUUSD: 1 📌 Sending BUY Order: XAUUSD @ 2936.88 (TP: 2966.88, SL: 2916.88) 📝 Order Request Details: {'action'
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*
Hi all, I use several different scripts which I just drop and drag manually to charts. Is it possible to automate this? For example at the commencement of the 16hr candle, call Script 1 to EUR/USD chart. Thanks in advance
  Yearly OHLC  (4)
Hi! I saw it's possible to get the OHLC of the month using the enum time frame, is the same possible with a yearly time frame? Thank you
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
  Neural network  (6)
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions. We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade
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)
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
/*+------------------------------------------------------------------+ | 1DayFibo | | Copyright © 2011 | | basisforex@gmail.com |
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
  [DL] Trend scanner and Currency index  (104   1 2 3 4 5 ... 10 11)
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]
  Multi Timeframe Indicators  (12251   1 2 3 4 5 ... 1225 1226)
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
  Juice Indicator  (29   1 2 3)
Avoid flat tradings (M15 timeframe only).
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
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
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
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
Check out the new article: From Basic to Intermediate: BREAK and CONTINUE Statements . In this article, we will look at how to use the RETURN, BREAK, and CONTINUE statements in a loop. Understanding what each of these statements does in the loop execution flow is very important for working with more
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
Breakout Finder by LonesomeTheBlue : This is the exact conversion from pine script code by LonesomeTheBlue. Author: Yashar Seyyedin
New article How to Test a Trading Robot Before Buying it from MQL5 Market is published: MQL5 Market allows you to test a trading robot and its features before buying it. Every Expert Advisor offered in MQL5 Market comes with a demo version that can be tested in the Strategy Tester. It is quite...
buysell+sl+tp : script to open a buy position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips) Author: 4kk4
-
iCHO Trend CCIDualOnMA Filter : Strategy based on the standard indicator iCHO (Chaikin Oscillator, CHO) and custom indicator 'CCIDualOnMA' Author: Vladimir Karputov
VALIDATION MQL5 (By REDPILL FOREX) : Ce code vous permet de passer la validation Mql5, pour les experts Advisor MT5 en toute facilité. Author: Dogo E Sylvain Akpalou
General balance of financial markets. (Balance of the economy.) Application of a trading robot. The generally accepted balance of financial markets is known as 60% stock market and 40% bonds. It is used to create a balance of simple funds. Compilation of investment portfolios. This balance can also
RSI_MAonRSI_Dual : Two indicators iRSI (Relative Strength Index, RSI) smoothed using iMA (Moving Average, MA) Author: Vladimir Karputov
  Coding help  (7912   1 2 3 4 5 ... 791 792)
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
  Traders joking, the beginning  (7329   1 2 3 4 5 ... 732 733)
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
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
  From mt5 to mt4  (2)
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]
  custom indicator editing  (13   1 2)
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...
This website uses cookies. Learn more about our Cookies Policy.