I'm a little rusty on my coding, but used to code C++ in Qt and KDE. The Medtaeditor reminds me very much of C++. I was coding the Ichimoku editor, and decided I liked the idea of using object oriented programming with CiIchimoku. Right off the bat I noticed that the Chikou data was retrieved by
Hello friends I want to know how can I get LocalTime() Or TimeCurrent() while using strategy tester. As Default during testing in the Strategy Tester , TimeCurrent() is simulated according to historical data. I need the time that are not refers to historical data. is there any DLL to get current
double var_dbl[ 5 ]; long var_long[ 5 ]; void OnStart () { ArrayInitialize (var_dbl, 123 ); ArrayInitialize (var_long, 123 ); ArrayPrint (var_dbl); ArrayPrint (var_long); //Result //var_dbl[123, 123, 123, 123, 123] //var_long[0, 0, 0, 0, 0] } Everyone can test it. Fix it please. Thank you
Is it possible to make the Strategy Tester to Optimize EA running it automatically multiple times over a range of time windows? So, instead of picking a static Start and End dates, I want to make the End date = Today, but the Start date to start from 2024.01.01 run my EA backtest and then re-run the
Validation when publishing Expert Adviser I received a "Not enough money" error, how can I fix it? No issues were encountered in backtesting or live trading
while(!FileIsEnding(h)) { string str = FileReadString(h); } Journal: 2025.06.29 01:40:56.806 MQL5 VirtualAlloc failed in large allocator, size=555032 Experts: 2025.06.29 01:40:56.806 (EURUSD,H1) out of memory in 'MyClass_File.mqh' (1310,15) The (1310,15) is string str = FileReadString(h);
The period switch of the chart in the K-line playback function of MT5 disappeared. How to restore it
Basically I just want to be able to check if there are news events so I could pause my program momentarily for a few minutes to avoid volatility
I am having issues with my simulations, it happens visual mode my expert works as it should, but when I try non - visual mode, shows a lot of mistakes , my expert is a multiframe expert that looks for several timeframes from biggest to smallest with confirmations in several times. I don´t think it
Hello. I have coded EA and when start testing figure out strange things ( may be it strange just for me :) ) but want to understand how it possible. Test in Roboforex : test in ICMarket : Positions was opened and closed +- with the same price and same lot , but Roboforex make 161.62 $ lost and
Hello all, I am getting these messages "no real ticks within a day" in the Journal tab when running a EA test. It happens with EURUSD, XAUUSD, USDJPY, and more. It happens in two different computers (one running Linux and another one running Windows) It happens for any EA I tried. It happens while
Hi everyone, I’m trying to get 1-minute candle data for XAUUSD covering the last 20 years, but MetaTrader 5 only seems to provide data for the last 2-3 months. I’ve heard some users might have accessed longer historical data or something. Can anyone share how they did it? Are there specific
Hi all, I've been searching through the MQL5 documentation and forum, but I can't seem to find a way to programmatically control the screen position (X, Y) of chart windows in MetaTrader 5. I know that we can control the chart size using: ChartSetInteger(chart_id, CHART_WIDTH_IN_PIXELS, ...);
Hey everyone, I'm running Python 3.12.5 and trying to get MQL5's MetaTrader5 installed and running. In an empty venv (I purged the cache just to be sure), I use 'pip install MetaTrader5' which installs the package and also installs it's one dependency -> numpy. So my virtual environment has just
Hi I'm trying to upload my Expert Advisors for Market. However I face error with automatic validation. no trading operations error 131 ERR_INVALID_TRADE_VOLUME I visited the page of how to fix but I don't understand &description that is in the function. bool CheckVolumeValue(double volume,string
Can someone assist me in understanding what I might be doing wrong that is causing the issues with the progression in strategy tester. It seems to get hung and won't progress to give me results. See attached. Any guidance would be greatly appreciated
Hello everyone, I'm facing a recurring issue while running Expert Advisors (EAs) on MQL5 VPS, and I’m hoping someone can shed some light on what’s going wrong. Everything starts off working perfectly — my EA is attached to the chart, synced to the VPS, and trades are being executed regularly
hi guys, I think I have an issue with some of my codes specifically when i upload them on telegram and then re-downloading them after a while like 2 3 days, on telegram and windows that file's size is 44kb but when i open in metatrader editor there is nothing inside. how this is possible
Hi Is there a way to optimize an EA without any fees ? to be able to see if a strat has an edge, regardless of the fees (that skew the results) I know you can in MT4 (just set zero spread) but I wasn't able to do it in MT5. thanks Jeff
Hello. I've just updated my MT5 to 5.00 build 5120. I'm running it with /portable When I start strategy tester I get this error (on every symbol, every date range, local agents, remote agents, whatever) When I run without /portable it works fine. It doesn't even create the Tester or
Hello! I have a problem when backtesting a custom symbol "GER40". When I do a backtest, the first trade opens but printing some errors (log attached below). This error makes the visual test freeze for some seconds and if it's not done visually it still appears in the log of course. The error says
Hello guys, my problem is MT5 MIX all trades from all timeframe that each bot make from charts.Ex. EA trade on char 1" 100 DEALS and same ea on chart 3" 200 DEALS,with other magic number. Thanks and please, let me know if there is a better way to treat this problem (using chart)
I don't think it is possible to set a start time and an end time in backtesting, you have to take the default 00:00. Is this something that will be changed in the future? This would be a very useful feature, if available. Thanks
I've been trying to fix days for 2 days straight. i am not sure what is going . the EA rejects all symbols except USDJPY and it's broker variant with suffixes.. why is the autovalidation check for EURUSD.. of course it will not pass!!! how do I fix this
Hello everyone, My MT5 EA works very well when I execute it via the Strategy Tester, but it fails the validation when I try to add it to the Marketplace. I would appreciate any suggestions, ideas, thoughts
Experts tab : 2025.06.26 13:35:57.116 HybridLiquidityEA_v1.9 Most updated (XAUUSD,H1) ORDER ATTEMPT: entry=3310.69 sl=3310.99 tp=3309.79 lots=1.00 stopLevel=0.00000 2025.06.26 13:35:57.116 HybridLiquidityEA_v1.9 Most updated (XAUUSD,H1) OrderSend failed: retcode=10019, comment=No money 2025.06.26
Suggest adding a function for Python to call Strategy Tester. Currently, Python cannot call Strategy Tester and Strategy Tester Visualization, so it is recommended to add this functionality
How come the code line below does not Normalize iLow to the 2nd decimal place? this.low = NormalizeDouble(iLow(Symbol(),Period(),shift),2); int shift = 1; I can't figure it out
For five days now I have been trying to download an expert to sell it in the MetaTrader 5 market, and yet it fails the test. I am trying to fix it and follow the instructions, but to no avail. I hope someone can help me. test on EURUSD,H1 (netting) 2022.02.10 19:52:20 failed cancel order #101 buy
Hi, Stuck into a problem. Using the standard MoneyManagement modules results in OrderCalcMargin always returns true and margin 0. in AccountInfo it's that call OrderCalcMargin (trade_operation,symbol, 1.0 ,price,margin) which with further execution leads to the usage maxvolume of the symbol

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.