MQL5 Algo Trading community — forex forum for traders and developers

I have a VPS trade account on Puprime-Live2 and want to move to Puprime-Live6. The Change option does not work. It gives the error " Failed to move hosting. Make sure the server name is correct and the platform version (MetaTrader 4/5) of the target account matches that of the source one." Both are
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
Tens of thousands of traders use MetaTrader 5 VPS as a secure, reliable and fast hosting solution for automated trading. Recognizing the growing popularity of the service, brokerage companies approached us for the possibility to utilize VPSs to reward loyal users. This is how the Sponsored VPS
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
  GOLD, Gold and XAUUSD  (1383   1 2 3 4 5 ... 138 139)
Hi! Is it worth buying gold at 1130
The MetaTrader 5 platform update will be released on Friday, July 31, 2026. We have conducted a comprehensive analysis and audit of the platform's code, resolved any identified issues, and implemented numerous internal improvements aimed at enhancing the stability, reliability, and performance of
Hello, I’m experiencing a crash in MetaTrader 5 on macOS Tahoe 26.5 (Apple Silicon M2). Every time I press the Buy or Sell button to place an order, MT5 crashes and closes immediately. I have tried uninstalling and reinstalling MT5 multiple times, but the issue persists. This problem started after
Almost everyone who is engaged in social or algorithmic trading sooner or later recognizes the need to rent hosting for their robots or subscriptions. Maintaining stable and uninterrupted hardware operation at home while ensuring minimal delays to the broker's servers can be quite a challenging
How do I create a spike detector for boom and crash for mobile
[Deleted]
Is there version MT4 or MT5 terminal to be run in ARM Ubuntu
Dear Sirs, I was banned last week from posting to Forum for one week, I faced several limitations on my account services due to this ban. Since it was my first post and never informed the reasons for such ban, any one can provide me the forum posting rules so I prevent another future ban? Thank you
Hello, pls does anyone know why the 'submit' button for review doesn't show up for articles and what to do about it? Thanks
hello good day please I'm trying to pay for an EA with my personal bank card, but I'm unable to do so. kindly unblock my account please, I'm the only person using my card. Thank you
I had my navigator window undocked and attached to a separate monitor. It disappeared and won't appear after clicking on Navigator tab under View. I restarted MT5. Anybody have a fix
My main PC recently broke down, so I tried running MT5 on a 10‑year‑old machine I had lying around… and surprisingly, it works pretty normally lol. I’m curious what kind of setups everyone else is using. Like: “This tool is heavy on my PC!” “Even with this low spec, MT5 runs just fine!” If you have
Hello traders, I have been working on algorithmic strategies for XAUUSD (M15 timeframe), and one of the biggest challenges I face is controlling drawdown while maintaining solid profitability. In your experience: - What risk management techniques work best for gold? - Do you prefer fixed lot or
I am developing a general-purpose analysis EA for MT5. Before a Strategy Tester run, the user selects an already installed custom indicator and supplies its path/inputs to the EA. The EA then uses documented MQL5 APIs such as iCustom/IndicatorCreate, BarsCalculated and CopyBuffer to analyze the
[Deleted]
Hello everyone in the Trading Systems section! I'm trying to improve a simple trend-following approach specifically for XAUUSD (Gold), and one big issue I'm facing is too many false signals/entries during high volatility (news events, sudden spikes, choppy ranges). What I've tried so far: Using a
What are the best risk management tools you have used in trading and why
Over the years, I’ve tested and observed many Expert Advisors, especially on XAUUSD. And there’s something that keeps repeating itself again and again. Most EAs that show amazing backtests on gold rely on some form of martingale or grid logic. At first glance, everything looks perfect: high win
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
Hi everyone, I created an MT5 Expert Advisor (EA) that uses 2% risk management and two indicators (Moving Average and MACD) . I ran an optimization using 3 months of backtest data and 3 months of forward test data on XAUUSDc (M5 timeframe) . Results: Backtest Profit: 15,714 USD Forward Test
Hello everyone, I wanted to share some lessons learned about parameter optimization, hoping to get your feedback and maybe some ideas to improve. 1. Walk- forward optimization beats simple single-period optimization. A strategy that looks great on one year of history often breaks on the next six
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
  Mr.Nims, Renko Ashi Scalping System.  (3552   1 2 3 4 5 ... 355 356)
