Expert Advisors and Automated Trading - page 5

  validator issue  (2)
is it possible to pass validation if my ea suppose and meant to trade only daily tf and only 1 asset? someone maybe know how i can pass validation without getting those errors i get in the file i share
I frequently use custom symbols, as I prefer downloading data from reliable external sources rather than relying on data retrieved directly from the broker. I appreciate the ability to programmatically create and update custom symbols using the MQL5 functions designed for this purpose. However, the
Anyone here have any experience build EA/Indicator that detect ranging market using price action? If yes what would be the most efficient way to detect ranging market using price action
My EA is failing the automatic validation, please help
As a US based trader, I am limited to 1:50 leverage. The algos I’ve looked at require 1:500 leverage to work correctly. Are there any algos for sale that work with 1:50? Let me know
  DLL and OnDeinit  (2)
Good day! I have a DLL in which the process std::jthread(…..) is called. This function call in OnInit . When calling this function from an MQL program, it is possible to set the execution frequency in seconds. The termination of this function occurs after calling the monitorThread.request_stop()
Hi friends, I got a newbie question to ask. I have just gotten myself an EA and had set up VPS etc for it. So in my VPS, i only got 1 chart open, with 1hr TF. But will i be open to open another chart for the same currency pair, attached the same EA, but have a different TF? Thank you
Hello, I'm opening this discussion because I have some additional questions about how MT5 handles optimization. Here’s my situation: I’m running backtests on Local Farm in MT5. I’ve heard that the maximum number of possible combinations for an optimization is 100,000,000. However, when I have more
Hi. So I coded a basic EA and want to add an MA filter to it to see if it performs better. I'm running into an issue, though. When it tries to copy the values from the indicator to the array, it fails, with error code 4807 for invalid handle. The weird thing is, I check to make sure the handle isn't
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
Sir / Mam, I don't want to get the 1st and 3rd Values in the ZigZag indicator Because I want to get the 2nd Value for the stop loss in a buy trade. How to get the 2nd Value of the ZigZag indicator for the stop loss in a buy trade? Please solve this code 👇 // MQL5 Code double Zig_Zag( int
Hey guys, I sometimes see jobs in freelancing section, like decompile this or that EA. Example from recent jobs: [job request link redacted] I thought that now it wasn't possible to decompile ex4 or ex5 files. But I see a lot of developers still applying for jobs like this. So I'm just curious if
In the Validation state: it says error....automatic validation was done against EURUSD but my EA is customize for Gold only. how to resolve that
I’m using an EA developed by someone else, but the problem is it prints logs excessively, which makes my hard disk fill up very quickly. Does MT5 have any function to limit log writing — like at least make it print on screen but not actually write to the HDD
Hi guys i have a database sqlite structure: CREATE TABLE "Trade" ( "id" INTEGER, "ticket" TEXT, "symbol" TEXT, "price" TEXT, PRIMARY KEY( "id" AUTOINCREMENT) ); with this data : 4 22117593 ETHUSD 3907.30 ; 3914.14 i want
Hi all I have finished an EA, I want to use it for my demo account for all symbols with timeframe M15. Is there an easy way to do it ? I don't want to open the symbols and drag and drop the EA to them one by one Peter
  Optimizing EA  (8)
Hello everyone. Recently I optimized my Expert Advisor (EA) with the Fast Genetic Based Algorithm tool, I set an inicial balance, start date, end date, modeling, symbol, time frame and delays, I chose the parameters I wanted the tester to modify, when it finished, I selected a combination that shown
I have built a function for my bots, basically when you optimize and then backtest one good setting, it prints the settings like this 100,t,f,234,t,f,0.1,4,6,7............ etc Then on the ea i have an overide box, if you insert this code >>> "100,t,f,234,t,f,0.1,4,6,7............ etc" it overides
Could you please tell me how to properly apply copyright if the source code consists of several files? For example, the source code is split into ~20 mqh files, and .mq5 is just a wrapper. Should I write some comments in each mqh file (I hope not)? Or will it be valid if I add some LICENCE.md (I
MT5 version 5.00 build 5062 on 3 Jun 2025 Code to reproduce attached. I have discovered that MT5 overwrites any dynamically-created object's member that contains the name of the <current chart symbol> with a <new chart symbol> when ChartSetSymbolPeriod(ChartID(), <new symbol>, _Period) is called
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
Platform: MetaTrader5 (Hedge account) Broker: [redacted] Issue: - Using Python module 'MetaTrader5' on Windows. - When I call positions_get (symbol="NAS100"), it returns empty, but positions_get(symbol="nas100") returns my open positions. - Because of that, my auto-trader sometimes thinks it's
//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnTradeTransaction ( const MqlTradeTransaction & trans
This code works in the tester, but not in the terminal I can go through iclose and the rest, but this was unexpected behavior
Hi I just tested an Expert demo, then realized this can be an extreme security risk. Some of the demos are connecting now to AI websites directly. In MQL language, you can request account information. This data can now be sent to AI websites, if the developer is malicious this is extremely dangerous
In Strategy Tester , the backtesting stalls when using all market watch symbols - see screenshots below. The Strategy Tester is stuck here for a very long time. It happens with other EAs as well. When running the same backtest multiple times, sometimes it finishes all tests and sometimes it doesn't
THE CASE DESCRIPTION I am running a lot of MT5 instances on one PC in order to test all the EAs on demo accounts before they go live. Because I need more than one instance of MT5 terminal on one PC, I am running them in portable mode. I have noticed also, that the newer versions of MT5 are
I want to know why my ea code has no errors but still can't upload my EA product. Notification to Telegram.ex5 compiled for debugging (version 113.4755, date 2025.05.28, flags 1000c40)
Socket keeps disconnecting after each tick. Is there any way to resolve this
I have made changes to several MT5 *.mqh files, but on right-click, the Git Commit entry is greyed out. How do I commit my changes