MQL5 Algo Trading community — forex forum for traders and developers

Hi I want to install EA purchased through MQL5 in both demo and real account can it be done on same VPS or for each account i need separate VPS. Can anybody guide
Hi Is there a print version available for the book by Dmitry Gizlyk? I prefer reading old fashioned way and would like to order a print version. tx
hello everyone, in my MT4 latest terminal and even in old terminals i'm unable to find "signal" option to copy someone's signal and in MT5 signal option is visible but not clickable, even i click it from MQL4 website it does not open in both MT4 and MT5 what should i do now, do i need to top up MQL5
  expert for rsi  (1)
hi,I need indicator for cross up and down level30 with alert
Has anyone ever seen this problem? I ran a single back testing on my EA. Graphical show there are profit on trading. However, the history show loss in all trading. I don't known what the issue is
  maximum drawdown  (5)
Hi, Can someone help me please to understand the maximum drawdown in the strategy tester. I have a setting in the EA to close all positions when the drawdown reaches -$50k, that's why you see the many drops in the attached equity chart, that's understandable. But what I don't understand is that the
Hello friends The code below has two problems that I don't understand. 1. When I make the constructor private, the compiler gives an error. Even when I define a single pointer, it gives an error without instantiation. Shouldn't we do this for singletons?! 2. The array that I have defined to store
Is it possible to integrate the DLL into the EA internally so that it can function properly during runtime without explicit import? Market considerations are not needed; this is for personal use only
I'm a developer, I only make freelance money on this site, I'm not looking for other work and don't want to, as I'm happy here and have enough to live on. I have run into the following problem. One of my regular customers has ordered a job from me and disappeared, disappeared for a month, but I
Hi all, I'm testing an expert in strategy tester . Stop orders are correctly placed from the expert, but for some reason are not filled when price level is triggered. Parameters order are settled as follow, without slippage parameters or similar. request_3.action= TRADE_ACTION_PENDING ;
Hi, I'm creating a Freelance order right now, with negotiable budget, say 30-100 dollars. I don't have enough money in my account - in order to continue with the order, do I need at least 30 dollars in the account, or the full 100? Thanks
The Bug is about chart profiles not being saved properly and being corrupted by new charts that weren't there, IF the profile has enough charts that chart tab scrolling arrows become active. In short should one use enough charts that the chart tab scrolling arrows at bottom right become active, the
  Expert advisor questions  (11   1 2)
Hello, I have a question to the trader who used to trade with self made EA that is coded 100% realisticly and was tested. What was your expierience trading EA in real time, were the results similar to the tested ones? I am not talking about scalping or speed trading, just normal trading with
In MT5 Build 4885 (28 Feb 2025), fresh install from MetaQuotes, manually typed scripts fail with 'undeclared identifier' for AccountEquity() , AccountBalance() , etc. AccountInfoDouble(ACCOUNT_EQUITY) works. See attached tests
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
  I Need MT5 EA  (5)
