Download MetaTrader 5

MQL4 and MetaTrader 4 - page 143

To post a new topic, please log in or register
Hey guys, Just need some help please. I would like to draw rectangles on the M5 chart. Each rectangle will represent M15. I basically want to show the previous days worth of M15 on M5. When I drop the script on the chart it only draws the attached picture, with the Highs and Lows incorrect? Below is...
if((dtInfo+(60*3))<Time&&Time<(dtInfo+(60*60*30)))       1, can not be implemented, the implementation of the error time can not be added, do not know what is the number of errors or can not add, hoping to modify the next 2, MQL4 Chinese forum can not be landed, but also need to run to the English...
hlw coders i m in little trouble in coding of EA, i made it according to MA crossover signal if signal buy its cancel previous sell signal and placed new buy order also same for sell signal.. i already made it.... but i m in trouble to find what was previous signal and at what price from the latest...
Hello, i know you may have read this like 100 times and this may get on your nerves now but i have a big problem with OrderSend Error 130. I literally can do what i want and still get this error but maybe you have an idea what i am doing wrong. Would be really happy if someone could tell me what...
Hi all,   I am using MQL4 and I want to know that how to identify that Moving Average line has crossed candle. I tried using iMA() method but I think it returns moving average value not the  current price Please tell me what method or logic I can use to identify Moving Average Candle crossover....
Hi there, When I output datetime to a csv file, it shows    2015.12.10 20:58:39.   Is there any way I can change the format like   20151210205839  , which eliminate the dots and colons?  Thanks 
Hi Guys, Within Windows 8 is released and Surface Tablet is coming into the market, I believe more users will use Windows 8 installed device, i.e. Cell Phone, tablet and PC.  Does anyone know whether MT4 can be run on Windows 8 Phone? On Windows 8 RT/Pro Tablet? On Windows 8 Laptop?  Does MT4...
Hi,   I've install mt4 mobile on my android and activate PUSH notifications on my PC. MT4 informs no errors on sending a notification, but nothing comes to my mobile. I've check on the app details and the "Accept notifications" options is active.   Anybody knows about issues on android versions ? 
Hi All, I am new in programming. I have an EA which run which correctly, decided to change the strategy  by using the fractals indicator. The resulting EA opens only long positions for both buy and sell conditions. The "if" statement: if C1<iFractals (Null,0,MODE_LOWER,0); Sell and if C1>iFractals...
Hi  How can I say or in mql4?  I am trying to say    if ( AccountNumber( ) != ccc or ccc1) return(0);  but its obviously wrong.....  Many Thanks 
Trying to create a csv file.  Now, I know this isn't useful; but in order to figure out a problem; you need to break it down into it's smaller components.  This is the component I'm trying to get work. The output should be: 1,2,31,2,31,2,3  The output I get is: 1,2,31,2,31,2,3  Here is the code....
for example,I open a chart window of a symbol, can I change the symbol of the chart window by keyboard upwards or downwards according to the market watch list.I mean when I press a certain key, the chart window will show the next symbol. Thanks!
I think you usually use copy and paste on writing the code. But I cannot do it because my MetaEditor refuses copy command. I used to be able to do it actually. But one day maybe a year before the editor suddenly stoped accepting the command. I can appoint the part which I want to copy. But when I...
Hi there, I manually opened a BUY order and ran the below code: void OnStart()  {//---   for(int i=OrdersTotal();i>0; i--)     {      Print("OrdersTotal: ",OrdersTotal());            if(OrderSelect(i,SELECT_BY_POS)==false) Print("Unable to close order. Error: "...
Ok.  Im at the end of my patience and am now putting my problem to the masses for support...... please. The following test code is to solve a problem I am experiencing with a multi dimensional array.  The first problem is that the ArrayResize function is not resizing the array (note my print result)...
Hi, I am faceing the following problem: I create a regression channel with the following code if(RegressionCreate(0,"Regression",0,mindate,maxdate,clrBlue,STYLE_SOLID,1,false,false,true,true,true,0)==true)    {       Regression_Channel=true;       testprice=ObjectGetValueByTime(0,"Regression"...
Hello here is my next question^^ This time this could interest more people: Renkocharts are very easy to handle for beginners and seem to be a pretty save thing in slow markets. However i wanted to try my own EA´s on a renko because i think that could be interesting aswell. But sadly this is not...
Hi, I got an indicator (Open-source) giving buying and selling signal. I am trying to use that "indicator" in an EA. But in that they are using a custom indicator function counted_bars=IndicatorCounted(). I read that (in Documents, here) this function cannot be used in EAs and scripts. Can anyone...
Hi there, I have written an EA which I run on several charts simultaneously.In order to keep the margin usage within a reasonable level, I want to preventhaving more than 5 orders open at a given time. I use an order counter and compareits result with the value of OrdersTotal() before allowing a new...
Dear forum members, This is a inquiry on MT4 and the prices it shows within candles, as well as the price specified in a Buy Stop order. I need to ask an opinion from other traders, further to a dilemma I am having with a new trading account. As far as I know - this is what I observed/understood...
Can anyone show me how to place a VLine at the start of the day, for a specific time.  I am on EST and would like to show, on my chart, the start of the day.  Which is midnight.  My chart time is 5 hours ahead of EST.         ObjectDelete("DayStart");             ObjectCreate("DayStart",OBJ_VLINE,0...
Hello,   In my quest of findind a trading strategy that makes consistentprofits (everlasting goal … ;-)), I’m often face of the same situationthat needs some care. Here is the situation : Suppose I determine that the market must be traded with a longposition. And that I find a precise level that...
Apologies if this is a stupid question, but I am having runtime errors when backtesting an EA, and no error message is showing up in the Experts tab - it's a bit needle in a haystack without even a line number where the error occurred to go off... Thanks.
Hello, I am trying to code this system however after compiling it returns the "not all control paths return a value" and when I double click it shows its in the following block, could someone please point out the problem. Thank you in advance    {      if(MainCCI[i] > ErgoCCI[i])      {signal =...
Hi, I want to close all opened orders on 10 minutes before friday market end. because closing time differ from different brokers! Your support is appreciated.
Tradeing Trader
Hello, i know in the mql4 documentation is a exampel how to upload a picture to webserver, but that exampel is little bit complicate, because it work with login and other extras. Can somebody show me a simpel exampel how to send with the WebRequest() function a image file to a folder on my webserver...
What do you guys think is an minimum for an EA before it should be tested on a live account? Whats the minimun profits, wins and things like that in your opinion?
Hi, I made an Ea, but when I do back testing its creating many same pending orders on each tick. How to stop that. I just need one order at a time, i don't need its copy. if I run this EA on hourly chart with "open price only" then it doesn't create copy. Plus my ea has option for reversal trade if...
We try to build new blog support newbie MQL4 coding detail as link below please visit and follow our blog http://www.forex-superman.blogspot.com/ 
Anyone have a good page to look at to proceed with this subject. I do mean, you must have a broker acount to activate the account,  This is what it says under the help files for meta trader 4.  And or, is it better Meta Trader 5 to do this with instead?   Any help for this is greatly appreciated to...
1...136137138139140141142143144145146147148149150...1244