Doerk Hilger / Profile
- Information
|
9+ years
experience
|
0
products
|
0
demo versions
|
|
0
jobs
|
0
signals
|
0
subscribers
|
I have programming experience since 30 years with Assembler, Basic, C and C++, released many articles about programming, wrote books, got a honory title for informatics and worked as a lecturer in the past.
Currently I am focusing on Metatrader MQL5, especially object oriented programming and front end design.
Currently I am focusing on Metatrader MQL5, especially object oriented programming and front end design.
Doerk Hilger
Added topic Things which do not work in tester, but should
Hi, I am currently finding couple of things which don´t seem to work proper in tester, but which surely should. 1. ObjectSetInteger (chartid, name,OBJPROP_ALIGN, ALIGN_CENTER )); - has no effect in tester, all edit fields have
Doerk Hilger
Added topic Permanent files in tester mode - possible?
Hi, i used the search but could not find anything. Is there a way to create files in tester mode which will survive a restart? Global variables don't seem to work either. Thx
Doerk Hilger
Added topic CHARTEVENT_CHART_CHANGE - Missing events (Bug?)
Hi, my understanding of logic regarding this event is, that it is sent when the chart changes. But it does not in many circumstances in MT5: 1. User changes the scale from normal to fixed scale 2. When bars are growing and exceed the current price
Doerk Hilger
Added topic Timeframe button labels invisible with dark Windows color scheme - Bug MT5
Hi, on a VPS I am using a modified dark/high contrast color scheme. Whatever I try, the labels of the timeframe buttons stay invisible, while everything else is visible, also other applications. These are the settings: I guess this is a bug and not
Doerk Hilger
Added topic Deprecated behavior - why?
Hi, I am not able to solve this. The basic idea is this code, but it produces the warning message for line 31. #include <Charts\Chart.mqh> //+------------------------------------------------------------------+ //| CChartExt
Doerk Hilger
Added topic Windows is 192 dpi (5K Monitor) but MetaTrader is still 96 dpi
Hi, I use VPS systems, several providers, and can connect them using Microsoft RDP or Jump Desktop from my local iMac at a resolution of 192 dpi. Right click on the desktop confirms the resolution of 5120x2880. The issue is, that all elements
Doerk Hilger
Added topic #import with build 2170 ... what happened?
#import "anydll.dll" int test( int x); #import anydll::test( 1 ); ... is not working anymore and produces error "'anydll' is not a class, struct or union" I cannot find nothing within the documentation
Doerk Hilger
Added topic ++/-- Illegal operation use on operator overloading ... Why?
Can someone help here ... the operator is overloaded, actually it should work //+------------------------------------------------------------------+
Doerk Hilger
Added topic Heavy "Feature" with doubles produces unpredictable errors in EAs
A simple math function like this brings a totally wrong result , and this served me a bug in an EA which I was searching for months!!! MT5 Build 2085, but I am very sure this is the same in earlier versions, cause this is also the same with C#
Doerk Hilger
Added topic Looking for library which reflects iMA/iRSI etc. in MT5/MQL5
Hi, since the latest build of MT5, the background calculation of indicators, such as iMA() in MT5 seem to be changed. Result is, that it seems you have to deal with luck to get the values, especially when you request them within OnTimer() ... at it
Doerk Hilger
Added topic Send market order but get a pending order?!
Hey, new issue. I send a market order and try to read the data immediately after the order has been sent - in synchronous mode - not async. So I use PositionSelect() afterwards, using the ticket number which is returned but get return value false
Doerk Hilger
Added topic iClose(), iTime(), CopyRates() etc. takes seconds and crashes EA and MT5
Hi, I reported this issue already one year ago to MetaQuotes but never got a helpful response. Sometimes - don´t ask me when - a simple execution of functions like iClose(), iTime() or CopyRates(), CopyTime() whatever takes more than 30 seconds until
Doerk Hilger
Added topic MT5 compiler bug #3 with macros
Try to compile ... #import "user32.dll" int GetParent( int hWnd); #import #define __MT_HWNDCHART (user32::GetParent(__MT_HWND)) #define __CHARTID (:: ChartID ())
Doerk Hilger
Added topic MT5 compiler bug #2 with macros
Compile ... #define STR_TO_BOOL(source) (source== "true" || ( int )source!= 0 ) int OnInit () { //--- This will produce warning "implicit conversion from number to string Print ( "True: " ,STR_TO_BOOL( "1" ));
Doerk Hilger
Added topic MT5 compiler bug #1 with macros
Try to compile ... #define RESOURCE_MAKETAG(text) ( "RC#" +text) int OnInit () { //--- This will produce error "export - unecpected token" and error ") unexpected token" Print (RESOURCE_MAKETAG( "export"
Doerk Hilger
Added topic Compiler bug in Build 1966
The following code compiles in MT5 without errors, in MT4 it reports a "not boolean expression" warning - which is wrong. But when the code is changed in a way that it compiles without errors, only the half of the functions is executed
Doerk Hilger
Added topic How to figure out the close price when position ran into stop loss?
Hi there, I am wondering how to figure out the close price and time, when a position was closed by its corresponding stop loss. The picture shows a part of the history. The original position id was 1253268, it contains no entries for profit or loss
Doerk Hilger
Added topic Read Time & Sales by MQL
Hi there, does anyone know how to read the time and sales list by MQL? OnBookEvent() lists only pending orders , but no executed orders. Maybe i´ve overlooked something. Or can this only be done by CopyTicks? Thanks in advance
Share on social networks · 1
1
Doerk Hilger
Added topic Window handle of tester
Hi there, has anyone an idea - sorry, a solution - how to figure out the window handle of the chart window when the tester is running in MT5? Thanks in advance
Doerk Hilger
Added topic Invalid EX5 file - just like that
Hi, since yesterday, the debugger is not able to compile the project anymore, just like that. It started when I created a macro and inserted this into some source files. This was the first time when the debugger created an invalid EX5 file, while the
Share on social networks · 1
14
: