Expert Advisors and Automated Trading - page 30

Hello all, I have been developing EAs for a little while now and have noticed not every broker or server provides the same amount of data. For example on EURUSD you may be able to get the data from now to 2020 for a 1 hour chart but if you switch brokers you can get the a longer period of data for
Hello Folks, Does anybuddy can tell me, how the CScrollV works? I have a CScrollV in my Panel, an the CScrollV Element packt with dummys. One is allway overlapping down there, but most confusing is: I can not tell, how to get the Entrys move, while scrolling (I can move the ThumbBar) I can not put
Hello, I am seeking a method to get deposit and withdrawal record by code. MT4 and mT5, any idea and experience share ? Many thanks
I know how to publish settings to VPS, but how can I view the settings on the VPS at a later date from within MT5? I know there are journals but is there any easy way to see my EA settings? I have multiple VPS so it would be able to click a button to see the EA settings
I am trying to get my EA working that calls on Open Ai API for chat gpt to make trades automatically based on current price and history. Maybe news too. But i keep getting these errors - Yes i know my API key should not be hardcoded but for testing purposes i have put it in. Also open ai api url is
Hi, I'm working on an indicator which makes the same calculation process for each symbol of an internal list selected by the user (for exemple : EURUSD, USDJPY, etc...). The event which initiate a new calculation process for a given symbol shall be a new tick of this symbol. Important : This...
Hi, I ran an EA on Strategy Tester and it seems like the profit calculated for the trades does not match the lots and the pips. For example, as you can see in the picture there is a trade of 3.84 lots opened at 1.43611 and closed at 1.44403. This results in a profit of 2106.11 according to the...
Hi! I added into my EA that my positions should close on a specific day of the week. I understand that the int values for each day of the week is as follows: Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 Sunday = 0 The code I made is as follows CTrade trade; input double
I am running into an issue, where every time I request the DEAL_ENTRY, only DEAL_ENTRY_IN is returned. This occurs no matter if I am looking at a ticket for the entry of a position vs the ticket for the exit of a position. Based on some research, this may be a bug. If this is correct, what is the
[Deleted]
Hi everyone, after having optimized my EA, the table of the results shows 23% as max drawdown. However, when I run the optimization variant with right click "Run single test", the drawdown is computed to be 87%. What could be the reason for this issue? Is there a way to fix this from my side? Thank
Hello i have a problem running optimization on an EA that i am backtesting. Here's the situation: if i run the optimization assigning 4 EA parameters different values for example moltiplicator from 1.2 to 1.5 tp from 20 to 40 maxorders from 8 to 12 i get a bunch of results. I was thinking that i
Hi Friends I am using an Expert Advisor on a VPS environment, also allowed modifications of settings. But, when try to change the trade lot, it still opens a size other than what I requested. Please advise how to fix the error. Thanks in advance
Hello everyone, I'm running into an issue and was wondering if others have seen this issue. I run lots of automated backtests with these settings in my .ini file that starts the backtest from my Node.js script : // Node.js example testerGroup.addVar( "Visual" , "0" );
I've been seeing strange account data in the strategy tester for the last 5-6 days at the bottom, where account information is displayed. Please see the screenshot. Previously, there was margin data there, such as the free margin percentage. This is regarding the MetaTrader 5 strategy tester. How
Hi , i am currently testing my algo on XAUUSD , my strategy is based on how the candles close, my entry is done only after the candle is closed , and also my exit rules are as follows: one tp ,one stoploss , and 3 more rules that close the trade based only on how the last candle closes , so for my
I am trying to run my EA on [redacted] tick data but the data quality is only 8% when I run it on 3 or more years of data. Does anyone know a broker that has a similar price action to [redacted] ? How did you resolve this issue? Thank you in advance
Hello guys, I want to send calendar information via API but when I retrieve data as the below code, it returns a number without format, I want to receive the data which is shown on MetaTrader Calendar. Please help me. How can I do? Thanks in advance. void CalendarData() { // Define the array to
I have made a trading bot with python that works with MT5 using the MetaTrader5 module. it fetches data from MT5 to my program and sends back a request for position. now I know that the strategy tester in the MT5 can be used to backtest expert advisors, but I wonder if there is a way to use the
Dear All I am trying to make a code which modifying pending order and open order on the same time, but I am facing an issue I made it to change the pending order, but it is not changing the open order. the code is sending an pending orders ( sell limit, buy limit, buy stop or sell stop ) and it is
Hi I have already done some tests with the metatrader5 successfully, but now always comes the error message :history cache build error. Unfortunately, I have google so far no solution for the problem can find. Does anyone know how to fix the error
Hello, I coded a multi symbol EA that works properly. By default, the strategy tester optimization results show unified metrics for all symbols combined per pass. I'm trying to modify it, so that, per pass, it generates the result metrics for each individual symbol per pass. I've been trying it for
Hello mql5 people. I am currently working on the optimization team for a project. I am a hobbyist coder and have coded a couple of my own bots, however for this project, I do not have access to the code. I was back testing without any problems until the version of the bots, licensing expired. As
  Currency change  (1)
Can we trade in other currencies like INR with the bot? If there are any settings that need to be modified for this, please let me know
I will run the same EA, on the same instrument, and it will run quick, and then all of a sudden, it almost wipes my whole account with a 2 days, 17 hours
2025.01.15 09:19:46.758 ResistTheBroker (ND#,H1) CTrade::OrderSend: market buy 1.06 ND# [auto trading disabled by client] 2025.01.15 09:19:46.758 ResistTheBroker (ND#,H1) Failed to execute trade: 4752
Hello Forum, I am using the MT5 version for MacOs (M3 chip). I created a custom .dll to import into an EA, but I keep getting "Cannot load 'Custom.dll' [126] " error message. I also tested the .dll on my windows computer and everything is working fine. I both tried to locate the file into
Hello, I have a question, when buying an EA from the market it has a limit for activations, most of the times is 5 or 10 activations. What are the limits of the activations? When the activation is taken into account, every time it's opened in the same metatrader install, or in every computer, or I
  EA  (1)
Hi can you help. I changed some settings in the EA and synchronised with VPS but next time I looked EA reverted back to default settings And every time I change settings do I have to synchronise the VPS. I have a mql5 VPS
Hi. I want to do optimization of many of my strategies of MT5. But For my Windows PC, it is taking a lot of time plus I must keep PC ON for 24*7 (+Electricity Cost). Instead of that I am planning to buy Ubuntu VPS and install MT5 in that and start optimization, So I don’t have to keep my pc ON all
Complement of the new year. I need help to make sense of the tester results. I have developed several EA for Mt5. When I optimize the EA using the same range of parameters with two different laptops, I get different set of results. Further, when I take optimized results/parameters from one Laptop