Hi, from time to time I observe the situation that MT5 deletes a full month of data, which affects (breaks) the EA logic. Any ideas how I can avoid this?? In the image above, you can see that data between 29.12.2023 and 1.st Feb 2024 is missing. As if there was nothing. Only the remembered trades
Hello dear Dev. I noticed something with my platform, and I wonder if someone has an explanation. After dropping an EA on the chart, you are asked to fill up the input parameters. Later on you can modify the value of input by following one of the two methods : 1. Re-attach the EA to the chart 2
The documentation is no help. From what I can tell researching it, Exchange Mode is a netting mode. Can anyone confirm or deny this for sure
Hello everyone! I'm currently facing a challenge in identifying errors in my code and I'm curious about the best ways to search for specific topics and solutions. This includes searching both on the web and within the MetaEditor. For instance, I've been advised to use Google search like
Stack # Therefore, for large local data you should better use dynamic memory - when entering a function, allocate the memory, which is required for local needs, in the system ( new , ArrayResize() ), and when exiting the function, release the memory ( delete , ArrayFree() ). Why does the
Hi is there any one who can help me to make this Ea to trade Synthetic Indices like volatility 75 step index because now this Ea trade only currency
Hi folks, the documentation for copy_ticks_range in the Python API says: "When creating the 'datetime' object, Python uses the local time zone , while MetaTrader 5 stores tick and bar open time in UTC time zone (without the shift). Therefore, 'datetime' should be created in UTC time for executing
Hi there fellow traders, I am trying to place a grid when I open my initial position. The orders in my grid are pending orders and are increased in lot size when they get closer to my stoploss. However, the initial stop loss and take profit remain the same. I think I'm on the right path however the
I just started learning code, and finally the MetaTrader Editor confirmed I had no Errors or Warnings in my code, but when I tested EA on mt5......it refused! It just said that the OnInt Failed......I dont even know whats wrong becasue the MetaTrader Editor confirmed no errors, so I cant even get
Hi, I have an EA that has a strategy which includes 2 integer input parameters I can change to do backtesting. So I did some tests varying between ranges I know are possible (one is a switch-case from 2 to 4, the other is a count of candle bars that have occurred since the start of the last
I've noticed that after copying history with CopyRates MT5 keeps copied array in memory. It's ok for cached access but when I run through lots of symbols my memory ends fast. And memory stays occupied until MT5 exits. Is there any way to forcibly release memory occupied by CopyRates cache
Hi, I have downloaded my brokers MT5 and trying to test my EA. Everytime tester resets the settings to default values and makes impossible to save the latest setted parameters . How to fix? Any suggestions will be welcome. Gr
Hi, This is driving me crazy but I have come to conclusion that you just cant use file access in the OnTester() function. But I hope I am wrong and someone can help? I am wanting to write data out as part of the Strategy Tester Optimisation. I can open and write to a file in both OnTesterInit() and
Hey folks, I hope you can help me out, because I'm at a loss here. Here's my problem: I make an EA on fxdreema (I can't code). Simple trading strategy, nothing fancy, involving some EMAs and price breaking though one of them by some minimum distance. Simple trade management with a trailing stop
hi.. i wanna make EA will Close Order 1 by 1 from frist order , this code mql4 is succses , but when i try to mql5 with same way, im always get message " failed prices for 0 [Invalid request]" this code from Mql4 .. void CloseOrderPartial2() // Close partial Buy { int orderstotal = OrdersTotal
Good morning Guys, this is my first project and I'm not able to validate the function for Martigale= false, to reset the martingale value when the operation is successful, can someone help me. #include <Trade\Trade.mqh> // Declaração do objeto de negociação CTrade trade; // Entradas do usuário input
double lot = NormalizeDouble ( fmax ( 0.01 , 0.5 *iStartLots), 2 ); trade.PositionClosePartial(tk,lot,iSlippage); Error in Journal... 2024.01.30 00:36:36.832 Trades '24046': failed market sell 0.07 GBPJPY, close #6130450 buy 0.06 GBPJPY 188.082 [Invalid volume] "iStartLots" is 0.13 as input double
//+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2020, CompanyName | //| http://www.companyname.net |
Good day Here is some code that takes a larger time frame and divides it into 1 minute candles and sums the volume of each of the 1 minute candles. I expected this to equal the same volume of the larger time frame but is seems like the iTime function is sometimes returning the incorrect start time
Hi, I'm desperate to finish this. I have an onnx model Inputs dense_input tensor FLOAT (- 1 , 130 , 1 ) Outputs dense_4 tensor FLOAT (- 1 , - 1 , 1 ) and can't make this EA work //+------------------------------------------------------------------+ //|
Hello, I purchased an EA and whenever I try to load it on to charts I am getting this error in the journal: initializing of (EA NAME) (ASSET) failed with code 1 It runs fine in the tester but does not load onto charts. My developer is not having this issue and it is not a broker issue. I also tried
Hello, when I try to add an expert to my mt5 I always get this error: mt5 initialization of expert failed with code 0 (prepare to execution failed) First I thought it was because of my Implementation but this even happens when using a Metaquotes-example. What does this error mean
OK, I appreciate that none of you are mind readers, but have any of you come across the following error before, and if so, did you manage to get to the bottom of it? The piece of erroneous code is shown here... static void Cards::AddCards() { string symbols[]; int count =
Good day, im looking for some support on getting my GraphicInterface to show up in the Chart. Im using MQL5 to write my EA and using MT5 to test. it. The EA is compiling without any errors in Meta editor, The Experts window is printing: 2024.01.30 11:03:28.989 CTM_TradeManager_EA (GBPUSD,H1)
void OnStart () { string sym = Symbol (); bool cus = true ; bool is = SymbolExist (sym, cus); double last_high = SymbolInfoDouble (sym, SYMBOL_ASK ); Print (sym + " : update " + last_high); double hi = last_high + 100 ; double low = last_high - 200 ; if (is) { bool ok
Hi everyone... I have a code that works well, but when for example the slow ema crosses the fast ema and the ea has to sell , It works but sometimes immediately after this the next candle makes the cross over to the way that we have to buy so the previous cross over was fake actually and the ea
Hello, I have attached the code for a function I am using to move the stop loss to break even. I do not see any issue with the code, but I am obviously missing something because it is not working. It is supposed to iterate through all open positions, and if a position is 5 pips in profit the stop
With the most recent update, it seems Metatrader 5 is having issues with the strategy tester. I attempted to update MT5, but I already have the latest software it seems. For your reference, I am using Version 5.00 Build 4158 26 Jan 2024. This is the exact message I am getting on the Journal tab of
Hello ... I just can't find the right answer in the forum. So I hope there are some specialists here who can help me. I have 10 expert advisors on my real account and would like to only have a maximum of 2 running at any time. the Expert Advisors all work very well. Only if everyone places orders at
Hello, has anyone seen this error when trying to validate an update to the market? test on EURUSD,H1 (netting) EURUSD: no history data from 2020.04.01 00:00 to 2020.08.01 00:00 there are no trading operations Do you know the solution to this problem? I've seen many, but never this one. Thanks in
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.