Friends

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

Paul
Published article A Virtual Order Manager to track orders within the position-centric MetaTrader 5 environment
A Virtual Order Manager to track orders within the position-centric MetaTrader 5 environment

This class library can be added to an MetaTrader 5 Expert Advisor to enable it to be written with an order-centric approach broadly similar to MetaTrader 4, in comparison to the position-based approach of MetaTrader 5. It does this by keeping track of virtual orders at the MetaTrader 5 client terminal, while maintaining a protective broker stop for each position for disaster protection.

Paul
Added topic enum incorrect branch in switch
I have a bug in my code in which a switch statement branches to the wrong case for a user-defined enum.  Here's the code which reports the incorrect enum.  When m_LogLevel == LOG_VERBOSE (4), the function returns LOG_DEBUG.  But
Paul
Added topic Deals
I've played around with the the various Deal-related functions in MQL5 (HistoryDealSelect, HistoryDealsTotal, HistoryDealGetTicket, HistoryDealGetDouble, HistoryDealGetInteger, HistoryDealGetString) and I'm wondering if they apply at all to
Paul
Added topic Build 240 error - too complex program
New in build 240 is a "too complex program" error, see below   #include <Arrays/ArrayObj.mqh> #include <ChartObjects/ChartObjectsLines.mqh> //+------------------------------------------------------------------+
Paul
Added topic Maximum string length read by FileReadString
Is there any reason for the 4093 character maximum length of a string read by FileReadString from a BIN file
Paul
Added topic Corrupted build 238?
On two totally separate envrionments (Windows 7 x64 and Windows Server 2003 x64) I can't load build 238.  It just comes up with a garbled pop-up box for the compiler.  Anyone else with the same problem?  
Paul
Added topic How to retrieve values from a CIndicator
I would like to use the classes derived from CIndicator (CiMA, CiStochastic etc) but have had no success. The code below always shows DBL_MAX #include <Indicators/trend.mqh> CiMA extMA; int OnInit()   {    extMA.Create(
Paul
Added topic Tree Optimize Error bug
The attached script produces a Tree Optimize Error with the code below uncommented int n=wa.Widget(0).m_Member;  It appears that the compiler cannot handle the levels of indirection
Paul
Added topic Preventing decompilation of MQL5 executables
Could I get a comment please from MetaQuotes on what steps if any they have taken to make MQL5 difficult to decompile?  As I understand it, the optimising MQL5 compiler delivers machine code, but even this may not be sufficient, see example
Paul
Added topic Problem with Windows 7
I'm running Windows 7 Ultimate 64 bit as administrator and there is a problem with writing or seeing MetaTrader 5 files:  MetaEditor appears to compile OK but the resulting ex5 isn't visible anywhere If I duplicate one of the mt5
Paul
Added topic Left/Right/Centre justification for chart text
Would like to be able to set the justification for OBJPROP_TEXT to left or right or centre.  At the moment the only way that this can be done is to use the fixed spacing Courier New font and calculate padding
Paul
Added topic Some file problems
The attached EA writes a tick count to a file with a handle that is open all the time.   If I use FILE_READ|FILE_WRITE then notepad can't open the file until it is closed, see below - this is not the same as the behaviour of identical
Paul
Added topic Documentation
Would like the exact formula for the inbuilt indicators to be documented please.  This would assist in migrating strategies from other platforms.     Many indicators have slightly different interpretations, such as the use of EMA in
Paul
Published article Auto-Generated Documentation for MQL5 Code
Auto-Generated Documentation for MQL5 Code

Most Java coders will be familiar with the auto-generated documentation that can be created with JavaDocs. The idea is to add comments into the code in a semi-structured way that can then be extracted into an easy to navigate help file. The C++ world also has a number of documentation auto-generators, with Microsoft's SandCastle and Doxygen being two leaders. The article describes the use of Doxygen to create HTML help file from structured comments in MQL5 code. The experiment worked very well and I believe the help documentation that Doxygen produces from MQL5 code will add a great deal of value.

Paul
Registered at MQL5.community