MQL4 and MetaTrader 4 - page 8

Just recently around February 25, 2024 I began getting the above message and now I no longer have access to my EAs; as they won't work without being logged into my MQL5 Community account (they won't load up on the chart) . I have no problem going to my Browser and being able to Login to my MQL5
Hi, is the max amount of charts that can be opened in MT4 99 or 128? I saw on this forum that some people say it is 99 and some people say it is 128, so which one is it
Hello, I am trying to store one small value into file. Simple, Rule If file exist, read the value else create new file and store the value When OnTick condition executed, Rewrite the value. But i am getting an error 5011 and when i open the .txt file, it always empty and blank. How to solve this
As in topic what is the difference between them? Documentation in mql5 seems to be avoiding proper definition and examples for extern type
Hello Guy's Iam Newbie Im Getting an ERROR in Mt4 Like this Mentioned Below Need Your Help Community Thanks in Advance cannot open file 'C:\Users\Shaik\AppData\Roaming\MetaQuotes\Terminal\5D49F47D1EA1ECFC0DDC965B6D100AC5\MQL4\indicators\FFCal.ex4' [2]
Dear MT4 Forum Moderators, I almost lost my account due to the upgrade of Metatrader 4 from version 1400 to version 1408. The bots (EAs) were running there for many weeks without my supervisor. My bots are very reliable. However, I take a look sometimes on the mobile app. I noticed the account
Hey! I am trying to change features such as the color of candles and background color so they automatically load when the EA is placed on the chart, I'm not sure why this function won't load in the Mq4 file for the EA, so I'm trying to change the colors in a separate source file then #include it in
  Parenthesis  (5)
Has anyone encountered anything like this? I have extensive code, around 2500 lines. When I point the cursor at a parenthesis, it is highlighted the same as the corresponding opposite parenthesis. But when I mark one of the last brackets (last 4 right -} ), it doesn't highlight. So I find the
Hi all, Trying to find the highest amount of open orders but but this code gives the same amount for TotalOpenOrders and MaxOpenOrders. Thx a lot. Amir int TotalOpenOrders = 0 ; int MaxOpenOrders = 0 ; for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--)
Hi I have an EA that uses a higher TF to determine a moving average crossover then goes to a lower time frame to determine when to get into my trade based on my conditions. Is there a way to backtest this or optimize it ? I was told there isn’t a way in mt4 and wondering why this is ? My developer
[Deleted]
Hello, Is it possible run existing EA from a script/ea ? If so, is it possible to define the ea settings like Pair, Timeframe and parameters ? Thanks in advance, Manu
Hello, I am adding new feature in my EA, which close trade automatically when it fulfilled defined earning set by user and than it redefine with value again with new Account balance. Example : Account Balance = $1000 Target Percentage = 10% (10% of 1000$ = $100) When Account balance is above $1100
Hi, I am trying to write an indicator that puts an arrow below or above the current candle if it's Low/High is lower/higher than the Lowest/Highest value in the previous 120 candle but I can't work out why my code is putting arrows on every candle. Would appreciate some help. Here is the code
You may have already noticed that the most interesting things now happen mainly on the MQL5.community. MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred...
  OBJ_TEXT not showing  (11   1 2)
I just want to print a small OBJ_TEXT in the right upper corner of the main chart window showing SWAP LONG and SWAP SHORT. I can print the values and show it in a comment but OBJ_TEXT is not showing up at all Am I missing something? #property version "1.00" #property strict #property
I have heard rumours that Metaquotes will be phasing out Metatrader 4 soon. Is this true
Hello, I am changing my EA code from Pips to Point directly. Previously it was like extern double TP = 30.0 ; extern double SL = 253.0 ; int OnInit () { if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; if (Trading_Strategy == Scalping_TP) { TP = SL *
[Deleted]
  Toolbars disappear  (12   1 2)
Always when I re-start MT4 my toolbars have diappareared as well as my terminal. Whatever i try with profiles, it does not help. Anyone knows what I should do? Thanks.
Hi All, I am struggling to find either a standard or custom drawing tool in MT4 version 4.00 build 1280 that will allow me to draw a horizontal line between two chosen points on a chart, and then show the level in the price axis, or next to the drawn line. Today I am drawing the horizontal levels as
Hello everyone, Please I need somebody's help concerning this, I have tried everything i know but to no avail. After completing my EA and compiling, it displayed "Event handling function not found!" on line 1 and column 1, I checked everything about line 1 and column 1 but there is nothing to...
Hi all. I received the attached email from the broker with regards to hyperactivity on the account. Does anyone know of a way to work around this issue. The EA is a tick scalper. Is there a way to reduce messages or bypass them, or if anyone knows of a broker that allows this type of activity then
While adding an S&P500 index chart, I accidentally added the wrong one and subsequently added the correct one. Please can anybody tell me how to remove the extra index from my list. I know that I have to tick a little box and then delete, but I can't find out how to get box to appear. Thanks if you
Hello everyone I use this code to draw SL and TP lines. I have two problems: 1) I can't continue the lines until Time < Time[i]; For Example : Time[i-10] 2) Each time the indicator signals, the previous lines are not deleted to be displayed for the next signal. But this happens when the timeframe
Hi guys! I'm setting up a demo account and I'm preparing about 90 EAs. I'm using a third party EA generator that is able to set multiple strategies on the same file. Each EA will have about 10 strategies. In other words, there will be 90 charts and EAs running but actually about 900 strategies. They
I have been working on this simple expert for days, but it does not open any pending orders when you reach the preset levels BestLongPrice or BestShortPrice. Yet the logic is very simple. these values are set, you set whether the direction is long or short and set the entry and exit levels. the end
  POI
Hi. Is there any source code how to show POI snd more valid POI with FVG or IMBALANCE? Im not finding any source code for this. Regards
  MT4 to R interface ...  (23   1 2 3)
This is a MT4 to R library interface coded by 7bit Detailed description by 7bit (and some examples) can be found here : MQL4 -> R-Project - Interface Library Some more details on R itself (it is a free - open source, software project) here : The R Project for Statistical Computing
I was looking in the documentation and I only find run-time casting (<dynamic_cast>) but I was wondering if static_cast is available in MQL4? If not, is there a workaround to implement static polymorphism in MQL4
As the title says, are built-in indicators pre-computed in the strategy tester? I was wondering if the only overhead for theses indicator functions (i.e iMA) is just extracting the values from the buffer? I couldn't find anything the documentation, but I don't want to assume things
Hello, Even when Automated Trading setting is turned off, EA functions are getting called. Is this normal? or it due to some error?. if ((!Close_Buy_Limit) && Buy_Limit && trades_count(BuyLimitMagic) == 0 && istochastic_16 > up_level) { ResetLastError (); gTicket = OrderSend