Dear Colleagues, I just started learning mql4 and searching for a help. How to put "open/close trade" function to this example ? I would like to open a BUY trade once stochastic red line(signal) crossing stochastic (main) green line upwards. And close if stochastic green (main) line crossing signal...
[Deleted]
My pending order line disappeared. I have reinstalled twice and the issue persists. Any idea?
Hi, I am loading a custom indicator with my EA and turn on auto trading... From time to time I get "uninit reason 1" in the log file (experts tab) for this indicator. I have checked the forum and also the code base on mql4.com and read the relevant documentation. It appears that this is not an...
I have two machines running Windows 10 Build 10041. The first machine upgraded automatically overnight. The next morning, out of curiosity, I launched MT4 and it worked. With a great deal of excitement, I then used an ISO to upgrade my second machine, optimistic of achieving the same results. No...
[Deleted]
Hello, I'm trying to make a break between each position. I want the EA to open position exactly after 10 minutes of the previous position closing . This can be easily accomplished through Sleep() function but the problem is it doesn't work in strategy tester so i can never test this strategy...
What is better for the META TRADER 4 transaction server AMD or INTEL processor? What MEMORY MODULES are better for META TRADER 4 DDR3 or DDR2 ? Please for the answers for above 3 questions.
I have just switched from the XP to Windows 7 and am trying to install MT4 as I am use to for last several years. However, it will not give me a choice of loading directory and instead it loads directly into C: \Program Files and the User area. What am I missing? How can I select loading directory...
Hi, I have a MA EA which should only place a single buy/sell order on a cross over. Any way to stop it from placing 2, sometimes 3, on a single crossover? void OrderEntry(int direction) { if((Hour()>=StartTimeMA && Hour()<=FinishTimeMA)) //Preferred trading...
I'm searching for a way to change, at run time, the MessageBox font to unispace eg "Courier New". The reason being that I desire to output columns of numbers, which I want to right justify.
Anybody knows where MT4 stores profiles? The file path, please ~
hi, I would like to know if it is possible (and easy) to get a report from your live(or demo) account history that looks the same as the report from the strategy tester. This to test how an EA did foreward testing compared to backtesting. thank you in advance!
Hi Guys! I just coded a "Buy button" in my EA using the feature "OBJ_BUTTON" ObjectCreate(0,aux_Button_name,OBJ_BUTTON,0,xposition,yposition); and put it into the "OnChartEvent" for when I click on it, the EA issues an order.. It works on Demo/Live , however when I run it over the Strategy Tester...
[Deleted]
My Order Line does not appear on my charts anymore. Here are some facts: *The volumes colour is different to the colour of my background. *I have tried placing an order on a fresh chart with no indicators whatsoever and the order line still does not appear. *The trade levels are ticked in options....
Hello, I want to insert a few arrows "Stop Sign" in the Chart and afterwards I want to get the X-Position from the arrows back with the command ObjectGetValueByShift("arrow_Name",i) while i is the arrow (Shift) Position in the Chart. But that doesn't work...the value is always zero.... can you help...
I've just started learning myself mql4 and so far it's going better than a week ago. I'd like to know how can I use a Comment that is posted on the Chart by a seperate indicatot to be called in an EA for use there? Basically what I'd like to do is using a comment that is posted of the HTF indi...
I am studying the great article by Andrew on using NeuroPro with MT5 recently posted on the MT5 forum. Neural Networks Cheap and Cheerful - Link NeuroPro with MetaTrader 5 www.mql5.com/en/articles/830 I understand most of what's happening but I do not speak/read Russian and I don't have a Cyrillic
Please refer to the codes below. Is there any potential issue if I calculate order profit before closing the order? How should I improve the codes? Thanks for help! for(int i=ArrOrderSize-1; i>=0; i--) { Chk=OrderSelect(ArrOrderIDs[i],SELECT_BY_TICKET); if(Chk>0 &&...
Let's say there are many loops of orders, each loop follows previous loop. In every loop, there are a series of orders and a whole loop means the series of orders are all closed based on a condition. In order to recover the tracking once EA/terminal/PC is restarted while a loop is still ongoing,...
I am trying to modify an order that is current/open. To keep the changes that I want to make very simple at this stage (I am just trying to get the code right) all that i am attempting to do is find the order and then change the arrow colour to blue, but I get an OrderModify error code 4109....
Hi guys! I am trying to code the Chaikin Volatility indicator. I know that there is plenty of examples of such an indicator, but my point now is to understand what I am missing and whether I misunderstood how to code in MQL4. The problem I am encoutering is the following: no data is drawn in the...
When backtesting sometimes the "tester/history/.fxt" files seems to always want to rebuild......doing the 1min, 5 min, 15 min and takes a long time How do you overcome this???? ie. speed up a restart backtesting ???? re-use the existing .fxt ??????
[Deleted]
I am running an EA to function as a control panel which is filled with EDIT labels, 20 per currency pair. Another EA works on the symbols I want to trade and read the text description of the EDIT fields it needs and assigns it to variables. Everything works fine as long as I have it running on 10...
i need to custom a ui for special chart,the program i wrote as following: 1.mql script #import "MyChartDLL.dll" void CreateUI(int hwin); #import int winHandle=WindowHandle(" USDCADf ",PERIOD_H1); int winHandle=WindowHandle("Lljr",PERIOD_H1); if(winHandle==0){ Alert("(Lljr Script
[Deleted]
I have a simple formula that is calculating the FastK. I am using the ds array to allow me to access historical values as well. When I use the Print statement, it shows that it is calculating the formula properly, but it is not assigning the value to the specified array element. I have attached an...
Hello, I wonder if there is a length limit for "OBJ_LABEL"? I need to display a minimum of 100 text characters. I feel that there is a problem. Thank you. Franco
[Deleted]
I am trying to create objects of a class that have a global scope. However when I try to assign the instances of the class to the variables (the pf array), I am receiving an error "'=' - object required". What am I doing wrong?...
{ bool Result; int i,Pos,Error; int Total=OrdersTotal(); if(Total>0) {for(i=Total-1; i>=0; i--) {if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == TRUE && //what do I put in the code here to find the Print text in the log?=="my logged print text") {EA instruction once...
Does it impact my EA performance if I take some data from D1 data on my M15 EA?
[Deleted]
Hey, I want to ask your help with a problem i have, I build an ea who is only trading short i am done setting my take profit. but i need to set my stop loss at exact the same distance to the bid as the take profit So here is an example : Sell order : actual price is 100 Take profit is : 80...
If I want an EA to look back say 50 or 100 bars back for divergence, is it possible? Or do I have to compare the last closed bar with each of the prior 49 bars? Thank you.

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.