Hi, I am using mt4 for automated trading. I put mt4 on the cloud computer. I use rdp to log in to manage my cloud computer. I found that remote login using rdp will occasionally cause my mt4 program to terminate abnormally. What is the problem?
Hi, guys! I already got accustomed to surprises with every new version of the MT4 platform, but this one is really frustrating: struct Util_32bytes { uchar data[32]; };struct Util_4ulongs { ulong data[4]; };Util_32bytes raw;Util_4ulongs long4 = raw; This code should work according to the...
Hi, I want to do a bot that will do these steps : When i open an order ( for example in long position) and the price reaches a X number of pips close in "take profit". But if the price go down of X number of pips open a new order in sell. How can do it? Thanks and sorry for my bad english. P.S :...
Hi, I (mt4 b1065) created 10 little rectangles at the lower right corner and and changed their size acc. to the image BUT, they do not appear as objects in the object-window (ctrl-B)? Anybody else with this experience? Beside that I cannot (de-) select them e.g. do delete them manually.
Hi, the indicator below stopped working a few days ago and I'm struggling with the problem. I attach the indicator which is not auto-refreshing the arrows and also the EA in which you can see the indicator is always returning the value "0". Indicator #define VERSION "2.0"#property copyright...
Hi Im new in Mql4 and Im trying do this Variable Lot: Ordem 1 : 0.01 Ordem 2 : 0.02 Ordem 3 : 0.01 Ordem 4: 0.02 ...... Can anyone help me ? Tks
I'm using Wine in Debian Linux. I can't get it to find the common data file "com" which I have placed inside /home/l0l/.wine/drive_c/users/x/Application Data/MetaQuotes/Terminal/Common. Print("TERMINAL_COMMONDATA_PATH = ",TerminalInfoString(TERMINAL_COMMONDATA_PATH)); The previous command yields the...
Hi, I utilized an indicator, saved the template (hi.tpl), and then tried to load it but it doesn't work. I always received error number 5002. Any advice? long Chart_ID[1] Chart_ID[1]=ChartOpen(" EURCAD ",15); //1 bool x;
Is there a way to edit what you see in the MT4 data window box? I would like to add time to my data window. Right now I only see the date, and OHLC prices - can I add the time? If so, how? Please and Thank you everyone.
Hi all, How do you clear the cache? Or are there any issues with the MT4 that would cause the platform to slow way down? I have assumed it the cache needed clearing but there may be another issue? Thanks.
Hi, I need an EA/indicator to communicate with each other to add and bring a control of the equity of two MT4 terminals My strategy is a hedge between two mt4 and I would like (since my broker does not support multiterminal) I would like to keep a control for days/weeks on the benefits between the
Please tell me how to get the time of the highest 5 minute TF candle during the last day only?? thank you for assist ..
I managed to open charts automatically using OpenChart() function. The question now is how to automatically Apply an EA to charts using MT4 functions. I need to select an EA and a setting file and then apply them to a chart ( or a number of charts). Is that possible? Code? Thank you in advance.
Hello, I am trying to get the high value at a certain period of the day. For example, when it is 11 pm, I want to retrieve the high value at 6 pm To do so, I use iBarShift() to get the shift and then apply iHigh() to this shift The problem is that very often the iBarShift returns -1 meaning that
[Deleted]
Hello, I know, this topic was often discussed here, but I have still questions. I try to get values of this Indicator https://www.mql5.com/en/code/7760 for my EA. In this topic https://www.mql5.com/en/forum/138577/page3 I found this tab(thx to whroeder1): Indicator EA Indicator filename without...
Ive been trying to add a messagebox to my indicator only to find in the mql4 documentation that it isn't possible to display this as an indicatorAs stated on a note on the messagebox function : The function cant be called from custom indicators, because indicators are executed in the interface...
Hi, Is there a reason why this code doesnt work? if (TimeCurrent()==StrToTime("04:59")) I want my EA to perform an action at 04:59 am... but this code doesn't seem to work. Thanks a lot.
Greetings all, So I have in active use the indicator (called CFP). I am trying to read the mq4 file and understand how it works, but dont get it once it gets to "subroutine". Can anyone who understands mq4 programming decipher this for me? What I have so far is this: For example, GBPCHF will do this
Hi All, I am fairly new to coding MQL4 and this might be something simple. Basically this indicator should display the daily Pivots on the selected chart and timeframe. If I attach my Indicator, it draws the pivots perfectly... but as soon as a new day begins, the old pivots still show and does not...
Hi I need to have a backup for my curent Win 2012 r2 VPS server. So basically i am thinking of buying a second Win 2012 r2 VPS, and install a new MT4, and login on the same trading account as the other VPS uses, and use the exact same setup on my expert advisor as on the other VPS. **Note that my EA...
Is that a way to let the indicator update the chart once, and for the subsequent, it will remember the old results rather than update every tick or candle? I am asking this question since I only let the start() run once with the following code: bool first=true;int start(){ if(first){ //my code...
For MQL4, will it include the .mqh header files multiple times (or does it matter?), if say one header file makes use of the header files we already included? If yes, how to prevent that?
Hello mql4 coders. I myself have some knowledge of this codes but I think have reached my limit of getting this EA to do just what I want. So am pushing it open to everyone who knows more than I do to help. Its kind of simple with plain words. 1. The EA is meant to buy if the last two candles are...
I setup my phone to receive push notification. This was setup successfully I even done the test. I coded support resistance zones with alerts, this alerts appear on my computer as requested. But I still not receiving such notification on my phone. What am I doing wrong? Can anyone help? Thanks
Hi Peoples; - Have irksome problem with personalising Profiles, Templates & Indicators etc.. Having changed chart to desired format with style, colours, Indicators etc - then saving the template... selected "black" background colour reverts to white default... I have several Indicator charts to...
Is there something like a stringbuilder (Java) or stringbuffer (C#) in MQL4 that facilitates fast string append?
https://docs.mql4.com/basis/function/parameterpass Heres the code above, 1st Method #property strict //I added this one, not sure its gonna mean something for thise sort of code but Im stil a beginner n wanted to add it in.//+------------------------------------------------------------------+//|...
Hi guys, So when I activate "show object description" in the chart settings, my lines will display a little text on top with the given desciption. Can i somehow change the alignement of these descriptions so that the text appears centered between start and endpoint of the line? Thanks! :)
Hello I am trying to understand why in example below my EA stops and I receive array out of range error (pointing that problem is in following line: Print( "15 mins Rates time: ", mqlrates_array_15[0].time); My entire idea is to be able to refer to MqlRates of different timeframes of the same...
Hi, I was trying to install EAs on my VPS base in NYC. I cannot install anything. Even my VPS provider cannot fixed. I got this error messages all the time : 2017.05.15 17:18:11.853 MQL4 Market: failed parsing info about purchasing a product 'Tipu MACD' 2017.05.15 17:18:11.853 MQL4 Market: failed...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.