Download MetaTrader 5

MQL4 and MetaTrader 4 - page 524

To post a new topic, please log in or register
Hello, how can we avoid the auto update if there is no liveupdate.exe to be renamed? cheers
OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);       int day = TimeDayOfWeek(OrderOpenTime());       if (day == 0 && TimeCurrent() - OrderOpenTime() > 604800    || day == 1 && TimeCurrent() - OrderOpenTime() > 518400    || day == 2 && TimeCurrent() - OrderOpenTime() > 432000...
I know that when MT4 software is shut up, EA which was attached to the chart never works, then I don't know whether there is anything still work after MT4 sofeware is shut up, such as, stoplevel, pending orders and so on? Thanks ! 
I am trying to use a script that was posted some time ago by Keiji to convert MT4 EA files to MT5.  Has anyone ever used this with success?  When ever I try to use it, I keep getting an error that it can't find the file I'm wanting to convert.
Hey, I am very new to scripts and am more of an HTML writer than C++ What I was wondering is if there is a script or such out there that will end a current trade based on the close of a candle with conditions? So for example I get on a trade at 1.0001 and the first candle ends at 1.0010. Then the...
hello! would like help please. I would put a code on my EA. I wish the Ea execulte only for a period of one month and after that period he is allowed to function. thanks for your contribution
Now I have made an EA which is attached into USDJPY's chart whose timeframe is 5 minutes; after 10 minutes,  I changed time frame to 15 minutes from 5 minutes; I find that the EA is initialized again, which I think is EA's principle. but is there any method to avoid this second-initialization?...
I have been working on this for too many hours now... some would say a waste of time, as I still cant make it work :)   There is something wrong in my Algorithm but I am struggling to see where.   I am new to this and I think my nested "If statements" are clumsy, but I still think they should work....
void PlaceOrder(int iSignal){   int iTicket;   double op1=Ask+BuyStop*Point;   double op2=Bid-SellStop*Point;            if(iSignal == 1)   {      iTicket=OrderSend(Symbol(),OP_BUYSTOP,dLots,  op1,3,op1-iStopLoss*Point,op1+iTakeProfit*Point,"My First EA",iMagicNumber,0...
Hi all, In the below table you have Traditional renko chart script. In Noraml Renko chart you do not see the real Open Price for renko candel. If anybody can change the following renko code or have LogiBar mean renko script please share it here....
Hi guys, i want to draw an indicator like SMA but the color should be variable. For example if the SMA is rising than it's color should be green. If the SMA is falling then it's color should be red. I can't find a solution for that.
what is the different between OBJPROP_LEVELWIDTH and OBJPROP_WIDTH?
I would like to write part of my program(ea or indicator) in a dll for security reasons Which language to use?   Thanks 
I have a couple Line Values being generated from an indicator I wrote.  The Line Values are Labeled Value1, Value2, and Value3 in the Data Window.  Can I name the Line Values in the Data Window with the indicator.  For example, I would like the Labels in the Data Window to say Rel Str, High Limit 1...
I have developed and OPTIMIZED an EA with PROFIT FACTOR > 10, DRAWDOWN < 15% and PROFIT = 140% backtested from Date 1/10/2011 to Current Date. Now how to do its forward testing? This EA has been developed on EUR-USD currencty pair with 30M timeframe. What other things I still need to check before...
Please! Inside custom indicator has int op1. How to write code in EA for get op1 ? Thank you
Hallo, i look for a very simple example of a dll-code. I need only the basic structure of a dll. In use of my dll, i get always the message: "cannot call function "PlusZwei" from dll 'Test1.dll' (error 127)". // Test1.cpp : Definiert die exportierten Funktionen für die DLL-Anwendung.#include "stdafx...
First of all, I wan't to apologise, if I duplicated any previous subject, but I did not find topics about my problem on that forum. I wonder why  variables TP & SL doesn't work as external ones whereas declaring them without "external" makes everything work correctly. When TP and SL are external...
I'm trying to run my  29EAs simultaneously on mt4. The problem arises after  the fifth ea, the platform reject  the orders after the sixth. Some suggestions???
Hi, Is it possible to detect the previously opened trade's lot size and doubled it if the trade is detected lost any help,or at least if anyone can tell me if it is possible. THE BIG PLAN Find a system that will trade frequently with winning rate of 55%,constant and same sl and tp level, double up...
Is there any wayi can install my EA on  MT4 mult-iterminal ?
In the spring time, we released the new feature on MQL5.com – "Attract Visitors". Users started receiving rating points for each web link that was placed on a third-party web site and used to attract new members of MQL5.com. Articles, orders in Jobs, programs in CodeBase, trading signals...
How to add the entry in the same position when the price of the lot provided the brokerdoes not exist? Example: If a broker lot maximum of 100. We wanted to order 150, then the EA will put up 75 and 75 double entry! Thanks
2013.03.15 16:16:34    Cannot open file 'C:\Forex.com\experts\MACD Sample.ex4' on the , Does anyone know why I get this message
  Thank you WHRoeder (26   1 2 3)
Thank you WHRoeder. I added this to my indicator. I was able to get the indicator to display the info at the top left edge, but it does not provide the values for the Highest, Lowest or Range. Do I have to make the indicator an EA to get these values displayed??  Again, thank you so much for...
I'm sure this has probably been asked and answered before, but I don't seem to be able to find an answer.  If someone could point me in the right direction I'd be most grateful. I'm trying to have my EA check the distances between all (up to 5) opening trade levels and current trailing stops for...
Where can I find some documentation on how to use this editor?  Like how to include code formatted correctly?  Or can someone tell me?  I'm beating my head against the wall over here and can't figure it out!  Thanks....
Hi all. I try to export live trading orders (instant and pending) from MT4 account to my web. Anyone can tell me how to do it ? Please help me. Thanks advance. Bizu Note : I dont want to use or any website for public my account statement
Hi, I just learnt mq4 and implementing by practicing writing small ea and indicator. I need to clarify the following doubts to be cleared: + Is this possible to add icon image on written EA or indicators? + if anyone runs my EA or indicators my customized link to be opened in new window browser, is...
  MT4syc (1)
Hi I wonder if some-one could give me some pointers, regarding expert adviser, I joined a site that d/loads your history from MT4 and then (I Think) you can view your stats, manage blogs, trading plan etc I was required to d/load and install a thing into my MT4 broker it came with a huge key, all...