How do I put the ex5 expert files or the closed code indicator correctly in the related post? In which category should I share
Hello everyone. I came across a strange behavior where there were wrong results in non-visual backtest. Finally I realized that retrieving custom indicator values using CopyBuffer on every new tick(up in OnTick function) resolves the issue. Does anyone have a similar experience and can you make it
Hi, I'm experiencing a problem with the CustomRatesUpdate function. The custom chart "breaks" and I get undocumented error messages in the "Journal" tab. The problem surfaces very often (not always) when the server time goes from one day to the next. Here are the error messages: 2021.01.22
Hello everyone, I’m trying to create a new user account on the MT5 server using the following Python code, but it’s not working as expected. The connection to the server seems to succeed, but the user creation process either fails or does not return the expected result. Here is the full code I’m
Hello there, I'm trying to save some values to file for analysis. First, I get the open and close times for each week, and then I use them as the range to find the day of the week with the highest and lowest price. That works fine but for a few iterations. For this sample, I was collecting 52 weeks'
Hi. A question for the people. Is it possible to sell an EA on the market, if the EA is connected / relies to an indicator i made myself? Or do i somehow have to rewrite my code so the EA can trade on its own without the custom made indicator? Regards Sebastian
Hi everyone, I’m working on creating an Expert Advisor (EA) in MT5 that uses the Heiken Ashi Smoothed indicator. Here's what I want the EA to do: Open a long position when the Heiken Ashi Smoothed candle is green . Open a short position when the Heiken Ashi Smoothed candle is red . I’m new to coding
Hi everyone, Does MQL5 has a functionality to send messages via Webhooks as in TradingView? This could allow any type of MQL5 information to be send to many different outlets (e.g. Discord). I have found several pay apps, but this strikes me as a basic functionality, plus I would like to see the
Hi all First time posting, ill try and explain this as best I can Currently using a bot very similar to dark venus - on EUR USD, its a martingale bot that I use to place trades on ATR, The bot is run at 0.01 per 1000, 40% SL. So the trades place in a sequence of 0.01, 0.02 0.03 etc with a take
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
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
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.