MQL4 and MetaTrader 4 - page 204

To post a new topic, please log in or register
  seconds since 1970 (21   1 2 3)
Hello,  I'm trying to get an output like this for the number of seconds since 1970.   1460944723 I've done my search on this form and every example doesn't give me the desired output, checked all the documentations, pulling out my hair now.  Here is what I have is below, and the response I get is...
  Dynamic Grid (3)
Dear All,... I need a programmer to fit some problems from an EA. I now, the most guy's would now say, hey go to the freelance's an pick up a good programmer, spend some money and you become what you want,... I would, but I search someone, that re-program the EA for free with the possibility to an...
New article Graphical Interfaces IV: Informational Interface Elements (Chapter 1) has been published: At the current stage of development, the library for creating graphical interfaces contains a form and several controls that can be attached to it. It was mentioned before that one of the future...
Hi , does anyone know how to create a display alert or sound alert when the colour of the BW MFI changes to green for example in the current time frame?thanks
Hi All, I have no knowledge about coding. I want to create an indicator that alert me when 5 consecutive similar candle forms. It may be 5 bulls or 5 bear candles. In addition, it should be customizable which means I can set 5 or 6 or 7 candles. Please your help is needed to build this alert system....
Hello people! It is a pleasure to be here in the forum. I'm studying a lot calculator. but it does not work. I tried everything. Can anyone help me find the error? Thanks a lot for the help. *Sorry for English  
I was trying to find a way of counting bars only after a condition is true. I have coded this so it can recognise any timeframe and adjust to suit.   void OnTick(){      // Version 1     bool periodm1 = false;   bool periodm5 = false;   bool periodm15 = false;   bool periodm30 = false;      bool...
I want to calculate the average Closing 10,000 candles is my thank you trying to fix me I'm a beginner can    for(i=1; i<10000; i++)    {    sum +=iClose(Symbol(),NULL,i) ; Num++ ;    Average = NormalizeDouble(sum/Num,5) ;    Print(" Average  ----->  " , Average  ) ;    }   thanks ...     
  Dukascopy tickstory issue (14   1 2)
I was beginning to implement volume in my back testing with some tick counting and categorising code(well I wanted to, but I then realised some fundemental flaws, such as assumptions about broker ticks and actual ticks). Now I followed all of tickstory's instructions, however after doing so I...
Dear friends, I need a little help about my ea project. I will pay 1.000$ for this help, if you interest please send an email to me alisermet[]gmail.com for details. Thanks.
I want to show open position's type on chart. For example if current chart's position is short, then show "Sell" text on chart. (Just for open positions not pending) Regards
I have the following EA  that I would like to open a long position when the indicator plots a blue x and short when it plots an amber x. Can someone point out the error in the code please....
Hi, I have downloaded m1 quotes for Ger30. And used the period converter to on this quotes for creating the other timeframes. When I do a strategy test on M1, I've got 25% data quality with NO Charterrors. When I do the test on M5 I've got many charterrors > 10.000. How could this happen? Does this...
I'm struggling hard with MQL coding.. for me it seems like things aren't that 'complete'. Might sound harsh, don't meant to be. Learning for a couple of days to find out one disappointment after another... For example, after trying ON_CLICK and ON_CHANGE events, i found out - the hard way.. grr -...
   if(Bid>ExtMapBuffer8[0])       {       PlaySound(UptrendAlert); Alert("ExtMapBuffer8", Symbol());       alertcount++;       }        if(Bid<ExtMapBuffer1[0])          {          PlaySound(DowntrendAlert); Alert("ExtMapBuffer1", Symbol());          alertcount++;          } 
The next very simple piece of code... // Get chart dimensionsint chart_height = ChartGetInteger(0, CHART_HEIGHT_IN_PIXELS, 0);  .. produces a beautiful compiler warning.. : possible loss of data due to type conversion Nique - BO5M.mq4 64 22 Is this a bug?
Can anybody think how datetime bar_time=Time[1]; can cause an array out of range critical error while backtesting? It is a client doing the backtesting and apparently the history has been downloaded from elsewhere than the platform broker. I thought that if data is missing, there is a mismatch...
When i'm reading the chart, sometimes - mostly on the most important moments - candlesticks clip out of the screen which is very annoying because now I can't see where it closed until the next candlestick comes in. And then it's already to late to analyze and do all the stuff I would do normally. I...
I'm trying to add a standard moving average indicator ( iMA() ) to the price chart of an EA. I've googled quite a bit but all I've found explained is how to add a custom MA to a price chart.  Does a simple 1-line command exist which allows me to add a standard MA to a price chart or do I have to go...
Is this mini pc powerful enough to run MT4 or MT5? OS: Windows 10 64bit Home CPU: Intel Atom x5-Z8500 Processor (2M Cache, up to 2.24 GHz) Graphics: Intel Processor Graphics Gen8 Video Memory: Sharing System Memory Memory: 2GB LPDDR3 Hard Drive: 32GB eMMC Thanks!
The following code allows you to place an arrow, at a specific candle, at a specific time.  I wanted to know if there is a way to display a value, ( text ) above a down arrow and below an up arrow?  Which will signify the value at that point.        ObjectCreate("UpSymbolAz"+i, OBJ_ARROW, 0, Time[i]...
I'm having an EA which I'm running on a chart/symbol on 2 different timeframes (say EURUSD H4 and H1). So I'm having 2 chart windows (same symbol, different timeframes) open, each of which is assigned a running instance of the EA. When the EA opens a position in 1 chart (say EURUSD H4) the position...
Hi, I want to get the number of trades from a day I've done so I loop through OrdersHistoryTotal. Problem now is I often do partial closes of an order so the total number of trades I get now from my code is way too high because of all those partial closed trades which are present in History Tab....
Hi, I would like to ask if there is any existing indicator or any way to find statistic Oscillators previous crossed. More explanation in the attached image
Hello Comerades, How do I execute multiple lines in the caption of a button? I have tried \n and even \n\r and they did not work. Thank you in advance.
Hello all, I am wondering if there is a way to get multiple lines of text using Comment(). I have tried to search, but no luck so far. Thanks in advance, LW
Hi there, does anybody how it is possible to obtain the scaling factor of system fonts? Especially with Windows 10 I have weird behaviour with the font sizes and especially with UHD displays. A normal fontsize of 9 or 10 results in huge texts which do not fit into any bitmap objects anymore....
Hi Everyone I would like my EA to open two pending orders (straddle) at a specified time e.g. before a news release On demo, nothing happens at the specified StartTime (and no errors), but on the Strategy tester I'm getting error 130, but I can't see how stoplevel could be a problem.   Will someone...
Hey Community, I'am a Java programmer and the MQL language is very simular to Java. So I want to write my own trading robot :) But I have a few problems... For my strategy is it very important to know, if Ithe market actually in a up- or /down-trend and if the market is touching the Bollinger Bands....
Hey Guys, Finally I coded my EA to detect a trend and I'm very happy! - https://www.mql5.com/en/articles/136 But for the next step I need to know if the high point is over and the trend is now in the correction phase. Because my strategie doens't trade at the corretion phase. Is there any way to...