Peter Williams / Profile
Now retired and living in Scotland with great views over the Clyde Estuary.
Like most trying to establish - create or use - profitable EAs
Like most trying to establish - create or use - profitable EAs
Friends
4
Requests
Outgoing
Peter Williams
Added topic How to locate my indicators
I am using MT4 v4 Build 765 and I wanted to create a new version of an existing custom indicator - which I have done. I created the files 'as indicators' in the MT4 developer window and can see both the old and new indicators in the Navigation pane
Peter Williams
Added topic Market Info Function not working
I thought I'd try a new broker and wanted to check out spreads using the code below. Running the EA showed figures (screenshot below) which don't seem realistic and they don't change (as on another broker where the spreads are always changing)
Peter Williams
Added topic Accessing Files
Good morning I want to try and access the LOG files and have read about using routines in KERNEL132.dll (https://www.mql5.com/en/articles/1540) and this looks useful but I am trying to figure how to retrieve the path to the file In Older builds
Peter Williams
Added topic What Symbols are available
I recently changed to a different broker and found the available currency airs (or symbols) were different. Is there any easy way to :- 1. Access all Symbols from an EA 2. Check the availability of a Symbol from an EA
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
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
: