Expert Advisors and Automated Trading - page 39

Hi Folks, I was testing an EA and it was running perfectly fine on my PC. I added it to live charts, and it is very laggy now, I thought it may have been the VPS, but I turned off the VPS and ran it direct to my PC and the issue still persists, it is very laggy and also when checking the VPS with
In MT5, in the Strategy Tester , debug tab, if I try and display the values of my expressions of type "input", the value in the debug tas shows as "unknown identifier". This function used to work fine but just stopped working properly around 1 month ago. I figured it was maybe a bug that was
MT5's 'Bulk Operations => Close All Positions' is much quicker compared to closing positions individually using a 'PositionsTotal()' loop. Is there another way to close all positions as fast as possible? Regards
Hello there, I am doing backtesting with mql5 programs. I have found that the "visual mode" is always active, I cannot desactivate it, when I am in debugging mode of an expert. This leads to the fact that it can be quite slow, until I get to where I want. Question: is there a way to "force" the
i am trying to link my ea to a vps - these are the errors i am encountering, how do i fix this? tried several different things and nothing has worked as of yet. any help much appriceated - thanks, kyle
Hello, I'm trying to read a value from a csv file. Everything works fine when I attach the EA on a chart. The problem is only with the strategy tester . As per the documentation : The file is opened in the folder of the cli ent terminal in the subfolder MQL5\files (or
The latest build has lots of errors. Mainly 2: 1: The new build only works with Numpy 1.xx. It is not working with Numpy 2.xx or above 2: The new build throws a error "Cannot find reference 'initialization' in '__init__.py' metatrader5" For most functions like initialization() The solution i found
***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
  lot size on EA  (3)
how do I change the lot size on a EA on XM platform
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
  Will the EA crash ?  (17   1 2)
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
  Order  (1)
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