Renko Ashi Trading System 2 Please read the pdf manual for this system. Good luck everyone. PS: Reuploaded the fixed ma in applied price indicator. Special thanks to FXchaser PS: Reuploaded the fixed macd alert indicator. Special thanks to Puzzlebird PS: Reuploaded a Special Settings Template for...
  MetaEditor, Open AI and ChatGPT  (117   1 2 3 4 5 ... 11 12)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
This topic is created in order to have a guide and discussion about multi strategy EAs. I have seen this topic appeared in some topics but the discussion tends to die after some comments. So the intention is to have the topic in here and don't let it die
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
I would like to start a technical discussion about Expert Advisors for algorithmic trading. I believe that identifying the market trend is certainly important, regardless of the approach used (price action, technical indicators, neural networks, etc.). However, I have the impression that the real
Hi everyone, I produced an ea that works at m5 on Xau/usd nasdaq us30 and ger40. I ran several tests without any problems and ran all the Monte Carlo simulations. I wanted to publish it here on MQL5, but it doesn't pass the tests, and I see errors with EURUSD h1 in the report. What should I do? It
  Nasdaq  (4)
Does anyone here trade Nasdaq? What leverage do you get from your broker
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
What is your Preffered Syle of trading? Swing Day Or Scalping? What EA would you prefer for developers to make you assuming All of the work and are profitable
  Simple trade automation?  (17   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
  BTC  (11   1 2)
Does anyone here trade BTC
  Who are the resistance?  (19   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
For the past weeks I've been developing an EA based on SMC, multitimeframe liqquidity-sweep: Stats are good IMO, DD < 10%, good sharpe ratio, etc... But I question myself about this being more stable? Such as diversifying. My main problem is choosing a variety of pairs, i.e: EUR/USD GPB/USD USD/JPY
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
  Indexes disabled  (6)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing 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
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
I was doing trading and leave the screen for some minute and I want to back check the history. Is there any tick data or tick data based back check method
[Deleted]
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
  We use Bitcoin ;)  (493   1 2 3 4 5 ... 49 50)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
i wanted to ask this to the website admin but there's no way to contact them other than the chat bot. does anybody know if as a signal provider i can sell stock signals or is it only for forex
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
I just want to share this, in case others struggle with OrderSend(request, result) ... like I did today. Wrote a little EA that helps setting limit, stop and market orders by calculating lot sizes on given stop level. Everything worked fine besides the market orders ORDER_TYPE_BUY, ORDER_TYPE_SELL
the Copied trades.mq5 is generate by Ai assistant, which wrongly non-stop open order. Why??? It's real Money
How can I implement logic in my EA that it may work on demo accounts but not on live accounts without a license key
  Remote License  (4)
Hello everyone, everything good? I have a doubt, I have the code below where I limit the use of my EA to a certain limit of Metatrader IDs, however for each new Id that I add I will need to recompile the code, I would like to know if there is any tutorial on how I can do to create a remote license
Hello everyone, I'm experiencing an issue with the activator in my EA. The EA is supposed to validate a license key by contacting a verification page using the WebRequest function. Although the EA appears to connect to the page, I never receive any response. In the Experts log, I see the following
Hello Folks, I assume that its a quite easy question for you but I need your help. I got a website where I want my future EA clients to but their AccountIDs for a license Check. When I call the API via Postman I get the data, however I am unable to adapt the Webrequest() function accordingly to get
//+------------------------------------------------------------------+ //| Moving Averages.mq5 | //| Copyright 2000-2024, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi guys! I would like to sell Indicators (and perhaps EA's) in the META MARKET and directly too (outside the MARKET). I'm reading about how to effectively protect an Indicator (or an EA) for EVALUATION PURPOSES (for the bought versions I can provide a good scheme based on the user account). I had
Hi, I'm a little confused about what exactly these functions return. If I understand correctly: - iTickVolume returns the count of ticks used to build a bar. It is also passed by onCalculate with the "tick_volume" array. It's also shown in the data window as "Tick volume". Right? - IRealVolume
I want to check weather the deal in history is SL or TP. How do I track the deal from the order number that assigned when place order (name: ticket01). I understand that ' HistoryDealGetTicket' parameter is 'Number of a deal in the list of deals'. But what is that? ulong deal =
OK, so I have made myself an EA and am very proud of it. So proud that I'm thinking to sell it to others. But I want it to be used only by the customers, not to be shared online or re-sold for less. Therefore it has to be sold as ex5/ex5 (ie encrypted) and it must contain an input field where the
HELLO I want to ask about this message " Too much growth in the last month indicates a high risk less " why this message appear in signal ? Max deposit load: 16.6% Maximum drawdown: 25.7% Algo trading: 98% Profit Trades: 44.2% Loss Trades: 55.8% Trading activity: 90.6% from 152 to 248.81 USD in 6
first of all this strategy tester was working without any bug after this update the stategy tester is not at all working it is keep on showing history check of xauusd failed, even though all the data was there it is failing to test my strategy
I need help. I'm trying to optimize an EA I created myself on MT5, but it won't run when I press the start button. The broker is DECODE Fx and target currency pair is XAUUSD, but the operation log shows it's also trying to download historical data for XAUJPY, which is unrelated. Since there's no
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
[Deleted]
I have recently become more interested in Renko for some obvious reasons. However, although the chart is said to be “less noisy”, and cleaner, the real question is, “Is it more profitable as a result?” If it is easier to identify a trend , to trail, and there is less reliance upon indicators, does
Hello everyone. I have been experimenting with marking the opening hours of the main liquidity sessions (London and New York) directly on MT5 charts as shaded zones, and using their high and low as levels for scalping entries. The idea is that a breakout of the session range in the first hour of
Hello, I am trying to publish an Indicator to the CodeBase, but the submission is stuck and I cannot complete it. The problem: - Step 4 (Code): the progress bar stays at 20% and never advances, so I cannot reach the final submit. - Step 5 (Test): "Validation state: Not started", and the Type is
Why the version of MT5 backtest speed such slow, I pend it over night(~8 Hours), only 1 pass finished but I have brought a new cpu, the usage of CPU keep only 11%
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 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
Hi, why in my script ,the high[] not return a good high ? //+------------------------------------------------------------------+ //| supertrend.mq5 | //+------------------------------------------------------------------+ #property version "1.02"
My breakout EA work on different currency pairs need an indicator to help to avoid false breakout. May be consider the volume or anything else is OK. Please advise. Thanks Peter
Dear all. I am trying to build Custom indicator base on iBand. After alot of searching I decide to Post here may be someone can help me. Here is the full indicator. //This is MQL5\Indicators\Anhnt\iBand_Display.mq5 #property indicator_chart_window #property indicator_buffers 3 #property
Hi, I'm new to MQL5 and would like to make an indicator that identify the swing & internal points of the chart. I read that in order for you to find the swing/internal points then you need to identify the HH/HL/LL/LH of the chart. I want to collect some algorithm ideas on how to do this. Thanks
Hello, I'm having trouble registering as an indicator seller on the platform. I've tried four times already and I haven't received an SMS notification
Hello traders, I would like to start a discussion about useful tools that traders feel are missing in MT5. There are thousands of indicators available, but sometimes traders need specific solutions or better versions of existing ideas. What type of indicator, dashboard, scanner, or trading
Hi, the code "while(!IsStopped())" is not working on my Indicator. I have a code like this: while (! IsStopped ()){ copied = CopyTicks ( _Symbol , ticks, COPY_TICKS_ALL , LAST_TICK_TIME, 1000000 ); Print("COPIED: "+copied); if (copied> 0 ){ LAST_TICK_TIME =
Hi, i'm trying to create an indicator with claude ai help, and it's almost works well, this code is intended to draw a plot arrow into the particular candle as a signal based on stochastic level the only issue i face is the signal only appear on previous candle that already formed, meanwhile for the
Check out the new article: Feature Engineering for ML (Part 12): Fractal Features in MQL5 . A direct MQL5 port of the fractal detector writes each pattern at its center bar, so a buffer read by an expert advisor holds a value that only existed n bars later. We implement CFractalFeatures.mqh with
Check out the new article: Neural Networks in Trading: An Intelligent Forecast Pipeline (Conclusion) . The article provides a fascinating look at how SwiGLU embedding reveals hidden market patterns, and how a sparse Mixture of Experts within a Decoder-Only Transformer makes forecasts more accurate
BMP Chart Wallpaper : BMP Chart Wallpaper Background for MT5 Author: Rajesh Kumar Nait
  Indicators: b-clock  (24   1 2 3)
b-clock : Show minutes and seconds left before new candle is appeared. Author: Totom Sukopratomo
Previous Day High Low Open Close Indicator : Plots the previous trading day's High, Low and Close as horizontal reference levels across the current session, with optional multi-day history for context. No repainting, no discretion — the levels are read directly from the completed Daily bar Author
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
Risk Position Size Calculator : Set your risk %, drag the stop, and get the exact lot size priced in your account currency — margin and target included. Calculates only, never trades. Author: Radoslaw Karol Lubas
Check out the new article: The Avellaneda-Stoikov Model: Inventory-Aware Quoting for Two-Sided Strategies . This article builds the Avellaneda–Stoikov formulas in MQL5, feeds them with rolling estimates of mid-price volatility and a proxy for order-flow intensity, and plots the reservation price
Quantora Margin Calculator MT4 - Professional Margin Requirement Calculator : Professional open-source Margin Calculator for MetaTrader 4. Calculates required margin, Free Margin impact, estimated Margin Level, position value and margin safety. Author: Bilal Gunay
Broker Spec Inspector : Prints the invisible contract limits that silently reject orders: stops level, freeze level, min/step/max lot, tick size and value, spread type, execution mode, swaps, and the margin needed for the minimum lot against your free margin. Author: Seckin Erkut
Quantora Spread Monitor MT5 - Professional Live Spread Monitoring Tool : Professional open-source Spread Monitor for MetaTrader 5. Displays live spread, minimum, maximum, average spread, history graph and configurable high-spread alerts with a modern Quantora dashboard. Author: Bilal Gunay
Custom Simple Moving Average : A two-stage adaptive moving average (base average + secondary smoothing) that colors itself by slope and marks price/average crossovers with arrows. Author: Adedayo David Gbadebo
ProAutoSL DynamicTP-Institutional Risk Manager : Managing risk in modern financial markets requires more than just placing static Stop Loss (SL) and Take Profit (TP) levels. During high-impact news events or periods of extreme volatility, brokers often widen their spreads and increase their minimum
  Libraries: MT4Orders  (111   1 2 3 4 5 ... 11 12)
MT4Orders : Parallel use of the MetaTrader 4 and MetaTrader 5 order systems. Author: fxsaber
Quantora Session Clock MT5 - Professional Forex Trading Session Monitor : Professional open-source Session Clock for MetaTrader 5. Displays Sydney, Tokyo, London and New York trading sessions with live status, countdown timers, progress bars, overlap information and configurable alerts. Author
Hello, I want to know can MT4 send WebRequest to a server or website directly like MT5 or I need to build a .dll file to do that
I want to start a YT channel about the MQL5 language, and write a book about the language. I've read the "Trademark and Graphics/Screenshots Usage Guidelines" in the MetaQuotes site, but I still have a few questions to ask. In the website there is a "contact us" section, but no email to be found
  CButton Disable  (3)
Dear Community, I've read all Doc about CButton and it seems to me, there is non built in method to perform following task 1) create CButton 2) CButton should be visible but not clickable at the beginning. Any idea, how to perform this
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...
  Supply and Demand Expert Advisor  (35   1 2 3 4)
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones.  The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below).  Here are the rules of the EA: - When price reaches the proximal level of an...
Hi all, question as per subject line. I'm sure an easy fix. Anyone? thanks in advance
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
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...
Good morning everyone ... I would like to ask the experts in general if they have news on some utility for mt4 that changes time frames by entering intervals different from those pre-ordained thanks
Greeting , Can anyone help me please with programe lines (code base) to add to my EA -mq4 file simply , I only want the EA to open trades only if RSI value between 65 and 35 for example or 70-30... etc , it would be really appreciated sorry I don't have experience in programming
Greetings dear Coder, Please help with a way to diplay emojis on MT4 Chart using an EA. In MT5, this is possible using the following code: ObjectCreate ( 0 , "Lips" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "Lips" , OBJPROP_CORNER , CORNER_LEFT_LOWER ); ObjectSetInteger ( 0 , "Lips"
  Astro...  (231   1 2 3 4 5 ... 23 24)
Hi guys, I was wondering if anybody in this forum is interested in searching of connetion among planets,moon and other movements in space. We can share our experiance and learn more and more... All you know that the most famous and successful trader/W.D.Gann/ is used astrology and other technics to
Goal: I usually have my charts(over 20) maximized but at certain times, for comparrison, I want to have only two charts filling the whole window: one to the left with 100% height and 50% width and another one to the right with the same dimensions. I'm aware that I can do this manually but to get it
  Something interesting, old thread  (1290   1 2 3 4 5 ... 128 129)
Dear all, I would like to start this new thread cause I have some indicators that I paid for them and I want to share for free with you, all of you that for years share tons of ideas with me in this beautiful forum. I hope to encourage many users to do the same thing Best regards doc EDIT now the...
Posting this here since MetaQuotes doesn't have a public proposal email — happy to move this wherever makes more sense. Hello, My name is Mahmoud Seyedi. I'm a trader, and formerly a university faculty member in architecture — not a professional software developer. Over the past two years, working