MQL4 and MetaTrader 4 - page 583

[Deleted]
I'm trying to figure out how to draw a horizontal line from the start of a day to the end at the open price, of the day.  Not sure how to represent start of day in the following code.  Any thoughts would be greatly appreciated.  I was thinking of converting time to seconds, but then, I would have to...
[Deleted]
  expiry of EA  (10)
I want to give my EA on rent for 1 month and e.g i want it to expire on 15th May, 2016.So should i write in the start funtion "if (TimeCurrent () > D'2016.05.15') return(INIT_FAILED); Is it OK? Should it stopbon 15th May? Please guide the correct code.
[Deleted]
Hi, How to make the indicator object auto refreshing tick by tick? On my indicator I have to change into other time frame to refresh the trend lines. I tried using        WindowRedraw(); ChartRedraw(); inside the start() funciton, where we have the code for object calculation & drawing. I have 3...
I have an indicator that gives a signal (arrow) if a set of conditions is met, however I have not been able to find the documentation for a BAR ON CLOSE option. Any thoughts/ideas on how to accomplish this. My dream will be to have the Input in that way I can choose weather I would like the...
[Deleted]
Hello I ran an optiization that lasted 24hours and for some reason after it ended my pc crashed I still have a file in /tester/caches with a type "File 0" which might be the result of my optimization ( same saving date as the expected end ot optimization or crash, name including the right ea and
[Deleted]
English : I have an expert advisor working and efficient. I have the need to compile the list in such a way that it is not open source visible. So I need a compiler software files processed in MQL4. Someone point me to where I can find this type of software and what's his name? My name is Nello my...
Hi,   I am sitting here for hours now trying to fix this thing until it turned out that my calculator can easily get the wanted result, but it seems that MT4 cant.   I should show the result -2.35671324   using this calculation:   Print(((1/10)*23.56713241)*(-1));    but instead it is showing -0....
I have this problem that gives me trouble for quite some days , I think it's pretty much a fact of the code structure, because in this case the shift of the news candle never increases . Because if the news comes out at 17:00 , at 17:01 the news candle will no longer 0 but will of course 1 ( M1 ) ,...
[Deleted]
Hi , Any body can tell me how i can loop my ea after the whole process is complete( Open pending order -->  pending order get hit ---> open order get close --> no order --> start again --> Open pending order etc.. etc.. ) Thanks for the help.
New article Graphical Interfaces IV: the Multi-Window Mode and System of Priorities (Chapter 2) has been published: In this chapter, we will extend the library implementation to the possibility of creating multi-window interfaces for the MQL applications. We will also develop a system of priorities...
Hello everyone. I am new to the coding trying to learn from this page and found that there is a builder on EA. And so I used it. I am setting up an EA to trade MA crosses but the builder does not have this option. Can somebody help or guide me on this? Below is the code i generated from http://sufx...
Hello, comrades. How can I set the current time as default time to appear in the property window for a variable I created to handle time in the property window, without having to enter the current time in the editor each time I want to invoke the property window? Thank you in advance. Please see...
  Code Help, Please Clarify  (15   1 2)
Hi Can someone please clarify that the coding below is correct? I want to trade between 1.30 am and 9.30 pm and halt trading for news release between 1.00 pm and 3.00 pm  Therefore is my coding correct?? will this function correctly?? Any feedback is appreciated............regards Mickey    extern...
  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 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 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...
[Deleted]
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
[Deleted]
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....
[Deleted]
does anyone have any experience in this matter? or a ready-made template? or just a thought? in my opinion the following points should be stipulated: 1. in whose name the account is opened 2. the maximum drawdown from a fixed deposit after which all trades are closed 3. how to divide the profit and
[Deleted]
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?
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...
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!