I need of MT5 EA that open unlimited sell positions only on every 5 seconds,or on every new candle with target profit in pips for every single position,I trade xau/usd,please please help me,this is very important for me.Thanks
I have written a bot that automatically places trades based on multiple indicators, after some trying and compiling I succeeded and went on with Metatrader 5 on Vantage, in the strategy tester it is giving me error code 4756 Invalid Request in the journal, I've already tried analysing the problem
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  (31   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 everyone, I am working on an EA that follows an Alternating Buy/Sell strategy based on price movements, but I have encountered an issue where it keeps opening consecutive Sell orders instead of alternating between Buy and Sell . Strategy Requirements: The EA starts with a manual Buy order (0.1
  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
Hi, i got a few strategies developed and coded by me, i test them to be profitable for the last 7 years (2018-2024 included). i now have a strategy in my hands that is decently profitable 2016-2024 but is not profitable 2012-2015, is that a reason to not take it into consideration? In my mind is the
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
I wanted to lean on someone's knowledge who has significant experience and knowledge in trading. Is there a relation between intraday pivot point calculations and daily trading signals with regards to buying after the daily low towards the high, and selling after the daily high towards the low
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...
Is the MetaTrader5 Python API still fully functional? I haven't been able to use it to login to my terminal or get my trade history
Hello guys, I am not sure how to assess if a spread is large or small. I tried to compare it with the average daily range and I also compared the spread to the value of the currency itself. What makes most sense for you? It is not only the points because 3 points are not the same on EURCHF or GBPJPY
  Trading the Andrews Pitchfork with Max  (77   1 2 3 4 5 ... 7 8)
I used to be a manual trader for a long time: https://www.mql5.com/en/forum/179446 However, I no longer enjoy the relentless screen time and general stress that goes hand in hand with manual trading. My solution was to become very good at translating my manual trading knowledge to the creation of
  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
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
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
//+------------------------------------------------------------------+ //| Antfruition.mq5 | //| Expert Advisor for MT5 | //+------------------------------------------------------------------+ #property strict
Sup guys, i hope u can help me again. i got this code. this is from the customindicator: void SendSignalsToEA( const int rates_total, const double &close_price[], int &buy_signal, int &sell_signal) { double ma = ExtLineBuffer[ 0 ]; if (close_price[rates_total - 1 ] > ma) {
Hi, During strategy testing, results appear that are either really good, or very much into the negative. But when I try to run their parameters standalone, the outcome is completely different, not even close. I observed this on Zen 2 and Zen 4 based CPUs as well, not sure if it is caused by the
Hi guys, I have a script composed of two scripts: PanelDialog.mqh and TradeManager.mq5 . I'm trying to access the function CheckAndCancelOrders(); , which is inside a class that, in theory, should be fully public, so I should be able to access it. However, there's no way to make it work. Basically
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
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
Hi, Is there a way to find what the balance was after a deal finished in the OnTester method at the end of a backtesting pass? I noticed when we traverse through the deal and their properties, in the documentation ENUM_DEAL_PROPERTY_DOUBLE doesnt have a resulting balance property. 1. Is there
hi guy i have a part of my code that i try to calla OrderType void CheckAndCancelOrders() { // Verifica se il primo ordine è stato eseguito if (ticket1 != 0 && OrderSelect (ticket1)) // Selezioniamo l'ordine con il ticket { ENUM_ORDER_TYPE type1 =
  Contract size...  (1)
Can anyone explain me how to find contract size programmatically? Like the one which is on MT4 contract specification... Market Watch -> Right Click -> Specification -> Contract size -- 100,000 (for ex, for EURUSD=100,000, for Bitcoin it is 1, for XAUUSD=100, and so on) It is used in formula for
Hi Last night I ran my expert and it automatically traded without any problem. But now, even when I activate auto trading, it still gives an error and does not trade I activated and deactivated it several times, but it did not work. What is the problem and how can I fix it
In Ninja traders 8 platform one can customize time frames when getting the return value for the OHLC by adding a data series which one square bracket would say how many bars ago, and the other square bracket would give the time frame value calculated in minutes. Is the same thing possible with
As in the title, I want to have realtime information via MT5 in Python whether a given symbol currently allows trading or not. I want to have the same real-time information as what I have when opening MetaTrader and attempting to buy/sell a given instrument. The UI will not allow me do that for
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
  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
  Multi instrument robot  (21   1 2 3)
Hi every body, I used to trade manually since many years. But today I want to automatise some of my algorithmics systems. Is it possible to create a robot who can manage 20 or 22 instruments on a single account, with the possibility to calculate the quantities according to previous results ? Thanks
extern string font_name = "Arial" ; // extern int font_size1 = 10 ; // extern int font_size2 = 9 ; // extern int labs_corner = 1 ; // extern int labs_xdist = 5 ; // extern int labs_ydist = 10 ; // extern int
Hello dear, I am new mq5 developer. I am trying to convert one good indicator to mq5 but I am facing problems. I attached the equivalence mq4 file. The mq5 file is what I did. Can someone help me please to fix the mq5 file? The label (HH HL LL LH) is not updating when you loaded in the chart Many
I have drawn a trend line in the bellow chart. I want to know the angle of this trendline so I can use it to trade based on some other conditions. but I don't know how to calculate it. do you have any idea how to do this. I don't need you to code for me. give me an idea how to do this. Your help is
  Zigzag indicators  (647   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Hey does anyone know why this zigzag indicator is behaving like this. Not marking proper swings? shown by red arrows. zigzag values are - 7,5,3 timeframe 5 minute is there any solution to avoid this fake swings or weird swings
  Daily Vertical Lines in MT5  (28   1 2 3)
Hello altogether, I used to trade via MT4 (that was a while back). Now I wanted to start trading again and installed the MT5 Software. Back in my MT4 times I used this indicator --> https://www.mql5.com/de/code/12266 <-- to display certain times in my chart, which was (and hopefully will be again)...
Hello, I have been looking for an MT5 indicator which would give an alert when price crosses upper or lower bollinger band. The alerts i prefer are an arrow/dot on the chart, pop up and an push notification. Something like this famous MT4 indicator BolliToucher would be ideal.  <advertising...
  Fibo & Gann variations  (354   1 2 3 4 5 ... 35 36)
Fibo Levels indicator. Fully forecasting.
Hello, I need to have the same exact indicator named envelops that exists on the Metatrader 5 platform , please how do I get it
Hello everyone as the subject says am trying to code or customise a moving average and display it in the subwindow ive tried several ways to tuckle the challenge without success as i show in the image below the yellow ma i placed manually and is the desirable output the red ma is however what my
Hey guys, I've got a question regarding CopyClose where I copy close prices from a VIX symbol (e.g. UsaVixMar25) into the current chart (e.g. Usa500). Here's my customized ComputeBuffers method: int CVix::ComputeBuffers( const int rates_total, const int prev_calculated, const datetime &time[]
I got my indicator published but not searchable on MQL5, please what could I have got wrong? Thanks in advance
Hello, MetaTrader 5 Team and Community, I would like to suggest a new feature that would improve the charting experience in MT5: the ability to lock drawing tools (trend lines, horizontal & vertical lines, Fibonacci tools, etc.). Currently, when drawing a line near other objects, it is easy to
I tried bellow code, nothing is happening. When I check object list, arrow object has created but it's not visible anyway in the sub window no matter how. the object's time coordinates are always showing as 1970.01.01 not matter how I try to set it to the current date time. the arrows I'm trying to
I set out to do a practice conversion to convert a more tedious MQL4 indicator to MQL5. This wasn't for anything other than practice, and because I'm focusing on MT5 now. I thought, maybe I can do it in 30 minutes... but no, this wasn't the case at all. I have tried numerous times to convert it
RSI-Crossover_Alert: The simplest semaphore indicator having alerts and providing the possibility to send signals to a mailbox and a smartphone. Author: Nikolay Kositsin
Check out the new article: Creating an MQL5-Telegram Integrated Expert Advisor (Part 2): Sending Signals from MQL5 to Telegram . In this article, we create an MQL5-Telegram integrated Expert Advisor that sends moving average crossover signals to Telegram. We detail the process of generating trading
Daily Vertical Lines : Draw daily vertical lines plus the day of week labels on the chart. Author: amrali
BarDuration : This is a simple indicator to display histogram of custom bars' durations in minutes. Applicable for renko boxes, PnF, equivolume bars, etc. Author: Stanislav Korotky
Supertrend : A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5. Author: Salman Soltaniyan
Multiple EA Tracking with a Magic Number Based Profit and Loss Live Dashboard in MQL5 : Whether you’re running multiple trading robots simultaneously or just one sophisticated strategy, keeping track of each Expert Advisor’s performance can be surprisingly time-consuming. MetaTrader 5 (MT5)
Check out the new article: MQL5 Wizard Techniques you should know (Part 57): Supervised Learning with Moving Average and Stochastic Oscillator . Moving Average and Stochastic Oscillator are very common indicators that some traders may not use a lot because of their lagging nature. In a 3-part
Check out the new article: A New Approach to Custom Criteria in Optimizations (Part 1): Examples of Activation Functions . The first of a series of articles looking at the mathematics of Custom Criteria with a specific focus on non-linear functions used in Neural Networks, MQL5 code for
Check out the new article: Reimagining Classic Strategies: Crude Oil . In this article, we revisit a classic crude oil trading strategy with the aim of enhancing it by leveraging supervised machine learning algorithms. We will construct a least-squares model to predict future Brent crude oil prices
Check out the new article: Tabu Search (TS) . The article discusses the Tabu Search algorithm, one of the first and most well-known metaheuristic methods. We will go through the algorithm operation in detail, starting with choosing an initial solution and exploring neighboring options, with an
Simplest CSV file reader : Provide simplest class to read and parse CSV file Author: Denis Kislicyn
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
MeanReversionTrendEA : The EA automatically trades based on trend and mean reversion signals with validated parameters. Author: Mustafa Seyyid Sahin
Smart Trend Follower : This EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic
BreakRevertPro EA Adaptive Trading Edge for Breakout Mean Reversion : BreakRevertPro EA merges breakout and mean reversion strategies with adaptive SL/TP and multi-timeframe ATR trailing stops for flexible trading in volatile markets. Author: Mustafa Seyyid Sahin
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 coder, I am writing an indicator (checking signal from MACD + MACD of highger timflame) But I could not find the method only add one arrow on the first bar when the signal appear So the chart as image below. Could you please check and give me some advice to revise my code. Thank you so much
Hi, When I launch a second MT4 instance from the same broker, it overlaps the first MT4 instance on the taskbar. How can I prevent this
Hello everyone, I am new to MQL4 programming . I have copied an indicator about Stochatis Smooth - LSMA (using iMAonArray), and the chart displays the calculated information correctly. However, when I convert it to an EA, there are no errors during compilation, but the EA does not run. I hope you
The MetaTrader 4 update will be released on Friday, May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Can I get some help with my MT4 mobile app. It stopped working two days ago & every time I try to open the app it does nothing at all. I've cleared the data and the cache multiple times and uninstall and install it multiple times and it still doesn't work. I've reboot my phone nothing seems to work
Why the profit on attachment picture is not correct on back testing? Please help me. It must be 100*0.2lot*(1850.627-1841.673) = 179.08$ Thank you
This is indicator developed by Agostinho Jorge Oliveira Can someone guide me how to add up magic number function in this EA? I would like to have P/L display filtered by magic number. Regards
where can I download library file:  "Trade.mqh"  for mql4? can I use the mql5 version of that file for mql4? I have that in metatrader5 but no in metatrader4 libraries. Please help.
  TickScalper EA  (778   1 2 3 4 5 ... 77 78)
Hi to all, I'm glad to represent my development TickScalper EA according to ideas described here and here. Especially for this EA I've created some new tick indicators. This new EA has big number of different settings devided on 5 groups: - Main - Timing - Sets for tick or fast MAs - Sets for slow...
I have an Apple MacBook Air M1 with OSX Ventura 13.7.4 (22H420). My MT4 installer is straight from my broker's website, but I also tried using the installer from the MT4 website. Doesn't seem to be any different. I have been using MetaTrader4 for about a year and never had any issues running it in
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
Is there an indicator or some way to install an offline chart on MT4, that will accurately countdown remaining time on the candle time frame selected? Seems the ones I found, cannot count, for example a M2 time frame, or other non-normal time frame offered by MT4
Hi, I need help please. In the "account history " tab in MT4, when I put the "custom period" it will always relate to the trades closing dates, not the opening dates. Is there anyway I can refer to the trades opening dates rather that the trades closing dates ? Thank you
No errors on back test, works well on live and demo accounts. But whenever I attempt to upload it on the market, it does not pass the automatic validation. Can someone please check my code