Hi guys, I have an EA compiled without any errors but in backtesting it wont do anything, just stucked. There is also no errors in journal. What I'm missing here: #property copyright "Copyright 2023, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.00" #include
Hey, I have been trying to write one function that would calculate LotSize regardless of the instrument, but it seems that despite all my efforts the program seems to throw weird lot sizes anytime I use it for index - ES or NQ. It's working good for forex, gold and crude. I am yet to try it fully on
Greetings All, If I may, Id like to start a discussion on how and why you choose which optimized setting to use after results. In particular, Profit v Drawdown. Or do you use Profit factor? I have attached two results as an example. Which of the two would you choose and why? * If there is already a
Hi , I am writing a code in OnTradeTransaction() event handler ,that whenever order hit stoploss i am taking it's position id of deal type DEAL_ENTRY_OUT and iterating HistoryDealTotal() to find DEAL_ENTRY_In for that position_id but problem is HistoryDealTotal() is holding only latest deal for
if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure). Enclosed: Call to close long and short Code of closing functions Figure show not all are closing void closeLong(){ int total = PositionsTotal ();
Hello great people. Kindly help me fix the error in my EA. It fails to pick trades. //+------------------------------------------------------------------+ //| BB_Ichimoku_AD_RSI_ATR.mq5 | //| Stricter Confirmation Logic v2.6 |
...please help...I updated my expert...what are the next steps and what should I do with the data...how do I adjust the expert to the update so that I can test it for better results...what should I do with the data from the update
When using optimization, the Drawdown % displayed for each pass is equity drawdown maximal. How can we get it to display equity drawdown relative? Equity drawdown relative is much more useful for testing EAs that scale with account size. I've seen this posted a couple times, but it seems like the
Hello MQL5 community, I'm developing an Expert Advisor in a netting account . the EA work perfectly but when i want to publish my ea i get these error messages: failed market sell 0.2 EURUSD sl: ... tp: ... [Invalid stops] failed modify #... sell 0.2 EURUSD sl: ... tp: ... [Modification failed due
Hi I have this message on my version 5120: "Resource indicator .. is compiled for debugging. That slows down the performance. Please recompile the indicator to increase performance." I'd like to, but I can't find the option to remove to avoid compiling with debugging. Could you help me? Thanks
How can I get SymbolInfoSessionTrade information using mt5 Python integration
Can anyone check out the following script, and explain why it has not yet generated any trade, and whether it well ever trade. //+------------------------------------------------------------------+ //| Expert Advisor: XBRUSD EMA Scalper - 30 Ticks Target |
I am building with the help of Gemini a code that reads the journal and checks for specific messages in order to enter a trade. For some reason the "MqlJournalInfo" function is not working on 3 different PCs that I tried, this is the code below and the error I get is "'MqlJournalInfo' - undeclared
Hello everyone, I'm trying to create an EA that reads messages from the Journal (e.g., "GBPJPY diver for BUY") to trigger a trade. I've tried using the JournalRead() function with the MqlJournalInfo structure, but I'm getting the compiler error: `'MqlJournalInfo' - undeclared identifier'. The
Hi everyone, here posting on a simple apparently stupid topic for the mayority of y'all but still struggling in it. I've been coding for some months and gaining more experience every time but there's still this aspect i'm struggling coding. I'd like to create a function that can work on all the
I have developed my strategy as very conservative trading system and usually do not place trades everyday and the conditions do not always happen with all pairs so trading activity or trading operations is not much And that's what I want in my strategy - and this logic am using makes 5% to 15% per
Hello there, I've been experimenting with AVX (and its derivatives AVX2 + AVX512) support in MQL5. - Assuming, and to some extend verified, AVX is being utilized by the compiler, if enabled, we should be able to see significant speed increase on some types of operations. - Due to the lack of
Hi fellow dev! I stumble apon something quiet disturbing concerning the strategy tester. I test the same EA with the same parameters twice. First test was with visual mode and the second was without visual mode. Both result where completely different. I made an hypothesis, since my strategy use
As the title says the results of my EA are significantly different in the strategy tester when the visual mode is disabled. I know this doesn't make any sense, but look at the results check the attached images to see the results. Anyone knows why this happens?? Much appreciated
Hi guys, One of my EA's implement various trading strategies and therefore I have a library of set files that constitutes a trading portfolio, i.o.w like for example 20 x different set files will be running on the same EA on one particular account. I am aware of ExpertAdd() and ExpertRemove()
Hi! I wanted to ask if someone could spot my 'logic' with regards to perfecting reversals wether bullish or bearish. Bearish reversal: High[ 1 ] > High[ 2 ] && Open[ 0 ] < Close[ 1 ] && Volume[ 0 ] > Volume[ 1 ] Bullish reversal: Low[ 1 ] < Low[ 2 ] && Open[ 0 ] > Close[ 1 ] && Volume{ 0 ] > Volume[
i want to do it via console like this, fully auto through batch console [Common] Login = xxx Password= xxxxx Server = Fxxxx DataFolder = "C:\metatrader5\mt5tester" [Tester] Expert = "4.31.45_s_gbpcad_h4_fus_wf10_8_v141.ex5" Symbol = GBPCAD Period = H4 FromDate= 2024.01 .01 ToDate = 2029.01 .01
Hello everybody As we know Windows officially support arm64 devices and also great MT5 work well But MQL5 Cloud Network Strategy Tester work only on x64 devices, can anyone help to make it work on arm64 windows11
Hi everyone, posting on another topic i want to FULLY UNDERSTAND so i can carry on in my journey 😅 I use a leveraged account with a 1:30 leverage , quite a standard one. I want to fully handle risk management aspect so I avoid or limit problems in my trading. Let me attach a screenshot of a random
Hello MQL5 Community, I am currently working on automating and troubleshooting MT5 forward testing and require the default tester.mqh file that comes with MetaTrader 5. Unfortunately, I seem to have misplaced or overwritten the original file, and I am unable to locate it in my installation. I have
Hello, please can somebody help me with this code? #include <Trade\Trade.mqh> CTrade trade; // Parametri di input input int FastEMAPeriod = 2 ; // Periodo EMA veloce input int SlowEMAPeriod = 4 ; // Periodo EMA lenta input int ATRShortPeriod = 14 ; //
Hello everyone, I hope this message finds you well. I am currently using the "MetaTrader5" Python library to obtain historical price data in a 1-minute timeframe. However, I'm facing an issue where I can only access data from the past three months. When I use the "copy_rates_range" function and
'SymbolInfoDouble' - no one of the overloads can be applied to the function call XYZ.mq5 501 9 could be one of 2 function(s) XYZ.mq5 501 9 built-in: double SymbolInfoDouble(const string,ENUM_SYMBOL_INFO_DOUBLE) XYZ.mq5 501 9 built-in: bool SymbolInfoDouble(const
I'm having a problem with my EA when it's used on higher-resolution screens (3K to 4K). The buttons appear extremely small, and the text is either overlapping or getting cut off. Here’s an example: On the other hand, there’s no issue at all on lower resolutions like 1920x1080 — everything fits
Folks, anyone know if it's possible to tile charts horizontally by an MQL5 api call or something ? alternatively, is there a way to set a hotkey for that ? thx

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.