MQL5 Algo Trading community — forex forum for traders and developers

1. Introduction — The problem I’m facing I am encountering a consistent issue when attempting to use MetaTrader 5 (MT5) on my VPS. Regardless of which broker I select, the platform shows a “No Connection” status immediately after trying to log in. This happens for both real and demo accounts. The
On Friday, August 1, 2025, an updated version of the MetaTrader 5 platform will be released. In this version, we have significantly expanded support for the OpenBLAS linear algebra library in MQL5, adding nearly thirty new functions. These enhancements provide more capabilities for developing Expert
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
How to change toolbox P/L colors to black, the basic is red for negative and blue for positive i want to make it only black iv seen it before on other people is it a script or what pls help
  Gold TickValue  (2)
Hi everyone, I’m currently trading with a broker whose platform seems to have an issue with the tick value for gold. On the platform’s specifications: Gold tick value = 0.01 Account balance = $5,000 Stop loss (points) = 1,500 (150 pips) Risk = 1% Based on these numbers, the lot size should be
The latest versions of the MetaTrader 5 mobile app for iOS introduce a range of new features designed to help traders stay abreast of financial markets wherever they are. Added the report representing trading results in a convenient visual format. It assists in evaluating trading performance
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
  Become an Author at MQL5.com!  (218   1 2 3 4 5 ... 21 22)
The new MQL5 Community website at http://www.mql5.com keeps developing. We invite all of you to make your contribution to this development. The new MQL5 is the evolutionary continuation of MQL4. The new language is characterized by the support of object oriented programming, by a higher code
On Friday, June 13, 2025, an updated version of the MetaTrader 5 platform will be released. It features a number of platform fixes and improvements. MetaTrader 5 Client Terminal Terminal: Fixed graphical interface display issues when running on Linux and macOS . Terminal: Improved the platform
He all I am from India is there any issue in accessing MT5 from India even for demo accounts or live accounts as I am not able to add symbols or open live charts it seems that that the network is not connecting keeps on loading, request help and advise
I have subscribed to a couple of signals, but cannot copy the trades because the Symbol is slightly different to my broker. Signal = OILCash & XAUUSD Closest brokers I can find for the residents, are OilCash and XAUUSD But I just get "Symbol not found", cannot copy trade I have set up custom symbol
I need your help regarding MT4 or 5. I want to ask if somebody knows if MT4&5 has a feature to move the whole chart in any direction(up,down..)or to lock it, like in other plattforms which you can toggle between the free and lock mode? Thank you in Advance
I logged into the Meta platform online using my Google account, but I didn’t realize that the terminal ID was different and made the purchase. Because of this, I had to purchase it again. However, I cannot use the remaining balance on the account linked to my Google account. I would like to link it
1-how can i change the password of my vps subsicription? 2- how many MT5 plaforms with active EA on each of them i can connect to my VPS subscription? hope to answer me urgently, tks
  MQL5 VPS  (35   1 2 3 4)
VPS issue - After syncing local MT4 terminal with VPS MT4 terminal: On my PC/Laptop the MT4 terminal change the status of the EA that was running (Enabled for live trading - smiley face on chart) to EA is DISABLED for trading (EA stopped - Not running) I suspect this is correct as you want the VPS...
Trend indicators are great for spotting market direction, but sometimes they give false signals in choppy or low-volatility markets. One way to improve your entries is by combining trend indicators with volatility filters . How it works: Trend Detection – Use an indicator like Hull Moving Average
You are using EA, Indicator, method, all the things that can help you make money from Forex. But when you look back at that process. How many times have you deposited money into your account, how many times have you sat in front of the screen watching your account gradually disappear. Maybe you earn
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...
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
  What strategy actually works?  (52   1 2 3 4 5 6)
Guys, I have been trading since 2011, I have tried nearly 2000 strategies, I have build almost 2000 Eas and indicators, on this olatform and on other platform, but I have not really found what works, what actually works? and does such a thing exists
  Private Signals  (12   1 2)
Hi, Is it possible to create your own private signals and have your trading accounts follow one trading account. How can you subscribe accounts to a private signal
Hello everyone, I’ve been reviewing my signal on MQL5 and I’m puzzled by the behavior of the “Growth since…” indicator: Initial deposit: USD 500, I lost that initial capital, the account dropped to almost zero → chart showed –95%, Since then I’ve made additional deposits totaling USD 15,210 and
  Something Interesting to Read  (136   1 2 3 4 5 ... 13 14)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
  Forex Market Profile  (29   1 2 3)
Today on EurUsd, in on hour, the famous ADP Non Farm (12:15 gmt) The peak of today (point of control aka peak time of price PTP) is in the vacuum of yesterday. We stay out of market, too dangerous. I prefer trade another day. I wait & see. The good trade was the counter trend near the yesterday PTP...
Considering the potential delay in investor accounts, the stop loss set at 100-200 pips on the provider’s account could be hit faster on the investor’s end. This happens due to execution differences caused by delays, even if the provider's analysis has accurately identified the market’s power
How i can increasing gap trading for 1 minute trading for Binary Market. In live market there have lots of gap in 1 min chart. I want to trade in Binary option live market for 1 minute candle. What will be the strategy for it
Hi all, I'm new to this forum and have been trading for a long time, I thought i might as well share with you my strategy that i use and makes me consistent money. If anyone can make it into a EA that would be cool, Rules--- Any pairs, best with less than 5 pip spread. Need to take into account the
Hello Fellow Traders! I've been working on a grid trading approach and would love to discuss the methodology with experienced traders in this community. The Technical Challenge I was looking to solve some common issues in automated grid trading: * How to handle dynamic position sizing based on
hello im just wanna help, can you teach me how to make a copy trading or miiror trading to my affiliate that im the one to execute and automatically copy to my affiliate
Many traders start with Forex, but the financial markets have many other instruments worth exploring — each with its own pros and cons. Here’s a quick breakdown: 1. Forex (Foreign Exchange) 24/5 trading. Highly liquid and accessible. Leverage is widely available. Best for trend and scalping
If you invest in stock portfolio or asset management firm, and you have 2 options 1- Long only : go long with bullish market only ( lower return ) 2- Long-Short : go long when bullish and short when bearish market ( extra return from shorting ) When strategy short stocks it expose your portfolio to
  Need a broker  (9)
can anyone help me with a broker that will allow me to trade stocks and crypto on Meta Trader 5
Want to trade gold and silver on spot not futures .. i tried futures algo trading on ninja.. too much loss on slippage. Any ideas what are others doing
  MT5 FOR cryptos  (2)
I am searching for an Exchange applying MT5 account to trade Cryptos via MT5 Bybit was having this , but they stopped trading cryptos in MT5 account as was the best exchange and broker for trading all , but unfortunately they stopped it share me your knowledge please about any Cryptos exchange with
  Simple trade automation?  (12   1 2)
I used to use metatrader4 when I was messing with Forex, but I have funds that I'd like to use out of my stock porfolio to trade one particuarl stock which goes up and down $1-2/day pretty much all the time. I'd like to set metatrader up to say, sell at a certain price, then buy at $2.00 lower, then
Hello there, I'm trying to trade on, Micro E_mini Nasdaq-100 index futures, As far as I know their symbol is MNQU5, I just cant seem to get them to show on MT5
  Who are the resistance?  (14   1 2)
If BTC/USD has support at $68,000 and resistance at $70,000, what type of group or person would keep dumping at $70,000 when they make very little profit from a buy at $69,000
Hi, 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
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
  Trading Futures  (6)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
When most traders hear “Expert Advisor,” they think Forex … but the truth is, an EA can be your ticket to trading futures, stocks, options , and more. 🚀 Here’s the quick market tour for your automated systems: 1️⃣ Forex – Perfect for round-the-clock EA action. High liquidity + low entry costs make
Hi MQL5 Community, I'm working on an EA specifically for XAUUSD and running into some interesting challenges that I'd like to discuss with fellow developers. The Technical Challenge: Gold's behavior differs significantly from major currency pairs. While EUR/USD responds predictably to technical
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
hi please see attatched what causes this large price drop in an MT5 backtest. Missing data
Hi everyone, After last update, I think ObjectGetString does not work properly. Following code, prints nothing and gives the error 5040: void OnStart () { string name = "lbl_test" ; ObjectCreate ( 0 , name, OBJ_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0 , name, OBJPROP_TEXT , "This is it" );
I want to hide an object on a chart in Mt5 when the scale of this chart changes to 0 or 1 (the scale can change from 0 to 5). unfortunately MQL5 does not have a command like ObjectSetInteger ( 0 , "name" , OBJPROP_TIMEFRAMES , OBJ_PERIOD_H1 | OBJ_PERIOD_D1 ) for chart_scale. I found a way to hide
Good Day Trust that you are all well. I updated MT5 to the latest version when restarting the Platform I found that most of my trading EA's are no longer on the charts, it is not just 1 EA it EA's from different Vendors. Is there a fix? Thanks Rene
In Strategy Tester , the backtesting stalls when using all market watch symbols - see screenshots below. The Strategy Tester is stuck here for a very long time. It happens with other EAs as well. When running the same backtest multiple times, sometimes it finishes all tests and sometimes it doesn't
Hey! I have a problem with backtesting my EA in MT5. Attached below is a chart that appears in the MT5 terminal after backtesting. Here some of the trade history arrows do not appear on candles. Instead they are little or too much offset from the candle. I have seen this happen many times. My
Well I've just been doing some testing and experienced some very strange behaviour. I was expecting 1 min OHLC and Open Prices to give very similar results as I had created two custom symbols , both with a spread of 1 point. What I got was two curves that diverged from each other (The red line and
I’m seeing a consistent mismatch between the history available on a live chart and what the Strategy Tester gives me. I only need to show OnInit() to illustrate it. Code used in OnInit : int OnInit () { PrintFormat ( "MQL_TESTER=%d | DATA_PATH=%s" , ( int ) MQLInfoInteger (
I have made a custom indicator written in MQL5 which does the following: 1- Calculate the 9-period hull moving average for the open prices. Name it HMA9open 2- Calculate the 9-period hull moving average for the high prices. Name it HMA9high 3- Calculate the 9-period hull moving
Hi everybody, like always and done without any problems in previous versions of MT5 I want to test my (unmodified) EA by the strategy tester. But since I've installed MT5 build 2926 I cannot open any pending orders. I get the error messages CP 0 16 : 18 : 13.970 Tester DE30,H1
I wrote a script to manipulate a set of matrices and want to check the dimension of the result matrix. I wrote output to a file (csv) and also print it. I can't find neither of them. I use explorer to find the csv file. No joy. Any help is appreciate. File write is line 158 and print is 161
A single indicator can give you valuable information… but relying on just one is like sailing with only half a map. 🗺️📉 In trading, combining indicators can filter out false signals and give more reliable setups. For example: 1️⃣ Trend + Momentum: Use a Moving Average to define the overall
Even if candlesticks appear to be the same at first glance, there are differences in the frequency of value updates when tick value movements are included. By adding up the range of price movements (either up or down) when a single candlestick is formed and visualizing it as a histogram, I thought
Dear MQL5 Community, Hello, I’m reaching out regarding an issue affecting some of my clients. Several have reported being unable to download one of my products after purchase, despite successful transactions. The returned error is 29111 not found in the database. Additionally, my MQL5 Service Desk
Hi, why in my script ,the high[] not return a good high ? //+------------------------------------------------------------------+ //| supertrend.mq5 | //+------------------------------------------------------------------+ #property version "1.02"
I am using the following EMA set up. emaFastCloseHandle = iMA ( _Symbol , _Period , emaFastPeriod, 0 , MODE_EMA , PRICE_CLOSE ); emaSlowCloseHandle = iMA ( _Symbol , _Period , emaSlowPeriod, 0 , MODE_EMA , PRICE_CLOSE ); My initial thoughts were doing the following double fastEma[ 2 ];
Hi All, Can anybody add the needed code (to the attached short script) which will make this script work on all open charts. I would like to be able to fix the chart position of all open charts with just one click. The attached script works only on one (the current) chart. Thanks a lot in advance
I’ve noticed that MetaTrader 5 has been very sluggish—it’s taking too long to open charts, and whenever a custom indicator is added to the chart, it almost never loads, even though it appears as added. Is something similar happening to you as well
  Oscillators  (44   1 2 3 4 5)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
Hello friends I designed an indicator for MetaTrader 5 that when you click on a button it randomly selects a price on the chart Now I want this candle to be displayed in the middle of the chart after this point is found and I don't know what function I should use to identify the middle of the chart
Hello, I'm trying to send a message to my Telegram bot using WebRequest() in MetaTrader 5, but it consistently fails with error code 4006 . Here's what I've already done: Allowed WebRequest in MT5 under Tools > Options > Expert Advisors Added the URL: https://api.telegram.org/ Restarted MT5 after
Hi, I want my indicator to play a series of sounds, not just one. For that, I initially tested calling 3 PlaySound() one after the other hoping that the second would only start playing after the first was finished and the same for the third. Unfortunately I was wrong: in such conditions, even though
Dear MT5 community, I have been using the attached indicator to add empty space on the top and bottom of each chart as per pics attached. I find the indicator useful and well conceived but it might be using too much ressources and I experience some lags. My question was with other users and MT5
Dear trader  Is there any theory for market statistics histogram. I don't know what is it Sincerely,
Does any one know if it is possible to add/download a favourite inticator to any smart phone version of Meter Trader 4 of 5? Thanks in view of your kind reply and assistance.
Hi Friends. I'm trying to create an indicator that shows green fill when price is above a certain level and a red fill when price is below a certain level. But the indicator keeps returning only the red fill. Code is attached below. Please help me have a look. Thanks #property
New article Learn how to design a trading system by Fractals has been published: This article is a new one from our series about how to design a trading system based on the most popular technical indicators. We will learn a new indicator which Fractals indicator and we will learn how to design a
Check out the new article: Data Science and ML (Part 32): Keeping your AI models updated, Online Learning . In the ever-changing world of trading, adapting to market shifts is not just a choice—it's a necessity. New patterns and trends emerge everyday, making it harder even the most advanced machine
ICT by Emil : Takes trades based on ICT silverbullet and 2022 model with trailing stops and partials, also keeps entry according to OTE, and risk according to prop firm version Author: Emil Paul Jacob
Bull Bear Volume : An indicator that provides a clear visualization of volume pressure on each side of the market Author: Conor Mcnamara
Check out the new article: Automating Trading Strategies in MQL5 (Part 19): Envelopes Trend Bounce Scalping — Trade Execution and Risk Management (Part II) . In this article, we implement trade execution and risk management for the Envelopes Trend Bounce Scalping Strategy in MQL5. We implement order
Check out the new article: Mastering Log Records (Part 10): Avoiding Log Replay by Implementing a Suppression . We created a log suppression system in the Logify library. It details how the CLogifySuppression class reduces console noise by applying configurable rules to avoid repetitive or
MT5-BuildYourGridEA : This expert is a system to help any trader to make a grid of orders. Author: Nikolaos Pantzos
Check out the new article: Neural Networks in Trading: A Parameter-Efficient Transformer with Segmented Attention (PSformer) . This article introduces the new PSformer framework, which adapts the architecture of the vanilla Transformer to solving problems related to multivariate time series
Check out the new article: Neural Networks in Trading: Enhancing Transformer Efficiency by Reducing Sharpness (Final Part) . SAMformer offers a solution to the key drawbacks of Transformer models in long-term time series forecasting, such as training complexity and poor generalization on small
New article MetaTrader 5 on Linux is published: In this article, we demonstrate an easy way to install MetaTrader 5 on popular Linux versions — Ubuntu and Debian. These systems are widely used on server hardware as well as on traders’ personal computers. Author: MetaQuotes
  Libraries: Report  (151   1 2 3 4 5 ... 15 16)
Report : The MetaTrader 4/5 library allows generating reports based on the trading history. Author: fxsaber
Check out the new article: Formulating Dynamic Multi-Pair EA (Part 4): Volatility and Risk Adjustment . This phase fine-tunes your multi-pair EA to adapt trade size and risk in real time using volatility metrics like ATR boosting consistency, protection, and performance across diverse market
  Libraries: TypeToBytes  (61   1 2 3 4 5 6 7)
TypeToBytes : Byte-wise operation with structures and standard data types. Author: fxsaber
  Experts: CoupleHedgeEA  (34   1 2 3 4)
CoupleHedgeEA: It's a two (2) pairs correlation system to use 3 currencies for make 2 pairs to open hedge orders on those. Expert starts opening four orders for each couple (2 plus and 2 minus) and wait to move prices in one direction to make a grid of orders Author: Nikolaos Pantzos
Check out the new article: Price Action Analysis Toolkit Development (Part 35): Training and Deploying Predictive Models . Historical data is far from “trash”—it’s the foundation of any robust market analysis. In this article, we’ll take you step‑by‑step from collecting that history to using it to
I am considering getting one of those new Snapdragon Windows 11 laptops (such as Lenovo Slim 5) that run on ARM64 architecture instead of X86. I know MT4 doesn't have a native ARM version and needs to be run using the Prism emulator built in to ARM64 Windows version. I am curious if the emulated
  Traders joking, the beginning  (7332   1 2 3 4 5 ... 733 734)
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...
int OnInit () { Print ( GlobalVariableCheck (price)); if (! GlobalVariableCheck (price)) GlobalVariableSet (price, 0 ); Print ( GlobalVariableCheck (price)); return ( INIT_SUCCEEDED ); } Print statement output. Has anybody seen this before? OK..please let me know what I am doing wrong? thanks
Hi MT4 account is saying not connected. I have all the parameters but don't know how to connect. Anybody here can help please? Cheers
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
Hello, I Built Market Speedometer to check if market speed is high, low or in normal using MT4 Volume (Tick) data and ATR data. Hope this will useful for peoples. if you have any suggestion or fix please let me know. //+------------------------------------------------------------------+ //| Market
Hello guys, I am very confused. Why does this code not work if I press 'Q' but it works when I draw any object manually? void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) {//--- ChartSetInteger(0
Hi there, Can somebody help me how to detect fractal s and if the fractal corresponds with a long/short trend in a graph? Thx a million
Hello there i just bought this EA but it doesnt work despite uploading it to my MT4 (smiley emoji icon is on) and start to use it since day 1 its like dummy stairing at you no movement no trade. I have VPS etc all works normal but this EA is dormant,,,please help. I dont know if i should enrol with
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
Greetings, I want to add some scripting to an existing MQL4 indicator placed in a separate function and now strugling to get an char[] variable defined. However, the compiler does not seem to agree. char [] response_post; char [] response_data; 'response_post' - undeclared identifier NYSE.mq4
An EA is master pieces of the author and copyrighted, must be great if MQ4 Vendor can make automatically generated some code to make all compiled EA is can not decompile by hacker or by everyone except MQ4 vendor. if anybody agree please reply this thread, or if do not like reply with reason too. So
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
Dear Guys, is any MQL function, how i know what is the date of the first friday every months. Example : in February 2016 first Friday of the month, date is : 05-Feb-2016 how i know by MQL function or coding. Please help me Thanks