Carl Schreiber / Profile
- Information
|
10+ years
experience
|
2
products
|
7
demo versions
|
|
0
jobs
|
0
signals
|
0
subscribers
|
Friends
1001
Requests
Outgoing
Carl Schreiber
Added topic Calling Methods of Nested Classes - HowTo?
Hi, the problem seems to be easy but I am stuck. I want to have 2 classes CQ and CI. CI in its constructor searches within an array of pointers (ArrCQ[]) to existing instances of CQ whether there is one that matches. For this "match-check" CQ has a
Carl Schreiber
Added topic starting to move to OOP and MQL5 seems to be very frustrating!!
There was once a poll here about who is planning when or why or .. (can't remember exactly) to switch to OOP-mq5 or something like that. The last days I started to think about coding in OOP and MQL5 and I was searching for some examples - may be an
Carl Schreiber
Added topic Does Anybody Remember the Indicator ..
HI, I know it has been discussed here. It was an indicator that looks quite interesting but is nothing but an ema. I remember there was a post that shows the original indicator and the ema and after some bars both show identical values (line). Doe
Carl Schreiber
Added topic open a file: read|bin & UTF8?
Hi, we heard mt4 is now UTF8. So I have a file save as a utf-8 file from Notepad++. Its first line in Notepad++, in Windows' Editor and Word Pad begins with Sugar; ... BUT if I open it like this: int nL,hdl = FileOpen (
Carl Schreiber
Added topic SymbolSelect(SYM,false) - isn't it working - or do I do something wrong?
I have written a loop within a script to get some symbol spec.s: void OnStart () { int nSym = SymbolsTotal ( false ); while (--nSym>= 0 && ! IsStopped () ) {
Carl Schreiber
Published article Enhancing the StrategyTester to Optimize Indicators Solely on the Example of Flat and Trend Markets
It is essential to detect whether a market is flat or not for many strategies. Using the well known ADX we demonstrate how we can use the Strategy Tester not only to optimize this indicator for our specific purpose, but as well we can decide whether this indicator will meet our needs and get to know the average range of the flat and trend markets which might be quite important to determine stops and targets of the markets.
Share on social networks · 7
18304
Carl Schreiber
Added topic how do I now define 2-dim arrays in a mt4-mqh-file?
Function definition - what is wrong? int getInt2Index( int i0, int & arr[][]){ causes '[' - invalid index value Defines.mqh 581 36 Char 36 is the 2nd [ Even a int getInt2Index( int i0, int
Carl Schreiber
Added topic OnTester() the Genetic Algorithm and return(INIT_PARAMETERS_INCORRECT)
Hi, does anybody know a workaround for this disappointing behaviour? In OnInit() I use: if (IsPerA == false && ValPerA != 2 ) return ( INIT_PARAMETERS_INCORRECT ); to switch on and off the test of variables and in case of an off to
Carl Schreiber
Added topic Always INVALID_HANDLE in the TERMINAL_COMMONDATA_PATH ??
Hi, I am using the code example of the mt4-reference to read some csv-files in the COMMON-Folder - despite my terminals are placed at 'my' folders (keyword: /portable mode) and fail?? My COMMON-Folder
Carl Schreiber
Added topic real volume.. ?
Especially for Shares it would be quite helpful if the brokers offering mt4 & mt5 would finally provide the real volume. Ok, the brokers only offers cfds for trading but the but the prices are related to the prices of the real market so
Share on social networks · 1
1
Carl Schreiber
Added topic 'extend' the line?
Hi, is there a way in the mql4-editor to 'extend' the line? Hear is what what I mean: #define checkA( var ,lim1,lim2) var >lim1 ? 1 : var <lim2 ? - 1 : 0 // this is accepted by the compiler // this not: #define checkB( var
Share on social networks · 2
2
Carl Schreiber
Added topic More Elegant Way to Format Output?
We now have in mql4 a way to formate the output with a variable number of digits: ... string fmt = StringFormat ( "%%.%df" ,digs), Comment ( StringFormat ( "Var1: %s Var2: %s ..."
Carl Schreiber
Added topic voodoo puppets?
I am waiting for an supplier of voodoo puppets highly specialized to act on signal providers , EA or Indicator sellers, and brokers with a detailed HowTo.chm ;) It seems that this forum has become the right place for things like that
Carl Schreiber
Added topic Download of the News File fails: 404 Page not found
Hi, since the last terminal update to 890 I do have several problems. A serious one is that my tries to load the new-file of the week fails: #import "wininet.dll" int InternetOpenUrlW(int,string,string,uint,uint,uint); #import ... string
Carl Schreiber
Added topic Am I correct and fail safe this way?
Hi, In the MQL4-Reference I just read in the capital of SymbolInfoDouble (): Note It is recommended to use SymbolInfoTick() if the function is used for getting information about the last tick. It may well be that not a single quote has appeared yet
Carl Schreiber
Added topic looking for confirmation ..
Hi, am I right that we cannot have this kind of pointer structure? struct _S{ int i; }; _S p, arr[]; ArrayResize (arr, 5 ); p = &arr[ 2 ]; // compiler error: '&' - operand expected test_OrderArrray.mq4 Is
Carl Schreiber
Added topic default settings of structs
Hi, does anybody know how the initial values of a struct are set? #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00"
Carl Schreiber
Added topic stange errors of standard function (WindowHandle()) and -values ERR_FILE_READ_ERROR => not defined ???
Hi, as I (Win7, 64, Term. 840, Editor 1154) wanted to compile some of my old mqh I get some new previously not known Errors: => 'WindowHandle' - function not defined Win32FuncsAll.mqh 846
Carl Schreiber
Added topic Problem with OnTimer()..
Hi, I want to make an EA tat is called/running once a day - but here in my test-code every hour. It writes a comment with the time (local) of the last run and the time it should run the next time: one hour later. BUT as you might see the OnTimer()
: