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
Hello, I have a problem with this library, socket-library-mt4-mt5.mqh. Basically, I built an EA //+------------------------------------------------------------------+ //| TERMINAL_IN_OUT.mq5 | //| Copyright 2025
Please, help me understand what’s going on — and if I can stop worrying. I have a frontend using TradingView’s Advanced Charts library. On the backend, I have a Node.js service that acts as a public REST API layer and persists data to a ClickHouse database. This backend communicates with the
Hi aony one have experience about exchange data to WM_COPYDATA ? exist some library i not find nothing about it in forum , i must create a dll for work with this
When we push left click the following code help us to do something(for example comment something): void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id == CHARTEVENT_CLICK ) { Comment ("something"); } } I want to do something
Hello everyone, I have developed a trading strategy that relies heavily on functions such as iHighest , iLowest , and iRSI . The logic works very well on standard timeframes ( M30, H1, H2, H3, H4, H6, H8, H12, D1 and W1), but I have reached a limitation: The predefined timeframes in MT5 are not
Hi everyone, I’m learning how MQL5 handles external web requests. I want to understand how we can connect and fetch simple JSON data from an external API just for testing purposes (for example, weather data or demo information). Could anyone please tell me the best method to call such data securely
Hello, My EA is not an automatic trading bot — it’s a manual trade assistant. It only helps with easier trade entries, automatic stop loss and take profit placement, etc. However, I cannot pass the MQL5 Market validation test. I even added some simple code for the EA to open and close a few trades
Hi everyone, Is there any tool, script, or EA that can send a notification (push or email) whenever another EA opens a trade? I just want to get alerts when my Expert Advisor opens or closes positions on my MT5 account — without modifying its code. Thanks in advance for any recommendations
Hi! I know many already use AI to help them place orders manually through chats and report easy gains. On here i see many EA in the topCharts are AI based promising to interact with AI to place and manage trades for you. Since there are usually no backtests possible i would like to start this thread
I can't use the strategy tester on the cloud, it randomly stopped working. I have sufficient balance, there is no issue with connectivity, I am using a VPS and it shows I have plenty of bandwidth. The strategy tester works fine on local agents but it is really slow so I want to use the cloud
Hi, I've come to a bit of a hiccup. In 1 of my programs, I need to make automated chart screenshots. The function for that is: ChartScreenShot(chartId, fileName, ss_width, ss_height, align_mode); Prior to that I ChartNavigate to some time in history, where bars_navigated is much larger than...
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.