Peter Williams
Peter Williams
Now retired and living in Scotland with great views over the Clyde Estuary.
Like most trying to establish - create or use - profitable EAs
Friends

Add friends via their profile or user search and you will be able to see if they are online

Peter Williams
Added topic Macro Redefinition
I believe I have used these 2 routines on several occasions and never had a warning / problem. When I compile my EA I get the warning "macro redefinition" with line # for line in second routine.  Obviously not critical but would like to
Peter Williams
Added topic Stop Level calculation
I hav erecently go some invalid stops occurring ( Error 130 ) so thought I'd try the Market info stoplevel command as shown below. I just seem to be getting a value of zero 0.00000000 to be precise. The following code is the 'entire' EA I expect to
Peter Williams
Added topic How to refernce a chart object
Thought this would be easy but can't find a solution If - for example I have some objects on a chart then I want my EA to check for there existence then interrogate the details of the object. If I draw - say 3 lines on a chart - Insert Hline - then I
Peter Williams
Added topic Platform not using latest compiled code
I have an EA which has been working in various forms for a long time. The EA has several #include <.....................> statements including one file with all my variables. This morning I changed a variable and recompiled - all appeared fine
Peter Williams
Added topic MT4 New Builds - Access to Files
I have just installed the new build and spent quite some time making changes that will be acceptable. Looks very good! My EA writes log data to a series of files - information to help find errors, MIN & MAX data and also a log of when contracts
Peter Williams
Added topic ADX Values and DI+/-
I have used ADX in the past with no problem. I have just tried to access values for DI+ & DI- and they appear so different than on the chart. I use the Comment statement to display the values on the top part of the screen. The lower half displays
Peter Williams
Registered at MQL5.community
Peter Williams
Added topic Interrogating the 'error' value from an FileOpen statement
Can't figure out why this happens! I have a routine to check the integrity of my orders.  [If I have previously been unable to close orders after delays and retrys then details are written to file and dealt with here] So in 99.9% of occasions
Peter Williams
Added topic How to draw trend line
I am trying to drawn a TREND line but I just get a line running across the screen (the wide GOLD line below). EAM55_2 & EMA55_1 are the EMA's for 2 consecutive figures. The start time on the right hand side appears correct but I just want the
Peter Williams
Added topic More About MT4gui
I want to include a box in the top right hand corner of my screen with 6 lines of data which change each time period (i.e. 1M,5M,30M etc). I have seen some details about the mt4gui but not too much. I have extracted the following code from an example
Peter Williams
Added topic FileIsLineEnding
If I have failed to close an order then I write to an error log a ticket # and magic number in a string. The file will always exist but will normally be empty. I am trying to read the error file in a loop which starts with the following code. I would
Peter Williams
Added topic Missing something obvious/
I am using the code below to check a log file. Most of the tickets I would expect to have been closed sometime ago and I would therefore expect the code to take the 'else' route but the FileWrite suggestions otherwise
Peter Williams
Added topic My custom indicator displays NOTHING
Have been trying to develop my first customer indicators . One example sort of worked and I could access the results - great. The following displays nothing in the indicator window - not even the ShortName, parameters - just a complete blank panel I
Peter Williams
Added topic liveupdate doesn't appear to work.
I recently added to comments about people not being able to create demo accounts (after January 1st I think). The problem appears several fold Demo accounts are created using (Alpari UK) current build - 409 (Oct 2011) [BUILD #s maybe different with
Peter Williams
Added topic Metatrader platform should automatically update to latest version or build
I have been trying to open a further demo account early this morning (9:15 am in UK) and was unable to - this system gave the 'failed noise' and never reached the FINISH stage. Alpari (UK) created account for me. (I have passed details of this query
Peter Williams
Added topic No Comment - appearing on my screen
I have an EA which I have written and typically I have it running on several charts at a time. Each EA has an 'on screen ' display in the form of a comment created in the EA and shows current and history contracts for that instrument - together with
Peter Williams
Added topic ERROR 129 and failure to close order
I have been trying to close 2 similar orders one after the the other - one seems to succeed and the other (2nd) fail on more than one occasion. Both orders would be either Buy or Sell (ie both the same and the price set the same - both ask or bid)
Peter Williams
Added topic Why does calculation result in ZERO
I just couldn't track an error down then found a very basic calculation not performing as expected - I've subsequently tried various combinations and reduced it to the following (comments / spacing removed ). Variables are read from a file which is
Peter Williams
Added topic History & History tab
I was trying to find information about History then found some real querks in the thread -- https://forum.mql4.com/29064. This hasn't really affected me to-date - still testing but re-enforces that I want to display all in the history tab. Question I
Peter Williams
Added topic Live Update
I recently had cause to install a new instance of MetaTrader because I couldn't figure out how to upgrade. I've read various clips and it appears the upgrade feature should be 'automatic' .. but this doesn't seem to happen for me. I have just