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
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
  SMTP connection fails  (22   1 2 3)
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
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...
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
I am trying to withdraw using a credit card and it's always refused. The Service Desk keep repeating "Declined by issuing bank". So I contacted the card provider, and they said they never received any request (I had to ask 4 times). So I asked again to our dear ServiceDesk and they said it's
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
Strategy tester is showing a flatline when testing my set file, but the bot is currently taking live trades from same set file ! Why is this? Set file is attached to this message
Hello everyone, I'm working on optimizing a trading strategy using the Strategy Tester in MetaTrader, and I'm facing some challenges implementing a custom multi-objective optimization algorithm (NSGA-II) due to complex constraints. Specifically, my model has several constraints that make it
Hello Guys, I want to ask about PR on my CPU Meta Tester Agent, How can my 2011 Laptop with i5-2520 @ 2.50ghz has more PR than my 2024 Laptop with intel i5-1235U 12 CPU 1,3 GHZ. My old one has 130 PR but my New one only 65 PR How could i increase this PR point? Thanks before
Hi I'd like to know if it's possible to create a chart button that can launch a script? Any info is appreciated
Hello all, I'm new to the community. I just purchased my very first EA and I hope it won't be the last. I was looking for a bot that trades gold so I demo tested many and one in particular seemed very good and affordable (yeah too good to be true). this one: <...> <...> After learning how to do
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 didn't receive the message from MQL5 how to verify
This is an MQL5 documentation page. I was trying to work with function pointers and understand the differences between MQL5 and C++. However, the logic explained in the MQL5 documentation doesn’t even work in their own compiler. This is a formal documentation—how can they make such a major mistake
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
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
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
  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
  Trading Futures  (4)
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
  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
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
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
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]
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
  "Day of month"  (4)
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
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 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
Hi all. Thanks for all the help so far with a few questions I've posted recently. Here's another. Well, a bunch of related ones... I've read a number of posts and the doc'n about Order vs Deal vs Position, including this documentation , and this , and others . A few things I'm unclear on, and
Hi all , i have bought an EA but it doesn't work. I tried to reach the author but he doesn't respond. The issue is that the EA stop after few second is lauched with reason 9. This happen in both backtest and live. I have tested ICMarkets, AXI and Roboforex, it has the same behaviour on all the
Hello everyone, I’ve noticed that in the standard MQL5 library ( Expert.mqh ), the CExpert class (derived from CExpertBase ) implements its own Init() method without calling the parent class’s CExpertBase::Init() . This seems unusual because: Inheritance Principle : Child classes typically call
  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
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
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
Hi all, I need an indicator for calculate avarage price for all open order, incluse Buy and Sell. I have an Indi for MT4. But MT5 I haven't. Can Someoe help me, Please! Simply calculate W: lot size P: entry For Buy is + For Sell is - Ex: Buy 1lot at 1900 Buy 1lot at 1910 Sell 5 lot at 1890 >>>
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
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 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: 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: 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
Check out the new article: Automating Trading Strategies in MQL5 (Part 13): Building a Head and Shoulders Trading Algorithm . In this article, we automate the Head and Shoulders pattern in MQL5. We analyze its architecture, implement an EA to detect and trade it, and backtest the results. The
Check out the new article: Day Trading Larry Connors RSI2 Mean-Reversion Strategies . Larry Connors is a renowned trader and author, best known for his work in quantitative trading and strategies like the 2-period RSI (RSI2), which helps identify short-term overbought and oversold market conditions
Martingale EA : This EA demonstrates how to implement martingale based on signals from any indicator. Author: Satyam Shivam
Check out the new article: MQL5 Wizard Techniques you should know (Part 58): Reinforcement Learning (DDPG) with Moving Average and Stochastic Oscillator Patterns . Moving Average and Stochastic Oscillator are very common indicators whose collective patterns we explored in the prior article, via a
New article MetaQuotes ID in MetaTrader Mobile Terminal is published: Android and iOS powered devices offer us many features we do not even know about. One of these features is push notifications allowing us to receive personal messages, regardless of our phone number or mobile network operator....
Hull Variation: A variation of Hull moving average that allows speed adjusting of the HMA. Author: Mladen Rakic
Check out the new article: Master MQL5 from beginner to pro (Part V): Fundamental control flow operators . This article explores the key operators used to modify the program's execution flow: conditional statements, loops, and switch statements. Utilizing these operators will allow the functions we
New article Interview with Rogério Figurelli (ATC 2012) is published: Today we are going to talk with Rogério Figurelli (figurelli), a regular participant from Brazil that has not missed any Automated Trading Championship since 2007. This year, he also began to sell his Championship's Expert...
RRS Tangled EA : RRS Tangled EA randomly selects currency symbols, lot sizes, and order types for trading. It does not rely on technical indicators or fundamental analysis. Instead, it uses a Randomness in Nature approach to open trades. With proper settings such as Take Profit, Stop Loss, Trailing
Average Pip Movement based on Tick And Seconds : This Expert Advisor (EA) analyzes market movement by calculating the average pip movement per tick and the average spread over a user-defined number of ticks (MAX_TICKS). It also evaluates the average pip movement and spread over a specified time
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
  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...
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 may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
Hi, I am getting the following message repeatedly - every seconds - in the "Expert" folder of the MT4 trading platform. GBPUSD,H4: Check if automated trading is allowed in the terminal settings! How to stop this ? Will it helps if I restart the VPS ? If so, how to do that ? Please help ! Thanks
I am checking iRSI indicator with timeframe M1 to D1. for this i am using string gRandomSymbol = "EURUSD" extern ENUM_APPLIED_PRICE RSI_AppliedPrice = PRICE_CLOSE ; extern int RSI_Period = 14 ; extern int RSI_shift = 0 ; extern int RSI_UpLevel = 80 ; extern int RSI_BelowLevel = 20 ; extern bool
I'm just learning to code. I'm just trying to write a script right now. I want to draw a blue vertical line whenever the MACD line crosses up over the signal line and draw a red vertical line when it crosses down. It seemed to work except that it skips some of the crossovers. Plus there are some
This website uses cookies. Learn more about our Cookies Policy.