Download MetaTrader 5

MQL4 and MetaTrader 4 - page 178

To post a new topic, please log in or register
In EA running,what is the error 133 of OrderSend function?
The Accounts History is incomplete.  It only shows one original deposit and a majority of transactions are not there.  I have checked the statement with the broker and all is accurate but just need to know how to recover the history and bring up to date  
Hello,   Me, new to forex. Is it possible to earn good amounts by buying/selling eur/usd with bots? If yes how much capital one needs to have to invest in this? Since you can't really lose money over those trades, how efficient would it be?   Thanks. 
I want to trade by a percentage of my account balance but the OrderSend command seems to expect Lot Size. What do I need to do to trade with a percentage of my Account Balance? Thanks, Jim Stow
Hi guys. I've been using an EA that's composed of an MQ4 file and several includes. Sorry I can't share the code here. This code came to me "as is". Several of the include files don't compile on their own. They can't find some variables and get compilation errors. But when I compile the FULL thing,...
I have seen several references to OrdersTotalHistory but haven't found what is kept in History and - if it can be changed - then how. I currently see that I have OrdersTotalHistory() having a value of 41 but no idea what period this refers to. Equally not sure if there could be no items in History...
For some reason every time I draw a line, or anthing else on a chart it disappears after a few seconds. This also includes text, shapes, fib lines. Just started tonight and is happpening on two different instances of MT4, one UK broker and one US broker. Happens on different templates and all...
Hello again, since some weeks i started working more and more with renko and range bars. So i thought i could change my ea´s to these charts. I used the indicators from ovo.cz. The sad thing is that my trial expired before i could finish my EAs. Now i don´t wanna spend 45$ on an Indicator which i...
Just some information    For a while now I have realised that ArrayIsSeries() always returns false even when the array being checked is a Series array. I have just noticed  ArrayGetAsSeries(), I don't know if this is a new function or not, but this does return the correct boolean   I will notify the...
Is it possible to import the historical data from csv file for the period before 1970.01.01? It seems that MT4 doesn't accept the data input for year 1969 backward. Has anyone tried this before? Thanks!
Please try attaching EA for auto trading.  Warning by moderator: Only download and use DLL files when you are sure that they come from a trusted source.
Dear sir, i am having an doubt please clarify i want to create or read or write  an text file c:\ or in d:\  etc., i request you to provide me the code because i had try using FileOpen command in mql4  i am successfully able to read or wite under metaquote folder but not in c:\ or in d: \ so i...
  Forex Trading Robots (11   1 2)
Forex Trading Robots Automated or automatic forex can be defined as the ability to trade forex with theuse of a trading program or forex trading robot, without needing a human to physicallytrade a forex system. With forex, automated trading is an emerging field that begannot that long ago....
  a. Double confirm with you that it's not necessary to use '2' below but ok to use '1' below to compare for "int" types. Correct?  1.  if (a > b)  2. if (a - b > Point / 2.)     b. How many digits does the number precision reach while need to use '2' for comparing? 
Please I need a book that contains all the Technical indicators syntax and how to use them in Expert Advisors, For example, I need a book that will explain the usage of upper/lower bollinger band in a trade logic, or the Relative strenght Indicator parameters. what books do u recommend that contains...
Hi, is this possible?  Really don't want to constantly change every part of the date/time/year/ every time i need a little adjustment.  I want the default when I start the EA to be the current datetime.  Can anyone help with this?  Thanks.
Hi,  Why TimeCurrent() is different than when you convert to string using TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) for the same tick in OnTick() in EA? For example, TimeCurrent() returns 2016.01.19 14:49:59 while TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) returns 1453214999  Thanks,...
Hi,   please help ! can somebody tell me why I can not get an up arrow to draw as per logic. See attached file. Hope you can help me !? 
Have the recent builds of MT4 broken or changed the email setup? I've never used the email feature before, but I thought it would be easy to set up.  No such luck.  I looked at the docs, I googled, I watched videos, I read step-by-step instructions.  I tried it with my gmail account, with my regular...
I have demoing on a Test-Account for a while. When going live I simply log in intoa a trade-account in the Navigator/Accounts - Screen. But then the Demo will not be traded any longer... Is there a procedure to duplicate the complete MT4-instance ?   Thanks for the info in advance Roland 
Hello.   I have made an Custom Indicator (SwingShow) that is working just fine.   Now i'm trying to make a ExpertAdvisor based on this Custom Indicator.   i have this code OnTick  .... Swing = iCustom(Symbol(),PERIOD_CURRENT,"SwingShow",0,0);  ....    But when i check Swing it does not change, it...
Hi everybody, I'm just a beginner trying to build up very simple EAs. At the moment I'm able to build the just using standard indicators for enter or exit conditions. Actually I'm testing a very stupid EA just for practice where the buy enter rule is something like: if...
Olumide Samson
Hi All, I have a expert which i need to randomize months to trade in it... Example of what i want is this, if Expert trade this month of initialization, it shouldn't trade the next month, and if next month wasn't traded, it should trade this month...   I just want a Pause in trading months of...
I have encountered this problem. Book says TICKVALUE is in deposit currency. However, practice shows some brokers return the value in other currency than the deposit currency. Moreover, I have seen cases where ie. one CFD's TICKVALUE was in deposit currency, while another's was in base currency....
Hello, maybe some1 can help me with this. I'm testing basket trading strategy, which uses scripts for opening the baskets. Everything worked fine with FXpro broker, but today I've tried to test it with different broker (with .ndd extension). I've changed the scripts for example: EURUSD --> EURUSD...
Hello all,      I need to find all the data/functions available from MT4 client terminal as DDE Server that can be used in an excel sheet. The DDE-sample.xls sheet already display 6 data information using the following syntax: = MT4 | Data ! Symbol  Data  =  BID, ASK, LOW, HIGH, TIMESEC and QUOTE...
Hi, i need to move an label object to the current price position but not works... please see the code:   int OnInit(){      if( ObjectFind("MyLabel") == -1)      ObjectCreate(0, "MyLabel", OBJ_LABEL, 0, 0, 0);   return(INIT_SUCCEEDED);}void OnDeinit(const int reason){   if( ObjectFind("MyLabel") >=0...
Hi guys, Investigating the logic of one indicator I noticed that iMAOnArray() function returns different results for the same values depending on whether they are represented as indicator buffer or static array. I created a simple test that calculates Simple MA of 3 values with the period of 3....
How i can to attack the line (orizontal,vertical and point to point) to bar line?   Thanks 
Hi all:   I create a class and want to pass an array of that class as a reference parameter, however, some error shows: "Structure have objects and cannot be copied". The error occurs at the last line of the function "TradeDataBase".  In essence, I want to  create a class to store the history order...