Download MetaTrader 5

MQL4 and MetaTrader 4 - page 11

To post a new topic, please log in or register
MT4 fails to sync executed pending Orders during fast moving market and recognizes it a pending order that cant be deleted. It occurs occasionally during fast moving market. Sometimes I notice an open pending order that could't be deleted by EA and the market have passed that price. If i try...
Hi all, could you indicate the mistakes in this indicator monitor? I'm trying to write this indicator to monitor the global variables in my expert, but I don't find the errors... Thank you! #property indicator_chart_windowextern int mCorn = 0, mTextSize = 10;extern color mTextCol = White ;extern int...
Comments that do not relate to the "HistoryOrderSelect not working for executed pending order", have been moved into this topic.
Hello, Need someone to build a romob/auto trader which will: - Choose a pair  - Choose a TimeFrame - Choose Buy or Sell - Choose an RSI value when to enter (with option to trigger on first touch or when crossed once and then crossed back) - Choose an RSI value when to exit (with option to trigger...
Dear All: In MetaTrader 4 platform, in the terminal tab "expert", all the messages are also automatically saved in expert/logs/20110825.log (suppose today is 2011-08-25). But recently, I found that is not the case any more: the new messages which show up in termianl tab "expert" are not appended to...
Hi Folks, Ny MQL is zero, I am looking for ea builder that is able to drag n drop renko paterns into ea database for renko pattern recognition. Is there any?please open the attached image.thx
Hi All :) writing a custom indicator I came across a problem... hot to place text in the right position. As I create text object I can see that the text is justified "bottom-center" and I did not found any parameter to change it :( I need my object text to be aligned "mid-left"... or otherwise the...
MT4 version 4 build 1090 I have installed these indicators successfully on my linux laptop running wine: https://www.mql5.com/en/code/10548 I have tried to add them to my main trading station via play on mac/wine on my mac. Basically I copied indicators over from linux and the correct template and...
I'm trying to build my first system, if someone can help me with the code for sure will get a real masterpiece. Thank you in advance.
Good afternoon,                   I would like to know why is it after margin and leaving the account with a 100% DD, The account has then been redeposited into and the Profit shows it correctly but the % change remains negative 100%? Any help would be greatly appreciated as the account is meant to...
Hi .Please could any body help me out in writing mql4 code , starting from x date  (ie 2017.09.08 00.00) i want to draw vertical lines every x period of hours excluding saturday and sunday ,this should go to the future also.  It would be highly appreciated , im using mt4. Thx in advance.
Hi guys, I am facing wired problem when I am trying to use WebRequest() function on Windows. Here is the simplest code which could be written: void OnStart(){   string url = "http://server.com";   string headers = "application/json";   int timeout = 5000;   char post[],result[];   string...
Hi all... I have an indicator that paints some arrows and Im trying to show an alert as soon as the indicator paints an arrow. The problem is that the function ObjectsTotal does not works in this case, because none of the arrows is listed in the objects list... no idea how to get that number. Any...
Hi All, I've been practicing/learning MQL4 by modifying and tweaking a few example EA's to make this one and just have this one error left that I can't seem to spot the cause of! I don't suppose anything stands out to any of you does it?  The error is: "not all control paths return a value" and is...
Hello, I'm interested in having a program/robot: Step 1) Scrape fundamental economic data like an interest rate from a website Step 2) Compare these different fundamental data points in some type of formula.  Right now I'm doing it in excel Step 3) Buy or Sell Forex based on these decisions Which of...
Hi there Im looking for a charting software that can be usede when you are a astro trader, for that i would like to be able to scale my chart and to be able to calculate degree movement insted of time/bars as Mt4 does atm :-) anyone know any?
Hello, I've been trying any format and a half dozen youtube videos, but can't manage to import even a perfectly prepared CSV file into the history centre. Here on the forum, I even found the tip to export existing data to emulate the formatting - which I did, to no avail. Worse, even if trying to...
 Good afternoon,                         I am simply looking for an indicator which can alert me once any candle closes say 20 pips or more than the previous candle. Would anyone have access to that type of EA? Awaiting your response, Nigel Davis
I've been doing some extensive research these past few days from figuring out how to get mql4 to POST data to a website where PHP will pick up the POST. I've read forums to use webrequest(), but no luck. Thank you in advance!
I recently subscribed with a signal supplier in MQL5. Shikari. under MQL5 "ceylonmoney3" user name. Paid 30USD for 1 month subscription.  I opened demo account with MT4 200,000USD. Standard. But signal supplier has nano account. All configured. But it doesn't sync with my account. But i already have...
I'm having problem in increasing lot size after winning (reverse martingale) . The EA worked on backtest environment, but in real trading it's only placing same-lot-size-trades despite winning or losing. I tried selecting the last ticket profit through SELECT_BY_POS as well as SELECT_BY_TICKET. None...
Hi guys, Every once in a while my purchased indy and EA will become inactive (nothing happen when click or drag them on to the charts) so I would delete and redownload. But by doing so I would also lost an activation each time. This happened 3 times already. The first time it happened I wrote to...
Hi guys, Can somebody help me, how can I get the level prices of a OBJ_FIBOFAN object in the current candle? Thank you for your help!
Hello, I have such LINK: http://bhashsms.com/api/sendmsg.php?user=userid&pass=userpass&sender=senderid&phone=mobile&text=alertmessage&priority=ndnd&stype=normal I wrote code: void SMSapi(string userID,string password,string senderID,string phone,string text)   {    int    res;        char...
Hello everyone. I have been trying to turn off visual mode for my Strategy Tester such that I could get the graph results faster. However when I turn it off, I do not get to see anything in the "Graph" tab, its empty. I can see that there are several alerts in the "Journal" tab, but nothing else....
Hello. Because the default timer is not available in mql4 so I decided to write my own timer. To do so I made one second while cycle. Code Shown below void countUp(){int CurrentSecond;if(TimeSeconds(TimeLocal()) == 59)CurrentSecond = -1;elseCurrentSecond = TimeSeconds(TimeLocal());while(true){int...
Well,  MarketInfo(Pair,MODE_LOTSIZE) gives the value in base currency. Is there any way to get the value in deposit currency?
Is it possible to use the #property ico in mql4 as an image not only in the Settings?
Hi Forum, I am a newbie here and started programming respectively adopting existing codes on Friday. I have already concluded several custom indicators and now my DataWindow is more than full and I would have to scroll up and down all the time... The question is: is there a possibility to define...
Hi coders, this indicator prints a text object as soon as a trendline is drawn. I found the calculation for the angle in the MQL5 forum but it doesn't work correctly. The angle in degrees is always wrong. Just the directon (above or below zero) works. Does anyone have made some experiences with that...