I am baffled but suspect there is an easy solution. I have been trying to understand how to use Python (and AI) in conjunction with my MT5 EA. I use the Visual Studio CODE application. I have made some initial progress - i.e. can Initialize, login , retrieve account data etc. I have been accessing a
Hi All! Im having a problem using the strategy tester. After an update of mt5, the strategy tester is not respecting the stop loss or take profit anymore. (picture attached) The code is simple and it was working perfectly before. And it is working in real time in a demo account too. I tried...
As I was writing my code (posting it is not relevant for this subject) I've run into some problems related to various functions where I declared parameters as const& (constant references) to objects. These errors were caused by the library. When I looked in the library code, sure enough, no method
hi friends, I have been testing my EA that's doesn't have a panel info the test goes faster but when its have panel info its so slow can take the hole day but now I decide to have two copies one with panel info and one without a panel info for faster test I realize that without a panel info the
Hi, I am testing my Gold 1 minute EA, and it's giving me different results on different brokers though all brokers I am testing are ECN and good reputable brokers but at the end of the day results are always different. I understand there is always price and order placement difference but still some
Please anyone should help me out on this EA. It's opening perfectly based on the indicator signal but i added a martingale feature which will happen after a loss trade. but it's not working . please check the code. #property copyright "Copyright 2025, AGTech Ltd." #property link
Hello traders, I wanted to build a simple code that shows my name on a Rectangle Label. So, I wrote it as follows: //+------------------------------------------------------------------+ //| Object test v1.0.mq5 | //|
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
I have an issue with a suspected Memory Retention (Bug?) in Container Reuse (CArrayInt). I tried ChatGPT but could not get much from it, but it took on the onus of drafting for me a detailed query that precisely describes the observed behaviour and the concern I'm facing, including relevant
hi guys i have this code when i switch in gold in M15 draw the trend line resistence, if go in M30 not draw a trend line resistence #property copyright "Copyright 2012." #property link "stfn77@gmail.com" #property version "1.00" #property description "Automatic trend lines" #property
Why cloud network services show disconnected? how to fix it and make it connected
Hey everyone, I’ve spent the last 8 months trying to build a profitable Expert Advisor (EA), and honestly, I’m starting to lose hope. I’ve developed multiple EAs during this time - some showed great results on a single pair, but as soon as I tested them on other pairs (even after optimization), they
I am currently testing new and improved versions of standard indicators in the Wizard and I'm getting much better EAs. If you have improved versions, please share here so we can collectively benefit. I think it'd be better showing the code instead of attaching a file. This way we can discuss it and
Sir, I backtested into 10,000 steps optimisation and it took 50 minutes and cost $9.45 in MQL5 Cloud !!! Please see attached this Photo Anyone have good solution low cost in MQL5 Cloud
In MQL5, can you pass function parameters in any order as named parameters? Google Search says that you can, but it doesn't compile. Google Search sample code. This doesn't compile. void OnStart () { MyFunction(param3 = "new value" , param1 = 10 ); //param2 uses the default value
Hello, I'm looking for an EA for the Propfim Challenge that isn't too expensive. Thank you
Hey guys I'm new to using MT5 and have been developing some EAs recently all has been going well with backtesting for the last few weeks then all of a sudden the visualisation just stopped working? if anyone can help with this would be very much appreciated. Thanks
Hi everyone, I coded an EA that uses an ORB strategy. You're also a trading expert, so you're familiar with this OPEN RANGE BREAKOUT strategy. My EA is supposed to plot high and low lines for the first 15 minutes at the London and NYC openings. I've set a lot of parameters to customize this MT5
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
I have this EA code that seems syntactically correct, but it always fails to compile with an "unexpected token" error. The error appears on different lines each time (like line 75 in the attached screenshot), even though the lines look correct. I have already tried cleaning the code by pasting it
Hello, I am testing on an old account with thousands of closed orders on MT5, that is more than 4 years old. When using functions like HistorySelectByPosition, the entire terminal freezes. I use this function to track the profit of the closed trades when they close. I have also profiled the EA, and
Hello, dear traders! I have noticed the optimization with Cloud Network using only 32 agents but in past (in start of the 2025) was about 440 agents in start of the optimization. Does anyone knows why using so few count of agents
Please, if this function or the complete code is available, I would be grateful to you
Hey all, is this a system error or an issue with my product ? Any way to resolve this ? Thanks in advance
Could some review my code which I've attached below and let me know why do I occasionally get Error Code 10016 indicating it's an Invalid stops ? For reference here is one of the many log messages I receive in the MetaTrader 5's Journal 2023.06.02 00:23:36.885 Trades '5013799956': failed modify
Hi, I'm trying to calculate lot size in a such way so that it will fit in account balance and satisfy broker's margin requirement. The complexity is added by the fact, that my account is in AUD and XAUUSD is in USD. Here is my current calculation: double marginInitial; double marginMaintenance;
I'm writing an EA using mql5. It works fine when I use MetaQuotes Demo Account but when I switch to my brockers' demo account. It throws an error message in the journal when it opens positions: 13:00:12.294 Trades '45767': failed market buy 10 EURUSD sl: 0.99529 [AutoTrading disabled by server]
Ive come across a warning when writing an expert advisor that I don't understand. I have some ideas on why I'm getting it but was hoping someone could clarify. I'm getting the warning possible loss of data due to type conversion warning when compiling the code attached. I know this error is normally
Hi all, After completing the optimisation of an algorithm, I'm unsure how to choose the best result. I often notice a discrepancy between the forward optimisation and the general optimisation results—so which one should I rely on more? Additionally, I've come across a few inconsistencies in the
I have a python script, which I rented a MT5 VPS and run it on its Python Editor. The code does backtesting, based on this it calculated how long should live trading run. But live trading tends to terminates around the 2-3 hour mark. I have print statements on the code for show if termination is due
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.