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
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
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
Greetings, I am struggling to get rid of a panel's close button. The reason to do such thing is, I successfuly created a CAppDialog panel with a guide found on YouTube, and one of the buttons should wipe all the objects created by the expert so far, but since it is irreversible, I want a
Hi, i want to use robot for hedgind strategy but this what is happened : Can U tell me why % change is different in "same" lots .... i add screenshot..... if it works like that the hedging strategy make no sense ..... ( one tine its 0.03 lots and 0.04% change and 0.09 lots 0.09% change and other is
Hello traders and developers, I’ve been experimenting with several Expert Advisors recently and noticed that optimization time in the MetaTrader 5 Strategy Tester varies significantly depending on the settings and number of inputs. I’m looking for some practical tips to improve optimization
Hi everyone, I’m using a hedging account in MetaTrader 5 , and I often have several open positions on the same symbol at different prices. I want to set one common Take Profit that will close all positions together — either when price reaches a certain level or when the total profit in USD hits a
Hi, After I run a test in the strategy tester, after finishing the equity chart and the message "Connection Closed" appears in the daily panel, it takes almost 2 minutes to finish the test, as if it were waiting for a response from the MetaTrader website. Does anyone know what might be happening
Hello everyone, I’m reaching out today because I have some questions about MT5’s data storage system. I do optimization backtests on local farm (slow, fast genetic, etc), and I noticed something : when I stop an optimization and restart it later without changing any settings, the previously
Hello, I'm trying to think in a way (If possible) of having an Expert which operates in multiple Symbols at a time, but I'd like to get your opinion on the best approach. I have seen this post https://www.mql5.com/en/forum/212858, which shed some light into the problem, but I would like to use the
According to the CExpert class (of StandardLib), we must always use the current symbol (_Symbol) or period (_Period): // See line 240 //+------------------------------------------------------------------+ //| Initialization and checking for input parameters |
Hi All I created an Expert only for hedge accounts only.. ie it is not for netting accounts. On the submission of a new product, I ticked the hedging only, not netting .. as i know it won't work but when it goes to validate, it looks like it's testing it in EURUSD H1 netting account... is there no
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.