MQL4 and MetaTrader 4 - page 26

Sir, I learned this MQL5 Programming but I want to practice this MQL4 Programming because What is the result difference b/w MT4 & MT5 in my Real account . I am getting error "Order Modify Error 1" too many times.... Please use this OctaFX Broker MT4 Terminal ....because you are using another broker
After many years with working with EA and optimization, Now I stuck in funny problem which I can not understand. I coded a EA when it run with Tester I see the result ... but when I run it with same parameter in Optimization I see only zero result!! No matter you run the test in Every Tick or...
2010.05.27 13:16:21 TestGenerator: unmatched data error (volume limit 1547 at 2010.05.19 18:00 exceeded) This is a common error in the tester, I'd like to see what the mql4.com community says about this - there are ways a strategy can create this by having too large lot size, but is there...
Hello, Logic i am looking for : If floating Balance is less than 1% in negative of account balance => Close the trade (OR) if floating balance is less than $100 in negative => Close the trade Code : extern int negative_equity_percentage = 1 ; extern int negative_equity_balance = 50 ; double equity =
  convert ex4 file  (1)
How to convert text into a ex4 file? Please help
hi guys i have a ridiculous problem! i have a folder with name "Free" in indicator window. I have 3 indicator in it when I use Meta Editor. when try them on metatrader, there is just one file. I refreshed but nothing. close metatrader and reopened, nothing! I even opened that single indicator from
know PC problems, I lost my mt4 master password, how can I request a new one
Hello everyone, I encountered a strange issue on MT4. I deleted an expert advisor from the navigator window, noting that the EA was actively running on multiple charts when i did this. After deleting it, I exited the MT4 program. Launched mt4 again, I checked the expert tab to confirm the EA's
Hi, I cannotfigure out how the profit is calculated in MT4. I know thatusually you look at the profit in terms of Pips, but at the end of the day Ineed to know how many Euros I’ve got in the real world. Is thereanyone who can help me understand how the Profit in terms of Deposit Currencyis...
Hi all, So i'm having issues passing the pair string input for an indicator im trying to use within EA. When using the indicator directly on a chart and entering the required symbols as inputs I have no issues and the indicator displays as expected, however when calling the indicator via iCustom the
Hi everyone I want to know if my code is actually efficient when it runs, I looked and ask on another forum and people told me to use GetTickValue() to test it. I looked into the documentation and implement it on my code and return a value around 950 to 1050. How can I interpret this value and what
Hello, What will happen when: 1. I subscribe to given signal on my local mt4 machine 2. I logoff from this mt4 account locally 3. I will login to the same mt4 account on my VPS . Will the signal still be copied? If, not how can I synchronize it? Background. I use Linux VPS with WinE, and I could not
As the title says Auto Trading turns Green and Red approximately every 30 seconds. It happens on multiple accounts which I have running on a vps . I have all the "Allow" boxes ticked but still does this. Can someone please shed some light? Thank you in advance
[Deleted]
I am trying to set Indicator buffers and make the Moving Averages a specific colour but its not working only 1 buffer is set "MA 1" and the colour is black
Hello MQL5ers My EA is not acting as I wanted it to be. My intentions were as follows: The EA is supposed to be suitable for Indian Stock Markets where stocks are price based with min tick size is 0.05. Somehow back test results are not matching up as per the orders getting executed. For example as
Hello. I am getting this error when uploading any Mt4 ea to market. If anyone else is having this problem please post here and lets see if this is an issue that everyone is dealing with. Thank you test on EURUSD,H1 strategy tester report not found
Hi, in the following code why is it on market test when i tested once it passed okay But when i try again about 30 minutes later with the exact same code it says "test on EURUSD H1 strategy tester not found" #property copyright "Copyright 2023, Stephen J Reynolds" #property link
Hello, I am unable to add more to comment. string commentText = StringConcatenate ( " ---------------------------------------------" , "\n :: ===>EA<===" , "\n :: Spread : " , MarketInfo( Symbol (), MODE_SPREAD ), "\n :: Leverage : 1 : "
[Deleted]
Hello Forum, good day.   I started out learning MQL5 a couple months ago and now need to translate an EA to MQL4 because the broker I will work with hasn't make the upgrade/migration to MQL5 and MT5 yet :(. Reading the docs, so far I've encountered several differences mainly on the way that orders...
I am new to mql.  I am attempting to write my first tester robot based off of the HeikenAshi indicator that is provided in the metatrader editor.  In my EA when I try to call CopyBuffer the compiler does not know what that function is. Is there a dependency that I am forgetting?...
Hi. I have a problem with MetaTrader 4. I tested a robot on a demo account and VPS. Unfortunately, today I saw that the message "old version" appeared in the lower right corner of MetaTrader and the connection between MetaTrader and the internet was lost. My question is, isn't this MetaTrader a
  Midnight candle  (2)
Hello I request help in coding the function I will explain below, I have already written some part of the code but I am unable to code a function that identifies the open and close of one hour midnight candle. The logic is that EA identifies one hour midnight candle close and open then drop down to
i have been given a indicator without mql4 file, just a ex4. im trying to build a Ea with it, is it possible? the indicator gives me buy and sells signals and it prints arrows on the chart wheneever theres a signal, the only 2 vlue that the indicator is giving me back are: sell signal: (with a value
Hello, What is correct way to add if else statement. Type 1 : if (TradingAccountType == "Demo" ) { UserTradeAccount = "Active" ; } else { if (TradingAccountNumber == "" && TradingAccountName == "" ) { UserTradeAccount = "Active" ; }
  Magic Number  (3)
Hello everyone.. Sorry for asking, how to set the magic number value for manual orders on MT4? Thanks
Hi guys , Please i need help with contents for my Heiken Ashi candles EA . I have the functions below,   HA1=iCustom(Symbol(),0,"Heiken Ashi",1,i);  HA2=iCustom(Symbol(),0,"Heiken Ashi",2,i);  HA3=iCustom(Symbol(),0,"Heiken Ashi",3,i);  HA4=iCustom(Symbol(),0,"Heiken Ashi",4,i);  I want to know the...
Hello, I am fetching news from http://nfs.faireconomy.media/ff_calendar_thisweek.xml and it save the file inside terminal/MQL4\Files as FFCPing(Symbol)-ffcal_week_this.xml (eg, FFCPingGBPUSD-ffcal_week_this.xml). I have added a code to check this file every 2 hours and overwrite it to new version
I am very new to using MetaTrader 5 however I am not new to trading. I have been trying to connect demo accounts to the platform so I can get used to placing orders and doing analysis, However I'm unable to connect to any. I am currently in Ghana for a holiday, I could suspect poor connection
I have set out a load of variables which are to be sent out in an informational (is that even a word? It should be a word ;)) email when a position is executed. Everything works as programmed and an email is indeed sent when a position has been successfully filled by the broker. However, despite
Is there a way to get readable English data from the alerts.ini file, that I can use for my application