Expert Advisors and Automated Trading - page 2

I wanted to know whether one of the new pre-trained time-series models can run inside MetaTrader 5 itself, without Python, DLLs or WebRequest, so that it also works in the Strategy Tester. It can. These are my notes on IBM's Granite TTM-R2 (Tiny Time Mixers, Apache-2.0), with the numbers I measured
Hello MetaQuotes Support, We need to determine whether an MQL5 Expert Advisor can enforce a strict 14,400-second wall-clock deadline when an in-progress file operation does not return. Could you please clarify: Are FileOpen, FileWriteString, FileFlush, FileClose, FileMove, FileCopy, FileReadArray
If an EA needs Japanese bank holidays, for example to trade the Tokyo fixing on gotobi days or to stay out of thin Tokyo mornings, there is no need for a calendar file or WebRequest: the holidays follow fixed rules and can be computed. This is the code I use. It covers the equinox days for
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
I have successfully installed and used the MetaTrader5 package on Ubuntu without any difference on Windows. Here are the instructions. 1. Install Wine with the following command (skip if you already installed) sudo apt install wine 2. Install the MetaTrader 5 platform for Linux according to the
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
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
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
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
I'm experimenting with something a bit different around MetaTrader 5 and I'd really like to hear how other MT5 developers would approach it. I'm building a local multi-agent setup where different agents have different jobs. For example: one watches financial news; another tries to judge whether a
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
When uploading an EA to the market, it fails validation due to invalid volume error: test on EURUSD,H1 (netting) strategy tester report 22 total trades test on XAUUSD,D1 (netting) log files size exceeded 2080 MB, test terminated 2022.04.11 15:39:28 failed market sell 0.15 XAUUSD, close #47 buy 0.15
I am looking for a solution on how to get my ea to copy trades and for it to show "trade placed manually" label instead of "trade placed by expert". I know it can be done because I've ran into a few EA's that arbitrage trade and they show trade placed manually, which is impossible to be done by a
Signal provider is XAUUSDi, my broker is XAUUSD+. Will it copy
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
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
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
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
Does anybody know of a simple EA that will allow me to set simple buy and sell limit orders with SL and TP? thats it! thats all I want please help thx
Hey everyone, I’ve been running multiple backtests lately and noticed how easy it is to get great historical results that completely fall apart in live trading. Curious to know — how do you balance optimization versus keeping your strategy general enough to perform well in real conditions? Do you
I’m transitioning from manual trading to EA trading and would appreciate some guidance on execution architecture. I work full time and my strategy needs execution at a specific time of day when I’m often unavailable, which is why I’m moving to automation. Currently, I analyse on TradingView, then
I have been facing a serious problem with getting a reliable history data of at least four years for XAUUSD. I have deleted and tried to force the terminal to download better history many times and even tried a few different brokers but still I often get warnings like: real ticks absent for ...days
Hello everyone, I’ve been working very hard on developing several Expert Advisors and I would like to ask for advice from the community: what are the best options and strategies to promote my EAs here on MQL5? I know that the Market section is highly competitive, so I’m curious to hear from more
Hello, I'm doing in Strategy Tester a lot of backtesting in "Fast genetic based algorithm". I'm looking for a way that once finish the backtesting, to automatically "Start" again. It could be possible to be done with Metatrader 5 Running from the Command Line? to create a .bat file with the command
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas. Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before
I was wondering, that macros sometimes dont appear in their correct color, so that one can see: This is a macro. And I figured out. Example: There is a macro named "abstract" which I use ... the sense is not important here. The macro is defined in a file in Line number #37 When I use this macro now
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
  MTF mismatch  (11   1 2)
I usually backtest my EAs in Open Prices M1, simply because it is way too slow otherwise I came up with a bug though. I had a problem : my orders were opening at an hourly level, not a M1 level (despite using M1 OP in the strategy tester settings) so I pinpointed down the error to an ATR Handle