Dear friends, I want to know how does modifying an order by OrderModify function affect the Order precedence hierarchy? suppose that I put an order at 19:15 and afterward someone else put another order with the same price of mine at 19:25. now I my order have higher priority than his order. but...
The TDI indicator writes to the left top corner of the window the value of the buffers could you help me understand what part of the code writes the value of the buffers to the top left corner and it has 6 buffers but it writes only contents of 5 buffers I attach the code and the image of the tdi...
I would like to know if anyone else has had this problem ?, I have installed my software on hundreds of mt4 platforms, in all window versions without a problem, now I installed on this one PC and the objects are all in the wrong place, on two different ea's, it only appears to be a problem with the...
Hello everyone, I wanted to code an EA that opens both buy and sell positions. When the first one reaches stop loss, it should wait for profit from the second one. As the first one closes, the stop loss of the second one gets modified to the initial Bid/Ask position. Although it works on some...
I have written an EA to perform some backtesting on EURUSD M5 chart. My EA only consists of 2 EMA and a Stochastic condition. I tried running it using Histdata.com past data from 2010 to April 2017. It produced pretty good results. However, when I tried using past data from Meta Quotes (downloaded...
Hi All , I have created an binary ea during testing this ea . I have seen a strange behavior of Mt4 platform . The EA places a pending order but when the market reaches as that price the pending order did not convert into market order. And it is moved into account history with 0 volume . Can anyone...
I don´t know to actívate history debugging in mql4? I have selecctioned the option "use specified setting" in menú: Tools->Option->Debug But the history debuggind is unavailable. Please help me. Thank you. No se como hacer para habilitar la depuración en modo historia en mql4. Incluso tengo...
If a technical indicator works very slow, and I wish to include it in an EA (using iCustom), is there a some "wrapper" that could cache the indicator results to a file based on the particular indicator inputs? This way I could get a better speed next time when I backtest it using the same set of...
Hello everyone, I have the following issue with my EA. I intend for it to Open trades when the price breaks out of the Kumo cloud while being above the Kijun for buys and below for sells, //indicator setup double tenkanSen= iIchimoku(NULL,PERIOD_CURRENT,Tenkan,Kijun,Senkou,MODE_TENKANSEN,0);...
Hello. A beginner trader is here. I'm currently using MT4 together with mobile (iOS) version of MT4 to monitor my trade. My question is: Someone gave me an indicator. It's an EX4 file. I know it's illegal to decompile copyrighted program. The EX4 file has alert (sound) function &I find it useful for...
Hello everyone, How do I program button "HIDE" to toggle not visible/ visible any other buttons. I would like to have the ability to view chart without buttons showing up on chart, expect button "HIDE". //+------------------------------------------------------------------+ //|
Hi, I've been working on a simple EA that runs on 16 simultaneous currency pairs using 0.01 lots and automatically closing all trade when it hits 5 profit. It works almost as planned by like many other ea it struggle to close down all the trades in one go. What i require is a extra piece of coding...
[Deleted]
I need to open an URL and download a file from URL. Standard functions, such as InternetOpenUrlW, and native Windows libraries, are using Internet Explorer, but I need to get access to file without Internet Explorer. Moreover, this particular page does not open through IE (but open in different...
Good evening, I would like to ask you if you can make the following code in mql4, as I can not program it myself. The function is: "after X bars exit the first opening in profit". Sorry for my bad english. Thank you, I hope you can help me.
Completely confused as to how to determine the total probability of events: Task : Let's say an up candle is '1', a down candle is '0'. Event: 000 => 1 (the first three candles are down, so the next one is up). Event Probability: 0.7 Event: 00 => 1 (the previous two candles are down, the next one is
[Deleted]
Hello, I tryed today to test my EA with ICMarkets MT4 Demo account, but oldAsk variable which will be settetd on JFD MT4 Demo will be not setted. I created 4 values stack which will be filled with ticks. In oldAsk I store tick which was 4 ticks before. For diagnistics I added Print() function. And I...
Hi seniors, I come into a problem where by when I use the same code in creating indicator and expert advisor, the system give me different result. In indicator, which the result is correct, the following code will give me:- result = iMAOnArray(priceSeries,0,5,0,MODE_LWMA,0); input = priceSeries =
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.

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.