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
Peter Williams
Added topic Traiangle coordinates error
I have the following code- for points 1,2 & 3 of a triangle Price1 is declared as double and Time1 as datetime Price1   = ObjectGetDouble        ( 0 ,objName,OBJPROP_PRICE1 , 0 );
Peter Williams
Added topic Heiken Ashi
Hi, I have been reading about the indicator and confused as how to call the indicator correctly.  I have seen the first instance (below)  but not sure the significance of the colors The second statement appears to work fine (i is the
Peter Williams
Added topic Select a Chart from an EA
Hi, I have several charts on my terminal and would like to be able to switch to a specific chart by using a button on my dashboard chart. I can find the chart by scanning through the ChartFirst and Next command and filtered by SYMBOL and PERIOD. Once
Peter Williams
Added topic Chart Window resizing
   long chartID = 0 ;    string msg = "" ;    chartID =   ChartOpen ( "GBPUSD" , PERIOD_M1 );    //msg = msg =+"chartID = "+IntegerToString(chartID);    string mysymbol = ChartSymbol
Peter Williams
Added topic Product
I recently saw references to this product and it looks to be a great collection of tools. I tried to use in MT5 (loaded URL in Options). The product fails to load with an error code 1 also states 2020.04.24 11:52:11.829   
Peter Williams
Added topic Finding History Data in MT5
I am trying to migrate to MT5 and really struggling with HISTORY. I tried to adopt some code - then gave up and been trying by trial and error.  I have read some of the articles but just somehow don't get it. MT4 seemed so simple. If I download
Peter Williams
Added topic ChartIndicatorAdd doen't show on terminal
I found some code that used the following statements which seemed a great idea. I can see the indicator when a I list the Indicators.  I have changed the scales - i.e. untick fixed . I have tried using 10 (just any number) instead of
Peter Williams
Added topic Error Code 5004
I am trying to migrate to MT5 and have had a few struggles.  The following I don't quite understand. I get an ERROR 5004 when using the following code:- 2020.03.30 14:04:20.165    Message    My_error: 5004 File
Peter Williams
Added topic Using PERIOD (....)
I am trying to migrate some of my work to MT5 (from MT4) and struggling with the 'Period Constant'.  I want to pass the current chart information to a routine and return a string containing M1 or M5 or  H1 etc to match against other data
Peter Williams
Added topic Rectangle Object
I am trying to change the font size of the description associated with a rectangle in an EA. Changing the COLOR appears to work OK but the FONTSIZE doesn't appear to change ObjectSetInteger (chart_ID,ObjName, OBJPROP_COLOR ,Wheat);   
Peter Williams
Added topic Signals - Reliability
How do I understand the Reliability Index for Signal providers . I have seen two recently that give HIGH returns but 1 is High Reliability and the other (better performing) is very Poor.   The Poor provider has more followers than the Good
Peter Williams
Added topic How do I resize Navigator Window
For some reason  unbeknown to me my Navigator Window now appears as a full width window and I can't find how to restore to original setting. Seems so simple but spent ages trying to find help. Suggestions appreciated  Thanks
Peter Williams
Added topic Strategy Tester
I am newish to the Tester (historically never got anything very useful / understandable). I have been trying to use an AI based EA and suggests using the tester. I run from 1-jan-2018 and have no trades but the following messages in the journal
Peter Williams
Added topic Duplicate Orders
Have my own EA which I have running on the Major charts including the USDJPY.   My EA creates a log file which writes loads of data but I can't fathom out why every time a USDJPY order is initiated I appear to get 2 orders generated (with same
Peter Williams
Added topic 5008 wrong file handle (handle index is out of handle table)
The code appears to executes OK ( i.e. reads details from file and My_Handle_line seems OK - 2) -but still generates the ERROR code 5008 My_Handle_Line  = FileOpen ( "Dashboard\\" +fname, FILE_CSV | FILE_READ , "|"
Peter Williams
Added topic How to use OrdersHistoryTotal
I have seen several references to OrdersTotalHistory but haven't found what is kept in History and - if it can be changed - then how. I currently see that I have OrdersTotalHistory() having a value of 41 but no idea what period this refers to
Peter Williams
Added topic Can I intergoate Indicator Level ?
I am using a custom indicator (supplied by third party) and the indicator sets dynamic levels for the 'indicator levels'.  Instead of - say - levels of 20, 0 & 80 the upper & lower levels would be continually changing I'd like to access
Peter Williams
Added topic Error 4051 occurred deleting an object
I use a routine to create an entire table as a summary of all my active trades and each object has a name created by using its x and y positions. The table maybe 10 columns by 10 lines - i.e. 100 objects created in the same routine -- but all very
Peter Williams
Added topic The time at which an indicator recalculates
The following data is part of my 'log' file and represents data from a custom indicator . In this case the variable is on the 1 minute chart, last value (i.e. 0 )and 5 periods At 1 second past 15 minutes the variable changes (as expected) and remains
Peter Williams
Added topic Weird Ticket #
I have a demo account and have been doing extensive testing of an EA. Earlier today I was baffled to see the same ticket number occurring in my test data files for different currency pairs . I wrote a separate EA to search for the specific ticket #