Expert Advisors and Automated Trading - page 92

I have 2 MT5 that aren't on the same network, installed on different Windows computers. Both can trade the same account BUT I don't want them to be opened & ready to trade simultaneously. When I launch MT5 #1, I want it to close MT5 #2 (if it is opened) When I launch MT5 #2, I want it to close MT5
My EA still orders buy/sell stop (alway have a fix stoploss) and matches orders normally. However, at certain times when the market fluctuated strongly, my broker reduced the leverage to only 1:200, causing the stop orders to be canceled when hit price because not enough money . Can I calculate
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
Hi, I have the problem that when an object of the child class is created, the constructor of the parent class is called without notice. class ClassA { public : ClassA(){ Print ( "ClassA Constructor" ); }; }; class ClassB: public ClassA { public : ClassB(){ Print ( "ClasB" ); } };
  HIstorical Data  (3)
Hi everyone!! Can anoyone tell me how all this EA's test get the historical data since 2015, with every tick based on real ticks model? Thanks in advance
Hello: I have developed a trading strategy and would like to put into code. I don't want to learn MQL5. I am willing to trade the strategy for the code. Use it if you like it. I have almost finished the faux code and can make it available privately. All the Best Chris
I'm testing an EA. I noticed it sometimes opens positions (in strategy tester) with a volume much greater than my balance + leverage. How is that possible? I this screenshot I have 972 EUR balance and I'm using 1:30 leverage. It opened a volume of 0.97 on GBPUSD. Meaning a 97,000 GBP position. What
can i continute optimization if i did it for 2 years and i have new day .. i want to ad the results without start it frome zero
Hi all, Rookie/noob here, thinking he figured out the issue but failed again. I have been working on this for a couple days and thought i fixed it last night by resizing the arrays. As you can see below the close shows 1.10374 for the second last candle. Assuming based on the code is states that it
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 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
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
  Martingale  (1)
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
  Invalid Volume  (6)
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 =