Carl Schreiber
Carl Schreiber
  • Information
8+ years
experience
2
products
7
demo versions
0
jobs
0
signals
0
subscribers
Carl Schreiber
Added topic easy way to detect the end of a data hole with the 'new' mql5 functions .. how?
In the history data of m1 I have a hole - ok, can happen. E.g. if I want to 'start to feed' as of a date that is within that data hole I get the last existing m1-bar so to say the left end of the hole: datetime tA[], t0 = TimeCurrent () - 5040000 ;
Carl Schreiber
Added topic Strange Behaviour of a working Indicator .. What to do? How to recognize?
I created an OOP-base for Indicators and EA, so that I don't have to use iCustom! What you see is a very simple Mom: Buff2[b+1] = close[b+1] - close[b+1+PER]; Buff1 receives the values that are calculated by the OOP-base. As you can see, the
Carl Schreiber
Added topic result of OrderSelect(tckt,SELECT_BY_TICKET) if tckt was closed?
The situation: an EA has opened two position with aTckt and bTckt and manages them (controlled Comment()). Now I close manually one of them, e.g. aTckt. But the following code neither set _LastError nor does OrderSelect() return false so that n is
Carl Schreiber
Added topic rewrite a file partially ...?
Hi is there another way than to open a file to read, read it totally, close it, do some changes e.g. actualize the last access date of a line  and then reopen it again to write and rewrite it completely and close it. I open this file
Carl Schreiber
Added topic error number if ticket is unknown (already closed)
Hi, does anybody know what error number the mt4-server returns if an order already has been closed and an EA tries to close 'the ticket' as well? MT5 does have: 10036 TRADE_RETCODE_POSITION_CLOSED The position with the given POSITION_IDENTIFIER has
Carl Schreiber
Added topic wrong error messages 4052, 4051 by mt4 - mt5 too?
Hi, I realized a nasty error in mt4: string strEmpty, strCompare = "lkjhsadslkjh" ; if ( StringFind (strEmpty, strCompare) < 0 ) strEmpty = strEmpty + ";" + strCompare; As strrEmpty is empty (not initialized) mt4 throws the error 4052 (=
Carl Schreiber
Added topic Minute() returns wrong values - or am I wrong?
This little script: void OnStart ()   { //---    int waitMinutes = 60 ,        waitSec     = waitMinutes* 60 ,       
Carl Schreiber
Added topic where am I wrong, so that I don't crash my pc?
Hi I (Win7, 64, mt4, b1090) have an indicator CaVol with about 10 Parameter of which only the first two matters (the rest is for the presentation). This indicator has 34 puffer. Now I wrote a second indicator CallingCaVol() that calls the first one -
Carl Schreiber
Added topic How is TerminalInfoInteger(TERMINAL_PING_LAST) in mt5 treated to detect net interruptions.
Hi, I am still using mt4 and I tried to use TerminalInfoInteger (TERMINAL_PING_LAST) to detect net failures. Sometimes it works: But sometimes it doesn't! :( Obviously the ping is executed in another thread than eas and indis (at east in mt4) it
Carl Schreiber
Added topic Frequence of Pings by the Terminal
Hi does anybody know how often mt4 makes a ping to its server? And is there a way to force the terminal to make another ping
Carl Schreiber
Added topic New Type of Graphic Objects?
Hi, I (mt4 b1065) created 10 little rectangles at the lower right corner and and changed their size acc. to the image  BUT, they do not appear as objects in the object-window (ctrl-B)? Anybody else with this experience? Beside that I cannot
Carl Schreiber
Added topic Getting Constantly an Error #2: Common Error - Despite Everything Works Fine?
Hi, has anybody recognized this 'feature' as well - may as well in mt5 too? Developing a multi-symbol-system I do:        ResetLastError ();        int cop1= CopyRates (Sym, PERIOD_M1 , 0
Carl Schreiber
Added topic How does the compiler and the editor determines include-files to be meant for either mt4 or mt5?
Well this is my situation: I speak about two include files: Errors.mqh and CmyClass.mqh both in ..\MQL4\Include\ which I want to compile individually to detect 'grammatical' errors! I created a class CmyClass.mqh which contains the class method: bool
Carl Schreiber
Added topic JPY: Why Does the Forex Price has this Structure: 111.123 Instead of 0.111123, so that One Needs an Individual Coeff to Get in Line with Others?
I don't like individual configuration for general problems :( The JPY has a structure of 123.456 if you multiply it wit the lot size 100,000$ you'll get a ridiculous high number. You have to divide the JPY-price by 1000 to be able to use it in
Carl Schreiber
Added poll Shall we ask for an app similar to Amazon's Alexa?
  • 26% (5)
  • 5% (1)
  • 11% (2)
  • 58% (11)
Total voters: 19
Carl Schreiber
Added topic OOP: nested classes and undeleted objects and strings after removing the indi or script - what to do?
Hi, I have written a three nested classes: a manager, the quotes class (as many instances as symbols required) the worker(s) (calculating hat is required) Now this triumvirate is called either by an indicator and alternatively by a script (mainly for
Carl Schreiber
Added topic I am baflled: Still No Way to Get the Commision?
Hi, I am baffled. I was looking for a way to get the broker's commission of a symbol without trading it. For an open or closed position I do have OrderCommission(). (But why the hell should I go through the whole history with the chance to miss a
Carl Schreiber
Added topic MT4 always offers a new surpise :)
Hi, I just realised a new feature I would have never expected: The EURGBP position is shown on the EURCHF chart. But now - after a couple of minutes - its gone and can only be seen on EURGBP. Could be an interesting idea: all position on one chart
Carl Schreiber
Added topic Mt4 - the Terminal that never sleeps :(
I wanted the EA to coordinate file accesses using GetTickCount(). So I was testing what it can do and got this: It should sleep for 7 mSec but it never sleeps. Here is my EA, where am I mistaken??  Or is this just the reason why the terminals
Carl Schreiber
Added topic Damn old Kernel32.dll: FindFirstFileW
Hi, I am trying to get the list of files in a nonMT4-Folder for which I need Windows' kernel32.dll functions . Well there is an old thread to start: https://www.mql5.com/en/forum/103578 and https://www.mql5.com/de/articles/1543 for pre b600+ I just