Expert Advisors and Automated Trading - page 10

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
  hedging strategy  (4)
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...
Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1
I spent lots of time looking to find a script that will help me to set a manual TP and SL for mutiple positions opened in one direction at once Can someone help me to find one ? it would be great also if the scripts can do the same for pending orders
Sorry to ask such a noob question. This has probably been answered before, but I've tried every way of phrasing this question in searches that I can think of, and have found no answer. Very often when a backtest finishes it does not seem to display the results in the "Results" tab of the "Strategy...
Hi, I'm a beginner trader from Norway looking for advice. I started trading XAUUSD manually two months ago with $1100 using TradingView connected to a Pepperstone account. The first month was a disaster, and I lost 35% of my account in a few trades because I didn't set stop-losses. My second month
  Need harmonic EA & Indicator  (161   1 2 3 4 5 ... 16 17)
Hi, Can someone make this harmonic EA for Eur/Usd and Usd/Chf please ? Input : Today open price ( gmt.00 ) BUY at = open price - 27 pips SL = 50 TP = open price SELL at = open price + 27 pips SL = 50 TP = open price The EA should only take place one time a day.wicht come first, SELL OR BUY