Download MetaTrader 5

MQL4 and MetaTrader 4 - page 672

To post a new topic, please log in or register
Hi all, I am coding an interface in C++ and ncurses. I simply need to connect to MT4 through DDE, retrieve market prices (ex EURUSD) that I will be storing into arrays and make an analysis realtime. On the DDE side the only resource I have is the MSDN, but i'm getting lost in all the bits and...
Hello i want to protect my ea!? I can make it work on 1 account and also make it work for a limeted time (period protection) But i want both!! account number protection and period protection! How must i do that? Your help would be welcome
Hello to the forum. I have an unusual problem regarding a time filter. In backtesting the filter works well ( no problems ). When running the EA on a live account, the filter still works well, but there is a problem with the difference in server time and local time. EA is set to trade 17:00 GMT to...
Hi I have been using IBFX partial close for more than a year now. Suddenly when I load say @ 30 pips close 50% of position. Suddenly it closes at 15pips 50% of my position. I recently moved my Accounts to AUX, did they changed anything there. In the past I use it and had no trouble, Earlier this...
Hi Can someone help me with creating linux to mt4 server connector? I want to write down a linux script that will: - connect to mt4 server with username, pass and .srv file of broker; - retrieve pairs and their rates This is at first time than I will upgrade it. After 2 weeks googling I can not find...
Interview with Dr. Alexander Elder: "I want to be a psychiatrist in the market" is published at mql5.com: I think financial markets are like manic-depressive patients. Sell when they have mania, and buy when they have depression. The envelope helps me determine where these levels of depression and...
Hi, I wrote an EA which is applied to 24 pairs of currencies. MY EA is fairly complex which has many routines calling each other. I notice that sometimes my EA will complete the tasks but sometimes it is kind of stopped halfway, making the EA works intermittently. Can someone please enlighten me how...
I'm sorry that i have to bother you but i didn't find anything through search. Script connects to db in init() function ... if it can't connect the script should be stopped/terminated and do NOTHING more. How can i achieve that? thanks for your advices!
I created a extremely basic EA to test the relationship between risk/reward ratio and winning %. The basic idea is that the EA will alternate between buying and selling trades with specific TP and SL parameters. As soon as 1 trade closes, the trade in the opposite direction should open. The code...
Does anyone have experience using PCRE for Windows and MetaTrader 4? The dll has the functions: pcre *pcre_compile(const char *pattern, int options, const char **errptr, int *erroffset, const unsigned char *tableptr);pcre *pcre_compile2(const char *pattern, int options, int *errorcodeptr, const...
  Backtest Error (21   1 2 3)
I am trying to the strategy tester but getting this error. "No data for testing"! This is a screenshot of the settings. http://i42.tinypic.com/xefx41.png What's the issue?
Simple MQL4 Code obfuscation technique Please read about obfuscation first here: https://www.mql5.com/go?link=http://en.wikipedia.org/wiki/Obfuscated_code Now I'm going to give an idea of some MQL4 Code obfuscation technique.. There was some time ago a site which was selling MQL4 obfuscator. It had...
We require a Meta Trader programmer to write an Autotrade EA so that our signals could be executed on our member's account without any input by them. The EA must allow the user to create a DDLT as well. Please contact us at hqhqforexsignals@gmail.com. Best Regards, Management. www.hqforexsignals.com
Is there a function that will allow you to do this?
hello guys! I want help for setting up a bookmark with triangles, as shown in the figure below, three signals using fractals. being a first fractal down to the first tip of the triangle and other fractal up to the second point, ending with a fractal down to a value 50% higher than the first signal.
I like this indicator and I have been trying to raise / lower the arrow they are too close the the bars and to also display the Moing averages with the arrows. Thanks in Advance //+------------------------------------------------------------------+ //|...
New article Statistical Probability Distributions in MQL5 is published at mql5.com: The article addresses probability distributions (normal, log-normal, binomial, logistic, exponential, Cauchy distribution, Student's t-distribution, Laplace distribution, Poisson distribution, Hyperbolic Secant...
So I have a script that opens a csv file and starts calling FileReadString() to get each element in the csv which is just 1 line atm. Now I want to have multiple lines in my csv. Do I just keep calling FileReadString() and it'll move to the next line and start over on that line?
Hello I want to extract a decimal value ( for eg: I want to get 0.1234 from 15482.1234). Please advice me how to code it. Thanks and Regds mithetnme
I've been asked to code a strategy that always exits from a position after 16 bars. Is there a way to send the exit order to the server at the same time the position is open? Specifically, I need to ensure that the position will exit after 16 bars even if the client workstation crashes or looses...
Hi does any one know of an ACCURATE indicator with mid points for MT4? I've tried 4 different ones but all are inaccurate and only one with mid points. As these are so important to most traders there must be one out there somewherer!!! Thanks a bundle Manfeed
Hi, I'm a new MQL4 programmer and I have issue with my new expert advisor! I used SUFX Expert Advisor Builder to build this basic Expert and I've cleaned and optimised everything I was able to... The thing that I want my expert to do is to open a position when my indicators follow a trend. A long...
Hi guys,this is my first post on this forum, actually, on any forum I guess. Anyway I’mtrying to draw pivots on the platform’s history and it seems to work fine but Iadded some H1 data dating from 2004 and when it reaches about 44,000 bars I getsome weird behavior. I’m using a script because I was...
In MT4, when I open my Navigator, it has started docking at the top and extends horizontally the full width of the page. This makes it impossible to see the chart properly. How do I dock the Navigator to the left and extending vertically, like it usually is? I try dragging the right margin of the...
Good day, bool check == False;//---- ORDER SELECTIONfor(n = OrdersTotal()-1; n >= 0 ; n--) if (OrderSelect(n, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)    {       if (A > B && check == False)       {          check = True;          Print(check);...
Hi guys, Just realised something that doesnt seem to make sense to me. MT4 seems to use 'points' natively, (ie the last decimal place, which for 5-digit brokers is a pippete/partial pip). Yet, in the order exection dialogue it lists the option for slippage in pips. Do they really mean points (last...
HI One deal? im need one script .. alert (sound & mail by -X profit) im cant not good coding bat im can german and polish. im translate you projekt to german /polsh and you code me dis scritp ? hier is the link to my problem https://www.mql5.com/en/forum/136829 thamks :) parheps you like dis deal...
Hi, Is it possible to export signals from an indicator running on a platform in broker A, in order to be used by an EA running on the broker B platform? Maybe using the icustom command on platform B!!! If so, how can I do that? Regards
Hi every body, This is my first post and I would like to inquire about how to set a trailing stop lower than the minimum of 15 pips in MT4? Thank you.
Hi, please call me dumb, however i can't find how to get the current price that is also presented by the horizontal bar in the chart. In MarketInfo(); i can only find ask and bid price. They only way i consider atm is reading out the actual closing value of the first bar ... however is there no...