MQL4 and MetaTrader 4 - page 14

I added an edit box to adxvma indicator, allowing change adxvmaperiod on the fly, and it tested ok, but then I failed to redraw the chart. I've successfully fixed this kind of problem with a most simple ma indicator, and it has a oncalculate() structure. But with this one, I admit it's too
Hello everyone, I'm looking for a solution to the following MQL4 issue. I wrote an indicator that draws histograms in the chart window. I noticed that when the chart reaches the specified candle count limit, it still draws an additional 128 candles and then deletes the oldest 128 candles to return
hello to all Honestly, I don't understand the difference between OrderTakeProfit() and OrderProfit() functions. For example, if in buy positions on EURUSD and USDJPY if the entry and current prices are like this, what are the values ​​of these two functions? lotsize = 0.2 EURUSD ٍEntry = 1.0640
  Resolve warnings  (5)
How do I resolve the warning on this code line return NormalizeDouble (basePrice + ( double )steps * stepPips * multiplier, MarketInfo( Symbol (), MODE_DIGITS)); Compilation warning possible loss of data due to type conversion Meta EA.mq4 47 79 your help will be appreciated Improperly formatted code
I have coded an EA and whenever I try to remove the EA from the chart Mt4 gets frozen for some time and then I receive the message "EA shutdown by time out" in the experts log. and sometimes when I try to remove the EA it just closes down the Mt4 as soon as I click the Remove option. the way I am
Hi to All, i need to call the same custom indicator (superTrend) more time in my EA, for current bar, and for historical bars. After backtest, in the chart, there are to much superTrend indicators, it seems one indicator for one iCustom calls and noticed a slow performance by MT4. There is a best
Hello MQL5 Community, I’m working on a function to calculate and display the profit summary for specific periods (weekly or monthly) based on trades with a particular magic number. However, I’m encountering an issue where the profit summary shows individual profits for each month but does not
When i extract a value from a textbox using: Value = DoubleToString ( ObjectGetString ( 0 , OBJPROP_TOOLTIP , 0 )) It works fine when you convert it to a double and print it. However, when i try to add 0.5 to the value, i get incorrect results. For example, the result of Value + 0.5 is 50.05 instead
Hi everybody, I used to basket close all the open trades on Friday 23:30 automatically by setting TimeDayOfWeek(TimeCurrent())==5 in my EA. The problem now is what if today is Thursday and tomorrow Friday is a holiday (off-trading day), is there a command to detect automatically whether a broker's
//+------------------------------------------------------------------+ //| test.mq4 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
IMO, there appears to be no Complete EA within the mql4.com's Code-base or Articles for that matter of fact. There always seem to be something missing. I'm going to use the definition straight from the source allot of people recommend for learning to program mql4; the Book . In addition to that
  Blessing Ea  (9)
Anyone tried out Blessing EA? What about Forex Magic Stick?
//+------------------------------------------------------------------+ //| HighLow.mq4 | //| Copyright 2024, MetaQuotes Software Corp | //| https://www.mql5.com |
HI all, need help to check why my EA is not making any trade on MT4 VPS. I migrated it and no errors appear, but then it is not making any trade. Did you see anything weird/incorrect I should correct
In MQL4 is it possible to create a two-dimensional array whose first dimension is a number and the second is a string? If the answer is yes, is there a way to sort it? Like this : Array[ 4 ][ 4 ] = {{ "USD" , 1 },{ "EUR" , 4 },{ "NZD" , 3 },{ "CAD" , 2 }}; and after sort : Array[ 4 ][ 4 ] = {{ "USD"
hello I downloaded tick data from Dukascopy in csv and need now to convert in fxt to handle in mt4; in fact the import from csv handle only m1 as a minimum). Can someone tell me how to do? The script " csv_to_hst.ex4" do not work anymore in new builds. (I understood that fxt is needed and not hst
I trade in the US where the FIFO rule applies. However this rule does not apply if your trades use a different lot size. I contacted my broker (forex.com) to ask why MT4 platform always rejects a closing order if it was not the first trade in a series. I was told that the forex.com's web trader
Hello everyone. Indicator handles do not exist in metatrader4. So how do you make sure if indicator is available and iCustom is returning a valid number
Hi, Using Strategy Tester with "Every tick" model option it goes in second level testing, while the lowest data is in minute level (M1). How is this possible? Can I test in minute level? Thanks
I was trying to use the Debug button on MT4 for Mac (downloaded from MetaQuotes website), but it looks grayed out. Is this disabled on Mac, or did I forget to do anything along the way? Any way to get it working? Thanks in advance
hi im Tarek i bulled mql4 program and when program size more than 50000 line the program not work when program size less than 35000 line work very well the question how to bulled program more then 1000000 line and work very well in mql4 ? is mql5 can do it
hi all i have quite recently encountered a problem with METAEDITOR for MT4 being able to use the STORAGE Is this a universal thing MT5 does not give this problem Please advise and guide Alister
So ill try to keep this short and would really appreciate some help I have connected Broker-MT4-MQL5 all on my iPhone I have been trying to access MT4 on my Mac book. The files are downloaded on my Mac book but I feel there is something more, I never see an interface on MT4 on my Mac, it simples
I checked that when the lot size is below 20, the margin requirement is correct. However, when the lot size increases to around 50, the margin requirement increases by an additional 9,000 USD. Why is there such a large difference, and how can I handle this in MQL4? margin required to open 1 lot
Hi, I would like to publish a free robot , but the validation system is indicating errors. If there’s a simple solution to fix them… great. Otherwise, I'll let it go. Thanks for your advice. test on EURUSD,H1 2021.04.01 03:00:00 Moo_Deng EURUSD,H1: OrderSend error 131 2021.04.01 04:00:00 Moo_Deng
hello   is there a hack that allows to know, within an indicator, the expert name that is on the same chart as the indicator?   thanks a lot   Jeff 
The ZigZag MQL4 code is not drawing on the chart. Where am I going wrong in using this indicator that it does not draw the ZigZag? Thank you. //+------------------------------------------------------------------+ //| myzigzag.mq4 | //|
I'm reading through some of the threads here and on other forums. Some things sound astonishingly promising, other things sound totally discouraging. I see that Newdigital has posted a fantastic amount of data here. Must spend much time, very appreciated. Looking at the EA results, some fantastic...
Hi fellow coder, I created a rectangle label, but i struggle to make it opaque. Its transparent and i don't know how change that. You help would be welcome, THANKS
I hope this message finds you well. I am currently facing an issue with an expert advisor on MetaTrader 4, and I would greatly appreciate your assistance in resolving it. The error I am encountering is "Initialization failed (32767)" . I’ve checked the code and attempted a few common troubleshooting