MQL5 Algo Trading community — forex forum for traders and developers

A simple MT5 add on that can mimic TV (as pictured) Where to find/buy/access
Hello, I can reproduce stale currency conversion in the Windows MT5 Strategy Tester using FundedNext-Server 3 history. This standalone diagnostic is separate from my strategy and cannot run outside individual tester sessions. Environment: USD 6000, leverage 1:100, NZDUSD H1, real ticks, execution
Dear MetaQuotes Support Team, I am reaching out regarding a persistent limitation encountered when running multiple concurrent terminal instances on the same machine, and to request technical clarification or a potential update in upcoming builds. Setup & Environment: Hardware Capacity: The machine
Does anyone know how I can find my saved product but I did not published it yet. I forgot the link but not sure how to get it. I have used the search option but cannot find it under the name
Hello MetaQuotes Support, I am requesting clarification on the timestamp semantics of MetaTrader 5 market data. Environment: MetaTrader 5 terminal build: 6231 Python MetaTrader5 package: 5.0.6231 Symbol: XAUUSD Broker server: PhyntexGroupLimited-Live Windows system timezone: UTC+8 I performed a
Hello, I am developing a Python-based trading system using the official MetaTrader 5 Python package. I am experiencing a persistent IPC timeout when attempting to connect Python to the MT5 desktop terminal. Environment OS: Windows 64-bit Python: 3.13.15 (64-bit) MetaTrader5 Python package: 5.0.6231
Hello all. Does anyone have any recommendations for me on ways to improve the amount of money made each day using the MetaTrader 5 Strategy Tester Agent? I just started 5 days ago and I feel like I should be making more money per day then what I'm seeing. Is there something I'm missing? It seems
Hey everyone, I’ve been building trading bots for trend-following lately, and I'm curious what’s your most effective exit strategy for SL and TP? I tried simple fixed percentage stops, then moved to ATR-based multipliers, trailing stops, and even dynamic structural stops (like swing highs/lows)
Hello! I would like to ask why the copied trades aren't entering my account My account is a MT4, journal only shows "connecting the server" for how many days already. The account is not connecting to the signal. There's no network problem on our end. Hoping to receive answers right away how to fix
Good day, I purchase Scalping Robot Pro MT5 yesterday but did not arrive in my purchase item,in i already paid in detuct already on my card, i will attached the recipt. Please advise what will advice how i can get back my money. Regard, Jaynard Pactol
Hello All, I am trying to enable proxy settings on my mt5 which is currently executing on a vps. I click on Enable proxy server -> Proxy ... -> Give my server , login . password , sock5 Then when i press test or ok , it doesnt go anywhere at all. The cursor goes back to the server field. I tried the
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
  GOLD, Gold and XAUUSD  (1498   1 2 3 4 5 ... 149 150)
Hi! Is it worth buying gold at 1130
Greetings to everyone. I have a question, since the market place does not allow programs that import DLL's... Is there any alternative within MQL5 that can maybe be implemented inside the program, to achieve the same logic without importing external DLL's? Thanks in advance
Dear MetaQuotes Technical Support, We request an authoritative technical clarification of the time semantics used by the official MetaTrader5 Python package. This is a specification question, not account troubleshooting. The requesting environment uses MetaTrader5 Python package 5.0.5735 with
How do you measure the real impact of economic news on an EA? I've been researching how automated trading systems behave around economic releases, and I've noticed that simply classifying events as Low, Medium or High impact doesn't tell the whole story. Two High-impact events can produce completely
I run an LLM-driven intraday scalper on MT5 (demo). Over 60 closed trades it lost $212, and commission alone was 40% of that loss. Before asking "how do I make it profitable", I spent two weeks trying to establish whether it has any directional edge at all. It does not — and I want a sanity check
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
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
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
  Money Management  (232   1 2 3 4 5 ... 23 24)
Hi Here is the code I use for my money management. - Actually it shouldn't be called MM, as it is only calculates how many lots can I buy so that when I hit my stop loss I only loss a certain percentage of my account. I think though that is one of the crucial aspects of forex- trading - as it leads...
do you have a strategy that you would like to share..? Test, or for any reason for that matter. this is the place to show off your talent
  vps server  (80   1 2 3 4 5 ... 7 8)
