Expert Advisors and Automated Trading - page 22

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
  Expert Advisor  (5)
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
[Deleted]
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
[Deleted]
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
Struggling to have a variable value assigned and remain assigned. If(delta>=x){ Sigma=y;} But when the IF statement becomes false my sigma value loses its previously assigned valve. Anyone know the coding required
Hi. I have my robot, which I compiled without any problems. As well as the custom TDI (Trader Dynamic Index) indicator, which works fine. When the person who wrote the code sent me the .ex5 file, it worked fine. But once he provided me the .mq5 file, which I converted to .ex5 (because I needed to
I've set up a computer with 2 x e5 2683 v4 processors. Each CPU has 18 cores and 36 threads. When I installed Metatrader Tester 5, it detected that it had 32 agents. Can I add up to a total of 36 agents on the computer? Are there any limitations? In the agent list, it appears as "Intel Xeon." It
I created an EA based on the Ichimoku cloud strategy without Optimizing it, it works good on the EURUSD pair however if I used the USDCAD pair the performance is directly opposite to that of the EURUSD. is it fine to reverse my logic for the USDCAD pair , such that I enter long when I get a short
Came across this earlier and think it's pretty useful for Multi Symbol Portfolio Analysis. I've converted the code provided in this video: https://www.youtube.com/watch?v=3FV8PTikKc0 So that it dynamically measures the Value at Risk of the open trades on the Account. Note: the issue that I'm having
Hello, I have a question regarding backtesting with imported tick data in MT5. I read that with MT4, the last 2048 bars are always overwritten. If I create a custom symbol in MT5 and import my exported tick data (tick and M1) for it, and then want to view the chart, will the data be replaced with
I am getting a Unknown Critical error on line 14 while single stepping through XmlParserScript.mq5 in MetaEditor. why? How to fix? string res=xmldoc.SetXml(xml);
I'm just starting to program with MQL5 and I'm looking for a simple program to learn about trendline breakouts with price lines