Download MetaTrader 5

MQL4 and MetaTrader 4 - page 340

To post a new topic, please log in or register
I would like to receive information on the following issues:  Is the error message of Market is closed only shown when trading session is closed - on weekend or holiday. Could the market still move when the MT4 servers are in Market is closed mode? Answers would be appreciated  
Hi Guys, I need to know what my max available lot size would be for my current position (having already one or more trades open)?  In MT5 I believe you could just call a method.  So for example if I have 2 trades open, I then need the max value for lot size just before I will get error code 134 -...
I can add lines, but I don't know how to delete lines from the screen. Please help! Thanks.
Hi all, I just downloaded the latest mql4 platform from my broker's website , after compiling my expert advisor , i got the warning that the return value should be checked for the following OrderSelect OrderClose OrderModify but i did not have this challenge from the old platform . what do i do? i...
Hi Folks,  I'm convinced there's an article that explains how to use the common data folder for classes. But I can't find it. I've searched via google and via this search form. I've tried to create classes in the folder, doesn't want to do it, I've tried to import the classes, no joy, I've tried to...
Hi, When I add two standard MACDs to the same indicator window (and hide the histogram so that I can only see the Signal line) then the values are different than if I have a totally new indicator which combines the two signal lines of the MACDs.   Below is a sample of the issue.  The top "indicator"...
  Level 2 DATA (1)
Is there any Level 2 DATA available on Forex?   Does anyone know why  long BuysOrders=SymbolInfoInteger(Symbol(),SYMBOL_SESSION_BUY_ORDERS);long SellOrders=SymbolInfoInteger(Symbol(),SYMBOL_SESSION_SELL_ORDERS);double BuyOrderVolume = SymbolInfoDouble(Symbol()...
Hi there,  I am looking for the source code from the standard Ichimoku Kinko Hyo (which unfortunately you can not edit or change) for MT4 (not the Ichimoku.mq4 in the Custom Indicators!).  The background is as follows, that the standard indicator of the clouds, the surfaces completely fills at...
Popular services providing forex managed accounts?
I was just wondering if it was possible to do so because I have been having trouble with it.   Nvm, the problem persists.
Hi Guys, As new in learning mql4, i have manage to throw some basic codes and get started with my EA for a little while. Unfortunately, with limited knowledge of the available functions to use, stalled on some part of the codes logic. By the way, the part that i'm having difficulties with is the...
Hi, Lets say we have something like this:  void OnChartEvent(const int id,         // Event identifier                    const long& lparam,   // Event parameter of long type                  const double& dparam, // Event parameter of double type                  const string& sparam) // Event...
I have a Moving average crossover EA which working fine for me but I would like to add more setting/filter on it to maximize the profit. Kindly refer to the print screen for my EA.   Please help me on the MT4 codding based on condition as below:-  1) Buy order & Sell order Opening Price The...
Hi, I get incorrect series array using (error 4054) in the sleep below, most of the time. Am I doing the return handling correctly ? I have code like this: MqlRates rates[]; int copied; ArraySetAsSeries(rates, true);      for(int j=50; j>0; j--) {     ResetLastError();   copied =...
Hi.. I have csv file as below:- Date,Time,Time Zone,Currency,Event,Importance,Actual,Forecast,PreviousSun May 25,23:50,GMT,JPY,JPY Bank of Japan April 30 meeting minutes,Low,,,Mon May 26,,,EUR,EUR German Import Price Index (MoM),Low,,,-0.6%Mon May 26,,,EUR,EUR German Import Price Index (YoY),Low,,...
Hello, I have a question, is there a way to code EA to make more than 1 cycle (e.g OrderSend) after getting a tick form market. Sometimes time between tick's is long and I want to open 3 buy orders. Today with my coding skills I need to wait for 3 market ticks to occure to get 3 buy orders open. Is...
Thee was an old topic from 2006 with this question, but it wasn't resolved.  Is this even possible?  I have an external datetime that I want to be a user input as a string in the TIME_DATE|TIME_SECONDS (or TIME_MINUTES) format, but I want it to be preset to the current time so the user doesn't have...
Hello guys i have a indicator if condition like that            if (Ld_20 < Ld_128 && Ld_20 < Ld_136 && Ld_12 > Ld_128 && Ld_12 > Ld_136 && Ld_128 < Ld_136 || ((Ld_20 > Ld_128 && Ld_20 > Ld_136 && Ld_12 < Ld_128 && Ld_12 < Ld_136 &&                           Ld_128 > Ld_136) == FALSE)) continue;...
Hello Basically I have this code:   iOpen(Symbol(),PERIOD_MN1,1); Which is used in my EA running on a 5 minute chart. Will I need approx 2 months worth of bars present on the 5 Minute chart, or just approx 2 months worth of bars on the Monthly chart for the code to return the correct figure? Kind...
Hi, to show me some information of my expert advisor variables, I created some label-elements in the right top corner. Until april all gone fine, but with some new updates of Metatrader the text isn't aligned right correctly. If I change the text with an EA, the text is aligned left now. :-X Is...
Is there a way to format a number with printf to separate thousands like this:  123,456.80 All formats I tried give me 123456.80     
//+------------------------------------------------------------------+//| Reverse_Grid_Martingale .mq4 |//| Copyright � 2014, AMIT |//|...
Hello gentlemen. I was looking for a tool that could help to find robust parameters in order to optimize strategies. I found only the following IDE: <links removed by moderator> Since I do not want to bind me to a particular software company I would prefer to buy only thrid party software that can...
Well, If you put the following code into a script and load it up on a chart, you won't get the correct time value.  Why? int start()  {   struct OrderInfo     {       datetime dOpen[];     };   OrderInfo myOrder;   int OrderCount=0;   myOrder.dOpen[OrderCount]=Time[2];   Comment(TimeToString(myOrder...
Hello, I am a C++ programmer and completely new to mql4 and I like it very much. There is a strange problem with all my Expert Advisors.   I made this extremely simple EA to demonstrate the bug. input double SL = 25.0;input double TP = 25.0;input double Lots = 1.0;int OnInit(){...
Hello,  Seeking for open source MQL4 EA for semi-automatic trading.  What I call semi-automatic trading.  I set the params of my my EA, purchase level param , sales level param , I selected my money management rules, I selected the rules of averaging down, I selected the rules to take partial...
Hi, I'm not sure if I have found a bug in MT4 build 646 but it is driving me nuts to try and get my code to work. Has anyone else had this issue? When I use iRSI in a script running on a chart (example ZARJPY) and reference another symbol with the D1 time frame then zero is returned unless the chart...
Hi Valued Customers Great news for all Forex Traders, Investors and Individuals... Ask me here any things, solve any problem, discuss Indicators, EAs and strategies... Skype: macliteriint
Hello guys, I just wann ask you what is wrong with this piece of code? void CloseOrders()   {      int total = OrdersTotal();      int i;          for(i = 0; i < total; i++)         {            if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))               {                  if(OrderType() == OP_BUY...
Hi   I've had one of my expert advisers running on a live account for some time now showing good results and I'm considering selling it.   I understand there are technical challenges with modifying the ea for commercial use (GMT offset etc)  but like most developers where my skills lack is in how I...