***UPDATE - SOLVED I should have done some more digging. I had to specify FILE_ANSI as a file open paramter. described here...... error when reading file.txt!! why print a txt in Japanese? Hi everyone, I'm trying to read some numbers from a .txt file which is opened in the OnTester() function. The
Any idea why my EA is clearly executing around 300 trades a year in visual mode on 3 symbols simultaneously but when I try to optimise, many iterations have 0 trades, and most are 0-10 trades with the odd one at 20ish. This is weird since the code is the same and it works fine in visual mode
Dear colleagues, When running the automated validation tool to publish my EA, I get the following error. test on EURUSD,H1 (hedging) tester stopped because OnInit returns non-zero code 1 disconnected //+------------------------------------------------------------------+ int OnInit (){ if ( _Period
The title says it all—I need to use the economic calendar for event handling during backtesting. However, as many of you know, the CalendarValueHistory function in MQL5 doesn't work during backtesting. After researching, I came across this solution: https://www.mql5.com/de/forum/319172 . While it
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way
Hello, I was running strategy tester on my home server and noticed up can I could make some side cash using the MQL5 strategy tester service, I booted up my second PC and downloaded the tester program. Once i opened it up it only shows overview and services, it doesn't show the MQL5 cloud network
So I understand fully how orders, deals and positions work, but I got a question about an EA trading on multiple pairs. My EA trades on multiple pairs, with ONE order on each pair each time, and several pairs traded simultaneously now at each new bar, I want to close the positions that need closing
My EA algorithm parameter optimization starts with a blue screen. This has never happened before. Does anyone know the reason
I had something interesting happen, i optimized an EA up until the start of september and I figured I would re optimize it. just for fun i ran a single backtest up to the present date (a month and a half out of sample) and the results were great, i was starting to wonder if I even had to reoptimize
Hi guys I'm writing an expert and I need it to stop opening positions and close all positions and orders 1hour before important news time how can I do it? I searched a lot, all is about using MQLcalendar but there is not such a file named "MqlCalendar.mqh" in my metatrader5 I tried to reinstall and
Hi Can anyone help me with this import error? I did get numpy 1.19.1 installed and I still got this error. I am using conda enviroment. Please see below error message. Thank you so much for your help. import numpy as np print(np.__version__) 1.19.2
Hello, the idea of the economic calendar itself is nice and great but there are several news flagged with the wrong impact. For example US CPI events should be high not med. Is there any solution available to fix this? The EAs I’m using can only filter by impact. But I cannot use high or medium
The Automatic validation is giving errors that I can't reproduce in my computer. Let's review just the first error of [Invalid Stops]. Here is the code to review the freeze level and adjust SL & TP void ReviewPositionModificationForFREEZE_LEVEL( int direction, double tp, double &newSL
I've got an ea that downloaded all available ticks from a broker for a symbol . It reached 250 million ticks , and , the MqlTick structure is 52 bytes per tick. (13 gigabytes) It placed it all in memory .I've got decent RAM on the machine so it held. If someone with 8GB of RAM runs it will they get
I tried to export ticks data using Python and I got the data, but I don't identify what does 2, 4, 6, 312, 344, 376 flag codes means
It appears that the Swap cost calculation in the MT5 strategy tester may be incorrect. A Buy trade on USDJPY was initiated on 2024.11.11 and concluded on 2024.11.15, with a volume of 0.25 and a tick value of 0.64125995. The trade opened on Monday and closed on Thursday, with the swap amount being
I get this error, '"2024.11.13 17:01:52.157 Experts automated trading is disabled due to EA being synchronized with virtual hosting"
Hi When I press the button to download the robot it always downloads to the same terminal. But I want to download it to another terminal. Can anyone advise how to get it? Thank you
I'm learning to write the code to enter long/short after spotting engulfing candle but some how it' s always invalidate all my trade regardless of condition met or not T_T
Each sell goes with a buy, if a sell is closed in its take profit, how could you put a take profit on that corresponding buy that was sent at the same time as the sell trade. This is my code: //+------------------------------------------------------------------+ //|
Theres a lot of rubbish being marketed out there on the internet about how expert advisors make a lot of money, I have tried a few and they all fail sooner or later usually in 3-6 months. My question is has anybody been sucessfull in coding a full auto EA that actually consistantly makes money with...
Hello Is it possible to set a conditional stop in MQL5? For example if Variable1==true How? BR Joze
Hello developers, I have write this, becasue I have sreached everywhere and still find no solution. I appriciate any help in advance, Problem: I have a panel which is bitmap object with lots of objects above it on the chart, I want to draw a line on the chart, but the line must appear below the
Hello everyone, For the past few weeks, I have been encountering an [invalid stop level] issue with a robot I am developing to trade in the Brazilian futures index market (WIN and WDO). The problem is that my robot enters a trade and places (plots) position increase orders on the chart if the trade
Hi All, Sorry for another pipe vs. http dll question, but I don't think it's been asked before whether you can use pipes in Strat Tester on remote agents in your own network farm. I've been trying to run an EA that communicates through a named pipe (using the stdLib CFilePipe), and it all works in
Hi all, I'm relatively new to coding, but can someone take a look at this code and tell my if there's a reason the trades aren't triggering in back testing? I'm getting no errors back from MetaEditor, and the defined variables are how I'd like them. Just not getting any trades lighting up in MT5
Hello, I am creating a multi-symbol EA (22 symbols) and need to change the iCustom conditions before each pass of the OnTimer(). My OnTimer is set to 15 seconds. So, there is a lot of time before I use the new settings. I have a INT to switch what happens when the timer is triggered. The first pass
Hello I am getting this error in validation pass, can someone help me out with this thing ? Attaching the code and the error screenshot. What should I add into this to avoid this error ? int myOrderModifyRel( ENUM_ORDER_TYPE type, ulong ticket, double SL, double TP) //works for positions and orders
Hello, I do most of the code in python then connect MT5 in order to create a bot. However i just found out that MT5 has good support on backtesting . Is it possible to export python to EA or i have to rewrite all the code over again in EA

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.