MQL4 and MetaTrader 4 - page 89

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;
Hi, I'd like to know if open market order buy and sell at the same time with the same price (e.g candle open price) is possible
Hi. I use MT4 already more than 10 years. Recently I change my stile of trading and start using around 20 windows at the time. My computer start to behave extremely slow. A transfer between M15 and M5 takes around 30 and more seconds. I use Windows 8.1 Professional with 8Gb memory on a 6 cores CPU...
Hello guys, sameone know how to manage this situation? Basically in my ea before to open a new order i want check if i have another trade with that symbol open and in that case i want skip i new trade
In MT4, I buy one Ethereum for $1827.02 at leverage 1:1. My margin (as shown in the attached sceenshot) calculated by MT4 is half of the price ($913.51). Shouldn't the margin be exactly as much as the price (as I am using 1:1 leverage), instead of half of the price
Hello, please anyone help me write code in Mql4 for trailing pending orders . For instance when I open a buy position, I want my stop loss to be the same as my pending sell stop and trail them as market moves in an uptrend. Same for opposite Thanks
I have an indicator that tracks max drawdown during the day. I have it displayed on the chart with a text object. Problem is, that if the user changes an input in the indicator (to move the text to a different corner), I have to delete the text object and then it loses it's value. How can I create a