I want to count history deals from down to up. But my code not work perfectly. Please help me anyone. HistorySelect(TimeCurrent(),0); if(HistoryDealsTotal()>0) { for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--) { if(Deal.SelectByIndex(i)==true)...
Hello everyone, I have an Expert Advisor that operates based on trend conditions; it opens trades when the market starts to move in a clear direction (based on indicators). However, during sideways or ranging periods, it tends to accumulate losses or end up in break-even situations according to my
I'm using CustomRatesUpdate() function . It costs up to 2-3GB of disk space on real time running interval 1 sec in 24 hours (version A) but while I copy M1 timeframe data from server then CustomRatesUpdate() from 8/2024 just in 7MB (version B) . CustomRatesReplace() also has the same effect Version
Dear Forum Members Wish all Marry Christmas & Happy New Year. I have got above error while running Strategy Tester. Any clue what is this could be? Regards
I am trying to find a way to calculate the appropriate volume for longs and shorts dependent on a fixed percentage of risk. I stumbled across the CMoneyFixedRisk money management class and set it up in my EA. Every time it is called it seems to always return the value 0.0. Below is an example of how
#property copyright "Lucas Mariano Vieira" #property link "https://www.mql5.com" #property version "1.00" input int MAPeriodShort= 9 ; input int MAPeriodLong= 21 ; input int MAShift= 0 ; input ENUM_MA_METHOD MAMethodS= MODE_SMA ; input ENUM_MA_METHOD MAMethodL= MODE_SMA ; input
Hello I am trying to integrate an economic calendar into my MT5 EA so that the robot temporarily blocks trading before important news events. I am using the stub function EconomicNewsGetNext(), but I keep getting compilation errors like: - Undeclared identifier - Implicit conversion from unknown to
Context: This post is intended to be useful to those looking for ideas on how to set up an optimisation/setfile discovery process for themselves. Much more selfishly, I am also looking for advice from the more experienced on my optimisation process (which I will lay out below). I have been trading
Currently I am Using the Below Code In MQL4, //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool openURL( string url){ int APPEND
As you can see I already open the window to access those feature. But the window is nowhere to be found. I'm using MacOS M1 Tahoe 26.2. And Exness Demo Account for this experiment. Based from ChatGPT I still can access signal tab with Demo account, but why it's greyed out
Hello, I bought an Expert Advisor. Suddenly it's gone. The corresponding signal is also gone. In this case, it's the "Gold vs. Bitcoin Arbitrage" EA. Why aren't buyers informed about this ? It's not just strange, it's downright outrageous
Hello, While demo testing an algoritmic strategy on the US500, I get the message 'US500 history data load error.' Does anyone know how I can solve this
I am having an issue where I go to my VPS where I have MT5 running around 50 EAs, each on their own chart, and find that 30 or so will have removed themselves from the charts. What could be causing this? Thanks
Hello, using MT5 Strategy Tester with EA that is placing trades on multiple symbols the tester is not stable! It is suddenly stopping with the error: "disconnected. connection closed." Strategy tester is running on the local core. With this settings: Please fix this bug. Best Regards, Dmitry
I have created a public AI-based Telegram channel that generates trading signals by analyzing charts using GPT-5.2 and Grok.com . My goal is to have a MetaTrader EA read these signals directly from Telegram and execute trades automatically. I would like to know: Is it technically possible for an EA
I'm not sure I should have created this topic, but it's never too late to delete it😁
Hello there. I am trying to use the MT5 strategy tester since last year but it does not work. I noticed this after MT5 update at the end of 2023/ early 2024. Since then I have tried different machines, diferrent OS (Win 11/ Win10), different broker. It just does not work. The Core 01 disconnected as
While attempting to test my EA, this message keeps popping up and my test doesn't run. Ive attached an image of the errors, and spent time trying many things to fix it, but nothing seems to work. Thanks for the help
Hi everyone, I am struggling with a persistent issue where local agents in the MT5 Strategy Tester are completely non-functional , despite several troubleshooting attempts. System Specs: CPU: Intel Core i9-13900H (20 threads) OS: Windows 11 The Problem: Service Failure: The Windows Event Viewer
Hello All, I am new to Forex and MT5. Yesterday I was doing backtesting without any problems, and this morning I was able to do one. But the rest of the day after I click 'Start', the test goes real fast and displays no data. I have tried the backtesting on different devices, tried different EA's
I'm having trouble with an EA I'm making, all works fine until at some point it stops working and the following text is outputted to the Journal tab (not to the Experts tab): "Open charts limit reached"
No other error or warning is given whatsoever, and I have no idea what part of the code is...
I have a problem with the strategy tester in MT5. Why, with the same EA parameters and settings, does it show me great results once and then wipe my account in the next test? Let's say I test the EA on a 5-minute timeframe and I get great results, I change it to a 15-minute timeframe and I get great
Hello, I am using MT5 Web Terminal with [ edit ] After installing the EA, it does not automatically set Take Profit and Stop Loss when trades are opened. Please confirm if: 1. This EA supports MT5 Web Terminal 2. Any extra settings are required for TP/SL to work 3. MT5 desktop is required instead of
hi, want to run my EA on MT4 on vps hosting how to proceed
Hi guys, I am really enjoying MetaTrader5 and enjoying doing EAs and back testing them. I am doing now a Python script that I want it to calculate some technical indicators and tell me if the market is OK and I should enter, or if it is bad and I should exit. I need some web sources so that my
Hello, everyone! Today, my question concerns fast genetic optimisation and whether or not it is possible to specify a set of initial parameters. Let me explain: Suppose I want to run a quick genetic optimisation. Random parameters are used, and the better the optimisation results, the more the
Trading at the Speed of Light: How Ultrafast Algorithms Are Transforming Financial Markets A remarkable look at how the growth, technology, and politics of high-frequency trading have altered global financial markets In today’s financial markets, trading floors on which brokers buy and sell shares
Hi everyone, help me please. When I ran the EA trading system(MT5), I found a message in the journal tab that said " take profit triggered #2 sell 0.02 XAUUSDm 2042.486 sl: 2058.181 tp: 2036.359 [#3 buy 0.02 XAUUSDm at 2036.359]" This event represents the automatic opening of an order. When the
My Expert Advisor (EA) is unable to execute all orders.The price hits the stop order and the order disappears without being opened, without any reason in the journal.I only see "cancelled order".What are the possible reasons and how can they be resolved
I don't use MT5 to develop my strategies. The reason is that you cannot backtest an EA without historical spreads The reason it's important is because let's say you write a strategy, and then it loses continually you try different settings but all loses. Your conclusion will be that it is a losing
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.