MQL4 and MetaTrader 4 - page 17

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 : "
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
Hi every body I write mql4 expert advisor which put two pending position at lower and higher of a channel. when one of pendings hit the other pending is deleted. when I put expert in one pair chart it works good but when i apply this to multiple charts for multiple pairs, the second pending cant
Good morning, I attach EA that operates on the breakdown of the levels of the MTF xSupertrend indicator The code also provides the possibility of entering a fixed take profit, which has not worked for some time (perhaps because the code was written several years ago). by entering any take profit
I use a martingale strategy in MT4 (not MT5 yet), and sometimes it is obvious price is going to overshoot my TP. I want to be able to change the TP on all open trades simultaneously for a given pair. It would help to be able to enter bulk SL as well for a pair, especially to enter bulk trailing
Hello, ‌‌I have used web mt4 few days, t‌he functions is quite good but I could not find how to close chart in web mt4. a‌nyone could help this ? T‌hanks a lot.
In the first code the condition open_b is verified, in the second never. The only difference is the bar shift, I need one more condition on the 0 bar so I incremented the bar by 1. Why this happen? CODE 1 : //--------------Trading criteria------------------------------------------------- 5 --
Hello geniuses I have faced a problem with the swap I want the amount of net profit for each order to be constanted It means to apply the amount of swab in pip toTP for every order i use OrderSwap() to get its swap then if swaptype = 0 it mean OrderSwap() is in point, then it needs to convert to
Hi, I´m developing this mql4 EA, long story short, I´m stuck trying to place a pending order when all the condition are satisfied, and with an open price 10 pips less that the Ask value when all the condition are satisfied. The EA works well until the opening price is "Ask". I did a couple of try
Hello All, I made a purchase this morning and cannot seem to install it on my MT4 platform even after following the instructions listed below. Open your MetaTrader platform Specify your MQL5.community login and password in Tools - Options - Community Open the Market section and go to the Purchased
  error 129  (7)
Hello traders, I have following code which give me error 129 even all looks OK. Any idea ? Krzysztof RefreshRates(); double closePrice = NormalizeDouble (MarketInfo( Symbol (), MODE_BID), Digits ); Print ("Closing short position at ", closePrice, " Bid