MQL4 and MetaTrader 4 - page 61

I am fairly new to trading and MT4, so I may be making a very silly mistake. The problem that I am having is that I code an EA and then I back test it. Then if I shut down my PC and come back the next day, and I back test the EA over the same period on the same symbol, I get completely different
Can anyone help me. I have subscribed to a signal since 2 days ago, but until now it has not been copied to my MT4, even though the signal source has opened trades twice
Hello everyone. I have a question about the strategy tester. What's the real meaning of this input ? (photo) I have in my EA a Spread filter with a value of 5 - maximum of spread : 5. Is it similar to the input in Strategy Tester "Ecart" ? Thank you ! Hugo
Hello, I am developing a robot in mql4 language and I call the indicators I use in my robot from outside with the iCustom function. When I run this robot with VPS, will the indicators I call with iCustom work? If not, what can I do for this
Hi every one when i use Tickstory and Tick Data Suite in back test i have realy huge difference in the result even i use the same timeframe and the same servor (dukascopy) and the same expert advisor ..but i have big difference in the result can some one plz explain me why that
I am trying to decode an encrypted string (Encryption was done using php ) String was encrypted using AES-256-ECB with Padding mode as Zeros. and and if i encrypt the string in the mql4 using the same key , i get exact same encrypted string as the one i get from php. initially i was struggling to
Hello everyone! My EA freezes annoyingly when I okays (pressing OK) the parameter window after making some changes. I suspect the reason to be that the EA was still busy with the last known income tick (which I want to refer to as control from now). Thus, control kept moving around the blocks of
The previous episode is here . The rules are the same
Hello everyone, I got an issue with my close all function. Some days it will close other pairs also, i have no idea why because i check on magic AND pair. Note; The other pair that gets closed has another magic and another pair ofcourse. int closeAllBuys() { bool result = NO_ERROR; for ( int
Hello , i need help creating an EA based on the custom indicator (macd-osma-on-chart-mtf-v2) , so if anyone could help me please contact me for more details on what i want to do
The code //+------------------------------------------------------------------+ //| My Expert.mq4| //| Copyright 2021, John Doe | //| https://www.example.com|
I'd like to post an image but not sure how, words would still be enough to understand my problem thought. So here is the problem: I print information when conditions are met, but sometimes the EA would skip some dates and not print anything, yet it'd still place order in those dates. In my
hello everyone , I hope that you're having a great day , I was trying to use CHARTEVENT_CLICK to select the bar I want to draw Fibonacci On any timeframe the the indicator will draw 2 Fibonacci level , one on the current frame highest ,and the second on the highest close on 1m timeframe .. the
//+------------------------------------------------------------------+ //| Fine volumes.mq4 | //| eevviill | //| itisallillusion@gmail.com |
Hello coders, I've written the code below but it's not giving me the desired results. The code entails finding the profit of all of all current trades then closing them after a certain percentage of account equity has been achieved. Kindly review it and help me write the function to solve the
Hello, I created a trading expert adviser which trading thousands of trades with any broker and any pair. However, when I am publishing in the mql5.com market it is giving some errors let us say error 131 (volume problem - lots) //+------------------------------------------------------------------+
This is just some brain storming, I'm hoping for the community to chime in. I feel like I've soon written this code a 1000 times in different formats, mostly with nested if statements. int Total = OrdersTotal ()- 1 ; for ( int i = Total; i >= 0 ; i--) { if(OrderSelect(i, SELECT_BY_POS)) {
Is there a Period() equivalent that returns as shown in the actual chart or do I have to make this ? aka M5, H1, H4 etc. ? Or only in minutes like Period() ? Thanks
hi guys , i learned before to download with windows dll libraries ( urlmon.dll ) to download files , images or ... from internet explorer with URLDownloadToCacheFileW function . but now my internet explorer dont works! do u have any function to download this files with chrome
1. There is old bug where MathRand() used in this same loop not generating nothing new but it's still this same value https://www.mql5.com/en/forum/368587 2. Looks similar old error where usage of MathSrand() blocking trading.. and in any case of: MathSrand(TimeCurrent()); MathSrand(GetTickCount());
" The year 2038 problem is a time formatting bug in computer systems with representing times after 03:14:07 UTC on 19 January 2038" As datetime in MQL4 is double type, the maximum is of course in year 2038, which is just 15 years in front of us. Will everyone turns out using MT5 instead? Are MQL4
I have this code, which I'm must trying to show the daily drawdown. It generally works, but if the user goes in to change an input value, it resets the drawdown value. How can I get it to maintain the drawdown value? //+------------------------------------------------------------------+ //|
hi guys, i saw 2 different heiken ashi buffer numbers for 4 candle values while googling around how is that even possible! and which one is correct and how can i find correct buffer numbers from heiken ashi or other indicators?.... tnX for help in advance First Buffers: 0,4,2,3 double haOpen =
I need to make the EA work with only "one instance". I.e. I attach it to any chart for the first time and it works. If I then accidentally or intentionally attach it again to another chart, the second attachment should recognize that it's already running and do nothing. Leaving the label in a global
  Bad signals/service reporting  (218   1 2 3 4 5 ... 21 22)
I'm wondering, why so many users subscribe to this expensive SCAM GBP/YPY signal 1135? I subscribed, thinking it must be a nice signal with so many subscribers, and this individual(s) nearly blew up my account. Thanks, I reduced lots more than a half of what they recommended, I'm still alive. Well,...
In this thread I will try to describe about what the other forums and websites are discussing.
  PC slowing Down  (15   1 2)
I have been trying to optimize the slowing down of my EA and MT4 as much as i possible can and have found another way to do it but im not sure if i should or if its smart. Im running 28 MT4 and would need a few more. I just been reading about affinity and i was wondering if someone could maybe give
  erorr code  (2)
Hello friends I want to write a simple indicator as follows According to the close price of the week and day Or any time the amount of ATR of the same time Draw a line above and below the chart as follows high_line= close price+ ATR low_line = close price - ATR for mt4 #property
Hello everyone. I am studying MQL using chat GPT. I asked ChatGPT if I wanted to create a dialog where I could enter a number. At that point, I was introduced to a function called [InputDialogCreate]. This function was not available in my development environment. Does such a function exist? Answer
double Profit = AccountProfit(); for ( int i = 0 ; i < 0 ; i--) { double LowestProfit = AccountProfit(); { if (LowestProfit < Profit) { Profit = LowestProfit;