What kind of vps do you use? Maybe some cheap and reliable advice for 5-10 terminals
I've been thinking about market regimes lately and I'm starting to question how we normally build EAs. Most strategies are basically built around the assumption that the market behaviour we see in the backtest will continue to exist in the future. But we all know that isn't always the case. A trend
  MetaEditor, Open AI and ChatGPT  (119   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
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
HI,Which strategy is best for BTCUSD
I want to say that my nick 'newdigital' is not connected with digital filters. But I started this thread to discuss and explain about trading strategies based on the digital filters only. And to understand how to implement those filters. All about digital filters you may find
I’ve been analyzing automated systems for quite some time now, and there’s something that keeps catching my attention: many EAs show extraordinarily smooth curves, high win rates, and impressive growth using Martingale, Grid, or position recovery strategies. The problem arises when the market
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?  (18   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, Can any one please suggest me the best indicator for binary options trading? Thanks...
Hi, Can someone please let me know how to use Metatrader5 to trade in stocks in NSE and/or BSE stock markets in India? Thanks, Amitabh
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
  Welcome to the new section!  (15   1 2)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
  Nasdaq  (6)
Does anyone here trade Nasdaq? What leverage do you get from your broker
  BTC  (12   1 2)
Does anyone here trade BTC
Hi All How do I add the NSE Indian Market- Stocks and Futures into the MT5 market watch. Thanks a ton for your help. Regards Praveen
  MT5 and NSE  (5)
what is the procedure to add symbol from NSE to MT5 marketwatch and start trading NSE option trading and back test
  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
Signal provider is XAUUSDi, my broker is XAUUSD+. Will it copy
Most brokers on GMT+2/+3 server time follow the US DST schedule so the daily close stays at 17:00 New York. Europe ends DST on 25 October and the US on 1 November, so for that week London opens one hour earlier in server time than usual. The same thing happens in March in reverse. For EAs that build
Below in the coded section, I have a CGraphicalPanel class representing my Panel . But I see when minimized the panel in X dimension, bit too narrow. How would I change the the size of the panel when minimized? Would like the panel to be large in X dimension when minimized. All I know that
Hi all! I'm trying to deal with resource management and/or path resolution when consuming resources that are supposed to be shipped with the Expert Advisor or are supposed to be used during Backtesting. This is in the context of me writing my own Expert Advisor. Not someone elses. For example: I
Fot those that had this issue, and there are many around, this happens only on day one of renting the VPS, as it magically disappeared for me o both my VPS at ... 00:00 next day. This is so weird we cannt control the connectors and cache when synchronizing from MT5
I have a free Expert Advisor on the MQL5 market place, a link to the EA is attached to the end of this post. One user commented that he is receiving an installation error when he tries to install the EA. The EA has been on the marker place for over 1 year now and from all the clients who have used
Hello everyone, I would like to ask for advice from developers who have experience publishing Expert Advisors on the MQL5 Market, especially EAs designed for a specific symbol and using external data/APIs. I have developed an Expert Advisor specifically for XAUUSD (Gold) . The EA is not a
Running 2 EAs on MT5 via VPS. Recently had one go quiet for about 3 days — no crash, no errors in Experts or Journal, smiley face still there, terminal connected. It just stopped taking trades. I only found out because I manually check the accounts every few days. Could easily have been longer
Hi all My EA is different in teser and prop firm account. Please help On 7 Sep, 2026, the no. of lot increase by 1 in tester , but not in prop firm account Prop firm account The function is as follows: int LastLotCnt() { int re; long l_timecurrent = TimeTradeServer (); double
Most first EAs I look at are not broken because the idea is bad. They are broken because of a handful of details that never throw an error - the EA just behaves differently than the author thinks it does. Here are the five I check first. 1. Running the logic on every tick instead of on a new bar If
For me, EA validation should be a multi-stage process rather than relying on a single backtest. I would normally look at: Backtesting over different market conditions, not only the period where the strategy performs best. Out-of-sample and forward testing to check whether the logic remains stable
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
Hello. An MT5 EA returns only "there are no trading operations" in automatic Market validation: EURUSD H1, XAUUSD D1, GBPUSD M30 and EURUSD M1 (hedging). There is no detailed Expert journal in the report. The exact submitted EX5 trades locally on MetaQuotes-Demo, XAUUSD D1, with factory Inputs, real
I am trying to login to Metatrader account and I have been receiving this error code. Please see code below; I first import necessary libraries and initialize which works fine from datetime import datetime import MetaTrader5 as mt5 mt5.initialize() But when I try to log in using the below code, I
Hello First, let me express my apology if I post this topic in the wrong place of the forum. I hope if it is the case you will let me know. I really not have much time to look arount in the community. I check the forum every two weeks or more. I turn to you for help since I dont know other
I have an indicator that combines the drawing of colored arrows and colored lines. The logic for determining colors and the colors themselves are exactly the same for both arrows and lines. Does each colored plot need to have its own color buffer? Or is it possible to use one color buffer for all
Is it possible to work with txt, csv or other files in the testing strategy? If so, how
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
Hi! I'ld like to be able to draw some rectangles that are gonna mark support and resistances zones that may take lots of bars to be crossed, thus being relevant for a lot of time. In my tool, I do that by extending the final points of the rectangle to a whole new year in the future: The problem 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%
  Trend indicators  (515   1 2 3 4 5 ... 51 52)
All the indicators which are helping the detection the trend please post here. The first indicator is sinTrend. The value of about zero is the float, the trend is started if the value of indicator is equal or above 0.0015 or minus 0.0015, the value of above 0 is uptrend, below 0 - downtrend
  Oscillators  (48   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
  Fibo & Gann variations  (362   1 2 3 4 5 ... 36 37)
Fibo Levels indicator. Fully forecasting.
I've run accross this FFT cycle indicator in the past couple of weeks. It is very interesting to say the least. I would like to know if anybody else has any experience with this type of cycle analysis. I've know of Hurst, Clyde Lee, and Brian Millard. Brian Millards' work is among the best I've...
Hi All, Do you have an indicator in mind that you think would make your life easier or more productive, what would it be? I might be able to write it for you. Let me know it's details and if it's needed for mt4 or mt5 and if I can write it, I will give it to you for free
  libSVM...  (2)
I was looking at the Support Vector Machine Indicator - which looked mildly interesting, but it uses a proprietary SVM paid for library. It occurred to me I might be able to wrap up libSVM to give a similar interface to MQL5 as the proprietary library so that I can build the indicator with its full
[Deleted]
  SuperTrend  (262   1 2 3 4 5 ... 26 27)
I've developed a new SuperTrend indicator. It works the same as the ProRealTime version where you can set the 'Nbr Periods' and 'Multiplier' values. Bear in mind that because of differences between brokers that in places it may change direction earlier or later than the ProRealTime version if you...
I'm a bit confused of this documentation found here: https://www.mql5.com/en/docs/basis/function/events#oncalculate I quote it here: " OnCalculate The OnCalculate() function is called only in custom indicators when it's necessary to calculate the indicator values by the Calculate event. This
Hi everyone, I have a problem. If I use the simplified version of OnCalculate, I receive the price series as an array of doubles in the OnCalculate parameters. This is the price series selected by the user in the "Parameters" tab of the dialog box displayed when the indicator is added to the chart
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
Newtonian Mechanics : A MetaTrader 5 utility that treats the bid and ask quote streams as two independent physical trajectories and fits a local quadratic to each, producing position, velocity, and acceleration with honest error bars and an out-of-sample forecast scoreboard. Author: Emmanuel Lovski
Check out the new article: Mapping Dealer Gamma Exposure (GEX) in MetaTrader 5: Walls, the Zero-Gamma Flip, and a Chart Overlay . In this article we build a dealer gamma-exposure map in MQL5. From an option chain, the tool computes per-strike GEX, finds the call and put walls, and solves for the
APB Channel EA — Heikin-Ashi reversal with channel confirmation and swing-structure stops : A complete, self-contained trend-reversal Expert Advisor for gold and silver. It waits for an averaged-bar colour flip to mark a possible reversal, then requires price to close back inside a volatility
ICT Structure Visualizer – liquidity sweep, MSS and FVG with an honest statistics panel : Draws ICT structure on the chart (liquidity pools, sweeps, market structure shift, fair value gaps) from closed bars only, adds a trade plan for every confirmed setup and keeps an honest statistics panel of
Prop Firm Daily Drawdown Visualizer (Free) : Protect Your Funded Account with Institutional-Grade Risk Monitoring. The #1 reason traders fail prop firm challenges is not a bad strategy; it is breaching daily drawdown limits. The AlphaQuant Prop Firm Daily Drawdown Dashboard is a free
Check out the new article: Overcoming Accessibility Problems in MQL5 Trading Tools (Part VII): MetaTrader 5 Model Context Protocol (MCP) the Grand Solution . Many traders know what they want to analyze or automate but cannot navigate MetaTrader 5, use MetaEditor, or translate an idea into working
Check out the new article: Markov Chains in Trading and Price Forecasting . In this article, we will examine how to build and apply Markov chains in market conditions: from selecting states and counting transitions to generating forecasts of trajectories and levels. We will also see how Markov
Check out the new article: Graph Theory: Study of Graphs Generated by Some Random Process . This article describes an MQL5 Expert Advisor that models the market as a random graph rather than a fixed structure. Bars are encoded into discrete states; bar-to-bar moves form a decaying, Laplace-smoothed
Check out the new article: Win Rate and Edge Ratio Heatmap by Hour and Symbol in MQL5 . This MQL5 dashboard aggregates closed deals by symbol and UTC hour, calculates win rate and average reward‑to‑risk, and displays the results as two color‑coded heatmaps. A companion table in the Experts tab
Check out the new article: Neural Networks in Trading: Robust Trading Signals in Any Market Regime (Attention Modules) . In this article, we continue implementing the ST-Expert framework approaches, focusing on the practical aspects of applying them using MQL5. Earlier, we examined the theoretical
Check out the new article: Building a Divergence System (Part IV): Creating a Reusable Divergence Engine for MQL5 . The article extracts the series' divergence logic into DivergenceEngine.mqh, a reusable header for MQL5 indicators and Expert Advisors. It details the struct-based design, oscillator
Volatility Regime Shader MT4 : Shades the chart background by volatility regime (Compression, Normal, Expansion) based on the percentile rank of the current ATR. Shows the current regime on the chart, alerts on regime changes and exposes buffers for Expert Advisors. Author: Osazee Asikhemhen
Check out the new article: State Persistence in MQL5 (Part 1): A Crash-Safe State Store That Survives a Restart . The series develops state persistence for MQL5 Expert Advisors. Part 1 delivers a crash-safe key-value store: a CStateStore class that saves through a temporary file and a rename
Semi-HFT Grid Bot Two-sided seed-bump-martingale grid with basket take profit : A two-sided grid EA that lays a small symmetric ladder of pending stop orders around the current price, then escalates in two stages as fills accumulate: first a single opposite-side lot "bump," then a full martingale
ATS Prop Rules Monitor - prop firm challenge scoreboard with the room left on every rule : One panel for the rules of a prop firm challenge: daily loss, maximum loss (static or trailing), profit target, minimum trading days and the best-day (consistency) rule. For each one it shows how much is used
Hi, I'm using a custom moving average indicator. After updating to build 1491 Metatrader 4, the indicator goes missing from the chart whenever I start MetaTrader. When I reapply the template, it sometimes shows all the indicators I saved, but other times it only shows one . 1. All indicators are
Custom indicator Heiken Ashi no longer shows up on the chart after auto compiles at the initial load of terminal after the version update Strategy Tester also shows the following errors regarding Heiken Ashi. 0 01:10:42.456 2025.06.01 22:00:00 PlutusV2613 EURUSD.FX,M1: HA Error: Indicator not ready
On Friday, October 2, 2026, an update to MetaTrader 4 will be released. The new version includes several important security enhancements, bug fixes, and changes designed to improve the platform's overall stability. Improved management of Stop Loss and Take Profit levels for positions on the same
  Interesting and Humour  (49796   1 2 3 4 5 ... 4979 4980)
Members of the forum, don't forget to follow the rules
Hello, I am posting this in the MQL4 section since there is no MQL5 section to post it in. I am creating a simple chart overlay in MT5 to visually compare two symbols. However the chart overlay indicator does not update in real time it only updates on the close of the bar. Does anyone know what
New article How to Copy Trading from MetaTrader 5 to MetaTrader 4 is published at mql4.com: Is it possible to trade on a real MetaTrader 5 account today? How to organize such trading? The article contains the theory of these questions and the working codes used for copying trades from the MetaTrader...
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
hi, using MT4 b745 on wine 1.7.32 i386 ubuntu for using an expert i need to add an url into /tools/options/Expert advisor/ there is already the builtin 'http://www.mql5.com' listed when i right-click on '+' nothing happen for adding a new url, so i double click on the previous url's field:...
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
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
this script converts the chart's ticks into any Second(s)timeframes !!! the Script works only for XAUUSD, you can modify it to work with other pairs or other names of Gold pair. Example custom periods: S5 S10 S15 S20 S30 S45 S50 Once the Second(s) chart is generated, you can apply almost everything
  Simple Loop  (9)
I know I'm asking for a boot in the head, but it seems as thought the language has changed since I was coding last. Trying to do a simple loop from 1 to 50, where the code stops at 50. What I get is: 1 to 50 then continuously loops again from 1 to 50. I want to stop at 50. Would appreciate any
Hello, I want to be able to draw Trendlines, Channels, Fibs, essentially any object on a chart for a specific symbol e.g a horizontal line level 1.1 on EURUSD and restrict it to only the chosen symbol. However, when I drag in another symbol on the same chart window, e.g. AUDNZD, I see the same...
Hello, I have a problem loading an Expert Advisor in MetaTrader 4. My terminal version is: MetaTrader 4 Build 1478 Date: 22 August 2026 The EA is named GOLD_MT4.ex4 . When I try to load it, MT4 gives these messages: GOLD_MT4: has newer unsupported version, please update your client terminal cannot
Hi guys, Anyone got any idea on how to call this indicator to work in EA? From the forum i found several method as the following: val1=iCustom(NULL,0,"SilverTrend",3,350,2,0,0); val2=iCustom(NULL,0,"SilverTrend",3,350,2,1,0); or BuyST=iCustom(NULL, 0, "SilverTrend", 0, 0); SellST=iCustom(NULL, 0,...